Made more robust
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALJet.h
CommitLineData
471f69dc 1#ifndef ALIEMCALJET_H
2#define ALIEMCALJET_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8#include <TObject.h>
9//*-- Author: Andreas Morsch (CERN)
10
11
12class AliEMCALJet : public TObject {
13 public:
14 AliEMCALJet();
15 AliEMCALJet(Float_t energy, Float_t phi, Float_t eta);
16 virtual ~AliEMCALJet();
17 void SetEnergy(Float_t val) {fEnergy = val;}
0e0da6e8 18 void SetEMCALEnergy(Float_t val) {fEMCALEnergy = val;}
f0744cfb 19 void SetEMCALEnergyBGSub(Float_t val){fEMCALEnergyBGSub = val;}
0e0da6e8 20 void SetTrackEnergy(Float_t val) {fTrackEnergy = val;}
f0744cfb 21 void SetTrackEnergyPtCut(Float_t val){fTrackEnergyPtCut = val;}
0e0da6e8 22 void SetHCEnergy(Float_t val) {fHCEnergy = val;}
471f69dc 23 void SetPhi(Float_t val) {fPhi = val;}
24 void SetEta(Float_t val) {fEta = val;}
0e0da6e8 25 void SetIsWeightedEnergy(Bool_t flag) {fIsWeightedEnergy = flag;}
975127ed 26 void SetTrackList(Int_t val, Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg);
e10c4768 27 Float_t Energy() const {return fEnergy;}
28 Float_t EMCALEnergy() const {return fEMCALEnergy;}
29 Float_t EMCALEnergyBGSub() const {return fEMCALEnergyBGSub;}
30 Float_t TrackEnergy() const {return fTrackEnergy;}
31 Float_t TrackEnergyPtCut() const {return fTrackEnergyPtCut;}
32 Float_t HCEnergy() const {return fHCEnergy;}
33 Float_t Phi() const {return fPhi;}
34 Float_t Eta() const {return fEta;}
70efac3e 35 Int_t TrackList(Float_t* pt, Float_t* eta, Float_t* phi, Int_t* pdg)const;
e10c4768 36 Int_t NTracks() const {return fNt;}
a8f2e59f 37
471f69dc 38protected:
0e0da6e8 39 Float_t fEnergy; // Jet Energy
f0744cfb 40 Float_t fEMCALEnergy; // EMCAL component of Energy inside Jet cone before BG subtraction
41 Float_t fEMCALEnergyBGSub; // EMCAL component of Energy inside Jet cone after BG subtraction
42 Float_t fTrackEnergy; // Charge tracks component of Energy inside Jet cone with no pT cut
43 Float_t fTrackEnergyPtCut; // Charge tracks component of Energy inside Jet cone after pT cut
0e0da6e8 44 Float_t fHCEnergy; // HC component of Energy inside Jet cone
45 Bool_t fIsWeightedEnergy; // Store flag regarding energy calculation
18361815 46 Float_t fEta; // Jet Eta
47 Float_t fPhi; // Jet Phi
f5082f45 48 Int_t fNt; // Number of associated tracks
8eba3b34 49 Float_t fPtT [1000]; // Track pt
50 Float_t fEtaT[1000]; // Track eta
51 Float_t fPhiT[1000]; // Track phi
52 Int_t fPdgT[1000]; // Track pdg code
70efac3e 53 ClassDef(AliEMCALJet,8) // Jet for EMCAL
471f69dc 54
55} ;
56
57#endif // ALIEMCALJet_H