StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofPidTraits.cxx
1 /***************************************************************************
2  *
3  * $Id: StTofPidTraits.cxx,v 2.3 2004/07/08 16:56:35 ullrich Exp $
4  *
5  * Author: Thomas Ullrich, Dec 2000
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StTofPidTraits.cxx,v $
13  * Revision 2.3 2004/07/08 16:56:35 ullrich
14  * New class member introduced.
15  *
16  * Revision 2.2 2000/12/08 20:21:08 genevb
17  * Changed kTofPatchId -> kTofId
18  *
19  * Revision 2.1 2000/12/08 03:52:42 ullrich
20  * Initial Revision
21  *
22  ***************************************************************************/
23 #include "StTofPidTraits.h"
24 #include "StMessMgr.h"
25 
26 static const char rcsid[] = "$Id: StTofPidTraits.cxx,v 2.3 2004/07/08 16:56:35 ullrich Exp $";
27 
28 ClassImp(StTofPidTraits)
29 
31  : StTrackPidTraits(kTofId), mTray(0), mModule(0), mCell(0), mTof(0.), mPathLength(0.), mBeta(0.) {
32  mSigmaElectron = 999.;
33  mSigmaPion = 999.;
34  mSigmaKaon = 999.;
35  mSigmaProton = 999.;
36 }
37 
38 StTofPidTraits::StTofPidTraits(int itray, int imodule, int icell, float tof, float path, float beta)
39  : StTrackPidTraits(kTofId), mTray(itray), mModule(imodule), mCell(icell),
40  mTof(tof), mPathLength(path), mBeta(beta) {
41  mSigmaElectron = 999.;
42  mSigmaPion = 999.;
43  mSigmaKaon = 999.;
44  mSigmaProton = 999.;
45 }
46 
47 StTofPidTraits::~StTofPidTraits() { /* noop */ }
48 
49 void StTofPidTraits::Print(Option_t *opt) const {
50  gMessMgr->Info() << "StTofPidTraits :: \t tray: " << tray()
51  << "\t module: " << module()
52  << "\t cell: " << cell()
53  << "\t tof: " << tof()
54  << "\t pathLength: " << pathLength()
55  << "\t beta: " << beta() << endm;
56 }
Definition: tof.h:15