44 |
|
#include "RecoEgamma/EgammaTools/interface/ConversionTools.h" |
45 |
|
#include "DataFormats/Luminosity/interface/LumiSummary.h" |
46 |
|
|
47 |
< |
#include "UHHAnalysis/NtupleWriter/interface/Objects.h" |
47 |
> |
#include "EGamma/EGammaAnalysisTools/interface/ElectronEffectiveArea.h" |
48 |
> |
|
49 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/Particle.h" |
50 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/PFParticle.h" |
51 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/Jet.h" |
52 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/Electron.h" |
53 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/Muon.h" |
54 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/Tau.h" |
55 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/Photon.h" |
56 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/MET.h" |
57 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/PrimaryVertex.h" |
58 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/TopJet.h" |
59 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/GenTopJet.h" |
60 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/GenInfo.h" |
61 |
> |
#include "UHHAnalysis/NtupleWriter/Objects/GenParticle.h" |
62 |
|
|
63 |
|
// |
64 |
|
// class declaration |
76 |
|
|
77 |
|
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions); |
78 |
|
|
65 |
– |
|
79 |
|
private: |
80 |
|
virtual void beginJob() ; |
81 |
|
virtual void analyze(const edm::Event&, const edm::EventSetup&); |
85 |
|
virtual void endRun(edm::Run const&, edm::EventSetup const&); |
86 |
|
virtual void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&); |
87 |
|
virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&); |
88 |
+ |
void StoreJetConstituents(pat::Jet* pat_jet, Jet* topjet); |
89 |
|
|
90 |
|
// ----------member data --------------------------- |
91 |
|
TFile *outfile; |
96 |
|
bool doMuons; |
97 |
|
bool doTaus; |
98 |
|
bool doJets; |
99 |
+ |
bool doGenJets; |
100 |
|
bool doTopJets; |
101 |
+ |
bool doTopJetsConstituents; |
102 |
|
bool doGenTopJets; |
103 |
|
bool doMET; |
104 |
|
bool doPhotons; |
107 |
|
bool doLumiInfo; |
108 |
|
bool doPV; |
109 |
|
bool doTrigger; |
110 |
+ |
bool doTagInfos; |
111 |
|
|
112 |
|
int run; |
113 |
|
int luminosityBlock; |
114 |
|
int event; |
115 |
|
bool isRealData; |
116 |
< |
bool HBHENoiseFilterResult; |
116 |
> |
//bool HBHENoiseFilterResult; |
117 |
> |
float rho; |
118 |
|
|
119 |
|
float intgDelLumi; |
120 |
|
float intgRecLumi; |
121 |
|
float totalDelLumi; |
122 |
|
float totalRecLumi; |
123 |
|
|
124 |
+ |
edm::InputTag rho_source; |
125 |
+ |
|
126 |
|
std::vector<std::string> electron_sources; |
127 |
|
std::vector<Electron> eles[Nmax]; |
128 |
|
|
139 |
|
double jet_ptmin; |
140 |
|
double jet_etamax; |
141 |
|
|
142 |
+ |
std::vector<std::string> genjet_sources; |
143 |
+ |
std::vector<Particle> genjets[Nmax]; |
144 |
+ |
double genjet_ptmin; |
145 |
+ |
double genjet_etamax; |
146 |
+ |
|
147 |
|
std::vector<std::string> topjet_sources; |
148 |
|
std::vector<TopJet> topjets[Nmax]; |
149 |
|
double topjet_ptmin; |
150 |
|
double topjet_etamax; |
151 |
|
|
152 |
+ |
std::vector<std::string> topjet_constituents_sources; |
153 |
+ |
std::vector<PFParticle> pfparticles; // only one collection allowed! |
154 |
+ |
|
155 |
|
std::vector<std::string> gentopjet_sources; |
156 |
< |
std::vector<TopJet> gentopjets[Nmax]; |
156 |
> |
std::vector<GenTopJet> gentopjets[Nmax]; |
157 |
|
double gentopjet_ptmin; |
158 |
|
double gentopjet_etamax; |
159 |
|
|
170 |
|
float beamspot_y0; |
171 |
|
float beamspot_z0; |
172 |
|
|
173 |
+ |
edm::InputTag genparticle_source; |
174 |
|
GenInfo genInfo; |
175 |
|
std::vector<GenParticle> genps; |
176 |
< |
|
176 |
> |
edm::InputTag SVComputer_; |
177 |
|
std::vector<std::string> trigger_prefixes; |
178 |
|
//std::map<std::string, bool> triggerResults; |
179 |
|
std::vector<std::string> triggerNames; |
180 |
|
std::vector<bool> triggerResults; |
181 |
< |
/* std::vector<int> L1_prescale; */ |
182 |
< |
/* std::vector<int> HLT_prescale; */ |
181 |
> |
//std::vector<int> L1_prescale; |
182 |
> |
//std::vector<int> HLT_prescale; |
183 |
|
|
184 |
< |
HLTConfigProvider hlt_cfg; |
184 |
> |
//HLTConfigProvider hlt_cfg; |
185 |
|
bool newrun; |
186 |
|
bool previouslumiblockwasfilled; |
187 |
|
|
188 |
< |
JetCorrectionUncertainty *jecUnc; |
188 |
> |
std::vector<const reco::PFCandidate*> m_stored_pfs; |
189 |
|
}; |
190 |
|
|
191 |
|
|