StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMtdPidTraits.cxx
1 /***************************************************************************
2  *
3  * $Id: StMtdPidTraits.cxx,v 2.3 2014/07/22 01:45:13 ullrich Exp $
4  *
5  * Author: Frank Geurts (Rice)
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StMtdPidTraits.cxx,v $
13  * Revision 2.3 2014/07/22 01:45:13 ullrich
14  * Added residuals (dz,dy) between matched track-hit pairs nd access functions (Rongrong Ma)
15  *
16  * Revision 2.2 2014/05/29 16:58:05 ullrich
17  * Added new member mExpTimeOfFlight and referring access methods.
18  *
19  * Revision 1.2 2014/05/22 19:04:25 marr
20  * locally backup /star/u/marr/data02/mtd/dev/StRoot/StEvent/StMtdPidTraits.cxx
21  *
22  * Revision 2.1 2013/02/21 00:23:09 ullrich
23  * Initial Revision.
24  *
25  ***************************************************************************/
26 #include "StMtdPidTraits.h"
27 
28 static const char rcsid[] = "$Id: StMtdPidTraits.cxx,v 2.3 2014/07/22 01:45:13 ullrich Exp $";
29 
30 ClassImp(StMtdPidTraits)
31 
33 {
34  mMtdHit = 0;
35 
36  mMatchFlag = 0;
37  mYLocal = -999.;
38  mZLocal = -999.;
39  mThetaLocal = -999.;
40  mTimeOfFlight = -999.;
41  mPathLength = -999.;
42  mBeta = -999.;
43 
44  mSigmaMuon = -999.;
45  mProbMuon = -999.;
46  mExpTimeOfFlight = -999.;
47  mDeltaY = -999.;
48  mDeltaZ = -999.;
49 }
50 
51 StMtdPidTraits::~StMtdPidTraits() { /* noop */ }
52 
53 StMtdHit*
54 StMtdPidTraits::mtdHit() { return mMtdHit; }
55 
56 const StMtdHit*
57 StMtdPidTraits::mtdHit() const { return mMtdHit; }
58 
60 StMtdPidTraits::position() { return mPosition; }
61 
62 const StThreeVectorF&
63 StMtdPidTraits::position() const { return mPosition; }
64 
65 void
66 StMtdPidTraits::setMtdHit(StMtdHit* hit) { mMtdHit = hit; }
67 
68 void
69 StMtdPidTraits::setPosition(const StThreeVectorF& pos) { mPosition = pos; }