ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/CmsHi/JetAnalysis/interface/HiInclusiveJetAnalyzer.h
(Generate patch)

Comparing UserCode/CmsHi/JetAnalysis/interface/HiInclusiveJetAnalyzer.h (file contents):
Revision 1.2 by yilmaz, Tue Sep 20 20:06:06 2011 UTC vs.
Revision 1.14 by yilmaz, Wed May 16 09:08:27 2012 UTC

# Line 10 | Line 10
10   #include "FWCore/Framework/interface/Frameworkfwd.h"
11   #include "FWCore/Framework/interface/EDAnalyzer.h"
12   #include "FWCore/ParameterSet/interface/ParameterSet.h"
13
13   #include "FWCore/Framework/interface/Event.h"
14   #include "FWCore/Framework/interface/MakerMacros.h"
15  
17
18
16   #include "TFile.h"
17   #include "TTree.h"
18   #include "TH1.h"
# Line 24 | Line 21
21  
22   #include "DataFormats/HeavyIonEvent/interface/CentralityProvider.h"
23  
24 + #include "DataFormats/PatCandidates/interface/Jet.h"
25 + #include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
26   //
27  
28   /**\class HiInclusiveJetAnalyzer
# Line 62 | Line 61 | class HiInclusiveJetAnalyzer : public ed
61  
62   private:
63    
64 +  int getPFJetMuon(const pat::Jet& pfJet, const reco::PFCandidateCollection *pfCandidateColl);
65  
66 +  double getPtRel(const reco::PFCandidate lep, const pat::Jet& jet );
67  
68 <  edm::InputTag   jetTag_, vtxTag_, genjetTag_, eventInfoTag_, L1gtReadout_;
68 >  void saveDaughters( const reco::GenParticle & gen);
69 >  void saveDaughters( const reco::Candidate & gen);
70  
71 +  edm::InputTag   jetTag_, vtxTag_, genjetTag_, eventInfoTag_, L1gtReadout_, pfCandidateLabel_, trackTag_, matchTag_;
72 +
73 +  std::vector<float> usedStringPts;
74  
75    /// verbose ?
76    bool   verbose_;
# Line 75 | Line 80 | class HiInclusiveJetAnalyzer : public ed
80    bool useJEC_;
81    bool usePat_;
82    bool isMC_;
83 +  bool fillGenJets_;
84 +  bool doTrigger_;
85 +  bool useQuality_;
86 +  std::string trackQuality_;
87 +
88 +  bool doSubEvent_;
89 +  double genPtMin_;
90 +  bool doLifeTimeTagging_;
91 +  bool doLifeTimeTaggingExtras_;
92 +  bool saveBfragments_;
93  
94 +  double rParam;
95 +  double hardPtMin_;
96  
97    TTree *t;
98    edm::Service<TFileService> fs1;
# Line 95 | Line 112 | class HiInclusiveJetAnalyzer : public ed
112  
113  
114  
115 <  static const int MAXJETS = 50000;
116 <  static const int MAXHLTBITS = 500000;
117 <
115 >  static const int MAXJETS = 500;
116 >  static const int MAXTRACKS = 5000;
117 >  static const int MAXHLTBITS = 5000;
118 >  static const int MAXBFRAG = 500;
119  
120    struct JRA{
121      
# Line 117 | Line 135 | class HiInclusiveJetAnalyzer : public ed
135      float jty[MAXJETS];
136      float jtpu[MAXJETS];
137  
138 +     float trackMax[MAXJETS];
139 +     float trackSum[MAXJETS];
140 +     int trackN[MAXJETS];
141 +
142 +     float chargedMax[MAXJETS];
143 +     float chargedSum[MAXJETS];
144 +     int chargedN[MAXJETS];
145 +
146 +     float photonMax[MAXJETS];
147 +     float photonSum[MAXJETS];
148 +     int photonN[MAXJETS];
149 +
150 +     float trackHardSum[MAXJETS];
151 +     float chargedHardSum[MAXJETS];
152 +     float photonHardSum[MAXJETS];
153 +
154 +     int trackHardN[MAXJETS];
155 +     int chargedHardN[MAXJETS];
156 +     int photonHardN[MAXJETS];
157 +
158 +     float neutralMax[MAXJETS];
159 +     float neutralSum[MAXJETS];
160 +     int neutralN[MAXJETS];
161 +
162 +     float eMax[MAXJETS];
163 +     float eSum[MAXJETS];
164 +     int eN[MAXJETS];
165 +
166 +     float muMax[MAXJETS];
167 +     float muSum[MAXJETS];
168 +     int muN[MAXJETS];
169 +
170 +     float matchedPt[MAXJETS];
171 +     float matchedR[MAXJETS];
172 +
173 +    float discr_csvMva[MAXJETS];
174 +    float discr_csvSimple[MAXJETS];
175 +    float discr_muByIp3[MAXJETS];
176 +    float discr_muByPt[MAXJETS];
177 +    float discr_prob[MAXJETS];
178 +    float discr_probb[MAXJETS];
179 +    float discr_tcHighEff[MAXJETS];    
180 +    float discr_tcHighPur[MAXJETS];
181 +
182 +    int nsvtx[MAXJETS];    
183 +    int svtxntrk[MAXJETS];
184 +    float svtxdl[MAXJETS];  
185 +    float svtxdls[MAXJETS];  
186 +    float svtxm[MAXJETS];    
187 +    float svtxpt[MAXJETS];  
188 +
189 +    int nIPtrk[MAXJETS];
190 +    int nselIPtrk[MAXJETS];
191 +    
192 +    int nIP;
193 +    int ipJetIndex[MAXTRACKS];
194 +    float ipPt[MAXTRACKS];
195 +    float ipProb0[MAXTRACKS];
196 +    float ipProb1[MAXTRACKS];
197 +    float ip2d[MAXTRACKS];
198 +    float ip2dSig[MAXTRACKS];
199 +    float ip3d[MAXTRACKS];
200 +    float ip3dSig[MAXTRACKS];
201 +    float ipDist2Jet[MAXTRACKS];
202 +    float ipDist2JetSig[MAXTRACKS];
203 +    float ipClosest2Jet[MAXTRACKS];
204 +
205 +    float mue[MAXJETS];    
206 +    float mupt[MAXJETS];    
207 +    float mueta[MAXJETS];  
208 +    float muphi[MAXJETS];  
209 +    float mudr[MAXJETS];    
210 +    float muptrel[MAXJETS];
211 +    int muchg[MAXJETS];  
212 +    
213 +    float discr_fr01[MAXJETS];
214 +
215      float refpt[MAXJETS];
216      float refeta[MAXJETS];
217      float refphi[MAXJETS];
# Line 124 | Line 219 | class HiInclusiveJetAnalyzer : public ed
219      float refdphijt[MAXJETS];
220      float refdrjt[MAXJETS];
221      float refparton_pt[MAXJETS];
222 <    float refparton_flavor[MAXJETS];
222 >    int refparton_flavor[MAXJETS];
223 >    int refparton_flavorForB[MAXJETS];
224  
225      float pthat;
226 +    int beamId1, beamId2;
227      int ngen;
228      int genmatchindex[MAXJETS];
229      float genpt[MAXJETS];
# Line 135 | Line 232 | class HiInclusiveJetAnalyzer : public ed
232      float geny[MAXJETS];
233      float gendphijt[MAXJETS];
234      float gendrjt[MAXJETS];
235 +    int gensubid[MAXJETS];
236  
237      // hlt
238      int nHLTBit;
# Line 146 | Line 244 | class HiInclusiveJetAnalyzer : public ed
244      int nL1ABit;
245      bool l1ABit[MAXHLTBITS];
246  
247 +    int bMult;
248 +    int bJetIndex[MAXBFRAG];
249 +    int bStatus[MAXBFRAG];
250 +    int bPdg[MAXBFRAG];
251 +    int bChg[MAXBFRAG];
252 +    float bVx[MAXBFRAG];
253 +    float bVy[MAXBFRAG];
254 +    float bVz[MAXBFRAG];
255 +    float bPt[MAXBFRAG];
256 +    float bEta[MAXBFRAG];
257 +    float bPhi[MAXBFRAG];
258 +
259 +
260    };
261  
262    JRA jets_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines