StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuMtdPidTraits.cxx
1 #include "StMtdPidTraits.h"
2 #include "StMuMtdPidTraits.h"
3 #include "StMuMtdHit.h"
4 
5 static const char rcsid[] = "$Id: StMuMtdPidTraits.cxx,v 1.3 2014/07/22 19:04:00 jdb Exp $";
6 
7 ClassImp(StMuMtdPidTraits)
8 
10 {
11  mMatchFlag = 0;
12  mYLocal = -999.;
13  mZLocal = -999.;
14  mThetaLocal = -999.;
15  mTimeOfFlight = -999.;
16  mPathLength = -999.;
17  mBeta = -999.;
18  mPosition.set(0,0,0);
19 
20  mSigmaMuon = -999.;
21  mProbMuon = -999.;
22  mExpTimeOfFlight = -999.;
23  mDeltaY = -999.;
24  mDeltaZ = -999.;
25 }
26 
27 StMuMtdPidTraits::~StMuMtdPidTraits() { /* noop */ }
28 
29 
31 {
32  mMatchFlag = pid->matchFlag();
33  mYLocal = pid->yLocal();
34  mZLocal = pid->zLocal();
35  mDeltaY = pid->deltaY();
36  mDeltaZ = pid->deltaZ();
37  mThetaLocal = pid->thetaLocal();
38  mTimeOfFlight = pid->timeOfFlight();
39  mExpTimeOfFlight = pid->expTimeOfFlight();
40  mPathLength = pid->pathLength();
41  mBeta = pid->beta();
42  mPosition = pid->position();
43 
44  mSigmaMuon = pid->sigmaMuon();
45  mProbMuon = pid->probMuon();
46 }
47 
48 StMtdPidTraits* StMuMtdPidTraits::createMtdPidTraits() const
49 {
50  StMtdPidTraits* traits = new StMtdPidTraits();
51  traits->setMatchFlag(mMatchFlag);
52  traits->setYLocal(mYLocal);
53  traits->setZLocal(mZLocal);
54  traits->setDeltaY(mDeltaY);
55  traits->setDeltaZ(mDeltaZ);
56  traits->setThetaLocal(mThetaLocal);
57  traits->setTimeOfFlight(mTimeOfFlight);
58  traits->setExpTimeOfFlight(mExpTimeOfFlight);
59  traits->setPathLength(mPathLength);
60  traits->setBeta(mBeta);
61  traits->setPosition(mPosition);
62  traits->setSigmaMuon(mSigmaMuon);
63  traits->setProbMuon(mProbMuon);
64 
65  return traits;
66 }
67 
68 
70 StMuMtdPidTraits::position() { return mPosition; }
71 
72 const StThreeVectorF&
73 StMuMtdPidTraits::position() const { return mPosition; }
74 
75 void
76 StMuMtdPidTraits::setPosition(const StThreeVectorF& pos) { mPosition = pos; }
float sigmaMuon() const
PID functions.
void setMtdPidTraits(const StMtdPidTraits *)
Setters.
float timeOfFlight() const
timing for PID
unsigned char matchFlag() const
Matching information.