81 #include "TLorentzVector.h"
82 #include "TRefArray.h"
91 class StJet :
public TLorentzVector {
95 StJet(
double lE,
double lpx,
double lpy,
double lpz, Int_t size,
int c);
136 Float_t et()
const {
return E()*sqrt(1.0-tanh(Eta())*tanh(Eta()));}
137 Float_t ez()
const {
return E()*fabs(tanh(Eta()));}
140 float chargedFraction()
const {
return 1-neutralFraction(); }
141 float rt()
const {
return neutralFraction(); }
145 Float_t detEta(
float vz,
float radius = 231.72)
const;
146 Float_t detEta()
const;
149 void addGeomTrigger(
int trigId);
150 bool geomTrigger(
int trigId)
const;
151 std::vector<int>& geomTriggers() {
return mGeomTriggers; }
154 double deltaPhi(
const StJet* jet)
const {
return Vect().DeltaPhi(jet->Vect()); }
155 double deltaR(
const StJet* jet)
const {
return Vect().DeltaR(jet->Vect()); }
158 static bool getJetPatchEtaPhi(
int id,
float& eta,
float& phi);
159 static bool getJetPatchId(
float eta,
float phi,
int&
id);
162 int numberOfTracks()
const {
return mTracks.GetEntriesFast(); }
163 int numberOfTowers()
const {
return mTowers.GetEntriesFast(); }
168 TRefArray& tracks() {
return mTracks; }
169 TRefArray& towers() {
return mTowers; }
172 void addTower(
const TowerToJetIndex* tower) { mTowers.Add((TObject*)tower); }
175 std::vector<int> mGeomTriggers;
float jetEt
Et (stored for convenience when drawing TTree)
int nTracks
The number of tracks in this jet.
Int_t nCell
The number of 4-vectors contributing to this jet.
float jetPt
Pt (stored for convenience when drawing TTree)
float zVertex
position of vertex used to reconstruct jet
int nBtowers
The number of Barrel towers in this jet.
float jetEta
Eta (stored for convenience when drawing TTree)
float etowEtSum
The summed Et from Endcap towers.
float jetPhi
Phi (stored for convenience when drawing TTree)
int nEtowers
The number of Endcap towers in this jet.
float tpcEtSum
The summed Et from tracks.
float btowEtSum
The summed Et from Barrel towers.
int charge
The summed coulomb charge of the tracks in this jet.