CMS 3D CMS Logo

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 
40 
58 
61 
63 
64 //
65 // class declaration
66 //
67 
68 class L1Validator : public DQMEDAnalyzer {
69  public:
70  explicit L1Validator(const edm::ParameterSet&);
71  ~L1Validator();
72 
73  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
74  void analyze(const edm::Event&, const edm::EventSetup&) override;
75 
76  protected:
77  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
78 
79  private:
80  // ----------member data ---------------------------
83 
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
edm::EDGetTokenT< reco::GenJetCollection > _L1GenJetSource
Definition: L1Validator.h:90
std::string _fileName
Definition: L1Validator.h:82
edm::EDGetTokenT< reco::GenParticleCollection > _GenSource
Definition: L1Validator.h:84
edm::EDGetTokenT< GenEventInfoProduct > _srcToken
Definition: L1Validator.h:89
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: L1Validator.cc:296
L1Validator(const edm::ParameterSet &)
Definition: L1Validator.cc:54
edm::EDGetTokenT< l1t::TauBxCollection > _L1TauBXSource
Definition: L1Validator.h:87
edm::EDGetTokenT< l1t::JetBxCollection > _L1JetBXSource
Definition: L1Validator.h:88
std::string _dirName
Definition: L1Validator.h:81
edm::EDGetTokenT< l1t::MuonBxCollection > _L1MuonBXSource
Definition: L1Validator.h:85
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1Validator.cc:77
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: L1Validator.cc:72
L1ValidatorHists _Hists
Definition: L1Validator.h:92
const reco::LeafCandidate * FindBest(const reco::GenParticle *, const std::vector< l1extra::L1EmParticle > *, const std::vector< l1extra::L1EmParticle > *)
Definition: L1Validator.cc:224
edm::EDGetTokenT< l1t::EGammaBxCollection > _L1EGammaBXSource
Definition: L1Validator.h:86
Definition: Run.h:42