DESY Hbb Analysis Framework
Functions
AnalyserInit.cc File Reference
#include "Analysis/Tools/interface/Analyser.h"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 10 of file AnalyserInit.cc.

References analysis::tools::BaseAnalyser::actionApplyPileupWeight(), analysis::tools::BaseAnalyser::analysis(), analysis::tools::Analyser::event(), and analysis::tools::BaseAnalyser::nEvents().

11 {
12  TH1::SetDefaultSumw2(); // proper treatment of errors when scaling histograms
13 
14  Analyser analyser(argc,argv);
15 
16  // you can always get the ususal analysis class
17  auto analysis = analyser.analysis();
18 
19  for ( int i = 0 ; i < analyser.nEvents() ; ++i )
20  {
21  if ( ! analyser.event(i) ) continue;
22 
23 // PILEUP RE-WEIGHT
24  analyser.actionApplyPileupWeight();
25 
26  } //end event loop
27 } // end main