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 
30 class GenXSecAnalyzer : public edm::one::EDAnalyzer<edm::one::WatchLuminosityBlocks> {
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() override;
42  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
43  virtual void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
44  virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
45  virtual void endJob() override;
46  void compute();
47 
50 
54  GenFilterInfo totalEffStat_; // statistics from total filter
55  // ----------member data ---------------------------
56  std::vector<GenLumiInfoProduct> products_; // the size depends on the number of MC with different LHE information
57 };
58 
59 #endif
std::vector< GenLumiInfoProduct > products_
virtual void endJob() override
GenFilterInfo totalEffStat_
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
edm::EDGetTokenT< GenLumiInfoProduct > genLumiInfoToken_
const double final_xsec_error() const
GenFilterInfo jetMatchEffStat_
GenLumiInfoProduct::XSec xsec_
const double final_xsec_value() const
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
virtual void beginJob() override
edm::EDGetTokenT< GenFilterInfo > genFilterInfoToken_
GenXSecAnalyzer(const edm::ParameterSet &)