SimTracker
TrackerMaterialAnalysis
plugins
dd4hep
DD4hep_TrackingMaterialAnalyser.h
Go to the documentation of this file.
1
#ifndef DD4hep_TrackingMaterialAnalyser_h
2
#define DD4hep_TrackingMaterialAnalyser_h
3
#include <string>
4
#include <vector>
5
6
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
7
#include "
FWCore/Framework/interface/Event.h
"
8
#include "
FWCore/Framework/interface/EventSetup.h
"
9
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
10
#include "
FWCore/Utilities/interface/InputTag.h
"
11
12
#include "
SimDataFormats/ValidationFormats/interface/MaterialAccountingTrack.h
"
13
#include "
DD4hep_MaterialAccountingGroup.h
"
14
#include "
DD4hep_TrackingMaterialPlotter.h
"
15
16
class
DD4hep_TrackingMaterialAnalyser
:
public
edm::one::EDAnalyzer
<> {
17
public
:
18
explicit
DD4hep_TrackingMaterialAnalyser
(
const
edm::ParameterSet
&);
19
~DD4hep_TrackingMaterialAnalyser
()
override
;
20
21
private
:
22
enum
SplitMode
{
NEAREST_LAYER
,
INNER_LAYER
,
OUTER_LAYER
,
UNDEFINED
};
23
24
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
25
void
beginJob
()
override
{}
26
void
endJob
()
override
;
27
28
void
split
(
MaterialAccountingTrack
&
track
);
29
int
findLayer
(
const
MaterialAccountingDetector
&
detector
);
30
31
void
saveParameters
(
const
char
*
name
);
32
void
saveXml
(
const
char
*
name
);
33
void
saveLayerPlots
();
34
35
edm::EDGetTokenT<std::vector<MaterialAccountingTrack>
>
m_materialToken
;
36
edm::ESInputTag
m_tag
;
37
SplitMode
m_splitMode
;
38
bool
m_skipAfterLastDetector
;
39
bool
m_skipBeforeFirstDetector
;
40
bool
m_saveSummaryPlot
;
41
bool
m_saveDetailedPlots
;
42
bool
m_saveParameters
;
43
bool
m_saveXml
;
44
bool
m_isHGCal
;
45
bool
m_isHFNose
;
46
std::vector<DD4hep_MaterialAccountingGroup *>
m_groups
;
47
std::vector<std::string>
m_groupNames
;
48
std::unique_ptr<DD4hep_TrackingMaterialPlotter>
m_plotter
;
49
};
50
51
#endif // DD4hep_TrackingMaterialAnalyser_h
DD4hep_TrackingMaterialAnalyser::m_groupNames
std::vector< std::string > m_groupNames
Definition:
DD4hep_TrackingMaterialAnalyser.h:47
EDAnalyzer.h
edm::ESInputTag
Definition:
ESInputTag.h:87
HLT_FULL_cff.track
track
Definition:
HLT_FULL_cff.py:11776
DD4hep_TrackingMaterialAnalyser::m_tag
edm::ESInputTag m_tag
Definition:
DD4hep_TrackingMaterialAnalyser.h:36
DD4hep_TrackingMaterialAnalyser::INNER_LAYER
Definition:
DD4hep_TrackingMaterialAnalyser.h:22
edm::EDGetTokenT
Definition:
EDGetToken.h:33
DD4hep_TrackingMaterialAnalyser::saveLayerPlots
void saveLayerPlots()
Definition:
DD4hep_TrackingMaterialAnalyser.cc:127
DD4hep_TrackingMaterialAnalyser::m_saveParameters
bool m_saveParameters
Definition:
DD4hep_TrackingMaterialAnalyser.h:42
DD4hep_TrackingMaterialAnalyser::m_splitMode
SplitMode m_splitMode
Definition:
DD4hep_TrackingMaterialAnalyser.h:37
DD4hep_TrackingMaterialAnalyser::m_saveXml
bool m_saveXml
Definition:
DD4hep_TrackingMaterialAnalyser.h:43
DD4hep_TrackingMaterialAnalyser::SplitMode
SplitMode
Definition:
DD4hep_TrackingMaterialAnalyser.h:22
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
DD4hep_TrackingMaterialAnalyser::UNDEFINED
Definition:
DD4hep_TrackingMaterialAnalyser.h:22
DD4hep_TrackingMaterialAnalyser::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
DD4hep_TrackingMaterialAnalyser.cc:154
DD4hep_TrackingMaterialAnalyser::m_isHGCal
bool m_isHGCal
Definition:
DD4hep_TrackingMaterialAnalyser.h:44
DD4hep_MaterialAccountingGroup.h
DD4hep_TrackingMaterialPlotter.h
MaterialAccountingDetector
Definition:
MaterialAccountingDetector.h:15
DD4hep_TrackingMaterialAnalyser::m_groups
std::vector< DD4hep_MaterialAccountingGroup * > m_groups
Definition:
DD4hep_TrackingMaterialAnalyser.h:46
DD4hep_TrackingMaterialAnalyser::m_plotter
std::unique_ptr< DD4hep_TrackingMaterialPlotter > m_plotter
Definition:
DD4hep_TrackingMaterialAnalyser.h:48
MaterialAccountingTrack.h
DD4hep_TrackingMaterialAnalyser::endJob
void endJob() override
Definition:
DD4hep_TrackingMaterialAnalyser.cc:135
DD4hep_TrackingMaterialAnalyser::m_skipBeforeFirstDetector
bool m_skipBeforeFirstDetector
Definition:
DD4hep_TrackingMaterialAnalyser.h:39
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
DD4hep_TrackingMaterialAnalyser::NEAREST_LAYER
Definition:
DD4hep_TrackingMaterialAnalyser.h:22
DD4hep_TrackingMaterialAnalyser::m_saveSummaryPlot
bool m_saveSummaryPlot
Definition:
DD4hep_TrackingMaterialAnalyser.h:40
MaterialAccountingTrack
Definition:
MaterialAccountingTrack.h:10
DD4hep_TrackingMaterialAnalyser::saveXml
void saveXml(const char *name)
Definition:
DD4hep_TrackingMaterialAnalyser.cc:111
DD4hep_TrackingMaterialAnalyser::OUTER_LAYER
Definition:
DD4hep_TrackingMaterialAnalyser.h:22
edm::EventSetup
Definition:
EventSetup.h:57
DD4hep_TrackingMaterialAnalyser::m_saveDetailedPlots
bool m_saveDetailedPlots
Definition:
DD4hep_TrackingMaterialAnalyser.h:41
InputTag.h
DD4hep_TrackingMaterialAnalyser::~DD4hep_TrackingMaterialAnalyser
~DD4hep_TrackingMaterialAnalyser() override
Definition:
DD4hep_TrackingMaterialAnalyser.cc:67
DD4hep_TrackingMaterialAnalyser::m_skipAfterLastDetector
bool m_skipAfterLastDetector
Definition:
DD4hep_TrackingMaterialAnalyser.h:38
DD4hep_TrackingMaterialAnalyser
Definition:
DD4hep_TrackingMaterialAnalyser.h:16
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
EventSetup.h
DD4hep_TrackingMaterialAnalyser::m_materialToken
edm::EDGetTokenT< std::vector< MaterialAccountingTrack > > m_materialToken
Definition:
DD4hep_TrackingMaterialAnalyser.h:35
hgcalTestNeighbor_cfi.detector
detector
Definition:
hgcalTestNeighbor_cfi.py:6
DD4hep_TrackingMaterialAnalyser::m_isHFNose
bool m_isHFNose
Definition:
DD4hep_TrackingMaterialAnalyser.h:45
DD4hep_TrackingMaterialAnalyser::split
void split(MaterialAccountingTrack &track)
Definition:
DD4hep_TrackingMaterialAnalyser.cc:192
DD4hep_TrackingMaterialAnalyser::saveParameters
void saveParameters(const char *name)
Definition:
DD4hep_TrackingMaterialAnalyser.cc:70
ParameterSet.h
edm::Event
Definition:
Event.h:73
DD4hep_TrackingMaterialAnalyser::beginJob
void beginJob() override
Definition:
DD4hep_TrackingMaterialAnalyser.h:25
DD4hep_TrackingMaterialAnalyser::DD4hep_TrackingMaterialAnalyser
DD4hep_TrackingMaterialAnalyser(const edm::ParameterSet &)
Definition:
DD4hep_TrackingMaterialAnalyser.cc:27
DD4hep_TrackingMaterialAnalyser::findLayer
int findLayer(const MaterialAccountingDetector &detector)
Definition:
DD4hep_TrackingMaterialAnalyser.cc:352
Generated for CMSSW Reference Manual by
1.8.16