StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHltHighPt.cxx
1 /***************************************************************************
2  *
3  * $Id: StHltHighPt.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: StHltHighPt.cxx,v $
13  * Revision 2.1 2011/02/01 19:45:48 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #include "StHltHighPt.h"
18 
19 ClassImp(StHltHighPt)
20 
21 
23 {
24  mGlobalTrackSN = -1;
25  mPrimaryTrackSN = -1;
26  mTofHitSN = -1;
27  mEmcTowerSN = -1;
28 
29  mBEmcMatchPhiDiff = 0.;
30  mBEmcMatchZEdge = 0.;
31  mBTofProjChannel = 0.;
32  mBTofCellLocalY = 0.;
33  mBTofCellLocalZ = 0.;
34  mBTofPathLength = 0.;
35  mBeta = 0.;
36  mTof = 0.;
37 }
38 
39 StHltHighPt::~StHltHighPt() { /* noop */ }
40 
41 StHltTrack& StHltHighPt::globalTrack() { return mGlobalTrack; }
42 const StHltTrack& StHltHighPt::globalTrack() const { return mGlobalTrack; }
43 
44 StHltTrack& StHltHighPt::primaryTrack() { return mPrimaryTrack; }
45 const StHltTrack& StHltHighPt::primaryTrack() const { return mPrimaryTrack; }
46 
47 StHltBTofHit& StHltHighPt::bTofHit() { return mBTofHit; }
48 const StHltBTofHit& StHltHighPt::bTofHit() const { return mBTofHit; }
49 
50 StHltBEmcTowerHit& StHltHighPt::bEmcTowerHit() { return mBEmcTowerHit; }
51 const StHltBEmcTowerHit& StHltHighPt::bEmcTowerHit() const { return mBEmcTowerHit; }
52 
53 int StHltHighPt::globalTrackSN() const { return mGlobalTrackSN; }
54 
55 int StHltHighPt::primaryTrackSN() const { return mPrimaryTrackSN; }
56 
57 int StHltHighPt::tofHitSN() const { return mTofHitSN; }
58 
59 int StHltHighPt::emcTowerSN() const { return mEmcTowerSN; }
60 
61 double StHltHighPt::bEmcMatchPhiDiff() const { return mBEmcMatchPhiDiff; }
62 
63 double StHltHighPt::bEmcMatchZEdge() const { return mBEmcMatchZEdge; }
64 
65 float StHltHighPt::bTofProjChannel() const { return mBTofProjChannel; }
66 
67 float StHltHighPt::bTofCellLocalY() const { return mBTofCellLocalY; }
68 
69 float StHltHighPt::bTofCellLocalZ() const { return mBTofCellLocalZ; }
70 
71 float StHltHighPt::bTofPathLength() const { return mBTofPathLength; }
72 
73 float StHltHighPt::beta() const { return mBeta; }
74 
75 float StHltHighPt::tof() const { return mTof; }
76 
77 void StHltHighPt::setGlobalTrack(const StHltTrack& val) { mGlobalTrack = val; }
78 
79 void StHltHighPt::setPrimaryTrack(const StHltTrack& val) { mPrimaryTrack = val; }
80 
81 void StHltHighPt::setBTofHit(const StHltBTofHit& val) { mBTofHit = val; }
82 
83 void StHltHighPt::setBEmcTowerHit(const StHltBEmcTowerHit& val) { mBEmcTowerHit = val; }
84 
85 void StHltHighPt::setGlobalTrackSN(int val) { mGlobalTrackSN = val; }
86 
87 void StHltHighPt::setPrimaryTrackSN(int val) { mPrimaryTrackSN = val; }
88 
89 void StHltHighPt::setTofHitSN(int val) { mTofHitSN = val; }
90 
91 void StHltHighPt::setEmcTowerSN(int val) { mEmcTowerSN = val; }
92 
93 void StHltHighPt::setBEmcMatchPhiDiff(double val) { mBEmcMatchPhiDiff = val; }
94 
95 void StHltHighPt::setBEmcMatchZEdge(double val) { mBEmcMatchZEdge = val; }
96 
97 void StHltHighPt::setBTofProjChannel(float val) { mBTofProjChannel = val; }
98 
99 void StHltHighPt::setBTofCellLocalY(float val) { mBTofCellLocalY = val; }
100 
101 void StHltHighPt::setBTofCellLocalZ(float val) { mBTofCellLocalZ = val; }
102 
103 void StHltHighPt::setBTofPathLength(float val) { mBTofPathLength = val; }
104 
105 void StHltHighPt::setBeta(float val) { mBeta = val; }
106 
107 void StHltHighPt::setTof(float val) { mTof = val; }
108 
109 
110 ostream&
111 operator<<(ostream &os, const StHltHighPt& trigger)
112 {
113  os << " bemcMatchPhiDiff " << trigger.bEmcMatchPhiDiff()<<" bemcMatchZEdge "<<trigger.bEmcMatchZEdge()<< " bTofProjChannel "<<trigger.bTofProjChannel() << " bTofCellLocalY "<< trigger.bTofCellLocalY() <<" bTofCellLocalZ "<<trigger.bTofCellLocalZ()<< " bTofPathLength "<<trigger.bTofPathLength()<<" beta "<<trigger.beta()<<" tof "<<trigger.tof()<<endl;
114  return os;
115 }
116 
117 
118 
119