CMS 3D CMS Logo

Phase2ITValidateRecHitBase.h
Go to the documentation of this file.
1 #ifndef Validation_SiTrackerPhase2_Phase2ITValidateRecHitBase_h
2 #define Validation_SiTrackerPhase2_Phase2ITValidateRecHitBase_h
3 
7 //
8 // Author: Marco Musich
9 // Date: May 2021
10 //
11 
12 // STL includes
13 #include <memory>
14 #include <map>
15 #include <vector>
16 #include <algorithm>
17 
18 // system include files
35 
36 //DQM
40 
42 public:
44  ~Phase2ITValidateRecHitBase() override;
45  void bookHistograms(DQMStore::IBooker& ibooker, edm::Run const& iRun, edm::EventSetup const& iSetup) override;
46  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
48 
49 protected:
50  void bookLayerHistos(DQMStore::IBooker& ibooker, unsigned int det_id, std::string& subdir);
51  void fillRechitHistos(const PSimHit* simhitClosest,
52  const SiPixelRecHit* rechit,
53  const std::map<unsigned int, SimTrack>& selectedSimTrackMap,
54  std::map<std::string, unsigned int>& nrechitLayerMap_primary);
55 
59  const TrackerGeometry* tkGeom_ = nullptr;
60  const TrackerTopology* tTopo_ = nullptr;
61 
62  struct RecHitME {
63  MonitorElement* deltaX = nullptr;
64  MonitorElement* deltaY = nullptr;
65  MonitorElement* pullX = nullptr;
66  MonitorElement* pullY = nullptr;
78  //For rechits matched to primary simhits
84  };
85  std::map<std::string, RecHitME> layerMEs_;
86 };
87 
88 #endif
std::map< std::string, RecHitME > layerMEs_
void bookLayerHistos(DQMStore::IBooker &ibooker, unsigned int det_id, std::string &subdir)
~Phase2ITValidateRecHitBase() override
void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &iRun, edm::EventSetup const &iSetup) override
static void fillPSetDescription(edm::ParameterSetDescription &desc)
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Phase2ITValidateRecHitBase(const edm::ParameterSet &)
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
void fillRechitHistos(const PSimHit *simhitClosest, const SiPixelRecHit *rechit, const std::map< unsigned int, SimTrack > &selectedSimTrackMap, std::map< std::string, unsigned int > &nrechitLayerMap_primary)
Definition: Run.h:45
Our base class.
Definition: SiPixelRecHit.h:23