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
Phase2ITValidateRecHitBase::RecHitME
Definition: Phase2ITValidateRecHitBase.h:62
dqm::impl::MonitorElement
Definition: MonitorElement.h:99
Phase2ITValidateRecHitBase::layerMEs_
std::map< std::string, RecHitME > layerMEs_
Definition: Phase2ITValidateRecHitBase.h:85
Handle.h
MessageLogger.h
TrackerGeometry.h
Phase2ITValidateRecHitBase::RecHitME::pullX
MonitorElement * pullX
Definition: Phase2ITValidateRecHitBase.h:65
ESHandle.h
Phase2ITValidateRecHitBase::RecHitME::pullX_primary
MonitorElement * pullX_primary
Definition: Phase2ITValidateRecHitBase.h:80
edm::Run
Definition: Run.h:45
Phase2ITValidateRecHitBase::config_
edm::ParameterSet config_
Definition: Phase2ITValidateRecHitBase.h:56
TrackerTopology
Definition: TrackerTopology.h:16
Phase2ITValidateRecHitBase::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: Phase2ITValidateRecHitBase.cc:25
Phase2ITValidateRecHitBase::RecHitME::pullY_primary
MonitorElement * pullY_primary
Definition: Phase2ITValidateRecHitBase.h:81
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
Phase2ITValidateRecHitBase::RecHitME::deltaY
MonitorElement * deltaY
Definition: Phase2ITValidateRecHitBase.h:64
Phase2ITValidateRecHitBase::bookLayerHistos
void bookLayerHistos(DQMStore::IBooker &ibooker, unsigned int det_id, std::string &subdir)
Definition: Phase2ITValidateRecHitBase.cc:51
DQMStore.h
Phase2ITValidateRecHitBase::RecHitME::pullY
MonitorElement * pullY
Definition: Phase2ITValidateRecHitBase.h:66
Phase2ITValidateRecHitBase::RecHitME::deltaX_eta
MonitorElement * deltaX_eta
Definition: Phase2ITValidateRecHitBase.h:67
Phase2ITValidateRecHitBase::Phase2ITValidateRecHitBase
Phase2ITValidateRecHitBase(const edm::ParameterSet &)
Definition: Phase2ITValidateRecHitBase.cc:18
Phase2ITValidateRecHitBase::tkGeom_
const TrackerGeometry * tkGeom_
Definition: Phase2ITValidateRecHitBase.h:59
SiPixelRecHit
Our base class.
Definition: SiPixelRecHit.h:23
MakerMacros.h
TrackerTopology.h
PSimHit.h
TrackerTopologyRcd.h
Phase2ITValidateRecHitBase::geomToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: Phase2ITValidateRecHitBase.h:57
Service.h
Phase2ITValidateRecHitBase::RecHitME::deltaX
MonitorElement * deltaX
Definition: Phase2ITValidateRecHitBase.h:63
Phase2ITValidateRecHitBase::RecHitME::deltaY_clsizex
MonitorElement * deltaY_clsizex
Definition: Phase2ITValidateRecHitBase.h:73
Phase2ITValidateRecHitBase::RecHitME::pullY_eta
MonitorElement * pullY_eta
Definition: Phase2ITValidateRecHitBase.h:77
Phase2ITValidateRecHitBase::RecHitME::pullX_eta
MonitorElement * pullX_eta
Definition: Phase2ITValidateRecHitBase.h:76
DQMEDAnalyzer.h
Phase2ITValidateRecHitBase::RecHitME::deltaX_primary
MonitorElement * deltaX_primary
Definition: Phase2ITValidateRecHitBase.h:82
Phase2ITValidateRecHitBase::RecHitME::deltaY_clsizey
MonitorElement * deltaY_clsizey
Definition: Phase2ITValidateRecHitBase.h:74
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
Phase2ITValidateRecHitBase::RecHitME::deltaY_phi
MonitorElement * deltaY_phi
Definition: Phase2ITValidateRecHitBase.h:70
TrackerDigiGeometryRecord.h
SiPixelRecHitCollection.h
MonitorElement.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
Phase2ITValidateRecHitBase::RecHitME::deltaYvsdeltaX
MonitorElement * deltaYvsdeltaX
Definition: Phase2ITValidateRecHitBase.h:75
Phase2ITValidateRecHitBase::~Phase2ITValidateRecHitBase
~Phase2ITValidateRecHitBase() override
Phase2ITValidateRecHitBase::RecHitME::deltaY_eta
MonitorElement * deltaY_eta
Definition: Phase2ITValidateRecHitBase.h:69
edm::EventSetup
Definition: EventSetup.h:58
Phase2ITValidateRecHitBase::bookHistograms
void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &iRun, edm::EventSetup const &iSetup) override
Definition: Phase2ITValidateRecHitBase.cc:32
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InputTag.h
Phase2ITValidateRecHitBase::RecHitME::numberRecHitsprimary
MonitorElement * numberRecHitsprimary
Definition: Phase2ITValidateRecHitBase.h:79
Phase2ITValidateRecHitBase::fillPSetDescription
static void fillPSetDescription(edm::ParameterSetDescription &desc)
Definition: Phase2ITValidateRecHitBase.cc:179
Phase2ITValidateRecHitBase::tTopo_
const TrackerTopology * tTopo_
Definition: Phase2ITValidateRecHitBase.h:60
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
Frameworkfwd.h
Phase2ITValidateRecHitBase::RecHitME::deltaX_phi
MonitorElement * deltaX_phi
Definition: Phase2ITValidateRecHitBase.h:68
Phase2ITValidateRecHitBase
Definition: Phase2ITValidateRecHitBase.h:41
dqm::implementation::IBooker
Definition: DQMStore.h:43
Phase2ITValidateRecHitBase::topoToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
Definition: Phase2ITValidateRecHitBase.h:58
ParameterSet.h
PSimHit
Definition: PSimHit.h:15
Phase2ITValidateRecHitBase::RecHitME::deltaX_clsizey
MonitorElement * deltaX_clsizey
Definition: Phase2ITValidateRecHitBase.h:72
Phase2ITValidateRecHitBase::fillRechitHistos
void fillRechitHistos(const PSimHit *simhitClosest, const SiPixelRecHit *rechit, const std::map< unsigned int, SimTrack > &selectedSimTrackMap, std::map< std::string, unsigned int > &nrechitLayerMap_primary)
Definition: Phase2ITValidateRecHitBase.cc:123
Phase2ITValidateRecHitBase::RecHitME::deltaX_clsizex
MonitorElement * deltaX_clsizex
Definition: Phase2ITValidateRecHitBase.h:71
SimTrackContainer.h
Phase2ITValidateRecHitBase::RecHitME::deltaY_primary
MonitorElement * deltaY_primary
Definition: Phase2ITValidateRecHitBase.h:83
TrackerGeometry
Definition: TrackerGeometry.h:14