ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbbAnalysis/HbbAnalyzer/interface/VHbbEvent.h
(Generate patch)

Comparing UserCode/VHbbAnalysis/HbbAnalyzer/interface/VHbbEvent.h (file contents):
Revision 1.1 by tboccali, Wed Jun 8 17:25:32 2011 UTC vs.
Revision 1.5 by tboccali, Tue Jun 21 15:49:01 2011 UTC

# Line 2 | Line 2
2   #define VHbbEvent__H
3  
4   #include <TLorentzVector.h>
5 < #include <TMatrix.h>
5 > #include <TVector2.h>
6   #include <vector>
7  
8   class VHbbEvent{
# Line 10 | Line 10 | class VHbbEvent{
10  
11    class ParticleMCInfo {
12    public:
13 +    ParticleMCInfo(): status(-99), momid(-99), gmomid(-99), charge(-1){}
14 +  public:
15      int status;
16      int momid;
17      int gmomid;
# Line 21 | Line 23 | class VHbbEvent{
23    };
24  
25    class SimpleJet {
26 +    public:
27 +    SimpleJet(): flavour(-99), tche(-99), tchp(-99), jpb(-99), jp(-99),
28 +      ssvhe(-99), csv(-99), csvmva(-99), ntracks(-99), charge(-99),
29 +      bestMCid(-99), bestMCmomid(-99){}
30    public:
31      int flavour;
32      float tche,tchp, jpb,jp , ssvhe, csv, csvmva;
33      int ntracks;
34      float charge;
35      TLorentzVector fourMomentum;
36 <    int b1BestMCid, b1BestMCmomid;
36 >    TLorentzVector chargedTracksFourMomentum;
37 >
38 >    int bestMCid, bestMCmomid;
39 >    // new
40 >    TVector2 tVector;
41    };
42  
43  
44 <  class HardJet{
44 >  class HardJet {
45 >  public:
46 >    HardJet(): constituents(-99){}
47    public:
48      int constituents;
49      TLorentzVector fourMomentum;
# Line 40 | Line 52 | class VHbbEvent{
52    };
53  
54  
55 <  class METInfo{
55 >  class METInfo {
56 >  public:
57 >    METInfo(): sumEt(-99), metSig(-99), eLong(-99){}
58    public:
59      float sumEt, metSig, eLong;
60      TLorentzVector fourMomentum;
# Line 48 | Line 62 | class VHbbEvent{
62  
63    class MuonInfo {
64    public:
65 +    MuonInfo(): charge(-99),tIso(-99), eIso(-99), hIso(-99),
66 +      acop(-99), ipDb(-99), ipErrDb(-99), zPVPt(-99),zPVProb(-99), chi2(-99), globChi2(-99),
67 +      cat(-99), nHits(-99), nPixelHits(-99), globNHits(-99),validMuStations(-99),
68 +      mcId(-99), mcMomId(-99), mcgMomId(-99){}
69 +  public:
70      TLorentzVector fourMomentum;
71      int charge;
72      float tIso, eIso, hIso, acop, ipDb, ipErrDb, zPVPt,zPVProb, chi2, globChi2;
73 <    int cat, nHits, nPixelHits, globNHits;
73 >    int cat, nHits, nPixelHits, globNHits, validMuStations;
74      TLorentzVector mcFourMomentum;
75      int mcId, mcMomId, mcgMomId;
76    };
77  
59
78    class ElectronInfo {
79    public:
80 +    ElectronInfo() : scEta(-99), scPhi(-99), charge(-99),
81 +    tIso(-99), eIso(-99), hIso(-99),
82 +      acop(-99), id95(-99),id85(-99),id70(-99),id95r(-99),
83 +      id70r(-99), id85r(-99),mcId(-99), mcMomId(-99), mcgMomId (-99){}
84 +  public:
85      TLorentzVector fourMomentum;
86      float scEta, scPhi;
87      int charge;
88      float tIso, eIso, hIso, acop;
89 <    float  id95,id85,id70,id95r, id70r;
89 >    float  id95,id85,id70,id95r, id70r, id85r;
90      TLorentzVector mcFourMomentum;
91      int mcId, mcMomId, mcgMomId;
92    };
93  
94 <  class TauInfo {
94 >  class TauInfo{
95 >  public:
96 >    TauInfo()  : charge(-99), tIso(-99), eIso(-99), hIso(-99), acop(-99),
97 >    idbyIso(-99),idbyTrackIso(-99),idbyTaNCfrOnePercent(-99),
98 >    idbyTaNCfrHalfPercent(-99), idbyTaNCfrQuarterPercent(-99),
99 >      idbyTaNCfrTenthPercent(-99), idbyTaNC(-99), mcId(-99), mcMomId(-99), mcgMomId(-99) {}
100    public:
101      TLorentzVector fourMomentum;
102      int charge;
# Line 79 | Line 107 | class VHbbEvent{
107    };
108  
109  
110 <  class DiMuonInfo {
110 >  class DiMuonInfo  {
111    public:
112      TLorentzVector fourMomentum;
113      MuonInfo daughter1, daughter2;
# Line 95 | Line 123 | class VHbbEvent{
123  
124    class TriggerInfo {
125    public:
126 +    TriggerInfo() :  triggerMu9(-99),
127 +      triggerIsoMu9(-99),
128 +      triggerIsoMu13_3(-99),
129 +      triggerMu11(-99),
130 +      triggerDoubleMu3(-99),
131 +      triggerDoubleMu3_2(-99),
132 +      triggerMu15(-99),
133 +      triggerMu15_1(-99),
134 +      triggerDoubleElec10(-99),
135 +      triggerDoubleElec15_1(-99),
136 +      triggerDoubleElec17_1(-99),
137 +      triggerMet100_1(-99),
138 +      triggerSingleEle1(-99),
139 +      triggerSingleEle2(-99),
140 +      triggerSingleEle3(-99),
141 +      triggerSingleEle4(-99),
142 +      triggerBtagMu1(-99),
143 +      triggerBtagMu2(-99),
144 +      triggerBtagMu0(-99),
145 +      triggerBtagMu11(-99),
146 +      triggerBtagMuJet1(-99),
147 +      triggerBtagMuJet2(-99),
148 +      triggerBtagMuJet3(-99),
149 +      triggerBtagMuJet4(-99),
150 +      triggerIsoMu15(-99),
151 +      triggerIsoMu17v5(-99),
152 +      triggerIsoMu17v6(-99) {
153 +      for (unsigned int i=0; i< 500; ++i){
154 +        flag[i]= -99;
155 +      }
156 +    }
157 +  public:
158      int flag[500];
159      int triggerMu9,
160        triggerIsoMu9,
# Line 130 | Line 190 | class VHbbEvent{
190      TVector3 firstPVInPT2,firstPVInProb;
191    };
192  
193 <  class PUInfo {
193 >  class PUInfo{
194 >  public:
195 >    PUInfo(): rho(-99) {}
196    public:
197      float rho;
198    };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines