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.3 by tboccali, Thu Jun 9 16:51:52 2011 UTC

# Line 2 | Line 2
2   #define VHbbEvent__H
3  
4   #include <TLorentzVector.h>
5 + #include <TVector2.h>
6   #include <TMatrix.h>
7   #include <vector>
8  
# Line 10 | Line 11 | class VHbbEvent{
11  
12    class ParticleMCInfo {
13    public:
14 +    ParticleMCInfo(): status(-99), momid(-99), gmomid(-99), charge(-1){}
15 +  public:
16      int status;
17      int momid;
18      int gmomid;
# Line 21 | Line 24 | class VHbbEvent{
24    };
25  
26    class SimpleJet {
27 +    public:
28 +    SimpleJet(): flavour(-99), tche(-99), tchp(-99), jpb(-99), jp(-99),
29 +      ssvhe(-99), csv(-99), csvmva(-99), ntracks(-99), charge(-99),
30 +      bestMCid(-99), bestMCmomid(-99){}
31    public:
32      int flavour;
33      float tche,tchp, jpb,jp , ssvhe, csv, csvmva;
34      int ntracks;
35      float charge;
36      TLorentzVector fourMomentum;
37 <    int b1BestMCid, b1BestMCmomid;
37 >    int bestMCid, bestMCmomid;
38 >    // new
39 >    TVector2 tVector;
40    };
41  
42  
43 <  class HardJet{
43 >  class HardJet {
44 >  public:
45 >    HardJet(): constituents(-99){}
46    public:
47      int constituents;
48      TLorentzVector fourMomentum;
# Line 40 | Line 51 | class VHbbEvent{
51    };
52  
53  
54 <  class METInfo{
54 >  class METInfo {
55 >  public:
56 >    METInfo(): sumEt(-99), metSig(-99), eLong(-99){}
57    public:
58      float sumEt, metSig, eLong;
59      TLorentzVector fourMomentum;
# Line 48 | Line 61 | class VHbbEvent{
61  
62    class MuonInfo {
63    public:
64 +    MuonInfo(): charge(-99),tIso(-99), eIso(-99), hIso(-99),
65 +      acop(-99), ipDb(-99), ipErrDb(-99), zPVPt(-99),zPVProb(-99), chi2(-99), globChi2(-99),
66 +      cat(-99), nHits(-99), nPixelHits(-99), globNHits(-99),
67 +      mcId(-99), mcMomId(-99), mcgMomId(-99){}
68 +  public:
69      TLorentzVector fourMomentum;
70      int charge;
71      float tIso, eIso, hIso, acop, ipDb, ipErrDb, zPVPt,zPVProb, chi2, globChi2;
# Line 59 | Line 77 | class VHbbEvent{
77  
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), mcId(-99), mcMomId(-99), mcgMomId (-99){}
84 +  public:
85      TLorentzVector fourMomentum;
86      float scEta, scPhi;
87      int charge;
# Line 68 | Line 91 | class VHbbEvent{
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