9 |
|
#include <fstream> |
10 |
|
#include <iostream> |
11 |
|
#include <algorithm> |
12 |
+ |
#include <regex> |
13 |
|
#include "TH1.h" |
14 |
|
#include "TH2.h" |
15 |
|
#include "TH1D.h" |
44 |
|
#include "ProductArea/BNcollections/interface/BNtau.h" |
45 |
|
#include "ProductArea/BNcollections/interface/BNgenjet.h" |
46 |
|
|
47 |
+ |
|
48 |
|
#include "OSUT3Analysis/AnaTools/interface/CutFlow.h" |
49 |
|
#include "OSUT3Analysis/AnaTools/interface/PUWeight.h" |
50 |
|
#include "OSUT3Analysis/AnaTools/interface/SFWeight.h" |
51 |
|
|
52 |
< |
#ifdef DISPLACED_SUSY |
51 |
< |
#include "DisplacedSUSY/Configuration/interface/CTauWeight.h" |
52 |
< |
#endif |
52 |
> |
#include "OSUT3Analysis/AnaTools/interface/StopCTauWeight.h" |
53 |
|
|
54 |
|
using namespace std; |
55 |
|
|
70 |
|
double valueLookup (const BNelectron* object, string variable, string function = ""); |
71 |
|
double valueLookup (const BNelectron* object1, const BNelectron* object2, string variable, string function = ""); |
72 |
|
double valueLookup (const BNelectron* object1, const BNmuon* object2, string variable, string function = ""); |
73 |
+ |
double valueLookup (const BNelectron* object1, const BNjet* object2, string variable, string function = ""); |
74 |
|
double valueLookup (const BNelectron* object1, const BNtrack* object2, string variable, string function = ""); |
75 |
+ |
double valueLookup (const BNmuon* object1, const BNjet* object2, string variable, string function = ""); |
76 |
|
double valueLookup (const BNmuon* object1, const BNtrack* object2, string variable, string function = ""); |
77 |
|
double valueLookup (const BNmuon* object1, const BNtau* object2, string variable, string function = ""); |
78 |
|
double valueLookup (const BNtau* object1, const BNtau* object2, string variable, string function = ""); |
79 |
|
double valueLookup (const BNtau* object1, const BNtrack* object2, string variable, string function); |
80 |
+ |
double valueLookup (const BNjet* object1, const BNjet* object2, string variable, string function = ""); |
81 |
|
double valueLookup (const BNevent* object, string variable, string function = ""); |
82 |
|
double valueLookup (const BNtau* object, string variable, string function = ""); |
83 |
|
double valueLookup (const BNmet* object, string variable, string function = ""); |
89 |
|
double valueLookup (const BNbxlumi* object, string variable, string function = ""); |
90 |
|
double valueLookup (const BNphoton* object, string variable, string function = ""); |
91 |
|
double valueLookup (const BNsupercluster* object, string variable, string function = ""); |
89 |
– |
|
90 |
– |
#ifdef DISPLACED_SUSY |
92 |
|
double valueLookup (const BNstop* object, string variable, string function = ""); |
93 |
< |
#endif |
93 |
> |
|
94 |
|
int getTrkIsIso (const BNtrack* track1, const BNtrackCollection* trackColl); |
95 |
|
double getTrkPtTrue (const BNtrack* track1, const BNmcparticleCollection* genPartColl); |
96 |
|
double getTrkPtRes (const BNtrack* track1); |
149 |
|
vector<edm::ParameterSet> histogramSets_; |
150 |
|
bool plotAllObjectsInPassingEvents_; |
151 |
|
bool doPileupReweighting_; |
152 |
+ |
bool applyLeptonSF_; |
153 |
|
bool printEventInfo_; |
154 |
|
bool useTrackCaloRhoCorr_; // to use the calo-based rho correction for the by-hand calculation of the track isolation energy |
155 |
|
vector<double> stopCTau_; |
177 |
|
edm::Handle<BNbxlumiCollection> bxlumis; |
178 |
|
edm::Handle<BNphotonCollection> photons; |
179 |
|
edm::Handle<BNsuperclusterCollection> superclusters; |
178 |
– |
#ifdef DISPLACED_SUSY |
180 |
|
edm::Handle<BNstopCollection> stops; |
181 |
< |
#endif |
181 |
> |
|
182 |
|
edm::Handle<double> rhokt6CaloJetsHandle_; |
183 |
|
|
184 |
|
flagMap cumulativeFlags; |
195 |
|
string name; |
196 |
|
string title; |
197 |
|
vector<double> bins; |
198 |
+ |
vector<double> variableBinsX; |
199 |
+ |
vector<double> variableBinsY; |
200 |
|
string inputCollection; |
201 |
|
vector<string> inputVariables; |
202 |
|
} histogram; |
229 |
|
PUWeight *puWeight_; |
230 |
|
MuonSFWeight *muonSFWeight_; |
231 |
|
ElectronSFWeight *electronSFWeight_; |
232 |
< |
#ifdef DISPLACED_SUSY |
233 |
< |
CTauWeight *cTauWeight_; |
234 |
< |
#endif |
232 |
< |
double cTauScaleFactor_; |
232 |
> |
|
233 |
> |
StopCTauWeight *stopCTauWeight_; |
234 |
> |
double stopCTauScaleFactor_; |
235 |
|
|
236 |
|
template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string); |
237 |
|
template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, vector<bool>, vector<bool>, string); |