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