StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHltBTofHit.cxx
1 /***************************************************************************
2  *
3  * $Id: StHltBTofHit.cxx,v 2.1 2011/02/01 19:45:48 ullrich Exp $
4  *
5  * Author: Liang Xue, Aihong Tang, Jan 2011
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StHltBTofHit.cxx,v $
13  * Revision 2.1 2011/02/01 19:45:48 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #include "StHltBTofHit.h"
18 #include "StHltTrackNode.h"
19 
20 ClassImp(StHltBTofHit)
21 
23 {
24  mTrayId = 0;
25  mChannel = 0;
26  mTdc = 0;
27  mTot = 0;
28  mTof = 0;
29  mTriggerTime = 0;
30  mTrackNode = 0;
31 }
32 
33 StHltBTofHit::~StHltBTofHit(){/* noop */}
34 
35 void
36 StHltBTofHit::setTrayId(short val)
37 {
38  mTrayId = val;
39 }
40 
41 void
42 StHltBTofHit::setChannel(short val)
43 {
44  mChannel = val;
45 }
46 
47 void
48 StHltBTofHit::setTdc(float val)
49 {
50  mTdc = val;
51 }
52 
53 void
54 StHltBTofHit::setTot(float val)
55 {
56  mTot = val;
57 }
58 
59 void
60 StHltBTofHit::setTof(float val)
61 {
62  mTof = val;
63 }
64 
65 void
66 StHltBTofHit::setTriggerTime(float val)
67 {
68  mTriggerTime = val;
69 }
70 
71 void
72 StHltBTofHit::setTrackNode(StHltTrackNode* val)
73 {
74  mTrackNode = val;
75 }
76 
77 
78 ostream&
79 operator<<(ostream &os, const StHltBTofHit& hit)
80 {
81  os << " trayId "<<hit.trayId()<<" channel "<<hit.channel()
82  << " module "<<hit.module()<<" cell "<<hit.cell()<<endl
83  << " tdc "<<hit.tdc()<<" tot "<<hit.tot()<<" tof "<<hit.tof()<<" triggerTime "<<hit.triggerTime()<<endl;
84  return os;
85 }
86 
short channel() const
module*6+cell
Definition: StHltBTofHit.h:70