LegsHit
class description - source file - inheritance tree (.pdf)
public:
LegsHit(UShort_t ntpIndex = kDefaultUShortValue)
LegsHit(const LegsHit& hit)
virtual ~LegsHit()
void CalibrateEgyLgt()
static TClass* Class()
void Clear()
TVector3 Get3Vec()
UShort_t GetAdc1() const
UShort_t GetAdc2() const
Double_t GetBeta()
UShort_t GetClump() const
UChar_t GetCol() const
UChar_t GetDet() const
UShort_t GetDetIndex() const
static UShort_t GetDetIndex(UChar_t det, UChar_t face, UChar_t col, UChar_t row)
Double_t GetEgy(const Double_t& z, const Double_t& psi) const
Double_t GetEgy() const
UChar_t GetFace() const
Double_t GetInvBeta(UShort_t tagcount = 1000)
Double_t GetLgt() const
UShort_t GetPartName() const
Double_t GetPhi()
Double_t GetR()
Double_t GetRawTof() const
UChar_t GetRow() const
UShort_t GetTdc1() const
UShort_t GetTdc2() const
Double_t GetTheta()
Double_t GetTof(UShort_t tagcount = 1000) const
bool GetUseAngle() const
Double_t GetX() const
Double_t GetY() const
Double_t GetZ() const
static void InitStatic()
static void InitStaticDetIndex()
virtual TClass* IsA() const
bool IsPrimary() const
Double_t OpeningAngle(LegsHit& h2)
LegsHit& operator=(const LegsHit& hit)
void Print()
void SetClump(UShort_t data)
void SetGeantPosition()
void SetI(UShort_t ntpIndex)
void SetLgt(const Float_t& data)
void SetPartName(UShort_t data)
void SetPosition(Float_t position)
void SetPrimary(bool data)
void SetTof(const Float_t& data)
void SetUseAngle(bool data)
void SetXYZ()
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
static LegsDB* fDB calibration files handling
static LegsGeo* fGeo geometry
UShort_t fI
Float_t fPosition
UShort_t fClump clump it belongs to
Double_t fLgt
Double_t fEgy
Double_t fTof
bool fUseAngle flag for marking whether to use this hit for angle reconstruction
UShort_t fPartName
TVector3 f3Vec
bool fChange
static UShort_t fDetIndex[12][5][33][16] limitation
Class LegsHit data members contains a hit into a detector of SASY.
Member functions allow user to access all possible info about a hit.
All hits of an event are organized into vectors automatically and user may access them:
calorimeter hits ( XT, XC, PB, PN) go into it->fHitVec
veto hits ( XV, PV) go into it->fVetoVec
some other detectors ( PF) go into it->fOtherVec
LegsHit(UShort_t ntpIndex) : fPosition(kDefaultValue),fClump(kDefaultValue),fLgt(kDefaultValue),fEgy(kDefaultValue),fTof(kDefaultValue),fUseAngle(true),fPartName(it->GetDefaultPart()),fChange(true)
constructor of the class.
LegsHit(const LegsHit& hit) : fI(hit.fI),fPosition(hit.fPosition),fClump(hit.fClump),fLgt(hit.fLgt),fEgy(hit.fEgy),fTof(hit.fTof),fUseAngle(hit.fUseAngle),fPartName(hit.fPartName),fChange(true)
copy constructor
void Print()
void InitStatic()
void InitStaticDetIndex()
void SetLgt(const Float_t& data)
void SetTof(const Float_t& data)
Double_t GetEgy(const Double_t& z, const Double_t& psi) const
void CalibrateEgyLgt()
calculates light using LegsDB if not simulation and puts it into fLgt
for PV detector MUST be called after SetPosition(Float position)
to properly separate half vetos that are optically isolated
Double_t GetRawTof() const
calculates (TOF+TAGTOF) using LegsDB
to get REAL tof of the particle one needs to subtract tagTof, given by LegsDB::GetTagTof(...)
Double_t GetTof(UShort_t tagcount) const
calculates real TOF of the hit
Double_t GetInvBeta(UShort_t tagcount)
calculates inverse beta from the real TOF of the hit
void SetGeantPosition()
Double_t GetX() const
looks up x in TGeometry or calculates it using LegsDB (XC,PV,PN) and returns it
Double_t GetY() const
looks up y in TGeometry and returns it
Double_t GetZ() const
looks up z in TGeometry or calculates it using LegsDB (XC) and returns it
Double_t OpeningAngle(LegsHit& h2)
calculate opening angle between this hit and LegsHit h2
void Clear()
reinitializes all data members of the class.
void SetXYZ()
vector is set relative to target center
Double_t GetBeta()
calculates inverse beta from the real TOF of the clump
Inline Functions
void ~LegsHit()
LegsHit& operator=(const LegsHit& hit)
UChar_t GetDet() const
UChar_t GetFace() const
UChar_t GetRow() const
UChar_t GetCol() const
UShort_t GetAdc1() const
UShort_t GetAdc2() const
UShort_t GetTdc1() const
UShort_t GetTdc2() const
UShort_t GetClump() const
UShort_t GetDetIndex() const
UShort_t GetDetIndex(UChar_t det, UChar_t face, UChar_t col, UChar_t row)
Double_t GetEgy() const
Double_t GetLgt() const
bool GetUseAngle() const
bool IsPrimary() const
UShort_t GetPartName() const
Double_t GetTheta()
Double_t GetPhi()
Double_t GetR()
TVector3 Get3Vec()
void SetClump(UShort_t data)
void SetPrimary(bool data)
void SetUseAngle(bool data)
void SetPartName(UShort_t data)
void SetPosition(Float_t position)
void SetI(UShort_t ntpIndex)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Last update: Wed May 18 13:32:18 2005
ROOT page - Home 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.