CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GenXSecAnalyzer.h
Go to the documentation of this file.
1 #ifndef GENXSECANALYZER_H
2 #define GENXSECANALYZER_H
3 
4 // $Revision://
5 
6 // analyzer of a summary information product on filter efficiency for a user specified path
7 // meant for the generator filter efficiency calculation
8 
9 
10 // system include files
11 #include <memory>
12 #include <vector>
13 
14 // user include files
17 
26 //
27 // class declaration
28 //
29 
31 
32 
33 public:
34  explicit GenXSecAnalyzer(const edm::ParameterSet&);
36  const double final_xsec_value() const {return xsec_.value();}
37  const double final_xsec_error() const {return xsec_.error();}
38 
39 private:
40 
41  virtual void beginJob();
42  virtual void analyze(const edm::Event&, const edm::EventSetup&);
43  virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
44  virtual void endJob();
45  void compute();
46 
47 
48  // ----------member data --------------------------
49 
51  unsigned int theProcesses_size;
53 
54  // final cross sections
56  // statistics from additional generator filter
58 
59  // statistics from HepMC filter
61 
62  // statistics for event level efficiency, the size is the number of processes + 1
63  std::vector<GenFilterInfo> eventEffStat_;
64  // statistics from jet matching, the size is the number of processes + 1
65  std::vector<GenFilterInfo> jetMatchEffStat_;
66  // uncertainty-averaged cross sections before matching, the size is the number of processes + 1
67  std::vector<GenLumiInfoProduct::XSec> xsecBeforeMatching_;
68  // uncertainty-averaged cross sections after matching, the size is the number of processes + 1
69  std::vector<GenLumiInfoProduct::XSec> xsecAfterMatching_;
70  // the size depends on the number of MC with different LHE information
71  std::vector<GenLumiInfoProduct> products_;
72 
73 };
74 
75 #endif
std::vector< GenLumiInfoProduct::XSec > xsecBeforeMatching_
std::vector< GenFilterInfo > jetMatchEffStat_
std::vector< GenLumiInfoProduct > products_
GenFilterInfo filterOnlyEffStat_
const double final_xsec_error() const
unsigned int theProcesses_size
GenLumiInfoProduct::XSec xsec_
GenFilterInfo hepMCFilterEffStat_
const double final_xsec_value() const
std::vector< GenFilterInfo > eventEffStat_
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
virtual void beginJob()
virtual void endJob()
GenXSecAnalyzer(const edm::ParameterSet &)
std::vector< GenLumiInfoProduct::XSec > xsecAfterMatching_
virtual void analyze(const edm::Event &, const edm::EventSetup &)