71 |
|
double valueLookup (const BNjet* object, string variable, string function, string &stringValue); |
72 |
|
double valueLookup (const BNmuon* object, string variable, string function, string &stringValue); |
73 |
|
double valueLookup (const BNmuon* object1, const BNmuon* object2, string variable, string function, string &stringValue); |
74 |
+ |
|
75 |
|
double valueLookup (const BNelectron* object, string variable, string function, string &stringValue); |
76 |
|
double valueLookup (const BNelectron* object1, const BNelectron* object2, string variable, string function, string &stringValue); |
77 |
|
double valueLookup (const BNelectron* object1, const BNmuon* object2, string variable, string function, string &stringValue); |
78 |
|
double valueLookup (const BNelectron* object1, const BNjet* object2, string variable, string function, string &stringValue); |
79 |
|
double valueLookup (const BNelectron* object1, const BNphoton* object2, string variable, string function, string &stringValue); |
80 |
+ |
|
81 |
|
double valueLookup (const BNmuon* object1, const BNphoton* object2, string variable, string function, string &stringValue); |
82 |
|
double valueLookup (const BNmuon* object1, const BNevent* object2, string variable, string function, string &stringValue); |
83 |
+ |
|
84 |
|
double valueLookup (const BNphoton* object1, const BNjet* object2, string variable, string function, string &stringValue); |
85 |
+ |
|
86 |
|
double valueLookup (const BNelectron* object1, const BNtrack* object2, string variable, string function, string &stringValue); |
87 |
|
double valueLookup (const BNmuon* object1, const BNjet* object2, string variable, string function, string &stringValue); |
88 |
|
double valueLookup (const BNmet* object1, const BNjet* object2, string variable, string function, string &stringValue); |
92 |
|
double valueLookup (const BNtau* object1, const BNtau* object2, string variable, string function, string &stringValue); |
93 |
|
double valueLookup (const BNtau* object1, const BNtrack* object2, string variable, string function, string &stringValue); |
94 |
|
double valueLookup (const BNjet* object1, const BNjet* object2, string variable, string function, string &stringValue); |
95 |
+ |
|
96 |
|
double valueLookup (const BNevent* object, string variable, string function, string &stringValue); |
97 |
|
double valueLookup (const BNtau* object, string variable, string function, string &stringValue); |
98 |
|
double valueLookup (const BNmet* object, string variable, string function, string &stringValue); |
99 |
|
double valueLookup (const BNtrack* object, string variable, string function, string &stringValue); |
100 |
+ |
|
101 |
|
double valueLookup (const BNtrack* object1, const BNevent* object2, string variable, string function, string &stringValue); |
102 |
|
double valueLookup (const BNgenjet* object, string variable, string function, string &stringValue); |
103 |
|
double valueLookup (const BNmcparticle* object, string variable, string function, string &stringValue); |
104 |
+ |
|
105 |
+ |
double valueLookup (const BNelectron* object1, const BNmcparticle* object, string variable, string function, string &stringValue); |
106 |
+ |
|
107 |
|
double valueLookup (const BNprimaryvertex* object, string variable, string function, string &stringValue); |
108 |
|
double valueLookup (const BNbxlumi* object, string variable, string function, string &stringValue); |
109 |
|
double valueLookup (const BNphoton* object, string variable, string function, string &stringValue); |
140 |
|
//pair(bool) first bool counts towards the event passing, second bool determines whether to plot the object |
141 |
|
typedef map<string, vector<vector<pair<bool,bool> > > > flagMap; |
142 |
|
|
143 |
+ |
//flagPair (corresponds to flagMap): |
144 |
+ |
//vector corresponds to each object in input collection |
145 |
+ |
//pair(bool) first bool counts towards the event passing, second bool determines whether to plot the object |
146 |
|
typedef vector<pair<bool,bool> > flagPair; |
147 |
|
|
148 |
|
//counterMap: |
154 |
|
// Remember to define parameters to be retrieved from the configuration file. |
155 |
|
edm::InputTag jets_; |
156 |
|
edm::InputTag muons_; |
157 |
+ |
edm::InputTag secMuons_; |
158 |
|
edm::InputTag electrons_; |
159 |
|
edm::InputTag events_; |
160 |
|
edm::InputTag taus_; |
191 |
|
bool useTrackCaloRhoCorr_; // to use the calo-based rho correction for the by-hand calculation of the track isolation energy |
192 |
|
vector<double> stopCTau_; |
193 |
|
bool GetPlotsAfterEachCut_; |
194 |
+ |
int verbose_; |
195 |
|
|
196 |
|
struct DeadEcal { |
197 |
|
double etaEcal; |
206 |
|
edm::Handle<BNtrigobjCollection> trigobjs; |
207 |
|
edm::Handle<BNjetCollection> jets; |
208 |
|
edm::Handle<BNmuonCollection> muons; |
209 |
+ |
edm::Handle<BNmuonCollection> secMuons; |
210 |
|
edm::Handle<BNelectronCollection> electrons; |
211 |
|
edm::Handle<BNeventCollection> events; |
212 |
|
edm::Handle<BNtauCollection> taus; |
229 |
|
vector<vector<map<string, TH2D*>>> twoDHists_; |
230 |
|
vector<TTree*> BNTrees_; // one tree per channel |
231 |
|
map<string, vector<float>> BNTreeBranchVals_; // data structure to hold the values of the branches to be stored in the BNTrees_; the string is the name of a variable |
232 |
+ |
long BNTreeBranchVals_evtLong_; // event number |
233 |
+ |
int BNTreeBranchVals_runInt_; // run number |
234 |
+ |
int BNTreeBranchVals_lumiInt_; // lumi number |
235 |
|
|
236 |
|
edm::Service<TFileService> fs_; |
237 |
|
|
301 |
|
bool isFirstEvent_; |
302 |
|
|
303 |
|
template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string); |
304 |
< |
template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, flagPair, flagPair, string); |
304 |
> |
template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, string); |
305 |
|
|
306 |
|
template <class InputCollection> void assignTreeBranch(BranchSpecs brSpecs, InputCollection inputCollection, flagPair flags); |
307 |
|
template <class InputCollection> void fill1DHistogram(TH1*, histogram, InputCollection, flagPair, double); |
308 |
< |
template <class InputCollection1, class InputCollection2> void fill1DHistogram(TH1*, histogram, InputCollection1, InputCollection2, flagPair, flagPair, flagPair, double); |
308 |
> |
template <class InputCollection1, class InputCollection2> void fill1DHistogram(TH1*, histogram, InputCollection1, InputCollection2, flagPair, double); |
309 |
|
template <class InputCollection> void fill2DHistogram(TH2*, histogram, InputCollection, flagPair, double); |
310 |
< |
template <class InputCollection1, class InputCollection2> void fill2DHistogram(TH2*, histogram, InputCollection1, InputCollection2, flagPair, flagPair, flagPair, double); |
310 |
> |
template <class InputCollection1, class InputCollection2> void fill2DHistogram(TH2*, histogram, InputCollection1, InputCollection2, flagPair, double); |
311 |
|
bool getPreviousCumulativeFlags(uint currentCutIndex, flagMap &individualFlags, string obj1Type, uint object1, string flagType); |
312 |
|
|
313 |
|
|