45 |
|
|
46 |
|
#include "OSUT3Analysis/AnaTools/interface/CutFlow.h" |
47 |
|
#include "OSUT3Analysis/AnaTools/interface/PUWeight.h" |
48 |
+ |
#include "OSUT3Analysis/AnaTools/interface/SFWeight.h" |
49 |
|
|
50 |
|
|
51 |
|
|
101 |
|
//inner vector corresponds to each object in input collection |
102 |
|
//bool tells if object passes or fails cuts |
103 |
|
typedef map<string, vector < vector<bool> > > flagMap; |
104 |
< |
|
104 |
> |
|
105 |
|
//counterMap: |
106 |
|
//string holds input collection type |
107 |
|
//vector corresponds to each cut |
125 |
|
edm::InputTag triggers_; |
126 |
|
std::string puFile_; |
127 |
|
std::string deadEcalFile_; |
128 |
+ |
std::string muonSFFile_; |
129 |
|
std::string dataPU_; |
130 |
+ |
std::string electronSFID_; |
131 |
+ |
std::string muonSF_; |
132 |
|
std::string dataset_; |
133 |
|
std::string datasetType_; |
134 |
|
vector<edm::ParameterSet> channels_; |
135 |
|
vector<edm::ParameterSet> histogramSets_; |
136 |
|
bool plotAllObjectsInPassingEvents_; |
137 |
+ |
bool doPileupReweighting_; |
138 |
+ |
bool printEventInfo_; |
139 |
|
|
140 |
|
struct DeadEcal { |
141 |
< |
double etaEcal; |
142 |
< |
double phiEcal; |
141 |
> |
double etaEcal; |
142 |
> |
double phiEcal; |
143 |
|
}; |
144 |
< |
|
144 |
> |
|
145 |
|
std::vector<DeadEcal> DeadEcalVec; |
146 |
|
|
147 |
|
|
161 |
|
edm::Handle<BNphotonCollection> photons; |
162 |
|
edm::Handle<BNsuperclusterCollection> superclusters; |
163 |
|
|
164 |
< |
const BNprimaryvertex *chosenPrimaryVertex; |
159 |
< |
|
164 |
> |
flagMap cumulativeFlags; |
165 |
|
|
166 |
|
vector<map<string, TH1D*> > oneDHists_; |
167 |
|
vector<map<string, TH2D*> > twoDHists_; |
172 |
|
vector<CutFlow *> cutFlows_; |
173 |
|
|
174 |
|
typedef struct { |
175 |
< |
string name; |
176 |
< |
string title; |
177 |
< |
vector<double> bins; |
178 |
< |
string inputCollection; |
179 |
< |
vector<string> inputVariables; |
175 |
> |
string name; |
176 |
> |
string title; |
177 |
> |
vector<double> bins; |
178 |
> |
string inputCollection; |
179 |
> |
vector<string> inputVariables; |
180 |
|
} histogram; |
181 |
|
|
182 |
|
struct cut { |
183 |
< |
string inputCollection; |
184 |
< |
vector<string> functions; |
185 |
< |
vector<string> variables; |
186 |
< |
vector<string> comparativeOperators;// >, <, =, etc. |
187 |
< |
vector<double> cutValues; |
188 |
< |
vector<string> logicalOperators;//and, or |
189 |
< |
int numSubcuts; |
190 |
< |
int numberRequired; |
191 |
< |
string eventComparativeOperator; |
192 |
< |
string name; |
183 |
> |
string inputCollection; |
184 |
> |
vector<string> functions; |
185 |
> |
vector<string> variables; |
186 |
> |
vector<string> comparativeOperators;// >, <, =, etc. |
187 |
> |
vector<double> cutValues; |
188 |
> |
vector<string> logicalOperators;//and, or |
189 |
> |
int numSubcuts; |
190 |
> |
int numberRequired; |
191 |
> |
string eventComparativeOperator; |
192 |
> |
string name; |
193 |
|
}; |
194 |
|
|
195 |
|
struct channel { |
196 |
< |
string name; |
197 |
< |
vector<string> triggers; |
198 |
< |
vector<cut> cuts; |
196 |
> |
string name; |
197 |
> |
vector<string> triggers; |
198 |
> |
vector<cut> cuts; |
199 |
|
}; |
200 |
|
|
201 |
|
vector<string> objectsToGet; |
205 |
|
vector<histogram> histograms; |
206 |
|
|
207 |
|
PUWeight *puWeight_; |
208 |
+ |
MuonSFWeight *muonSFWeight_; |
209 |
+ |
ElectronSFWeight *electronSFWeight_; |
210 |
|
|
211 |
|
template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string); |
212 |
|
template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, vector<bool>, vector<bool>, string); |
220 |
|
int getPdgIdBinValue(int); |
221 |
|
int findTauMotherIndex(const BNmcparticle*); |
222 |
|
|
223 |
+ |
template <class InputObject> double getGenDeltaRLowest(InputObject); |
224 |
+ |
|
225 |
+ |
|
226 |
+ |
const BNprimaryvertex *chosenVertex (); |
227 |
+ |
const BNmet *chosenMET (); |
228 |
+ |
const BNelectron *chosenElectron (); |
229 |
+ |
const BNmuon *chosenMuon (); |
230 |
|
|
231 |
|
}; |
232 |
|
|