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
SplitMode
m_splitMode
;
37
bool
m_skipAfterLastDetector
;
38
bool
m_skipBeforeFirstDetector
;
39
bool
m_saveSummaryPlot
;
40
bool
m_saveDetailedPlots
;
41
bool
m_saveParameters
;
42
bool
m_saveXml
;
43
bool
m_isHGCal
;
44
bool
m_isHFNose
;
45
std::vector<DD4hep_MaterialAccountingGroup *>
m_groups
;
46
std::vector<std::string>
m_groupNames
;
47
DD4hep_TrackingMaterialPlotter
*
m_plotter
;
48
};
49
50
#endif // DD4hep_TrackingMaterialAnalyser_h
DD4hep_TrackingMaterialAnalyser::m_groupNames
std::vector< std::string > m_groupNames
Definition:
DD4hep_TrackingMaterialAnalyser.h:46
DD4hep_TrackingMaterialPlotter
Definition:
DD4hep_TrackingMaterialPlotter.h:16
EDAnalyzer.h
DD4hep_TrackingMaterialAnalyser::INNER_LAYER
Definition:
DD4hep_TrackingMaterialAnalyser.h:22
edm::EDGetTokenT
Definition:
EDGetToken.h:33
DD4hep_TrackingMaterialAnalyser::saveLayerPlots
void saveLayerPlots()
Definition:
DD4hep_TrackingMaterialAnalyser.cc:116
DD4hep_TrackingMaterialAnalyser::m_saveParameters
bool m_saveParameters
Definition:
DD4hep_TrackingMaterialAnalyser.h:41
DD4hep_TrackingMaterialAnalyser::m_splitMode
SplitMode m_splitMode
Definition:
DD4hep_TrackingMaterialAnalyser.h:36
DD4hep_TrackingMaterialAnalyser::m_saveXml
bool m_saveXml
Definition:
DD4hep_TrackingMaterialAnalyser.h:42
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:143
DD4hep_TrackingMaterialAnalyser::m_isHGCal
bool m_isHGCal
Definition:
DD4hep_TrackingMaterialAnalyser.h:43
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:45
MaterialAccountingTrack.h
DD4hep_TrackingMaterialAnalyser::endJob
void endJob() override
Definition:
DD4hep_TrackingMaterialAnalyser.cc:124
DD4hep_TrackingMaterialAnalyser::m_skipBeforeFirstDetector
bool m_skipBeforeFirstDetector
Definition:
DD4hep_TrackingMaterialAnalyser.h:38
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
DD4hep_TrackingMaterialAnalyser::NEAREST_LAYER
Definition:
DD4hep_TrackingMaterialAnalyser.h:22
DD4hep_TrackingMaterialAnalyser::m_saveSummaryPlot
bool m_saveSummaryPlot
Definition:
DD4hep_TrackingMaterialAnalyser.h:39
MaterialAccountingTrack
Definition:
MaterialAccountingTrack.h:11
DD4hep_TrackingMaterialAnalyser::m_plotter
DD4hep_TrackingMaterialPlotter * m_plotter
Definition:
DD4hep_TrackingMaterialAnalyser.h:47
DD4hep_TrackingMaterialAnalyser::saveXml
void saveXml(const char *name)
Definition:
DD4hep_TrackingMaterialAnalyser.cc:100
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:40
InputTag.h
DD4hep_TrackingMaterialAnalyser::~DD4hep_TrackingMaterialAnalyser
~DD4hep_TrackingMaterialAnalyser() override
Definition:
DD4hep_TrackingMaterialAnalyser.cc:66
DD4hep_TrackingMaterialAnalyser::m_skipAfterLastDetector
bool m_skipAfterLastDetector
Definition:
DD4hep_TrackingMaterialAnalyser.h:37
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:44
HLT_2018_cff.track
track
Definition:
HLT_2018_cff.py:10352
DD4hep_TrackingMaterialAnalyser::split
void split(MaterialAccountingTrack &track)
Definition:
DD4hep_TrackingMaterialAnalyser.cc:179
DD4hep_TrackingMaterialAnalyser::saveParameters
void saveParameters(const char *name)
Definition:
DD4hep_TrackingMaterialAnalyser.cc:72
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:337
Generated for CMSSW Reference Manual by
1.8.16