7 |
|
#include <vector> |
8 |
|
|
9 |
|
#include "TH1.h" |
10 |
+ |
#include "TH2.h" |
11 |
|
#include "TH1D.h" |
12 |
|
#include "TH2D.h" |
13 |
|
#include "TLorentzVector.h" |
20 |
|
#include "DataFormats/Common/interface/Handle.h" |
21 |
|
#include "CommonTools/UtilAlgos/interface/TFileService.h" |
22 |
|
#include "FWCore/Framework/interface/MakerMacros.h" |
23 |
+ |
#include "DataFormats/Math/interface/deltaPhi.h" |
24 |
+ |
#include "DataFormats/Math/interface/deltaR.h" |
25 |
|
|
26 |
|
#include "ProductArea/BNcollections/interface/BNbxlumi.h" |
27 |
|
#include "ProductArea/BNcollections/interface/BNelectron.h" |
41 |
|
#include "ProductArea/BNcollections/interface/BNgenjet.h" |
42 |
|
|
43 |
|
#include "OSUT3Analysis/AnaTools/interface/CutFlow.h" |
44 |
+ |
#include "OSUT3Analysis/AnaTools/interface/PUWeight.h" |
45 |
|
|
46 |
|
|
47 |
|
|
61 |
|
|
62 |
|
double valueLookup (const BNjet* object, string variable, string function = ""); |
63 |
|
double valueLookup (const BNmuon* object, string variable, string function = ""); |
64 |
+ |
double valueLookup (const BNmuon* object1, const BNmuon* object2, string variable, string function = ""); |
65 |
|
double valueLookup (const BNelectron* object, string variable, string function = ""); |
66 |
+ |
double valueLookup (const BNelectron* object1, const BNelectron* object2, string variable, string function = ""); |
67 |
+ |
double valueLookup (const BNelectron* object1, const BNmuon* object2, string variable, string function = ""); |
68 |
|
double valueLookup (const BNevent* object, string variable, string function = ""); |
69 |
|
double valueLookup (const BNtau* object, string variable, string function = ""); |
70 |
|
double valueLookup (const BNmet* object, string variable, string function = ""); |
111 |
|
edm::InputTag photons_; |
112 |
|
edm::InputTag superclusters_; |
113 |
|
edm::InputTag triggers_; |
114 |
< |
|
115 |
< |
BNprimaryvertex *primaryVertex_; |
116 |
< |
|
114 |
> |
std::string puFile_; |
115 |
> |
std::string dataPU_; |
116 |
> |
std::string dataset_; |
117 |
> |
std::string datasetType_; |
118 |
|
vector<edm::ParameterSet> channels_; |
119 |
|
vector<edm::ParameterSet> histogramSets_; |
120 |
+ |
bool plotAllObjectsInPassingEvents_; |
121 |
+ |
|
122 |
+ |
edm::Handle<BNtriggerCollection> triggers; |
123 |
+ |
edm::Handle<BNjetCollection> jets; |
124 |
+ |
edm::Handle<BNmuonCollection> muons; |
125 |
+ |
edm::Handle<BNelectronCollection> electrons; |
126 |
+ |
edm::Handle<BNeventCollection> events; |
127 |
+ |
edm::Handle<BNtauCollection> taus; |
128 |
+ |
edm::Handle<BNmetCollection> mets; |
129 |
+ |
edm::Handle<BNtrackCollection> tracks; |
130 |
+ |
edm::Handle<BNgenjetCollection> genjets; |
131 |
+ |
edm::Handle<BNmcparticleCollection> mcparticles; |
132 |
+ |
edm::Handle<BNprimaryvertexCollection> primaryvertexs; |
133 |
+ |
edm::Handle<BNbxlumiCollection> bxlumis; |
134 |
+ |
edm::Handle<BNphotonCollection> photons; |
135 |
+ |
edm::Handle<BNsuperclusterCollection> superclusters; |
136 |
+ |
|
137 |
+ |
const BNprimaryvertex *chosenPrimaryVertex; |
138 |
+ |
|
139 |
|
|
140 |
|
vector<map<string, TH1D*> > oneDHists_; |
141 |
|
vector<map<string, TH2D*> > twoDHists_; |
151 |
|
vector<double> bins; |
152 |
|
string inputCollection; |
153 |
|
vector<string> inputVariables; |
127 |
– |
string function; |
154 |
|
} histogram; |
155 |
|
|
156 |
|
struct cut { |
157 |
|
string inputCollection; |
158 |
< |
string variable; |
159 |
< |
string comparativeOperator; |
160 |
< |
string function; |
161 |
< |
double cutValue; |
158 |
> |
vector<string> functions; |
159 |
> |
vector<string> variables; |
160 |
> |
vector<string> comparativeOperators;// >, <, =, etc. |
161 |
> |
vector<double> cutValues; |
162 |
> |
vector<string> logicalOperators;//and, or |
163 |
> |
int numSubcuts; |
164 |
|
int numberRequired; |
165 |
|
string eventComparativeOperator; |
166 |
|
string name; |
177 |
|
vector<channel> channels; |
178 |
|
vector<histogram> histograms; |
179 |
|
|
180 |
< |
template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string); |
153 |
< |
template <class InputCollection> void fillHistogram(TH1*, histogram, InputCollection); |
180 |
> |
PUWeight *puWeight_; |
181 |
|
|
182 |
+ |
template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string); |
183 |
+ |
template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, string); |
184 |
+ |
template <class InputCollection> void fill1DHistogram(TH1*, histogram, InputCollection, vector<bool>, double); |
185 |
+ |
template <class InputCollection1, class InputCollection2> void fill1DHistogram(TH1*, histogram, InputCollection1, InputCollection2, vector<bool>, vector<bool>, vector<bool>, double); |
186 |
+ |
template <class InputCollection> void fill2DHistogram(TH2*, histogram, InputCollection, vector<bool>, double); |
187 |
+ |
template <class InputCollection1, class InputCollection2> void fill2DHistogram(TH2*, histogram, InputCollection1, InputCollection2, vector<bool>, vector<bool>, vector<bool>, double); |
188 |
+ |
|
189 |
+ |
template <class InputObject> int getGenMatchedParticleIndex(InputObject); |
190 |
+ |
int getPdgIdBinValue(int); |
191 |
+ |
int findTauMotherIndex(const BNmcparticle*); |
192 |
|
|
193 |
|
|
194 |
|
}; |