Validation
EcalHits
interface
EcalSimHitsValidation.h
Go to the documentation of this file.
1
#ifndef EcalSimHitsValidation_H
2
#define EcalSimHitsValidation_H
3
4
/*
5
* \file EcalSimHitsValidation.h
6
*
7
* \author C.Rovelli
8
*
9
*/
10
11
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
12
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
13
14
#include "
FWCore/Framework/interface/ESHandle.h
"
15
#include "
FWCore/Framework/interface/Event.h
"
16
#include "
FWCore/Framework/interface/EventSetup.h
"
17
#include "
FWCore/Framework/interface/MakerMacros.h
"
18
19
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
20
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
21
22
#include "
DQMServices/Core/interface/DQMEDAnalyzer.h
"
23
24
#include "
SimDataFormats/CaloHit/interface/PCaloHit.h
"
25
#include "
SimDataFormats/CaloHit/interface/PCaloHitContainer.h
"
26
#include "
SimDataFormats/EncodedEventId/interface/EncodedEventId.h
"
27
#include "
SimDataFormats/GeneratorProducts/interface/HepMCProduct.h
"
28
#include "
SimDataFormats/Track/interface/SimTrack.h
"
29
#include "
SimDataFormats/Track/interface/SimTrackContainer.h
"
30
#include "
SimDataFormats/ValidationFormats/interface/PValidationFormats.h
"
31
#include "
SimDataFormats/Vertex/interface/SimVertex.h
"
32
#include "
SimDataFormats/Vertex/interface/SimVertexContainer.h
"
33
34
#include <map>
35
#include <vector>
36
37
class
EcalSimHitsValidation
:
public
DQMEDAnalyzer
{
38
typedef
std::map<uint32_t, float, std::less<uint32_t>>
MapType
;
39
40
public
:
42
EcalSimHitsValidation
(
const
edm::ParameterSet
&ps);
43
44
protected
:
45
void
bookHistograms
(
DQMStore::IBooker
&
ib
,
edm::Run
const
&,
edm::EventSetup
const
&
c
)
override
;
46
48
void
analyze
(
const
edm::Event
&
e
,
const
edm::EventSetup
&
c
)
override
;
49
50
private
:
51
std::string
g4InfoLabel
;
52
edm::EDGetTokenT<edm::HepMCProduct>
HepMCToken
;
53
edm::EDGetTokenT<edm::PCaloHitContainer>
EBHitsCollectionToken
;
54
edm::EDGetTokenT<edm::PCaloHitContainer>
EEHitsCollectionToken
;
55
edm::EDGetTokenT<edm::PCaloHitContainer>
ESHitsCollectionToken
;
56
57
bool
verbose_
;
58
59
MonitorElement
*
meGunEnergy_
;
60
MonitorElement
*
meGunEta_
;
61
MonitorElement
*
meGunPhi_
;
62
63
MonitorElement
*
meEBEnergyFraction_
;
64
MonitorElement
*
meEEEnergyFraction_
;
65
MonitorElement
*
meESEnergyFraction_
;
66
};
67
68
#endif
dqm::impl::MonitorElement
Definition:
MonitorElement.h:98
EcalSimHitsValidation::EBHitsCollectionToken
edm::EDGetTokenT< edm::PCaloHitContainer > EBHitsCollectionToken
Definition:
EcalSimHitsValidation.h:53
MessageLogger.h
ESHandle.h
edm::Run
Definition:
Run.h:45
edm::EDGetTokenT< edm::HepMCProduct >
EcalSimHitsValidation::meGunEnergy_
MonitorElement * meGunEnergy_
Definition:
EcalSimHitsValidation.h:59
EcalSimHitsValidation::meGunEta_
MonitorElement * meGunEta_
Definition:
EcalSimHitsValidation.h:60
EcalSimHitsValidation::meEEEnergyFraction_
MonitorElement * meEEEnergyFraction_
Definition:
EcalSimHitsValidation.h:64
EDAnalyzer.h
EcalSimHitsValidation
Definition:
EcalSimHitsValidation.h:37
EcalSimHitsValidation::meGunPhi_
MonitorElement * meGunPhi_
Definition:
EcalSimHitsValidation.h:61
EcalSimHitsValidation::meEBEnergyFraction_
MonitorElement * meEBEnergyFraction_
Definition:
EcalSimHitsValidation.h:63
EcalSimHitsValidation::verbose_
bool verbose_
Definition:
EcalSimHitsValidation.h:57
EcalSimHitsValidation::ESHitsCollectionToken
edm::EDGetTokenT< edm::PCaloHitContainer > ESHitsCollectionToken
Definition:
EcalSimHitsValidation.h:55
MakerMacros.h
SimVertex.h
DQMEDAnalyzer.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DQMEDAnalyzer
Definition:
DQMEDAnalyzer.py:1
EcalSimHitsValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &ib, edm::Run const &, edm::EventSetup const &c) override
Definition:
EcalSimHitsValidation.cc:34
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
EcalSimHitsValidation::EcalSimHitsValidation
EcalSimHitsValidation(const edm::ParameterSet &ps)
Constructor.
Definition:
EcalSimHitsValidation.cc:20
PCaloHit.h
cuy.ib
ib
Definition:
cuy.py:662
edm::EventSetup
Definition:
EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
EcalSimHitsValidation::g4InfoLabel
std::string g4InfoLabel
Definition:
EcalSimHitsValidation.h:51
EcalSimHitsValidation::meESEnergyFraction_
MonitorElement * meESEnergyFraction_
Definition:
EcalSimHitsValidation.h:65
Frameworkfwd.h
EcalSimHitsValidation::MapType
std::map< uint32_t, float, std::less< uint32_t > > MapType
Definition:
EcalSimHitsValidation.h:38
EcalSimHitsValidation::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition:
EcalSimHitsValidation.cc:57
EventSetup.h
PCaloHitContainer.h
dqm::implementation::IBooker
Definition:
DQMStore.h:43
EcalSimHitsValidation::EEHitsCollectionToken
edm::EDGetTokenT< edm::PCaloHitContainer > EEHitsCollectionToken
Definition:
EcalSimHitsValidation.h:54
SimTrack.h
ParameterSet.h
HepMCProduct.h
edm::Event
Definition:
Event.h:73
SimTrackContainer.h
SimVertexContainer.h
EcalSimHitsValidation::HepMCToken
edm::EDGetTokenT< edm::HepMCProduct > HepMCToken
Definition:
EcalSimHitsValidation.h:52
PValidationFormats.h
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
EncodedEventId.h
Generated for CMSSW Reference Manual by
1.8.16