ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/kiesel/TreeWriter/TreeObjects.h
Revision: 1.8
Committed: Thu May 2 08:33:04 2013 UTC (12 years ago) by kiesel
Content type: text/plain
Branch: MAIN
Changes since 1.7: +10 -0 lines
Log Message:
added setter and getter functions for gen information

File Contents

# Content
1 #ifndef TreeObjects_h
2 #define TreeObjects_h
3
4 namespace tree {
5 // In this namespace classes for the trees are defined.
6
7 class Particle {
8 public:
9 float pt, eta, phi;
10 };
11
12 class Photon : public Particle {
13 public:
14 bool isGenPhoton() { return genInformationBit == 1; }
15 bool isGenElectron() { return genInformationBit == 2; }
16 bool isGenJet() { return genInformationBit == 3; }
17
18 void matchGenPhoton() { genInformationBit = 1; }
19 void matchGenElectron() { genInformationBit = 2; }
20 void matchGenJet() { genInformationBit = 3; }
21
22 float ptJet;
23 float r9, sigmaIetaIeta, hadTowOverEm;
24 float chargedIso, neutralIso, photonIso;
25 bool conversionSafeVeto;
26 int pixelseed;
27 private:
28 int genInformationBit;
29 };
30
31 class Jet : public Particle{
32 public:
33 float bCSV;
34 float chargedHadronEnergy,neutralHadronEnergy,photonEnergy,electronEnergy,muonEnergy,HFHadronEnergy,HFEMEnergy,chargedEmEnergy,chargedMuEnergy,neutralEmEnergy;
35 };
36
37 bool EtGreater(const tree::Particle, const tree::Particle);
38
39 } // end namespace definition
40
41 #endif
42
43
44