#include "hmudata.h"

HMUData


class description - source file - inheritance tree (.pdf)

class HMUData : public TObject

Inheritance Chart:
TObject
<-
HMUData

    public:
HMUData() HMUData(const HMUData&) ~HMUData() static TClass* Class() void clear() Int_t decode(UInt_t* ptr, Int_t maxLength) UInt_t getMULength() UInt_t getNDiLeptons() UInt_t getNHitsRich() UInt_t getNHitsShower() UInt_t getNHitsTof() UInt_t getNLeptons() UInt_t getSecHitPatternRich() UInt_t getSecHitPatternShower() UInt_t getSecHitPatternTof() UInt_t getTriggerCode() Bool_t getTriggerCodeFirstFormat() UInt_t getVersion() virtual TClass* IsA() const Bool_t isTriggerCodeFirstFormat() HMUData& operator=(const HMUData&) void setMULength(Int_t mul) void setNDiLeptons(Int_t nl) void setNHitsRich(Int_t hr) void setNHitsShower(Int_t hs) void setNHitsTof(Int_t ht) void setNLeptons(Int_t nl) void setSecHitPatternRich(Int_t pr) void setSecHitPatternShower(Int_t pr) void setSecHitPatternTof(Int_t pr) void setTriggerCode(Int_t tc) void setTriggerCodeFirstFormat(Bool_t tcff) void setVersion(Int_t v) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
UInt_t muLength Length of subevent UInt_t version Version of matching unit DSP code UInt_t triggerCode Triggercode from MU subevent UInt_t nHitsRich Number of Hits in RICH UInt_t nHitsShower number of hits in SHOWER UInt_t nHitsTof number of hits in TOF UInt_t scalers[20] Values read from scalers UInt_t secHitPatternRich Bit pattern for RICH sectors that had a hit UInt_t secHitPatternShower Bit pattern for SHOWER sectors that had a hit UInt_t secHitPatternTof Bit pattern for TOF sectors that had a hit UInt_t nLeptons Number of leptons found UInt_t nDiLeptons Number of Dileptons found Bool_t fTriggerCodeFirstFormat flag for format of MU data (old or new) HEventHeader* eventhead ! pointer to header

Class Description


HMUData

 Datacontainer holding data from MatchingUnit subevent.

 The access to the variables is done via the following public functions:
 To get the content of a variable:
  UInt_t getMULength()
		Get the length of the MU subevent.
  Bool_t isTriggerCodeFirstFormat(void)
		Get the format of the MU subevent. 0 means old format, 1 means new format.
  Bool_t getTriggerCodeFirstFormat()
		Get the format of the MU subevent. 0 means old format, 1 means new format.
  UInt_t getVersion()
		Get the version.
  UInt_t getTriggerCode()
		Get the trigger code.
  UInt_t getNHitsRich()
		Get the number of hits in RICH.
  UInt_t getNHitsShower()
		Get the number of hits in SHOWER.
  UInt_t getNHitsTof()
		Get the number of hits in TOF.
  UInt_t getSecHitPatternRich()
		Get the pattern of RICH sectors that had hits.
  UInt_t getSecHitPatternShower()
		Get the pattern of SHOWER sectors that had hits.
  UInt_t getSecHitPatternTof()
		Get the pattern of TOF sectors that had hits.
  UInt_t getNLeptons()
		Get the number of found leptons.
  UInt_t getNDiLeptons()
		get the number of found Dileptons.

 To set a variable:
  void setMULength(Int_t mul)
		Set the length of the MU subevent
  void setTriggerCodeFirstFormat(Bool_t tcff)
		Set the format of the MU subevent. FALSE means old format, TRUE means new format.
  void setVersion(Int_t v)
		Set the version.
  void setTriggerCode(Int_t tc)
		Set the trigger code.
  void setNHitsRich(Int_t hr)
		Set the number of hits found in RICH.
  void setNHitsShower(Int_t hs)
		Set the number of hits found in SHOWER.
  void setNHitsTof(Int_t ht)
		Set the number of hits found in TOF.
  void setSecHitPatternRich(Int_t pr)
		Set the bit pattern of RICH sectors that had hits.
  void setSecHitPatternShower(Int_t pr)
		Set the bit pattern of SHOWER sectors that had hits.
  void setSecHitPatternTof(Int_t pr)
		Set the bit pattern of TOF sectors that had hits.
  void setNLeptons(Int_t nl)
		Set the number of found leptons.
  void setNDiLeptons(Int_t nl)
		Set the number of found dileptons.
 If you use these functions, make sure your input parameter is in the rigth
 coordinate system and units! No checking or transformations are done.



HMUData(void)
 Default constructor. Sets all variables to zero except fTriggerCodeFirstFormat,
 which is set to 1, to define new format of MU data.

 Input parameters:
	none

 Output parameters:
	none

 Return code:
	none

void clear(void)
 Clears dataobject, by setting all variables to zero, except fTriggerCodeFirstFormat,
 which is left untouched.

 Input parameters:
	none

 Output parameters:
	none

 return code:
 none

Int_t decode (UInt_t *ptr, Int_t maxLength)
 Decodes dataword from MU subevent.

Input parameters:
	UInt_t* ptr
		Pointer to MU data.

	Int_t maxLength
	Maximum number of datawords to be decoded.

 Output parameters:
	none

 Return code:
	Number of decoded datawords.

void Streamer(TBuffer &R__b)
 Stream an object of class HMUData.
 Individual streamer needed, because variable eventhead was excluded from streaming for
 Classversions > 1.

 Input parameters:
	TBuffer& R__b
		Buffer object to read data from.

 Output parameters:
	none

 Return code:
	none



Inline Functions


               void ~HMUData()
               void setMULength(Int_t mul)
             UInt_t getMULength()
             Bool_t isTriggerCodeFirstFormat()
             Bool_t getTriggerCodeFirstFormat()
             UInt_t getVersion()
             UInt_t getTriggerCode()
             UInt_t getNHitsRich()
             UInt_t getNHitsShower()
             UInt_t getNHitsTof()
             UInt_t getSecHitPatternRich()
             UInt_t getSecHitPatternShower()
             UInt_t getSecHitPatternTof()
             UInt_t getNLeptons()
             UInt_t getNDiLeptons()
               void setTriggerCodeFirstFormat(Bool_t tcff)
               void setVersion(Int_t v)
               void setTriggerCode(Int_t tc)
               void setNHitsRich(Int_t hr)
               void setNHitsShower(Int_t hs)
               void setNHitsTof(Int_t ht)
               void setSecHitPatternRich(Int_t pr)
               void setSecHitPatternShower(Int_t pr)
               void setSecHitPatternTof(Int_t pr)
               void setNLeptons(Int_t nl)
               void setNDiLeptons(Int_t nl)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void StreamerNVirtual(TBuffer& b)
            HMUData HMUData(const HMUData&)
           HMUData& operator=(const HMUData&)


Last update: Fri Jan 26 11:59:48 2007


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.