CMS 3D CMS Logo

Phase2TrackerMonitorDigi.h
Go to the documentation of this file.
1 #ifndef Phase2TrackerMonitorDigi_h
2 #define Phase2TrackerMonitorDigi_h
3 
12 
13 class MonitorElement;
14 class PixelDigi;
15 class Phase2TrackerDigi;
16 class TrackerGeometry;
18 class TrackerTopologyRcd;
19 
21 public:
23  ~Phase2TrackerMonitorDigi() override;
24  void bookHistograms(DQMStore::IBooker& ibooker, edm::Run const& iRun, edm::EventSetup const& iSetup) override;
25  void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) override;
26  void dqmBeginRun(const edm::Run& iRun, const edm::EventSetup& iSetup) override;
27  std::string getHistoId(uint32_t det_id, bool flag);
28 
29  struct DigiMEs {
48  unsigned int nDigiPerLayer;
49  unsigned int nHitDetsPerLayer;
50  };
51 
52  struct Ph2DigiCluster {
53  int charge;
54  int position;
55  int width;
56  int column;
57  };
58 
63 
64 private:
65  void bookLayerHistos(DQMStore::IBooker& ibooker, unsigned int det_id);
68  void fillDigiClusters(DigiMEs& mes, std::vector<Ph2DigiCluster>& digi_clusters);
69 
71  std::map<std::string, DigiMEs> layerMEs;
72  bool pixelFlag_;
73  bool clsFlag_;
81  const TrackerGeometry* tkGeom_ = nullptr;
82  const TrackerTopology* tTopo_ = nullptr;
83 };
84 #endif
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
const edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > itPixelDigiToken_
void fillOTDigiHistos(const edm::Handle< edm::DetSetVector< Phase2TrackerDigi >> handle)
void fillITPixelDigiHistos(const edm::Handle< edm::DetSetVector< PixelDigi >> handle)
std::map< std::string, DigiMEs > layerMEs
int iEvent
Definition: GenABIO.cc:224
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
void dqmBeginRun(const edm::Run &iRun, const edm::EventSetup &iSetup) override
const TrackerGeometry * tkGeom_
Phase2TrackerMonitorDigi(const edm::ParameterSet &)
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
void fillDigiClusters(DigiMEs &mes, std::vector< Ph2DigiCluster > &digi_clusters)
void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &iRun, edm::EventSetup const &iSetup) override
const TrackerTopology * tTopo_
void bookLayerHistos(DQMStore::IBooker &ibooker, unsigned int det_id)
std::string getHistoId(uint32_t det_id, bool flag)
const edm::EDGetTokenT< edm::DetSetVector< Phase2TrackerDigi > > otDigiToken_
Definition: Run.h:45