CMS 3D CMS Logo

Phase2OTValidateRecHitBase.h
Go to the documentation of this file.
1 // Package: Phase2OTValidateRecHitBase
2 // Class: Phase2OTValidateRecHitBase
3 //
7 //
8 // Author: Suvankar Roy Chowdhury
9 // Date: March 2021
10 //
11 // system include files
12 // STL includes
13 #include <memory>
14 #include <map>
15 #include <vector>
16 #include <algorithm>
17 
18 // system include files
29 
37 
38 //DQM
43 
45 public:
47  ~Phase2OTValidateRecHitBase() override;
48  void bookHistograms(DQMStore::IBooker& ibooker, edm::Run const& iRun, edm::EventSetup const& iSetup) override;
49  void dqmBeginRun(const edm::Run& iRun, const edm::EventSetup& iSetup) override;
50  void fillOTRecHitHistos(const PSimHit* simhitClosest,
51  const Phase2TrackerRecHit1D* rechit,
52  const std::map<unsigned int, SimTrack>& selectedSimTrackMap,
53  std::map<std::string, unsigned int>& nrechitLayerMapP_primary,
54  std::map<std::string, unsigned int>& nrechitLayerMapS_primary);
55 
57  void bookLayerHistos(DQMStore::IBooker& ibooker, unsigned int det_id, std::string& subdir);
58 
59 protected:
64  const TrackerGeometry* tkGeom_ = nullptr;
65  const TrackerTopology* tTopo_ = nullptr;
66 
67  struct RecHitME {
68  // use TH1D instead of TH1F to avoid stauration at 2^31
69  // above this increments with +1 don't work for float, need double
74  MonitorElement* pullX_P = nullptr;
75  MonitorElement* pullX_S = nullptr;
76  MonitorElement* pullY_P = nullptr;
77  MonitorElement* pullY_S = nullptr;
90  //For rechits matched to simhits from highPT tracks
101  };
102  std::map<std::string, RecHitME> layerMEs_;
103 };
dqm::impl::MonitorElement
Definition: MonitorElement.h:99
Handle.h
MessageLogger.h
TrackerGeometry.h
Phase2OTValidateRecHitBase::RecHitME::deltaX_eta_S
MonitorElement * deltaX_eta_S
Definition: Phase2OTValidateRecHitBase.h:79
Phase2OTValidateRecHitBase::layerMEs_
std::map< std::string, RecHitME > layerMEs_
Definition: Phase2OTValidateRecHitBase.h:102
ESHandle.h
Phase2OTValidateRecHitBase::RecHitME::pullY_P
MonitorElement * pullY_P
Definition: Phase2OTValidateRecHitBase.h:76
Phase2OTValidateRecHitBase::bookLayerHistos
void bookLayerHistos(DQMStore::IBooker &ibooker, unsigned int det_id, std::string &subdir)
Definition: Phase2OTValidateRecHitBase.cc:159
edm::Run
Definition: Run.h:45
Phase2OTValidateRecHitBase::tTopo_
const TrackerTopology * tTopo_
Definition: Phase2OTValidateRecHitBase.h:65
Phase2OTValidateRecHitBase::RecHitME::pullX_eta_S
MonitorElement * pullX_eta_S
Definition: Phase2OTValidateRecHitBase.h:87
TrackerTopology
Definition: TrackerTopology.h:16
Phase2OTValidateRecHitBase::RecHitME::deltaX_phi_S
MonitorElement * deltaX_phi_S
Definition: Phase2OTValidateRecHitBase.h:83
Phase2OTValidateRecHitBase::RecHitME::deltaX_S
MonitorElement * deltaX_S
Definition: Phase2OTValidateRecHitBase.h:71
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
Phase2OTValidateRecHitBase::fillPSetDescription
static void fillPSetDescription(edm::ParameterSetDescription &desc)
Definition: Phase2OTValidateRecHitBase.cc:254
DQMStore.h
Phase2OTValidateRecHitBase::RecHitME::pullY_eta_P
MonitorElement * pullY_eta_P
Definition: Phase2OTValidateRecHitBase.h:88
Phase2OTValidateRecHitBase::fillOTRecHitHistos
void fillOTRecHitHistos(const PSimHit *simhitClosest, const Phase2TrackerRecHit1D *rechit, const std::map< unsigned int, SimTrack > &selectedSimTrackMap, std::map< std::string, unsigned int > &nrechitLayerMapP_primary, std::map< std::string, unsigned int > &nrechitLayerMapS_primary)
Definition: Phase2OTValidateRecHitBase.cc:52
Phase2OTValidateRecHitBase::RecHitME::deltaY_S
MonitorElement * deltaY_S
Definition: Phase2OTValidateRecHitBase.h:73
Phase2OTValidateRecHitBase::RecHitME::deltaX_phi_P
MonitorElement * deltaX_phi_P
Definition: Phase2OTValidateRecHitBase.h:82
Phase2OTValidateRecHitBase::~Phase2OTValidateRecHitBase
~Phase2OTValidateRecHitBase() override
Definition: Phase2OTValidateRecHitBase.cc:40
Phase2OTValidateRecHitBase::RecHitME::pullX_primary_P
MonitorElement * pullX_primary_P
Definition: Phase2OTValidateRecHitBase.h:91
Phase2OTValidateRecHitBase::RecHitME::deltaY_phi_P
MonitorElement * deltaY_phi_P
Definition: Phase2OTValidateRecHitBase.h:84
MakerMacros.h
TrackerTopology.h
Phase2OTValidateRecHitBase::RecHitME::deltaY_eta_P
MonitorElement * deltaY_eta_P
Definition: Phase2OTValidateRecHitBase.h:80
Phase2OTValidateRecHitBase::RecHitME::deltaY_eta_S
MonitorElement * deltaY_eta_S
Definition: Phase2OTValidateRecHitBase.h:81
PSimHit.h
Phase2OTValidateRecHitBase
Definition: Phase2OTValidateRecHitBase.h:44
TrackerTopologyRcd.h
Service.h
Phase2OTValidateRecHitBase::bookHistograms
void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &iRun, edm::EventSetup const &iSetup) override
Definition: Phase2OTValidateRecHitBase.cc:138
Phase2OTValidateRecHitBase::RecHitME::pullY_eta_S
MonitorElement * pullY_eta_S
Definition: Phase2OTValidateRecHitBase.h:89
ParameterSetDescription.h
DQMEDAnalyzer.h
Phase2OTValidateRecHitBase::RecHitME::deltaY_phi_S
MonitorElement * deltaY_phi_S
Definition: Phase2OTValidateRecHitBase.h:85
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
Phase2OTValidateRecHitBase::RecHitME
Definition: Phase2OTValidateRecHitBase.h:67
TrackerDigiGeometryRecord.h
SiPixelRecHitCollection.h
Phase2TrackerRecHit1D.h
Phase2OTValidateRecHitBase::tkGeom_
const TrackerGeometry * tkGeom_
Definition: Phase2OTValidateRecHitBase.h:64
MonitorElement.h
edm::ParameterSet
Definition: ParameterSet.h:47
Phase2OTValidateRecHitBase::RecHitME::deltaY_primary_S
MonitorElement * deltaY_primary_S
Definition: Phase2OTValidateRecHitBase.h:98
Event.h
Phase2OTValidateRecHitBase::RecHitME::deltaX_eta_P
MonitorElement * deltaX_eta_P
Definition: Phase2OTValidateRecHitBase.h:78
Phase2OTValidateRecHitBase::RecHitME::pullY_primary_P
MonitorElement * pullY_primary_P
Definition: Phase2OTValidateRecHitBase.h:93
Phase2OTValidateRecHitBase::RecHitME::deltaX_primary_S
MonitorElement * deltaX_primary_S
Definition: Phase2OTValidateRecHitBase.h:96
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Phase2OTValidateRecHitBase::RecHitME::pullX_eta_P
MonitorElement * pullX_eta_P
Definition: Phase2OTValidateRecHitBase.h:86
Phase2OTValidateRecHitBase::geomToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: Phase2OTValidateRecHitBase.h:62
InputTag.h
Phase2OTValidateRecHitBase::RecHitME::pullX_P
MonitorElement * pullX_P
Definition: Phase2OTValidateRecHitBase.h:74
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
Phase2OTValidateRecHitBase::topoToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
Definition: Phase2OTValidateRecHitBase.h:63
Phase2OTValidateRecHitBase::geomType_
std::string geomType_
Definition: Phase2OTValidateRecHitBase.h:61
Frameworkfwd.h
Phase2OTValidateRecHitBase::RecHitME::deltaY_primary_P
MonitorElement * deltaY_primary_P
Definition: Phase2OTValidateRecHitBase.h:97
Phase2OTValidateRecHitBase::RecHitME::deltaY_P
MonitorElement * deltaY_P
Definition: Phase2OTValidateRecHitBase.h:72
Phase2OTValidateRecHitBase::RecHitME::numberRecHitsprimary_P
MonitorElement * numberRecHitsprimary_P
Definition: Phase2OTValidateRecHitBase.h:99
Phase2OTValidateRecHitBase::RecHitME::pullY_primary_S
MonitorElement * pullY_primary_S
Definition: Phase2OTValidateRecHitBase.h:94
Phase2OTValidateRecHitBase::RecHitME::pullX_S
MonitorElement * pullX_S
Definition: Phase2OTValidateRecHitBase.h:75
Phase2OTValidateRecHitBase::RecHitME::deltaX_primary_P
MonitorElement * deltaX_primary_P
Definition: Phase2OTValidateRecHitBase.h:95
Phase2OTValidateRecHitBase::Phase2OTValidateRecHitBase
Phase2OTValidateRecHitBase(const edm::ParameterSet &)
Definition: Phase2OTValidateRecHitBase.cc:30
dqm::implementation::IBooker
Definition: DQMStore.h:43
Phase2OTValidateRecHitBase::RecHitME::numberRecHitsprimary_S
MonitorElement * numberRecHitsprimary_S
Definition: Phase2OTValidateRecHitBase.h:100
ParameterSet.h
Phase2OTValidateRecHitBase::RecHitME::pullY_S
MonitorElement * pullY_S
Definition: Phase2OTValidateRecHitBase.h:77
PSimHit
Definition: PSimHit.h:15
Phase2OTValidateRecHitBase::dqmBeginRun
void dqmBeginRun(const edm::Run &iRun, const edm::EventSetup &iSetup) override
Definition: Phase2OTValidateRecHitBase.cc:47
SimTrackContainer.h
Phase2TrackerRecHit1D
Definition: Phase2TrackerRecHit1D.h:10
Phase2OTValidateRecHitBase::RecHitME::pullX_primary_S
MonitorElement * pullX_primary_S
Definition: Phase2OTValidateRecHitBase.h:92
Phase2OTValidateRecHitBase::config_
edm::ParameterSet config_
Definition: Phase2OTValidateRecHitBase.h:60
TrackerGeometry
Definition: TrackerGeometry.h:14
Phase2OTValidateRecHitBase::RecHitME::deltaX_P
MonitorElement * deltaX_P
Definition: Phase2OTValidateRecHitBase.h:70