towerID


class description - source file - inheritance tree

class towerID : public TObject


    public:
towerID towerID() towerID towerID(UInt_t tag) towerID towerID(towerID&) virtual void ~towerID() Int_t barrelEndcap() TClass* Class() virtual ULong_t Hash() virtual TClass* IsA() virtual Bool_t IsEqual(TObject* obj) Int_t layer() Int_t northSouth() Int_t phi() Int_t phiBinWidth() void setBarrelEndcap(Int_t barrelEndcapVal) void setLayer(Int_t layerVal) void setNorthSouth(Int_t northSouthVal) void setPhi(Int_t phiVal) void setPhiBinWidth(Int_t phiBinWidthVal) void setSystem(Int_t systemVal) void setTag(UInt_t tagVal) void setTheta(Int_t thetaVal) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) Int_t system() UInt_t tag() Int_t theta()

Data Members

private:
UInt_t m_tag Calorimeter tower ID number public:
static const Int_t thetaOn static const Int_t thetaOff static const Int_t phiOn static const Int_t phiOff static const Int_t phiBinWidthOn static const Int_t phiBinWidthOff static const Int_t layerOn static const Int_t layerOff static const Int_t barrelEndcapOn static const Int_t barrelEndcapOff static const Int_t systemOn static const Int_t systemOff static const Int_t northSouthOn static const Int_t northSouthOff

Class Description

 towerID

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


/________________________________________________________________________

towerID()

towerID(UInt_t tag=0) : m_tag(tag)
 Create a towerID object with number tag

UInt_t tag() const
 Returns the tower number

void setTag(UInt_t tagVal)
 Sets the m_tag to tagVal

Int_t theta() const
 theta bin in bits 3-11. Extract those bits, return them shifted down

void setTheta(Int_t tag)
 setTheta sets tag theta bits in appropriate place.

Int_t phi() const
 phi bin in bits 12-20. Extract those bits, shift to "bottom", return

void setPhi(Int_t tag)
 setPhi sets tag phi bits in appropriate place

Int_t phiBinWidth() const
 phi bin width in bits 0-2. phiBinWidth extracts those bits.

void setPhiBinWidth(Int_t tag)
 setPhiBinWidth sets tag phi bin width bits in appropriate place

Int_t layer() const
 layer bin in bits 21-26. Extracts those bits, shift to bottom, return

void setLayer(Int_t tag)
 setLayer sets tag phi bits in appropriate place

Int_t barrelEndcap() const
 barrelEndcap in bit 30. Extract, shift to bottom and return.

void setBarrelEndcap(Int_t tag)
 setBarrelEndcap sets tag barrelEndcap bit in appropriate place

Int_t system() const
 system in bits 28-29. Extract those bits, shift to bottom and return.

void setSystem(Int_t tag)
 setsystem sets tag system bits in appropriate place.

Int_t northSouth() const
 north/south in bit 30. Extract, shift to bottom and return.

void setNorthSouth(Int_t tag)
 setNorthSouth sets N/S bit in appropriate place.



Inline Functions


            ULong_t Hash()
             Bool_t IsEqual(TObject* obj)
            TClass* Class()
            TClass* IsA()
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
            towerID towerID(towerID&)
               void ~towerID()


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.