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_; |
137 |
|
bool doPileupReweighting_; |
138 |
|
|
139 |
|
struct DeadEcal { |
140 |
< |
double etaEcal; |
141 |
< |
double phiEcal; |
140 |
> |
double etaEcal; |
141 |
> |
double phiEcal; |
142 |
|
}; |
143 |
< |
|
143 |
> |
|
144 |
|
std::vector<DeadEcal> DeadEcalVec; |
145 |
|
|
146 |
|
|
160 |
|
edm::Handle<BNphotonCollection> photons; |
161 |
|
edm::Handle<BNsuperclusterCollection> superclusters; |
162 |
|
|
163 |
< |
const BNprimaryvertex *chosenPrimaryVertex; |
160 |
< |
|
163 |
> |
flagMap cumulativeFlags; |
164 |
|
|
165 |
|
vector<map<string, TH1D*> > oneDHists_; |
166 |
|
vector<map<string, TH2D*> > twoDHists_; |
171 |
|
vector<CutFlow *> cutFlows_; |
172 |
|
|
173 |
|
typedef struct { |
174 |
< |
string name; |
175 |
< |
string title; |
176 |
< |
vector<double> bins; |
177 |
< |
string inputCollection; |
178 |
< |
vector<string> inputVariables; |
174 |
> |
string name; |
175 |
> |
string title; |
176 |
> |
vector<double> bins; |
177 |
> |
string inputCollection; |
178 |
> |
vector<string> inputVariables; |
179 |
|
} histogram; |
180 |
|
|
181 |
|
struct cut { |
182 |
< |
string inputCollection; |
183 |
< |
vector<string> functions; |
184 |
< |
vector<string> variables; |
185 |
< |
vector<string> comparativeOperators;// >, <, =, etc. |
186 |
< |
vector<double> cutValues; |
187 |
< |
vector<string> logicalOperators;//and, or |
188 |
< |
int numSubcuts; |
189 |
< |
int numberRequired; |
190 |
< |
string eventComparativeOperator; |
191 |
< |
string name; |
182 |
> |
string inputCollection; |
183 |
> |
vector<string> functions; |
184 |
> |
vector<string> variables; |
185 |
> |
vector<string> comparativeOperators;// >, <, =, etc. |
186 |
> |
vector<double> cutValues; |
187 |
> |
vector<string> logicalOperators;//and, or |
188 |
> |
int numSubcuts; |
189 |
> |
int numberRequired; |
190 |
> |
string eventComparativeOperator; |
191 |
> |
string name; |
192 |
|
}; |
193 |
|
|
194 |
|
struct channel { |
195 |
< |
string name; |
196 |
< |
vector<string> triggers; |
197 |
< |
vector<cut> cuts; |
195 |
> |
string name; |
196 |
> |
vector<string> triggers; |
197 |
> |
vector<cut> cuts; |
198 |
|
}; |
199 |
|
|
200 |
|
vector<string> objectsToGet; |
204 |
|
vector<histogram> histograms; |
205 |
|
|
206 |
|
PUWeight *puWeight_; |
207 |
+ |
MuonSFWeight *muonSFWeight_; |
208 |
+ |
ElectronSFWeight *electronSFWeight_; |
209 |
|
|
210 |
|
template <class InputCollection> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection, string); |
211 |
|
template <class InputCollection1, class InputCollection2> void setObjectFlags(cut &, uint, flagMap &, flagMap &, InputCollection1, InputCollection2, vector<bool>, vector<bool>, string); |
219 |
|
int getPdgIdBinValue(int); |
220 |
|
int findTauMotherIndex(const BNmcparticle*); |
221 |
|
|
222 |
+ |
template <class InputObject> double getGenDeltaRLowest(InputObject); |
223 |
+ |
|
224 |
+ |
|
225 |
+ |
const BNprimaryvertex *chosenVertex (); |
226 |
+ |
const BNmet *chosenMET (); |
227 |
+ |
const BNelectron *chosenElectron (); |
228 |
+ |
const BNmuon *chosenMuon (); |
229 |
|
|
230 |
|
}; |
231 |
|
|