DESY Hbb Analysis Framework
Functions | Variables
macro_config.h File Reference
#include "boost/program_options.hpp"
#include "boost/algorithm/string.hpp"
#include <string>
#include <iostream>
#include <fstream>
#include <vector>

Go to the source code of this file.

Functions

int macro_config (int argc, char *argv[])
 

Variables

std::string btagalgo_
 
std::string btagsf_
 
std::string btagwp_
 
float btagwploose_
 
float btagwpmedium_
 
float btagwptight_
 
std::string cfg_
 
float detamax_
 
float dphimin_
 
float drmax_
 
float drmin_
 
std::vector< float > etamax_
 
std::string genjetsCol_
 
std::string genParticleCol_
 
std::string hltPath_
 
std::string hltPathRef_
 
std::vector< std::string > hltPaths2_
 
std::vector< std::string > hltPaths_
 
std::string hltPathsLogic2_
 
std::string hltPathsLogic_
 
std::string inputlist_
 
bool isMC_
 
std::string jerpt_
 
std::string jersf_
 
std::vector< float > jetsbtagmin_
 
std::string jetsCol_
 
std::vector< float > jetsetamax_
 
std::string jetsid_
 
std::vector< float > jetsptmax_
 
std::vector< float > jetsptmin_
 
std::string json_
 
std::string l1Seed_
 
std::string l1SeedRef_
 
std::string l1tjetsCol_
 
std::vector< float > l1tjetsetamax_
 
int l1tjetsnmin_
 
std::vector< float > l1tjetsptmin_
 
std::vector< float > l1tjetsrefetamax_
 
int l1tjetsrefnmin_
 
std::vector< float > l1tjetsrefptmin_
 
std::string l1tmuonsCol_
 
std::vector< float > l1tmuonsetamax_
 
int l1tmuonsnmin_
 
std::vector< float > l1tmuonsptmin_
 
std::vector< float > l1tmuonsrefetamax_
 
int l1tmuonsrefnmin_
 
std::vector< float > l1tmuonsrefptmin_
 
bool matchonoff_
 
float matchonoffdrmax_
 
bool matchonoffref_
 
std::string muonsCol_
 
std::vector< float > muonsetamax_
 
std::string muonsid_
 
std::vector< float > muonsptmax_
 
std::vector< float > muonsptmin_
 
int nbjetsmin_
 
int nevtmax_
 
int njetsmax_
 
int njetsmin_
 
int nlumis_
 
int nmax_
 
int nmin_
 
int nmuonsmin_
 
float nonbtagwp_
 
std::string outputRoot_
 
std::vector< float > prescaleEra_
 
float psnorm_
 
bool psweight_
 
float ptimbalmax_
 
std::vector< float > ptmax_
 
std::vector< float > ptmin_
 
int runmax_
 
int runmin_
 
int seed_
 
std::string seedfile_
 
bool signalregion_
 
std::vector< float > toetamax_ [10]
 
int tonmin_ [10]
 
std::vector< float > toptmin_ [10]
 
std::vector< float > torefetamax_ [10]
 
int torefnmin_ [10]
 
std::vector< float > torefptmin_ [10]
 
std::string treePath_
 
bool trigemul_
 
std::string triggerCol_
 
std::string triggerObjDir_
 
std::vector< std::string > triggerObjects_
 
std::vector< std::string > triggerObjectsJets_
 
std::vector< int > triggerObjectsMatches_
 
std::vector< int > triggerObjectsMatchesRank_
 
std::vector< std::string > triggerObjectsMuons_
 
std::vector< std::string > triggerObjectsRef_
 

Function Documentation

int macro_config ( int  argc,
char *  argv[] 
)

Definition at line 145 of file macro_config.h.

References btagalgo_, btagsf_, btagwp_, btagwploose_, btagwpmedium_, btagwptight_, cfg_, submitCrab3Data::config, detamax_, dphimin_, drmax_, drmin_, etamax_, genjetsCol_, genParticleCol_, hltPath_, hltPathRef_, hltPaths2_, hltPaths_, hltPathsLogic2_, hltPathsLogic_, inputlist_, isMC_, jerpt_, jersf_, jetsbtagmin_, jetsCol_, jetsetamax_, jetsid_, jetsptmax_, jetsptmin_, json_, l1Seed_, l1SeedRef_, l1tjetsCol_, l1tjetsetamax_, l1tjetsnmin_, l1tjetsptmin_, l1tjetsrefetamax_, l1tjetsrefnmin_, l1tjetsrefptmin_, l1tmuonsCol_, l1tmuonsetamax_, l1tmuonsnmin_, l1tmuonsptmin_, l1tmuonsrefetamax_, l1tmuonsrefnmin_, l1tmuonsrefptmin_, matchonoff_, matchonoffdrmax_, matchonoffref_, muonsCol_, muonsetamax_, muonsid_, muonsptmax_, muonsptmin_, nbjetsmin_, nevtmax_, njetsmax_, njetsmin_, nlumis_, nmax_, nmin_, nmuonsmin_, nonbtagwp_, outputRoot_, prescaleEra_, psnorm_, psweight_, ptimbalmax_, ptmax_, ptmin_, runmax_, runmin_, seed_, seedfile_, signalregion_, toetamax_, tonmin_, toptmin_, torefetamax_, torefnmin_, torefptmin_, treePath_, trigemul_, triggerCol_, triggerObjDir_, triggerObjects_, triggerObjectsJets_, triggerObjectsMatches_, triggerObjectsMatchesRank_, triggerObjectsMuons_, and triggerObjectsRef_.

Referenced by main().

146 {
147  try
148  {
149  namespace po = boost::program_options;
150  po::options_description desc("Options");
151  desc.add_options()
152  ("help,h","Show help messages")
153  ("config,c",po::value<std::string>(&cfg_),"Configuration file name");
154 
155  po::options_description config("Configuration");
156  config.add_options()
157  ("ntuplesList",po::value <std::string> (&inputlist_)->default_value("rootFileList.txt"),"File with list of ntuples")
158  ("nEventsMax",po::value <int> (&nevtmax_)->default_value(-1), "Maximum number of events")
159  ("nLumiSections",po::value <int> (&nlumis_)->default_value(-1), "Number of lumi sections processed")
160  ("runMin",po::value <int> (&runmin_)->default_value(-1), "Minimum run number")
161  ("runMax",po::value <int> (&runmax_)->default_value(-1), "Minimum run number")
162  ("output",po::value <std::string> (&outputRoot_)->default_value("histograms.root"),"Output root file")
163  ("json",po::value <std::string> (&json_)->default_value("no_json.txt"),"JSON file for data")
164  ("seedFile",po::value <std::string> (&seedfile_)->default_value("seed.txt"),"File containing a seed value for random number generator")
165  ("seed",po::value <int> (&seed_)->default_value(1), "Seed value for random number generator")
166  ("btagSF",po::value <std::string> (&btagsf_)->default_value("DeepCSV.csv"),"b-tagging scale factor in CSV format")
167  ("jerPT",po::value <std::string> (&jerpt_)->default_value("JERPT.txt"),"JER pt resolution in txt format")
168  ("jerSF",po::value <std::string> (&jersf_)->default_value("JERSF.txt"),"JER scale factor in txt format")
169 //
170  ("nJetsMin",po::value <int> (&njetsmin_)->default_value(0),"Minimum number of jets")
171  ("nJetsMax",po::value <int> (&njetsmax_)->default_value(100),"Maximum number of jets")
172  ("nBJetsMin",po::value <int> (&nbjetsmin_)->default_value(0),"Minimum number of btgaged jets")
173  ("jetsPtMin", po::value<std::vector<float> >(&jetsptmin_)->multitoken(),"Mimium pt of the jets")
174  ("jetsPtMax", po::value<std::vector<float> >(&jetsptmax_)->multitoken(),"Maximum pt of the jets")
175  ("jetsEtaMax", po::value<std::vector<float> >(&jetsetamax_)->multitoken(),"Maximum |eta| of the jets")
176  ("jetsBtagMin", po::value<std::vector<float> >(&jetsbtagmin_)->multitoken(),"Minimum btag of the jets; if < 0 -> reverse btag")
177  ("jetsId",po::value <std::string> (&jetsid_)->default_value("TIGHT"),"Jets id criteria for all jets")
178 
179  ("l1tJetsNMin",po::value <int> (&l1tjetsnmin_)->default_value(0),"Minimum number of L1T jets")
180  ("l1tJetsPtMin", po::value<std::vector<float> >(&l1tjetsptmin_)->multitoken(),"Mimium pt of the L1T jets")
181  ("l1tJetsEtaMax", po::value<std::vector<float> >(&l1tjetsetamax_)->multitoken(),"Maximum |eta| of the L1T jets")
182  ("l1tJetsRefNMin",po::value <int> (&l1tjetsrefnmin_)->default_value(0),"Minimum number of L1T jets for reference trigger")
183  ("l1tJetsRefPtMin", po::value<std::vector<float> >(&l1tjetsrefptmin_)->multitoken(),"Mimium pt of the L1T jets for reference trigger")
184  ("l1tJetsRefEtaMax", po::value<std::vector<float> >(&l1tjetsrefetamax_)->multitoken(),"Maximum |eta| of the L1T jets for reference trigger")
185 
186 //
187  ("nMuonsMin",po::value <int> (&nmuonsmin_)->default_value(0),"Minimum number of muons")
188  ("muonsPtMin", po::value<std::vector<float> >(&muonsptmin_)->multitoken(),"Mimium pt of the muons")
189  ("muonsPtMax", po::value<std::vector<float> >(&muonsptmax_)->multitoken(),"Maximum pt of the muons")
190  ("muonsEtaMax", po::value<std::vector<float> >(&muonsetamax_)->multitoken(),"Maximum |eta| of the muons")
191  ("muonsId",po::value <std::string> (&muonsid_)->default_value("LOOSE"),"muons id criteria for all muons")
192 
193  ("l1tMuonsNMin",po::value <int> (&l1tmuonsnmin_)->default_value(0),"Minimum number of L1T muons")
194  ("l1tMuonsPtMin", po::value<std::vector<float> >(&l1tmuonsptmin_)->multitoken(),"Mimium pt of the L1T muons")
195  ("l1tMuonsEtaMax", po::value<std::vector<float> >(&l1tmuonsetamax_)->multitoken(),"Maximum |eta| of the L1T muons")
196  ("l1tMuonsRefNMin",po::value <int> (&l1tmuonsrefnmin_)->default_value(0),"Minimum number of L1T muons for reference trigger")
197  ("l1tMuonsRefPtMin", po::value<std::vector<float> >(&l1tmuonsrefptmin_)->multitoken(),"Mimium pt of the L1T muons for reference trigger")
198  ("l1tMuonsRefEtaMax", po::value<std::vector<float> >(&l1tmuonsrefetamax_)->multitoken(),"Maximum |eta| of the L1T muons for reference trigger")
199 
200 //
201  ("nMin",po::value <int> (&nmin_)->default_value(0),"Minimum number objects")
202  ("nMax",po::value <int> (&nmax_)->default_value(0),"Maximum number objects")
203  ("ptMin", po::value<std::vector<float> >(&ptmin_)->multitoken(),"Mimium pt of an object")
204  ("ptMax", po::value<std::vector<float> >(&ptmax_)->multitoken(),"Maximum pt of an object")
205  ("etaMax", po::value<std::vector<float> >(&etamax_)->multitoken(),"Maximum |eta| of an object")
206 //
207  ("dRMin",po::value <float> (&drmin_)->default_value(0.),"Minimum delta R between candidates")
208  ("dRMax",po::value <float> (&drmax_)->default_value(0.),"Maximum delta R between candidates")
209  ("dEtaMax",po::value <float> (&detamax_)->default_value(10.),"Maximum delta eta between candidates")
210  ("dPhiMin",po::value <float> (&dphimin_)->default_value(0.),"Minimum delta phi between candidates")
211  ("ptImbalanceMax",po::value <float> (&ptimbalmax_)->default_value(1000.),"Maximum relative imbalance between two candidates")
212 //
213  ("isMC",po::value <bool> (&isMC_)->default_value(true),"Flag for MC dataset")
214  ("signalRegion",po::value <bool> (&signalregion_)->default_value(true),"Flag for signal region")
215  ("hltPath",po::value <std::string> (&hltPath_),"HLT path name")
216  ("l1Seed",po::value <std::string> (&l1Seed_)->default_value(""),"L1 seed name")
217  ("hltPathReference",po::value <std::string> (&hltPathRef_),"HLT path name for reference trigger for trigger efficiency")
218  ("l1SeedReference",po::value <std::string> (&l1SeedRef_)->default_value(""),"L1 seed name for reference trigger")
219  ("triggerObjects", po::value<std::vector<std::string> >(&triggerObjects_)->multitoken(),"Trigger objects")
220  ("triggerObjectsMatches", po::value<std::vector<int> >(&triggerObjectsMatches_)->multitoken(),"Number of trigger objects matches")
221  ("triggerObjectsMatchesRank", po::value<std::vector<int> >(&triggerObjectsMatchesRank_)->multitoken(),"Rank of offline object the trigger objects matches")
222  ("triggerObjectsReference", po::value<std::vector<std::string> >(&triggerObjectsRef_)->multitoken(),"Trigger objects reference trigger")
223  ("hltPathsList", po::value<std::vector<std::string> >(&hltPaths_)->multitoken(),"HLT paths list")
224  ("hltPathsLogic",po::value <std::string> (&hltPathsLogic_)->default_value("OR"),"HLT paths logic (OR/AND)")
225  ("hltPathsList2", po::value<std::vector<std::string> >(&hltPaths2_)->multitoken(),"HLT paths second list")
226  ("hltPathsLogic2",po::value <std::string> (&hltPathsLogic2_)->default_value("OR"),"HLT paths logic (OR/AND) for second list")
227  ("triggerObjectsJets", po::value<std::vector<std::string> >(&triggerObjectsJets_)->multitoken(),"Trigger objects for jets")
228  ("triggerObjectsMuons", po::value<std::vector<std::string> >(&triggerObjectsMuons_)->multitoken(),"Trigger objects for muons")
229 //
230  ("btagAlgorithm",po::value <std::string> (&btagalgo_)->default_value("csvivf"),"BTag algorithm")
231  ("btagWorkingPoint",po::value <std::string> (&btagwp_)->default_value("tight"),"BTag working point")
232  ("btagWPLoose",po::value <float> (&btagwploose_)->default_value(0.46),"BTag working point LOOSE")
233  ("btagWPMedium",po::value <float> (&btagwpmedium_)->default_value(0.84),"BTag working point MEDIUM")
234  ("btagWPTight",po::value <float> (&btagwptight_)->default_value(0.92),"BTag working point TIGHT")
235 //
236 // ("btagWP",po::value <float> (&btagwp_)->default_value(0.8484),"Btag working point")
237  ("nonbtagWP",po::value <float> (&nonbtagwp_)->default_value(0.46),"non-Btag working point")
238 
239 //
240  ("matchOnlineOffline",po::value <bool> (&matchonoff_)->default_value(true),"Flag for doing matching online offline objects")
241  ("matchOnlineOfflineDeltaRMax",po::value <float> (&matchonoffdrmax_)->default_value(0.4),"DeltaR max for matching online-offline")
242  ("matchOnlineOfflineReference",po::value <bool> (&matchonoffref_)->default_value(true),"Flag for doing matching online offline objects when using a reference trigger")
243  ("prescaleWeight",po::value <bool> (&psweight_)->default_value(false),"Flag for weighting histograms with prescale")
244  ("prescaleNormalisation",po::value <float> (&psnorm_)->default_value(1.),"Normalisation factor of prescale weight")
245  ("triggerEmulation",po::value <bool> (&trigemul_)->default_value(false),"Flag for using trigger emulation")
246 
247  ("jetsCollection",po::value <std::string> (&jetsCol_)->default_value("slimmedJets"),"Name of the jets collection")
248  ("muonsCollection",po::value <std::string> (&muonsCol_)->default_value("slimmedMuons"),"Name of the muons collection")
249  ("l1tJetsCollection",po::value <std::string> (&l1tjetsCol_)->default_value("l1tJets"),"Name of the L1T jets collection")
250  ("l1tMuonsCollection",po::value <std::string> (&l1tmuonsCol_)->default_value("l1tMuons"),"Name of the L1T muons collection")
251  ("genParticleCollection",po::value <std::string> (&genParticleCol_)->default_value("prunedGenParticles"),"Name of the gen particle collection")
252  ("genjetsCollection",po::value <std::string> (&genjetsCol_)->default_value("slimmedGenJets"),"Name of the gen jets collection")
253 
254  ("triggerResultsCollection",po::value <std::string> (&triggerCol_)->default_value("TriggerResults"),"Name of the trigger results collection")
255  ("triggerObjectsDirectory",po::value <std::string> (&triggerObjDir_)->default_value("slimmedPatTrigger"),"Name of the trigger objects directory")
256  ("collectionsTreePath",po::value <std::string> (&treePath_)->default_value("Events"),"Name of the tree path for the event collections.")
257  ("prescaleEra",po::value <std::vector<float> >(&prescaleEra_)->multitoken(),"Prescale CR by # events in SR in each era");
258 
259 
260  for ( int i = 0 ; i < 10 ; ++i )
261  {
262  config.add_options()
263  (Form("triggerObject%dNMin",i),po::value <int> (&(tonmin_[i]))->default_value(0),Form("Minimum number of trigger objects #%d",i))
264  (Form("triggerObject%dPtMin",i),po::value<std::vector<float> >(&(toptmin_[i]))->multitoken(),Form("Minimum pT of trigger objects #%d",i))
265  (Form("triggerObject%dEtaMax",i),po::value<std::vector<float> >(&(toetamax_[i]))->multitoken(),Form("Minimum eta of trigger objects #%d",i))
266  (Form("triggerObject%dRefNMin",i),po::value <int> (&(torefnmin_[i]))->default_value(0),Form("Minimum number of trigger objects #%d for reference trigger",i))
267  (Form("triggerObject%dRefPtMin",i),po::value<std::vector<float> >(&(torefptmin_[i]))->multitoken(),Form("Minimum pT of trigger objects #%d for reference trigger",i))
268  (Form("triggerObject%dRefEtaMax",i),po::value<std::vector<float> >(&(torefetamax_[i]))->multitoken(),Form("Minimum eta of trigger objects #%d for reference trigger",i));
269  }
270 
271  po::variables_map vm;
272  try
273  {
274  po::store(po::parse_command_line(argc, argv, desc), vm); // can throw
275  // --help option
276 
277  if ( vm.count("help") )
278  {
279  std::cout << "SimpleBjetsAnalysis macro" << std::endl
280  << desc << std::endl
281  << config << std::endl;
282  return 1;
283  }
284  po::notify(vm);
285 
286  std::ifstream cfg_s(cfg_.c_str());
287  po::store(po::parse_config_file(cfg_s, config), vm); // can throw
288  if ( vm.count("config") )
289  {
290 
291  }
292  po::notify(vm);
293  boost::algorithm::to_upper(jetsid_);
294  if ( (int)jetsptmin_.size() != njetsmin_ )
295  {
296  std::cout << "Config Error *** Jet minimum pt were not defined or the definition does not match the minimum number of jets" <<std::endl;
297  return -1;
298  }
299  if ( (int)jetsptmax_.size() != njetsmin_ && !jetsptmax_.empty() )
300  {
301  std::cout << "Config Error *** Jet maximum pt has been defined and does not match the minimum number of jets" <<std::endl;
302  return -1;
303  }
304  if ( (int)jetsetamax_.size() != njetsmin_ )
305  {
306  std::cout << "Config Error *** Jet maximum |eta| were not defined or the definition does not match the minimum number of jets" <<std::endl;
307  return -1;
308  }
309  if ( (int)jetsbtagmin_.size() != nbjetsmin_ && !jetsbtagmin_.empty() )
310  {
311  std::cout << "Config Error *** Jet minimum btag has been defined and does not match the minimum number of btagged jets" <<std::endl;
312  return -1;
313  }
314 
315 
316  if ( (int)muonsptmin_.size() != nmuonsmin_ )
317  {
318  std::cout << "Config Error *** Muon minimum pt were not defined or the definition does not match the minimum number of muons" <<std::endl;
319  return -1;
320  }
321  if ( (int)muonsptmax_.size() != nmuonsmin_ && !muonsptmax_.empty() )
322  {
323  std::cout << "Config Error *** Muon maximum pt has been defined and does not match the minimum number of muons" <<std::endl;
324  return -1;
325  }
326  if ( (int)muonsetamax_.size() != nmuonsmin_ )
327  {
328  std::cout << "Config Error *** Muon maximum |eta| were not defined or the definition does not match the minimum number of muons" <<std::endl;
329  return -1;
330  }
331 
332 // if ( (int)prescaleEra_.size() != 4 )
333 // {
334 // std::cout << "Config Error *** The prescales for the CR in each era were not defined or the definition does not match the number of eras" <<std::endl;
335 // return -1;
336 // }
337 
338  std::transform(btagalgo_.begin(), btagalgo_.end(), btagalgo_.begin(), ::tolower);
339  std::transform(btagwp_.begin(), btagwp_.end(), btagwp_.begin(), ::tolower);
340 
341 
342  }
343  catch(po::error& e)
344  {
345  std::cerr << "ERROR: " << e.what() << std::endl << std::endl;
346  std::cerr << desc << std::endl;
347  return -1;
348  }
349 
350  }
351  catch(std::exception& e)
352  {
353  std::cerr << "ERROR: " << e.what() << std::endl << std::endl;
354  return -1;
355  }
356 
357  return 0;
358 }
int l1tjetsrefnmin_
Definition: macro_config.h:62
std::string muonsCol_
Definition: macro_config.h:133
std::vector< float > torefetamax_[10]
Definition: macro_config.h:44
std::string hltPathRef_
Definition: macro_config.h:117
std::vector< float > l1tmuonsrefetamax_
Definition: macro_config.h:88
int njetsmax_
Definition: macro_config.h:50
int torefnmin_[10]
Definition: macro_config.h:42
std::vector< std::string > hltPaths_
Definition: macro_config.h:123
std::vector< std::string > triggerObjectsRef_
Definition: macro_config.h:122
std::vector< float > jetsbtagmin_
Definition: macro_config.h:55
std::vector< float > muonsptmax_
Definition: macro_config.h:78
float ptimbalmax_
Definition: macro_config.h:104
std::string jetsCol_
Definition: macro_config.h:132
int nlumis_
Definition: macro_config.h:16
std::string l1tjetsCol_
Definition: macro_config.h:134
std::vector< float > jetsetamax_
Definition: macro_config.h:54
std::string jersf_
Definition: macro_config.h:71
std::vector< float > torefptmin_[10]
Definition: macro_config.h:43
std::vector< int > triggerObjectsMatches_
Definition: macro_config.h:120
std::vector< float > l1tmuonsetamax_
Definition: macro_config.h:84
std::vector< float > toetamax_[10]
Definition: macro_config.h:40
std::string jetsid_
Definition: macro_config.h:56
int nmuonsmin_
Definition: macro_config.h:76
std::vector< float > toptmin_[10]
Definition: macro_config.h:39
bool psweight_
Definition: macro_config.h:32
std::string json_
Definition: macro_config.h:23
std::vector< float > ptmin_
Definition: macro_config.h:94
bool matchonoff_
Definition: macro_config.h:29
int njetsmin_
Definition: macro_config.h:49
int l1tmuonsrefnmin_
Definition: macro_config.h:86
std::vector< float > muonsptmin_
Definition: macro_config.h:77
float matchonoffdrmax_
Definition: macro_config.h:30
float btagwploose_
Definition: macro_config.h:108
std::string triggerObjDir_
Definition: macro_config.h:139
float detamax_
Definition: macro_config.h:101
bool isMC_
Definition: macro_config.h:19
std::vector< float > etamax_
Definition: macro_config.h:96
std::vector< float > l1tjetsrefetamax_
Definition: macro_config.h:64
std::string seedfile_
Definition: macro_config.h:26
std::string jerpt_
Definition: macro_config.h:70
std::vector< float > muonsetamax_
Definition: macro_config.h:79
bool trigemul_
Definition: macro_config.h:34
std::string treePath_
Definition: macro_config.h:131
int runmin_
Definition: macro_config.h:17
std::vector< std::string > hltPaths2_
Definition: macro_config.h:125
std::string cfg_
Definition: macro_config.h:13
float psnorm_
Definition: macro_config.h:33
std::vector< std::string > triggerObjectsJets_
Definition: macro_config.h:127
std::string hltPathsLogic_
Definition: macro_config.h:124
std::string l1Seed_
Definition: macro_config.h:116
std::string inputlist_
Definition: macro_config.h:21
int nmin_
Definition: macro_config.h:92
std::vector< float > jetsptmax_
Definition: macro_config.h:53
int nmax_
Definition: macro_config.h:93
std::vector< float > l1tmuonsrefptmin_
Definition: macro_config.h:87
std::string l1tmuonsCol_
Definition: macro_config.h:135
std::vector< float > jetsptmin_
Definition: macro_config.h:52
std::string btagwp_
Definition: macro_config.h:107
int runmax_
Definition: macro_config.h:18
std::vector< float > prescaleEra_
Definition: macro_config.h:142
std::vector< std::string > triggerObjectsMuons_
Definition: macro_config.h:128
std::string genParticleCol_
Definition: macro_config.h:137
std::string genjetsCol_
Definition: macro_config.h:138
bool matchonoffref_
Definition: macro_config.h:31
std::vector< float > l1tjetsetamax_
Definition: macro_config.h:60
int nbjetsmin_
Definition: macro_config.h:51
std::vector< float > l1tjetsptmin_
Definition: macro_config.h:59
std::string hltPath_
Definition: macro_config.h:115
bool signalregion_
Definition: macro_config.h:20
float dphimin_
Definition: macro_config.h:102
std::vector< std::string > triggerObjects_
Definition: macro_config.h:119
std::vector< float > ptmax_
Definition: macro_config.h:95
int nevtmax_
Definition: macro_config.h:15
int l1tmuonsnmin_
Definition: macro_config.h:82
std::vector< float > l1tjetsrefptmin_
Definition: macro_config.h:63
float drmin_
Definition: macro_config.h:99
int tonmin_[10]
Definition: macro_config.h:38
std::string l1SeedRef_
Definition: macro_config.h:118
std::string muonsid_
Definition: macro_config.h:80
int seed_
Definition: macro_config.h:25
int l1tjetsnmin_
Definition: macro_config.h:58
float drmax_
Definition: macro_config.h:100
std::string btagalgo_
Definition: macro_config.h:106
std::vector< int > triggerObjectsMatchesRank_
Definition: macro_config.h:121
std::string btagsf_
Definition: macro_config.h:67
float btagwpmedium_
Definition: macro_config.h:109
std::string outputRoot_
Definition: macro_config.h:22
std::vector< float > l1tmuonsptmin_
Definition: macro_config.h:83
float btagwptight_
Definition: macro_config.h:110
std::string triggerCol_
Definition: macro_config.h:136
std::string hltPathsLogic2_
Definition: macro_config.h:126
float nonbtagwp_
Definition: macro_config.h:112

Variable Documentation

std::string btagalgo_

Definition at line 106 of file macro_config.h.

Referenced by macro_config(), and main().

std::string btagsf_

Definition at line 67 of file macro_config.h.

Referenced by macro_config(), and main().

std::string btagwp_

Definition at line 107 of file macro_config.h.

Referenced by macro_config(), and main().

float btagwploose_

Definition at line 108 of file macro_config.h.

Referenced by btagMin(), and macro_config().

float btagwpmedium_

Definition at line 109 of file macro_config.h.

Referenced by btagMin(), and macro_config().

float btagwptight_

Definition at line 110 of file macro_config.h.

Referenced by btagMin(), macro_config(), and main().

std::string cfg_

Definition at line 13 of file macro_config.h.

Referenced by macro_config().

float detamax_

Definition at line 101 of file macro_config.h.

Referenced by macro_config(), and main().

float dphimin_

Definition at line 102 of file macro_config.h.

Referenced by macro_config().

float drmax_

Definition at line 100 of file macro_config.h.

Referenced by macro_config().

float drmin_

Definition at line 99 of file macro_config.h.

Referenced by macro_config(), and main().

std::vector<float> etamax_

Definition at line 96 of file macro_config.h.

Referenced by macro_config().

std::string genjetsCol_

Definition at line 138 of file macro_config.h.

Referenced by macro_config(), and main().

std::string genParticleCol_

Definition at line 137 of file macro_config.h.

Referenced by macro_config(), and main().

std::string hltPath_

Definition at line 115 of file macro_config.h.

Referenced by macro_config(), and main().

std::string hltPathRef_

Definition at line 117 of file macro_config.h.

Referenced by macro_config().

std::vector<std::string> hltPaths2_

Definition at line 125 of file macro_config.h.

Referenced by macro_config().

std::vector<std::string> hltPaths_

Definition at line 123 of file macro_config.h.

Referenced by macro_config().

std::string hltPathsLogic2_

Definition at line 126 of file macro_config.h.

Referenced by macro_config().

std::string hltPathsLogic_

Definition at line 124 of file macro_config.h.

Referenced by macro_config().

std::string inputlist_

Definition at line 21 of file macro_config.h.

Referenced by macro_config(), and main().

bool isMC_

Definition at line 19 of file macro_config.h.

Referenced by macro_config(), and main().

std::string jerpt_

Definition at line 70 of file macro_config.h.

Referenced by macro_config(), and main().

std::string jersf_

Definition at line 71 of file macro_config.h.

Referenced by macro_config(), and main().

std::vector<float> jetsbtagmin_

Definition at line 55 of file macro_config.h.

Referenced by macro_config().

std::string jetsCol_

Definition at line 132 of file macro_config.h.

Referenced by macro_config(), and main().

std::vector<float> jetsetamax_

Definition at line 54 of file macro_config.h.

Referenced by macro_config(), and main().

std::string jetsid_

Definition at line 56 of file macro_config.h.

Referenced by macro_config().

std::vector<float> jetsptmax_

Definition at line 53 of file macro_config.h.

Referenced by macro_config().

std::vector<float> jetsptmin_

Definition at line 52 of file macro_config.h.

Referenced by macro_config(), and main().

std::string json_

Definition at line 23 of file macro_config.h.

Referenced by macro_config(), and main().

std::string l1Seed_

Definition at line 116 of file macro_config.h.

Referenced by macro_config(), and main().

std::string l1SeedRef_

Definition at line 118 of file macro_config.h.

Referenced by macro_config().

std::string l1tjetsCol_

Definition at line 134 of file macro_config.h.

Referenced by macro_config().

std::vector<float> l1tjetsetamax_

Definition at line 60 of file macro_config.h.

Referenced by macro_config().

int l1tjetsnmin_

Definition at line 58 of file macro_config.h.

Referenced by macro_config().

std::vector<float> l1tjetsptmin_

Definition at line 59 of file macro_config.h.

Referenced by macro_config().

std::vector<float> l1tjetsrefetamax_

Definition at line 64 of file macro_config.h.

Referenced by macro_config().

int l1tjetsrefnmin_

Definition at line 62 of file macro_config.h.

Referenced by macro_config().

std::vector<float> l1tjetsrefptmin_

Definition at line 63 of file macro_config.h.

Referenced by macro_config().

std::string l1tmuonsCol_

Definition at line 135 of file macro_config.h.

Referenced by macro_config().

std::vector<float> l1tmuonsetamax_

Definition at line 84 of file macro_config.h.

Referenced by macro_config().

int l1tmuonsnmin_

Definition at line 82 of file macro_config.h.

Referenced by macro_config().

std::vector<float> l1tmuonsptmin_

Definition at line 83 of file macro_config.h.

Referenced by macro_config().

std::vector<float> l1tmuonsrefetamax_

Definition at line 88 of file macro_config.h.

Referenced by macro_config().

int l1tmuonsrefnmin_

Definition at line 86 of file macro_config.h.

Referenced by macro_config().

std::vector<float> l1tmuonsrefptmin_

Definition at line 87 of file macro_config.h.

Referenced by macro_config().

bool matchonoff_

Definition at line 29 of file macro_config.h.

Referenced by macro_config().

float matchonoffdrmax_

Definition at line 30 of file macro_config.h.

Referenced by macro_config().

bool matchonoffref_

Definition at line 31 of file macro_config.h.

Referenced by macro_config().

std::string muonsCol_

Definition at line 133 of file macro_config.h.

Referenced by macro_config().

std::vector<float> muonsetamax_

Definition at line 79 of file macro_config.h.

Referenced by macro_config().

std::string muonsid_

Definition at line 80 of file macro_config.h.

Referenced by macro_config().

std::vector<float> muonsptmax_

Definition at line 78 of file macro_config.h.

Referenced by macro_config().

std::vector<float> muonsptmin_

Definition at line 77 of file macro_config.h.

Referenced by macro_config().

int nbjetsmin_

Definition at line 51 of file macro_config.h.

Referenced by macro_config().

int nevtmax_

Definition at line 15 of file macro_config.h.

Referenced by macro_config(), and main().

int njetsmax_

Definition at line 50 of file macro_config.h.

Referenced by macro_config().

int njetsmin_

Definition at line 49 of file macro_config.h.

Referenced by macro_config(), and main().

int nlumis_

Definition at line 16 of file macro_config.h.

Referenced by macro_config().

int nmax_

Definition at line 93 of file macro_config.h.

Referenced by macro_config().

int nmin_

Definition at line 92 of file macro_config.h.

Referenced by macro_config().

int nmuonsmin_

Definition at line 76 of file macro_config.h.

Referenced by macro_config().

float nonbtagwp_

Definition at line 112 of file macro_config.h.

Referenced by macro_config(), and main().

std::string outputRoot_

Definition at line 22 of file macro_config.h.

Referenced by macro_config(), and main().

std::vector<float> prescaleEra_

Definition at line 142 of file macro_config.h.

Referenced by macro_config().

float psnorm_

Definition at line 33 of file macro_config.h.

Referenced by macro_config().

bool psweight_

Definition at line 32 of file macro_config.h.

Referenced by macro_config().

float ptimbalmax_

Definition at line 104 of file macro_config.h.

Referenced by macro_config().

std::vector<float> ptmax_

Definition at line 95 of file macro_config.h.

Referenced by macro_config().

std::vector<float> ptmin_

Definition at line 94 of file macro_config.h.

Referenced by macro_config().

int runmax_

Definition at line 18 of file macro_config.h.

Referenced by macro_config().

int runmin_

Definition at line 17 of file macro_config.h.

Referenced by macro_config().

int seed_

Definition at line 25 of file macro_config.h.

Referenced by macro_config().

std::string seedfile_

Definition at line 26 of file macro_config.h.

Referenced by macro_config().

bool signalregion_

Definition at line 20 of file macro_config.h.

Referenced by macro_config(), and main().

std::vector<float> toetamax_[10]

Definition at line 40 of file macro_config.h.

Referenced by macro_config().

int tonmin_[10]

Definition at line 38 of file macro_config.h.

Referenced by macro_config().

std::vector<float> toptmin_[10]

Definition at line 39 of file macro_config.h.

Referenced by macro_config().

std::vector<float> torefetamax_[10]

Definition at line 44 of file macro_config.h.

Referenced by macro_config().

int torefnmin_[10]

Definition at line 42 of file macro_config.h.

Referenced by macro_config().

std::vector<float> torefptmin_[10]

Definition at line 43 of file macro_config.h.

Referenced by macro_config().

std::string treePath_

Definition at line 131 of file macro_config.h.

Referenced by macro_config().

bool trigemul_

Definition at line 34 of file macro_config.h.

Referenced by macro_config().

std::string triggerCol_

Definition at line 136 of file macro_config.h.

Referenced by macro_config(), and main().

std::string triggerObjDir_

Definition at line 139 of file macro_config.h.

Referenced by macro_config(), and main().

std::vector<std::string> triggerObjects_

Definition at line 119 of file macro_config.h.

Referenced by macro_config(), and main().

std::vector<std::string> triggerObjectsJets_

Definition at line 127 of file macro_config.h.

Referenced by macro_config(), and main().

std::vector<int> triggerObjectsMatches_

Definition at line 120 of file macro_config.h.

Referenced by macro_config().

std::vector<int> triggerObjectsMatchesRank_

Definition at line 121 of file macro_config.h.

Referenced by macro_config().

std::vector<std::string> triggerObjectsMuons_

Definition at line 128 of file macro_config.h.

Referenced by macro_config().

std::vector<std::string> triggerObjectsRef_

Definition at line 122 of file macro_config.h.

Referenced by macro_config().