ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/NtupleWriter/Objects/PFParticle.h
Revision: 1.1
Committed: Wed Jun 19 13:28:24 2013 UTC (11 years, 10 months ago) by rkogler
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
added substructure information and jet constituents

File Contents

# Content
1 #ifndef PFParticle_H
2 #define PFParticle_H
3
4 #include "Particle.h"
5
6 /**
7 * @short PF candidate class
8 * @author Roman Kogler
9 */
10
11 class PFParticle : public Particle{
12
13 public:
14
15 enum EParticleID {
16 eX=0, // undefined
17 eH, // charged hadron
18 eE, // electron
19 eMu, // muon
20 eGamma, // photon
21 eH0, // neutral hadron
22 eH_HF, // HF tower identified as a hadron
23 eEgamma_HF // HF tower identified as an EM particle
24 };
25
26 PFParticle(){
27 m_particleID=eX;
28 m_track_p=0.;
29 m_ecal_en=0.;
30 m_hcal_en=0.;
31 };
32
33 ~PFParticle(){
34 };
35
36 EParticleID particleID(){return m_particleID;}
37 double track_mom(){return m_track_p;}
38 double ecal_en(){return m_ecal_en;}
39 double hcal_en(){return m_hcal_en;}
40
41 void set_particleID(EParticleID id){m_particleID = id;}
42 void set_track_mom(double p){m_track_p = p;}
43 void set_ecal_en(double e){m_ecal_en = e;}
44 void set_hcal_en(double e){m_hcal_en = e;}
45
46 private:
47
48 EParticleID m_particleID;
49 double m_track_p;
50 double m_ecal_en;
51 double m_hcal_en;
52
53 };
54
55 #endif