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&); |
84 |
|
virtual void beginRun(edm::Run const&, edm::EventSetup const&); |
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&); |
87 |
> |
//virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&); |
88 |
> |
|
89 |
> |
/// fills constituents of the pat_jet into the Ntuple and stores a reference to those in the provided topjet |
90 |
> |
void StoreJetConstituents(const pat::Jet & pat_jet, Jet & topjet); |
91 |
> |
|
92 |
> |
/// fill PF candidates from pf_cands to "pfparticles" collection in a cone of radius R0 around inpart (lepton, most likely) |
93 |
> |
void StorePFCandsInCone(Particle* part, const std::vector<reco::PFCandidate>& pf_cands, double R0); |
94 |
|
|
95 |
|
// ----------member data --------------------------- |
96 |
|
TFile *outfile; |
101 |
|
bool doMuons; |
102 |
|
bool doTaus; |
103 |
|
bool doJets; |
104 |
+ |
bool doGenJets; |
105 |
|
bool doTopJets; |
106 |
+ |
bool doTopJetsConstituents; |
107 |
|
bool doGenTopJets; |
108 |
|
bool doMET; |
109 |
|
bool doPhotons; |
112 |
|
bool doLumiInfo; |
113 |
|
bool doPV; |
114 |
|
bool doTrigger; |
115 |
+ |
bool doTagInfos; |
116 |
+ |
bool storePFsAroundLeptons; |
117 |
|
|
118 |
|
int run; |
119 |
|
int luminosityBlock; |
120 |
|
int event; |
121 |
|
bool isRealData; |
122 |
< |
bool HBHENoiseFilterResult; |
122 |
> |
//bool HBHENoiseFilterResult; |
123 |
> |
float rho; |
124 |
|
|
125 |
|
float intgDelLumi; |
126 |
|
float intgRecLumi; |
127 |
|
float totalDelLumi; |
128 |
|
float totalRecLumi; |
129 |
|
|
130 |
+ |
edm::InputTag rho_source; |
131 |
+ |
|
132 |
|
std::vector<std::string> electron_sources; |
133 |
|
std::vector<Electron> eles[Nmax]; |
134 |
|
|
145 |
|
double jet_ptmin; |
146 |
|
double jet_etamax; |
147 |
|
|
148 |
+ |
std::vector<std::string> genjet_sources; |
149 |
+ |
std::vector<Particle> genjets[Nmax]; |
150 |
+ |
double genjet_ptmin; |
151 |
+ |
double genjet_etamax; |
152 |
+ |
|
153 |
|
std::vector<std::string> topjet_sources; |
154 |
|
std::vector<TopJet> topjets[Nmax]; |
155 |
|
double topjet_ptmin; |
156 |
|
double topjet_etamax; |
157 |
|
|
158 |
+ |
std::vector<std::string> topjet_constituents_sources; |
159 |
+ |
std::vector<PFParticle> pfparticles; // only one collection allowed! |
160 |
+ |
|
161 |
|
std::vector<std::string> gentopjet_sources; |
162 |
< |
std::vector<TopJet> gentopjets[Nmax]; |
162 |
> |
std::vector<GenTopJet> gentopjets[Nmax]; |
163 |
|
double gentopjet_ptmin; |
164 |
|
double gentopjet_etamax; |
165 |
|
|
176 |
|
float beamspot_y0; |
177 |
|
float beamspot_z0; |
178 |
|
|
179 |
+ |
std::string pf_around_leptons_source; |
180 |
+ |
|
181 |
+ |
edm::InputTag genparticle_source; |
182 |
|
GenInfo genInfo; |
183 |
|
std::vector<GenParticle> genps; |
184 |
< |
|
184 |
> |
edm::InputTag SVComputer_; |
185 |
|
std::vector<std::string> trigger_prefixes; |
186 |
|
//std::map<std::string, bool> triggerResults; |
187 |
|
std::vector<std::string> triggerNames; |
188 |
|
std::vector<bool> triggerResults; |
189 |
< |
std::vector<int> L1_prescale; |
190 |
< |
std::vector<int> HLT_prescale; |
189 |
> |
//std::vector<int> L1_prescale; |
190 |
> |
//std::vector<int> HLT_prescale; |
191 |
|
|
192 |
< |
HLTConfigProvider hlt_cfg; |
192 |
> |
//HLTConfigProvider hlt_cfg; |
193 |
|
bool newrun; |
194 |
|
bool previouslumiblockwasfilled; |
195 |
|
|
159 |
– |
JetCorrectionUncertainty *jecUnc; |
196 |
|
}; |
197 |
|
|
198 |
|
|