CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1Validator.h
Go to the documentation of this file.
1 #ifndef L1Validator_h
2 #define L1Validator_h
3 
4 // -*- C++ -*-
5 //
6 // Package: L1T
7 // Class: L1Validator
8 //
16 //
17 // Original Author: Scott Wilbur
18 // Created: Wed, 28 Aug 2013 09:42:55 GMT
19 // $Id$
20 //
21 //
22 
23 
24 // system include files
25 #include <memory>
26 #include <iostream>
27 #include <string>
28 #include <vector>
29 
30 // user include files
33 
39 
50 
52 
54 
55 //
56 // class declaration
57 //
58 
59 class L1Validator : public edm::EDAnalyzer {
60  public:
61  explicit L1Validator(const edm::ParameterSet&);
62  ~L1Validator();
63 
64  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
65 
66 
67  private:
68  //virtual void beginJob() override;
69  //virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
70  virtual void endJob() override;
71 
72  virtual void beginRun(edm::Run const&, edm::EventSetup const&) override;
73  virtual void endRun(edm::Run const&, edm::EventSetup const&) override;
74  //virtual void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
75  //virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
76  void analyze(const edm::Event&, const edm::EventSetup&);
77 
78  // ----------member data ---------------------------
82 
90  //edm::EDGetTokenT<l1extra::L1EtMissParticleCollection> _L1ExtraMETSource;
91 
93 
94  //---------------helper functions------------------
95  private:
96  const reco::LeafCandidate *FindBest(const reco::GenParticle *, const std::vector<l1extra::L1EmParticle> *, const std::vector<l1extra::L1EmParticle> *);
97  const reco::LeafCandidate *FindBest(const reco::GenParticle *, const std::vector<l1extra::L1JetParticle> *, const std::vector<l1extra::L1JetParticle> *);
98  const reco::LeafCandidate *FindBest(const reco::GenParticle *, const std::vector<l1extra::L1MuonParticle> *);
99 };
100 
101 //
102 // constants, enums and typedefs
103 //
104 
105 //
106 // static data member definitions
107 //
108 
109 //
110 // constructors and destructor
111 //
112 
113 #endif
std::string _fileName
Definition: L1Validator.h:81
virtual void endJob() override
Definition: L1Validator.cc:166
edm::EDGetTokenT< reco::GenParticleCollection > _GenSource
Definition: L1Validator.h:83
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: L1Validator.cc:274
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: L1Validator.cc:181
L1Validator(const edm::ParameterSet &)
Definition: L1Validator.cc:54
edm::EDGetTokenT< l1extra::L1JetParticleCollection > _L1ExtraForJetSource
Definition: L1Validator.h:87
L1ValidatorHists * _Hists
Definition: L1Validator.h:92
std::string _dirName
Definition: L1Validator.h:80
DQMStore * _dbe
Definition: L1Validator.h:79
edm::EDGetTokenT< l1extra::L1JetParticleCollection > _L1ExtraTauJetSource
Definition: L1Validator.h:88
edm::EDGetTokenT< l1extra::L1MuonParticleCollection > _L1ExtraMuonSource
Definition: L1Validator.h:89
edm::EDGetTokenT< l1extra::L1EmParticleCollection > _L1ExtraIsoEGSource
Definition: L1Validator.h:84
const reco::LeafCandidate * FindBest(const reco::GenParticle *, const std::vector< l1extra::L1EmParticle > *, const std::vector< l1extra::L1EmParticle > *)
Definition: L1Validator.cc:202
edm::EDGetTokenT< l1extra::L1EmParticleCollection > _L1ExtraNonIsoEGSource
Definition: L1Validator.h:85
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: L1Validator.cc:174
edm::EDGetTokenT< l1extra::L1JetParticleCollection > _L1ExtraCenJetSource
Definition: L1Validator.h:86
void analyze(const edm::Event &, const edm::EventSetup &)
Definition: L1Validator.cc:76
Definition: Run.h:41