CMS 3D CMS Logo

SiStripGainsPCLWorker.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: CalibTracker/SiStripChannelGain
4 // Class: SiStripGainsPCLWorker
5 //
10 //
11 // Original Author: L. Quertermont (calibration algorithm)
12 // Contributors: M. Verzetti (data access)
13 // A. Di Mattia (PCL multi stream processing and monitoring)
14 // M. Delcourt (monitoring)
15 // M. Musich (migration to thread-safe DQMStore access)
16 // P. David (merge ShallowGainCalibration with SiStripGainsPCLWorker)
17 //
18 // Created: Wed, 12 Apr 2017 14:46:48 GMT
19 //
20 
21 // CMSSW includes
63 
67 
68 // System includes
69 #include <unordered_map>
70 
71 //
72 // class declaration
73 //
74 
75 class SiStripGainsPCLWorker : public DQMGlobalEDAnalyzer<APVGain::APVGainHistograms> {
76 public:
77  explicit SiStripGainsPCLWorker(const edm::ParameterSet &);
78 
80  edm::Run const &,
81  edm::EventSetup const &,
82  APVGain::APVGainHistograms &) const override;
83  void dqmAnalyze(edm::Event const &, edm::EventSetup const &, APVGain::APVGainHistograms const &) const override;
84 
85  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
86 
87 private:
88  void beginJob() override;
89  void dqmBeginRun(edm::Run const &, edm::EventSetup const &, APVGain::APVGainHistograms &) const override;
91 
92  std::vector<std::string> dqm_tag_;
93 
94  int statCollectionFromMode(const char *tag) const;
95 
98  double MinTrackEta;
99  double MaxTrackEta;
100  unsigned int MaxNrStrips;
101  unsigned int MinTrackHits;
113  std::vector<std::string> VChargeHisto;
117 
122 
123  // maps histograms index to topology
124  std::map<unsigned int, APVloc> theTopologyMap;
125 };
126 
127 inline int SiStripGainsPCLWorker::statCollectionFromMode(const char *tag) const {
128  std::vector<std::string>::const_iterator it = dqm_tag_.begin();
129  while (it != dqm_tag_.end()) {
130  if (*it == std::string(tag))
131  return it - dqm_tag_.begin();
132  it++;
133  }
134 
135  if (std::string(tag).empty())
136  return 0; // return StdBunch calibration mode for backward compatibility
137 
138  return None;
139 }
FEDNumbering.h
SiStripGainsPCLWorker::MinTrackHits
unsigned int MinTrackHits
Definition: SiStripGainsPCLWorker.h:101
SiStripGainsPCLWorker::tkGeomToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
Definition: SiStripGainsPCLWorker.h:119
SiStripGainsPCLWorker::VChargeHisto
std::vector< std::string > VChargeHisto
Definition: SiStripGainsPCLWorker.h:113
SiStripGainsPCLWorker::m_DQMdir
std::string m_DQMdir
Definition: SiStripGainsPCLWorker.h:111
StripGeomDetUnit.h
TrackerGeometry.h
SiStripGain.h
SiStripGainsPCLWorker::MinTrackMomentum
double MinTrackMomentum
Definition: SiStripGainsPCLWorker.h:96
SiStripGainsPCLWorker::dqmAnalyze
void dqmAnalyze(edm::Event const &, edm::EventSetup const &, APVGain::APVGainHistograms const &) const override
Definition: SiStripGainsPCLWorker.cc:173
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
GeomDetType.h
TrackingGeometry.h
SiStripGainRcd.h
DQMStore.h
SiStripGainsPCLWorker::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, APVGain::APVGainHistograms &) const override
Definition: SiStripGainsPCLWorker.cc:509
SiStripGainsPCLWorker::MaxTrackMomentum
double MaxTrackMomentum
Definition: SiStripGainsPCLWorker.h:97
StripTopology.h
APVGainStruct.h
SiStripGainsPCLWorker::AllowSaturation
bool AllowSaturation
Definition: SiStripGainsPCLWorker.h:104
SiStripGainsPCLWorker::beginJob
void beginJob() override
Definition: SiStripGainsPCLWorker.cc:390
SiStripGainsPCLWorker::FirstSetOfConstants
bool FirstSetOfConstants
Definition: SiStripGainsPCLWorker.h:105
MakerMacros.h
TrackerTopology.h
SiStripDetCabling.h
SiStripGainsPCLWorker::MinTrackEta
double MinTrackEta
Definition: SiStripGainsPCLWorker.h:98
Track.h
None
Definition: APVGainStruct.h:53
TrackFwd.h
TrapezoidalPlaneBounds.h
Service.h
SiStripGainsPCLWorker::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: SiStripGainsPCLWorker.cc:502
RectangularPlaneBounds.h
SiStripGainsPCLWorker::Validation
bool Validation
Definition: SiStripGainsPCLWorker.h:106
SiStripApvGain.h
SiPixelRecHit.h
EDGetToken.h
TrajTrackAssociation.h
SiStripGainsPCLWorker::doChargeMonitorPerPlane
bool doChargeMonitorPerPlane
Definition: SiStripGainsPCLWorker.h:109
SiStripGainsPCLWorker::dqmBeginRun
void dqmBeginRun(edm::Run const &, edm::EventSetup const &, APVGain::APVGainHistograms &) const override
Definition: SiStripGainsPCLWorker.cc:64
SiStripGainsPCLWorker::SiStripGainsPCLWorker
SiStripGainsPCLWorker(const edm::ParameterSet &)
Definition: SiStripGainsPCLWorker.cc:9
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
SiStripGainsPCLWorker::MaxNrStrips
unsigned int MaxNrStrips
Definition: SiStripGainsPCLWorker.h:100
SiStripGainsPCLWorker::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripGainsPCLWorker.h:118
TrackerDigiGeometryRecord.h
SiStripGainsPCLWorker::m_tracks_token
edm::EDGetTokenT< edm::View< reco::Track > > m_tracks_token
Definition: SiStripGainsPCLWorker.h:115
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
makeGlobalPositionRcd_cfg.tag
tag
Definition: makeGlobalPositionRcd_cfg.py:6
SiStripGainsPCLWorker::dqm_tag_
std::vector< std::string > dqm_tag_
Definition: SiStripGainsPCLWorker.h:92
edm::EventSetup
Definition: EventSetup.h:58
histograms
Definition: histograms.py:1
SiStripGainsPCLWorker::OldGainRemoving
bool OldGainRemoving
Definition: SiStripGainsPCLWorker.h:107
SiStripGainsPCLWorker::theTopologyMap
std::map< unsigned int, APVloc > theTopologyMap
Definition: SiStripGainsPCLWorker.h:124
GeometricDet.h
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripGainsPCLWorker::statCollectionFromMode
int statCollectionFromMode(const char *tag) const
Definition: SiStripGainsPCLWorker.h:127
SiStripRecHit1D.h
SiStripGainsPCLWorker::MaxTrackingIteration
int MaxTrackingIteration
Definition: SiStripGainsPCLWorker.h:103
Trajectory.h
GeomDet.h
SiStripGainsPCLWorker::tkGeomTokenBR_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomTokenBR_
Definition: SiStripGainsPCLWorker.h:119
SiStripGainsPCLWorker::m_association_token
edm::EDGetTokenT< TrajTrackAssociationCollection > m_association_token
Definition: SiStripGainsPCLWorker.h:116
DetId.h
Frameworkfwd.h
ESWatcher.h
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
SiStripQuality.h
PixelGeomDetUnit.h
SiStripGainsPCLWorker::MaxTrackEta
double MaxTrackEta
Definition: SiStripGainsPCLWorker.h:99
SiStripQualityRcd.h
Exception.h
SiStripGainsPCLWorker::qualityToken_
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > qualityToken_
Definition: SiStripGainsPCLWorker.h:121
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiStripGainsPCLWorker::MaxTrackChiOverNdf
double MaxTrackChiOverNdf
Definition: SiStripGainsPCLWorker.h:102
DQMGlobalEDAnalyzer
Definition: DQMGlobalEDAnalyzer.h:76
SiStripDetCablingRcd.h
SiStripGainsPCLWorker::useCalibration
bool useCalibration
Definition: SiStripGainsPCLWorker.h:108
ParameterSet.h
SiStripMatchedRecHit2D.h
SiStripClusterCollection.h
edm::Event
Definition: Event.h:73
SiStripGainsPCLWorker::checkBookAPVColls
void checkBookAPVColls(const TrackerGeometry *bareTkGeomPtr, APVGain::APVGainHistograms &histograms) const
Definition: SiStripGainsPCLWorker.cc:394
APVGainHelpers.h
SiStripRecHit2D.h
StripSubdetector.h
SiStripGainsPCLWorker::gainToken_
edm::ESGetToken< SiStripGain, SiStripGainRcd > gainToken_
Definition: SiStripGainsPCLWorker.h:120
APVGain::APVGainHistograms
Definition: APVGainHelpers.h:62
SiStripGainsPCLWorker::m_calibrationMode
std::string m_calibrationMode
Definition: SiStripGainsPCLWorker.h:112
TrackerGeometry
Definition: TrackerGeometry.h:14
DQMGlobalEDAnalyzer.h
SiStripGainsPCLWorker
user includes
Definition: SiStripGainsPCLWorker.h:75