1 #ifndef ST_CHARGED_PION_JET_HH
2 #define ST_CHARGED_PION_JET_HH
9 #include "TLorentzVector.h"
10 #include "TClonesArray.h"
12 #include "StChargedPionJetParticle.h"
20 void Clear(Option_t* =
"");
23 unsigned int nTpcTracks()
const;
24 unsigned int nBarrelTowers()
const;
25 unsigned int nEndcapTowers()
const;
27 double tpcEtSum()
const;
28 double barrelEtSum()
const;
29 double endcapEtSum()
const;
31 double vertexZ()
const;
33 float detectorEta()
const;
34 float detectorEta(
float vz,
float r=231.72)
const;
36 bool isTrigger(
unsigned int trigId)
const;
38 vector<StChargedPionJetParticle>& particles();
39 const vector<StChargedPionJetParticle>& particles()
const;
44 void setNTpcTracks(
unsigned short);
45 void setNBarrelTowers(
unsigned short);
46 void setNEndcapTowers(
unsigned short);
47 void setTpcEtSum(
float);
48 void setBarrelEtSum(
float);
49 void setEndcapEtSum(
float);
50 void setVertexZ(
float);
51 void addTrigger(
unsigned int trigId);
71 vector<StChargedPionJetParticle> mParticles;
76 inline int StChargedPionJet::charge()
const {
return mCharge; }
77 inline unsigned int StChargedPionJet::nTpcTracks()
const {
return mTpcCount; }
78 inline unsigned int StChargedPionJet::nBarrelTowers()
const {
return mBtowCount; }
79 inline unsigned int StChargedPionJet::nEndcapTowers()
const {
return mEtowCount; }
80 inline double StChargedPionJet::tpcEtSum()
const {
return mTpcEtSum; }
81 inline double StChargedPionJet::barrelEtSum()
const {
return mBtowEtSum; }
82 inline double StChargedPionJet::endcapEtSum()
const {
return mEtowEtSum; }
83 inline double StChargedPionJet::vertexZ()
const {
return mVertexZ; }
84 inline vector<StChargedPionJetParticle>& StChargedPionJet::particles() {
return mParticles; }
85 inline const vector<StChargedPionJetParticle>& StChargedPionJet::particles()
const {
return mParticles; }
87 inline void StChargedPionJet::setCharge(
char a) { mCharge = a; }
88 inline void StChargedPionJet::setNTpcTracks(
unsigned short a) { mTpcCount = a; }
89 inline void StChargedPionJet::setNBarrelTowers(
unsigned short a) { mBtowCount = a; }
90 inline void StChargedPionJet::setNEndcapTowers(
unsigned short a) { mEtowCount = a; }
91 inline void StChargedPionJet::setTpcEtSum(
float a) { mTpcEtSum = a; }
92 inline void StChargedPionJet::setBarrelEtSum(
float a) { mBtowEtSum = a; }
93 inline void StChargedPionJet::setEndcapEtSum(
float a) { mEtowEtSum = a; }
94 inline void StChargedPionJet::setVertexZ(
float a) { mVertexZ = a; }