StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuBTofPidTraits.cxx
1 /***************************************************************************
2  *
3  * $Id: StMuBTofPidTraits.cxx,v 1.2 2009/12/08 23:24:46 fine Exp $
4  *
5  * Author: Xin Dong, Nov 2008
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StMuBTofPidTraits.cxx,v $
13  * Revision 1.2 2009/12/08 23:24:46 fine
14  * Fix issue #1748 http://www.star.bnl.gov/rt2/Ticket/Display.html?id=1748
15  *
16  * Revision 1.1 2009/02/20 17:05:59 tone421
17  * *** empty log message ***
18  *
19  *
20  ***************************************************************************/
21 #include "StBTofPidTraits.h"
22 #include "StMuBTofPidTraits.h"
23 
24 static const char rcsid[] = "$Id: StMuBTofPidTraits.cxx,v 1.2 2009/12/08 23:24:46 fine Exp $";
25 
26 ClassImp(StMuBTofPidTraits)
27 
29 {
30  mMatchFlag = 0;
31  mYLocal = -999.;
32  mZLocal = -999.;
33  mThetaLocal = -999.;
34  mTimeOfFlight = -999.;
35  mPathLength = -999.;
36  mBeta = -999.;
37 
38  mSigmaElectron = -999.;
39  mSigmaPion = -999.;
40  mSigmaKaon = -999.;
41  mSigmaProton = -999.;
42  mProbElectron = -999.;
43  mProbPion = -999.;
44  mProbKaon = -999.;
45  mProbProton = -999.;
46 }
47 
48 StMuBTofPidTraits::~StMuBTofPidTraits() { /* noop */ }
49 
50 void StMuBTofPidTraits::setBTofPidTraits(const StBTofPidTraits* pid)
51 {
52  mMatchFlag = pid->matchFlag();
53  mYLocal = pid->yLocal();
54  mZLocal = pid->zLocal();
55  mThetaLocal = pid->thetaLocal();
56  mTimeOfFlight = pid->timeOfFlight();
57  mPathLength = pid->pathLength();
58  mBeta = pid->beta();
59 
60  mPosition = pid->position();
61 
62  mSigmaElectron = pid->sigmaElectron();
63  mSigmaPion = pid->sigmaPion();
64  mSigmaKaon = pid->sigmaKaon();
65  mSigmaProton = pid->sigmaProton();
66  mProbElectron = pid->probElectron();
67  mProbPion = pid->probPion();
68  mProbKaon = pid->probKaon();
69  mProbProton = pid->probProton();
70 }
71 
72 StBTofPidTraits* StMuBTofPidTraits::createBTofPidTraits() const
73 {
74  StBTofPidTraits* traits = new StBTofPidTraits();
75  traits->setMatchFlag(mMatchFlag);
76  traits->setYLocal(mYLocal);
77  traits->setZLocal(mZLocal);
78  traits->setThetaLocal(mThetaLocal);
79  traits->setTimeOfFlight(mTimeOfFlight);
80  traits->setPathLength(mPathLength);
81  traits->setBeta(mBeta);
82  traits->setPosition(mPosition);
83 
84  traits->setSigmaElectron(mSigmaElectron);
85  traits->setSigmaPion(mSigmaPion);
86  traits->setSigmaKaon(mSigmaKaon);
87  traits->setSigmaProton(mSigmaProton);
88  traits->setProbElectron(mProbElectron);
89  traits->setProbPion(mProbPion);
90  traits->setProbKaon(mProbKaon);
91  traits->setProbProton(mProbProton);
92 
93  return traits;
94 }
95 
97 StMuBTofPidTraits::position() { return mPosition; }
98 
99 const StThreeVectorF&
100 StMuBTofPidTraits::position() const { return mPosition; }
101 
102 void
103 StMuBTofPidTraits::setPosition(const StThreeVectorF& pos) { mPosition = pos; }
float sigmaElectron() const
PID functions.
unsigned char matchFlag() const
Matching information.