StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHltVpdHit.cxx
1 /***************************************************************************
2  *
3  * $Id: StHltVpdHit.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: StHltVpdHit.cxx,v $
13  * Revision 2.1 2011/02/01 19:45:48 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #include "StHltVpdHit.h"
18 #include "StHltTrackNode.h"
19 
20 ClassImp(StHltVpdHit)
21 
23 {
24  mDirection = east;
25  mChannel = 0;
26  mTdc = 0;
27  mTot = 0;
28  mTof = 0;
29  mTriggerTime = 0;
30 }
31 
32 StHltVpdHit::~StHltVpdHit(){/* noop */}
33 
34 void
35 StHltVpdHit::setDirection(StBeamDirection val)
36 {
37  mDirection = val;
38 }
39 
40 void
41 StHltVpdHit::setChannel(short val)
42 {
43  mChannel = val;
44 }
45 
46 void
47 StHltVpdHit::setTdc(float val)
48 {
49  mTdc = val;
50 }
51 
52 void
53 StHltVpdHit::setTot(float val)
54 {
55  mTot = val;
56 }
57 
58 void
59 StHltVpdHit::setTof(float val)
60 {
61  mTof = val;
62 }
63 
64 void
65 StHltVpdHit::setTriggerTime(float val)
66 {
67  mTriggerTime = val;
68 }
69 
70 ostream&
71 operator<<(ostream &os, const StHltVpdHit& hit)
72 {
73  os << " direction "<<hit.direction()<<" channel "<<hit.channel()
74  << " module "<<hit.module()<<" cell "<<hit.cell()<<endl
75  << " tdc "<<hit.tdc()<<" tot "<<hit.tot()<<" tof "<<hit.tof()<<" triggerTime "<<hit.triggerTime()<<endl;
76  return os;
77 }
78 
StBeamDirection direction() const
0 is east and 1 is west
Definition: StHltVpdHit.h:58