74 unsigned int sector()
const;
78 unsigned int zPlane()
const;
117 int index2Primary()
const;
118 int index2Global()
const;
138 int compare(
const TObject* obj )
const;
143 void setHwAddress(
const unsigned int iSector,
const unsigned int iZPlane,
const unsigned int iCounter );
145 void setSector(
const unsigned int sector );
146 void setZPlane(
const unsigned int zPlane );
147 void setCounter(
const unsigned int counter );
149 void setTotalTot (
const double& tot );
150 void setTime (
const double& time );
152 void setClusterSize(
const unsigned int clustSize );
154 void setLocalX (
const double& X );
155 void setLocalY (
const double& Y );
157 void setAssociatedTrackId(
const int&
id );
158 void setIndex2Primary(
const int&
id );
159 void setIndex2Global(
const int&
id );
161 void setIdTruth(
unsigned short idtruth,
unsigned short qatruth=0 );
177 Int_t mAssociatedTrackId;
178 Int_t mIndex2Primary;
206 inline int StMuETofHit::index2Primary()
const {
return mIndex2Primary; }
207 inline int StMuETofHit::index2Global()
const {
return mIndex2Global; }
209 inline StMuTrack* StMuETofHit::primaryTrack()
const {
return ( mIndex2Primary>=0 ) ? (
StMuTrack* )
StMuDst::array( muPrimary )->UncheckedAt( mIndex2Primary ) : 0; }
210 inline StMuTrack* StMuETofHit::globalTrack()
const {
return ( mIndex2Global >=0 ) ? (
StMuTrack* )
StMuDst::array( muGlobal )->UncheckedAt( mIndex2Global ) : 0; }
216 inline void StMuETofHit::setSector(
const unsigned int sector ) { mSector =
sector; }
217 inline void StMuETofHit::setZPlane(
const unsigned int zPlane ) { mZPlane =
zPlane; }
218 inline void StMuETofHit::setCounter(
const unsigned int counter ) { mCounter =
counter; }
220 inline void StMuETofHit::setTotalTot (
const double& tot ) { mTotalTot = tot; }
221 inline void StMuETofHit::setTime (
const double& time ) { mTime =
time; }
223 inline void StMuETofHit::setClusterSize(
const unsigned int clustSize ) { mClusterSize = clustSize; }
225 inline void StMuETofHit::setLocalX (
const double& X ) { mLocalX = X; }
226 inline void StMuETofHit::setLocalY (
const double& Y ) { mLocalY = Y; }
228 inline void StMuETofHit::setAssociatedTrackId(
const int&
id ) { mAssociatedTrackId = id; }
229 inline void StMuETofHit::setIndex2Primary(
const int&
id ) { mIndex2Primary = id; }
230 inline void StMuETofHit::setIndex2Global(
const int&
id ) { mIndex2Global = id; }
233 #endif // STMUETOFHIT_H
unsigned int qaTruth() const
quality of this information (percentage of charge produced by mIdTruth)
double localY() const
Y-position.
unsigned int zPlane() const
ZPlane.
unsigned int idTruth() const
mc-true associated track id in simulation
unsigned int clusterSize() const
Cluster size.
double time() const
Time.
unsigned int counter() const
Counter.
unsigned int sector() const
Sector.
void setHwAddress(const unsigned int iSector, const unsigned int iZPlane, const unsigned int iCounter)
~StMuETofHit()
Destructor.
StMuETofHit()
Default constructor.
int associatedTrackId() const
id to the track which has been matched to this hit
double localX() const
X-position.
double totalTot() const
Total Tot.
bool operator<(const StMuETofHit &rhs) const
Sorting using the time, assumes Digis are in same reference frame (e.g. same epoch).
static TClonesArray * array(int type)
returns pointer to the n-th TClonesArray