CMS 3D CMS Logo

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 
11 
15 
17 public:
20 
21 private:
23 
24  void analyze(const edm::Event &, const edm::EventSetup &) override;
25  void beginJob() override {}
26  void endJob() override;
27 
30 
31  void saveParameters(const char *name);
32  void saveXml(const char *name);
33  void saveLayerPlots();
34 
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