DESY Hbb Analysis Framework
MssmHbbAnalysis.cc
Go to the documentation of this file.
2 
3 using namespace analysis;
4 using namespace analysis::tools;
5 using namespace analysis::mssmhbb;
6 
7 int main(int argc, char ** argv)
8 {
9  TH1::SetDefaultSumw2(); // proper treatment of errors when scaling histograms
10 
11  MssmHbbAnalyser mssmhbb(argc,argv);
12 
13  for ( int i = 0 ; i < mssmhbb.nEvents() ; ++i )
14  {
15  if ( ! mssmhbb.event(i) ) continue; // read event, run selection/json
16  if ( ! mssmhbb.selectionTrigger () ) continue; // trigger
17  if ( ! mssmhbb.preselection() ) continue; // preselection
18  if ( ! mssmhbb.jetCorrections() ) continue; // jet corrections
19  if ( ! mssmhbb.muonSelection() ) continue; // muon
20  if ( ! mssmhbb.jetSelection() ) continue; // jets
21  if ( ! mssmhbb.muonJet() ) continue; // muon-jet association
22  if ( ! mssmhbb.btagSelection() ) continue; // btagging
23  mssmhbb.endSelection();
24  }
25 } // end main
26 
27 
28 
29 
virtual bool muonJet(const bool &swap=false)
virtual bool event(const int &i)
Read event and perform basic selections and actions.
int main(int argc, char **argv)
virtual bool jetCorrections()
multiple actions: apply JER and b-tag regression corrections
int nEvents()
number of events to be processed
virtual bool preselection()
multiple actions: perform muon Id, jet Id and jet pileup Id selections
Definition: Analyser.cc:110