CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
29  int findLayer(const MaterialAccountingDetector &detector);
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
void analyze(const edm::Event &, const edm::EventSetup &) override
void split(MaterialAccountingTrack &track)
std::unique_ptr< DD4hep_TrackingMaterialPlotter > m_plotter
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > m_dddToken
DD4hep_TrackingMaterialAnalyser(const edm::ParameterSet &)
std::vector< DD4hep_MaterialAccountingGroup * > m_groups
edm::EDGetTokenT< std::vector< MaterialAccountingTrack > > m_materialToken
int findLayer(const MaterialAccountingDetector &detector)