LogID


class description - source file - inheritance tree

class LogID : public TObject

    private:
UInt_t getColumn(UInt_t tagWord) UInt_t getID(UInt_t tagWord) UInt_t getLayer(UInt_t tagWord) UInt_t getPipeline(UInt_t tagWord) UInt_t getSequence(UInt_t tagWord) UInt_t getTower(UInt_t tagWord) UInt_t getXY(UInt_t tagWord) Bool_t isValidColumn(UInt_t columnVal) Bool_t isValidPipeLine(UInt_t pipeVal) Bool_t isValidTagStruct(LogID::TAG_STRUCT ts) Bool_t isValidTagWord(UInt_t tagWord) public:
LogID LogID() LogID LogID(UInt_t tag) LogID LogID(LogID&) virtual void ~LogID() TClass* Class() Bool_t fillGeomFromID(LogID::TAG_STRUCT* ts) Bool_t fillIDFromGeom(LogID::TAG_STRUCT* ts) void fillTagStruct(UInt_t tagVal, LogID::TAG_STRUCT* ts) UInt_t fillTagWord(LogID::TAG_STRUCT* ts) UInt_t getColumn() UInt_t getID() UInt_t getLayer() UInt_t getPipeline() UInt_t getSequence() UInt_t getTag() LogID::CALAxes getXY() virtual TClass* IsA() Bool_t setColumn(UInt_t columnVal) Bool_t setLayer(UInt_t layerVal) Bool_t setTag(UInt_t tagVal) Bool_t setTag(LogID::TAG_STRUCT* ts) Bool_t setXY(LogID::CALAxes xyVal) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

private:
UInt_t m_tag Packed word containing log data public:
static const enum TObject:: CAL_K_XY static const enum TObject:: CAL_V_XY static const enum TObject:: CAL_M_XY static const enum TObject:: CAL_K_SEQ static const enum TObject:: CAL_V_SEQ static const enum TObject:: CAL_M_SEQ static const enum TObject:: CAL_K_PIPE static const enum TObject:: CAL_V_PIPE static const enum TObject:: CAL_M_PIPE static const enum TObject:: CAL_K_ID static const enum TObject:: CAL_V_ID static const enum TObject:: CAL_M_ID static const enum TObject:: CAL_K_LAYER static const enum TObject:: CAL_V_LAYER static const enum TObject:: CAL_M_LAYER static const enum TObject:: CAL_K_COLUMN static const enum TObject:: CAL_V_COLUMN static const enum TObject:: CAL_M_COLUMN static const enum TObject:: CAL_K_TOWER static const enum TObject:: CAL_V_TOWER static const enum TObject:: CAL_M_TOWER static const enum TObject:: BOUNDS_COLUMN static const enum TObject:: BOUNDS_PIPE static const LogID::CALAxes X static const LogID::CALAxes Y

Class Description

 The LogID class contains a log ID number (encoding of detector
 element position) as well as functions to obtain the location of
 log in question. LogID is used in the CalHit class.



LogID()
 Default constructor
 All fields in tagword initialized to 0

LogID(UInt_t tag=0)
 Create a LogID object with number tag

~LogID()
 Destructor

UInt_t getTag() const
 Returns the log number

Bool_t isValidColumn(UInt_t columnVal)
 Check if given value is a valid Column number:

Bool_t isValidPipeLine(UInt_t pipeVal)
 Check if given value is a valid pipe number:

Bool_t fillGeomFromID(LogID::TAG_STRUCT *ts)
 fill Layer, Column fields from ID fields:

Bool_t fillIDFromGeom(LogID::TAG_STRUCT *ts)
 fill Pipeline, ADC Sequence, etc. from Geometry fields:

Bool_t isValidTagStruct(TAG_STRUCT ts)
 Test the validity of a particular tag structure.
 Ensures that fields which don't use all possible values are
 within bounds.  Compares 'geometric' and 'electronic' position data
 and ensure that they are equivalent.

Bool_t isValidTagWord(UInt_t tagWord)
 In this function, we must ensure that the (Pipeline, Sequence, XY)
 and (Layer, Column) data map to identical logs.  If this is not the
 case, then the data encoded in the tagword is contradictory and
 should not be used.  This function also tests fields to ensure that
 values are within valid range.  It is important that this function
 is called on all tag words before they are stored or used!

UInt_t getTower(UInt_t tagWord)
 Returns the GLAST tower this log belongs to.  In the '99/2000
 beamtest, this value is always 0.

UInt_t getColumn(UInt_t tagWord)
 Returns the column of the log in the calorimeter
 Columns are numberd 0-9.  Looking at the positive X face of the cal
 the log ends are numbered 0-9 from left to right.  Looking at the
 Positive Y face of the cal, the log ends are numbered 0-9 from right
 to left.

UInt_t getLayer(UInt_t tagWord)
 Returns the layer this log is in.  Layers are numbered from
 0: (closest to TKR) to 7: (furthest from TKR).

UInt_t getID(UInt_t tagWord)
 Returns the id of this log.  Each log in the calorimeter has a unique
 id value based upon it's position in the cal.

UInt_t getPipeline(UInt_t tagWord)
 Returns the electronics pipeline the log is read out through

UInt_t getSequence(UInt_t tagWord)
 Returns the electronics ADC sequence the log is read out from

UInt_t getXY(UInt_t tagWord)
 Returns whether the log is in an x or y plane of the cal.

void fillTagStruct(UInt_t tagVal, LogID::TAG_STRUCT *ts)

UInt_t fillTagWord(LogID::TAG_STRUCT *ts)

Bool_t setTag(UInt_t tagVal)
 Set value of tag word to tagVal if taVal is valid

Bool_t setTag(TAG_STRUCT *ts)
 Fill tag word from values in a tag struct.

UInt_t getColumn() const
 return column value from tag word:

Bool_t setColumn(UInt_t columnVal)
 Sets the column field in the tag word

UInt_t getID() const
 Returns the unique id of this log

Bool_t setXY(CALAxes xyVal)
 Sets the XY field in the tag word

UInt_t getLayer() const
 return layer value from tag word:

UInt_t getPipeline() const
 return layer value from tag word:

UInt_t getSequence() const
 return ADC sequence value from tag word:

Bool_t setLayer(UInt_t layerVal)
 Sets the layer field in the tag word



Inline Functions


        LogID::CALAxes getXY()
               TClass* Class()
               TClass* IsA()
                  void ShowMembers(TMemberInspector& insp, char* parent)
                  void Streamer(TBuffer& b)
                 LogID LogID(LogID&)


ROOT page - Class index - 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.