Validation
L1T
interface
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
// system include files
24
#include <iostream>
25
#include <memory>
26
#include <string>
27
#include <vector>
28
29
// user include files
30
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
31
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
32
33
#include "
FWCore/Common/interface/Provenance.h
"
34
#include "
FWCore/Framework/interface/ESHandle.h
"
35
#include "
FWCore/Framework/interface/Event.h
"
36
#include "
FWCore/Framework/interface/MakerMacros.h
"
37
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
38
#include "
FWCore/ServiceRegistry/interface/Service.h
"
39
40
#include "
DataFormats/JetReco/interface/GenJet.h
"
41
#include "
DataFormats/JetReco/interface/GenJetCollection.h
"
42
#include "
SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h
"
43
#include <
DataFormats/HepMCCandidate/interface/GenParticle.h
>
44
#include <
DataFormats/HepMCCandidate/interface/GenParticleFwd.h
>
45
#include <
DataFormats/L1Trigger/interface/EGamma.h
>
46
#include <
DataFormats/L1Trigger/interface/Jet.h
>
47
#include <
DataFormats/L1Trigger/interface/L1EmParticle.h
>
48
#include <
DataFormats/L1Trigger/interface/L1EmParticleFwd.h
>
49
#include <
DataFormats/L1Trigger/interface/L1EtMissParticle.h
>
50
#include <
DataFormats/L1Trigger/interface/L1EtMissParticleFwd.h
>
51
#include <
DataFormats/L1Trigger/interface/L1JetParticle.h
>
52
#include <
DataFormats/L1Trigger/interface/L1JetParticleFwd.h
>
53
#include <
DataFormats/L1Trigger/interface/L1MuonParticle.h
>
54
#include <
DataFormats/L1Trigger/interface/L1MuonParticleFwd.h
>
55
#include <
DataFormats/L1Trigger/interface/Muon.h
>
56
#include <
DataFormats/L1Trigger/interface/Tau.h
>
57
58
#include <
DQMServices/Core/interface/DQMEDAnalyzer.h
>
59
#include <
DQMServices/Core/interface/DQMStore.h
>
60
61
#include <
Validation/L1T/interface/L1ValidatorHists.h
>
62
63
//
64
// class declaration
65
//
66
67
class
L1Validator
:
public
DQMEDAnalyzer
{
68
public
:
69
explicit
L1Validator
(
const
edm::ParameterSet
&);
70
~L1Validator
()
override
;
71
72
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
&descriptions);
73
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
74
75
protected
:
76
void
bookHistograms
(
DQMStore::IBooker
&,
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
77
78
private
:
79
// ----------member data ---------------------------
80
std::string
_dirName
;
81
std::string
_fileName
;
82
83
edm::EDGetTokenT<reco::GenParticleCollection>
_GenSource
;
84
edm::EDGetTokenT<l1t::MuonBxCollection>
_L1MuonBXSource
;
85
edm::EDGetTokenT<l1t::EGammaBxCollection>
_L1EGammaBXSource
;
86
edm::EDGetTokenT<l1t::TauBxCollection>
_L1TauBXSource
;
87
edm::EDGetTokenT<l1t::JetBxCollection>
_L1JetBXSource
;
88
edm::EDGetTokenT<GenEventInfoProduct>
_srcToken
;
89
edm::EDGetTokenT<reco::GenJetCollection>
_L1GenJetSource
;
90
91
L1ValidatorHists
_Hists
;
92
93
//---------------helper functions------------------
94
private
:
95
const
reco::LeafCandidate
*
FindBest
(
const
reco::GenParticle
*,
96
const
std::vector<l1extra::L1EmParticle> *,
97
const
std::vector<l1extra::L1EmParticle> *);
98
const
reco::LeafCandidate
*
FindBest
(
const
reco::GenParticle
*,
99
const
std::vector<l1extra::L1JetParticle> *,
100
const
std::vector<l1extra::L1JetParticle> *);
101
const
reco::LeafCandidate
*
FindBest
(
const
reco::GenParticle
*,
const
std::vector<l1extra::L1MuonParticle> *);
102
};
103
104
//
105
// constants, enums and typedefs
106
//
107
108
//
109
// static data member definitions
110
//
111
112
//
113
// constructors and destructor
114
//
115
116
#endif
GenJetCollection.h
L1Validator::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
L1Validator.cc:332
L1Validator::_L1GenJetSource
edm::EDGetTokenT< reco::GenJetCollection > _L1GenJetSource
Definition:
L1Validator.h:89
L1MuonParticleFwd.h
ESHandle.h
L1Validator::_GenSource
edm::EDGetTokenT< reco::GenParticleCollection > _GenSource
Definition:
L1Validator.h:83
reco::GenParticle
Definition:
GenParticle.h:21
edm::Run
Definition:
Run.h:45
edm::EDGetTokenT< reco::GenParticleCollection >
Muon.h
L1Validator::~L1Validator
~L1Validator() override
Definition:
L1Validator.cc:68
Jet.h
DQMStore.h
L1ValidatorHists.h
EDAnalyzer.h
L1Validator::L1Validator
L1Validator(const edm::ParameterSet &)
Definition:
L1Validator.cc:54
GenParticle.h
L1Validator::_srcToken
edm::EDGetTokenT< GenEventInfoProduct > _srcToken
Definition:
L1Validator.h:88
MakerMacros.h
L1Validator::_dirName
std::string _dirName
Definition:
L1Validator.h:80
EGamma.h
Service.h
L1Validator::_L1JetBXSource
edm::EDGetTokenT< l1t::JetBxCollection > _L1JetBXSource
Definition:
L1Validator.h:87
GenParticleFwd.h
L1Validator::_L1TauBXSource
edm::EDGetTokenT< l1t::TauBxCollection > _L1TauBXSource
Definition:
L1Validator.h:86
DQMEDAnalyzer.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
L1EmParticleFwd.h
DQMEDAnalyzer
Definition:
DQMEDAnalyzer.py:1
L1JetParticleFwd.h
edm::ParameterSet
Definition:
ParameterSet.h:47
L1EtMissParticleFwd.h
GenEventInfoProduct.h
Event.h
L1Validator
Definition:
L1Validator.h:67
L1Validator::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition:
L1Validator.cc:70
L1Validator::_L1MuonBXSource
edm::EDGetTokenT< l1t::MuonBxCollection > _L1MuonBXSource
Definition:
L1Validator.h:84
edm::EventSetup
Definition:
EventSetup.h:58
L1EmParticle.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
L1MuonParticle.h
Frameworkfwd.h
L1Validator::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1Validator.cc:75
L1Validator::_L1EGammaBXSource
edm::EDGetTokenT< l1t::EGammaBxCollection > _L1EGammaBXSource
Definition:
L1Validator.h:85
Provenance.h
L1Validator::FindBest
const reco::LeafCandidate * FindBest(const reco::GenParticle *, const std::vector< l1extra::L1EmParticle > *, const std::vector< l1extra::L1EmParticle > *)
Definition:
L1Validator.cc:253
dqm::implementation::IBooker
Definition:
DQMStore.h:43
reco::LeafCandidate
Definition:
LeafCandidate.h:16
GenJet.h
L1EtMissParticle.h
ParameterSet.h
L1Validator::_Hists
L1ValidatorHists _Hists
Definition:
L1Validator.h:91
L1ValidatorHists
Definition:
L1ValidatorHists.h:23
edm::Event
Definition:
Event.h:73
L1JetParticle.h
Tau.h
L1Validator::_fileName
std::string _fileName
Definition:
L1Validator.h:81
Generated for CMSSW Reference Manual by
1.8.16