CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
SiStripClassToMonitorCondData Class Reference

#include <SiStripClassToMonitorCondData.h>

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Public Member Functions

void analyseCondData (const edm::EventSetup &)
 
void beginJob ()
 
void beginRun (edm::RunNumber_t iRun, edm::EventSetup const &eSetup)
 
void endJob ()
 
void endRun (edm::EventSetup const &eSetup)
 
void getLayerMEsOnDemand (edm::EventSetup const &eSetup, std::string requestedSubDetector, uint32_t requestedSide, uint32_t requestedLayer)
 
void getModMEsOnDemand (edm::EventSetup const &eSetup, uint32_t requestedDetId)
 
 SiStripClassToMonitorCondData (edm::ParameterSet const &iConfig)
 
 ~SiStripClassToMonitorCondData ()
 

Private Attributes

std::unique_ptr< SiStripApvGainsDQMapvgainsDQM_
 
std::unique_ptr< SiStripBackPlaneCorrectionDQMbpcorrectionDQM_
 
std::unique_ptr< SiStripCablingDQMcablingDQM_
 
edm::ParameterSet conf_
 
bool gainRenormalisation_
 
std::unique_ptr< SiStripThresholdDQMhighthresholdDQM_
 
std::unique_ptr< SiStripLorentzAngleDQMlorentzangleDQM_
 
std::unique_ptr< SiStripThresholdDQMlowthresholdDQM_
 
bool monitorApvGains_
 
bool monitorBackPlaneCorrection_
 
bool monitorCabling_
 
bool monitorHighThreshold_
 
bool monitorLorentzAngle_
 
bool monitorLowThreshold_
 
bool monitorNoises_
 
bool monitorPedestals_
 
bool monitorQuality_
 
std::unique_ptr< SiStripNoisesDQMnoisesDQM_
 
std::string outPutFileName
 
std::unique_ptr< SiStripPedestalsDQMpedestalsDQM_
 
std::unique_ptr< SiStripQualityDQMqualityDQM_
 

Detailed Description

Definition at line 39 of file SiStripClassToMonitorCondData.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 42 of file SiStripClassToMonitorCondData.h.

◆ MonitorElement

Definition at line 41 of file SiStripClassToMonitorCondData.h.

Constructor & Destructor Documentation

◆ SiStripClassToMonitorCondData()

SiStripClassToMonitorCondData::SiStripClassToMonitorCondData ( edm::ParameterSet const &  iConfig)
explicit

Definition at line 61 of file SiStripClassToMonitorCondData.cc.

61  : conf_(iConfig) {
62  monitorPedestals_ = iConfig.getParameter<bool>("MonitorSiStripPedestal");
63  monitorNoises_ = iConfig.getParameter<bool>("MonitorSiStripNoise");
64  monitorQuality_ = iConfig.getParameter<bool>("MonitorSiStripQuality");
65  monitorApvGains_ = iConfig.getParameter<bool>("MonitorSiStripApvGain");
66  monitorLorentzAngle_ = iConfig.getParameter<bool>("MonitorSiStripLorentzAngle");
67  monitorBackPlaneCorrection_ = iConfig.getParameter<bool>("MonitorSiStripBackPlaneCorrection");
68  monitorLowThreshold_ = iConfig.getParameter<bool>("MonitorSiStripLowThreshold");
69  monitorHighThreshold_ = iConfig.getParameter<bool>("MonitorSiStripHighThreshold");
70  monitorCabling_ = iConfig.getParameter<bool>("MonitorSiStripCabling");
71 }

References edm::ParameterSet::getParameter(), monitorApvGains_, monitorBackPlaneCorrection_, monitorCabling_, monitorHighThreshold_, monitorLorentzAngle_, monitorLowThreshold_, monitorNoises_, monitorPedestals_, and monitorQuality_.

◆ ~SiStripClassToMonitorCondData()

SiStripClassToMonitorCondData::~SiStripClassToMonitorCondData ( )

Definition at line 77 of file SiStripClassToMonitorCondData.cc.

77 {}

Member Function Documentation

◆ analyseCondData()

void SiStripClassToMonitorCondData::analyseCondData ( const edm::EventSetup eSetup)

Definition at line 235 of file SiStripClassToMonitorCondData.cc.

235  {
236  if (monitorPedestals_) {
237  pedestalsDQM_->analysis(eSetup);
238  }
239  if (monitorNoises_) {
240  noisesDQM_->analysis(eSetup);
241  }
242  if (monitorQuality_) {
243  qualityDQM_->analysis(eSetup);
244  qualityDQM_->fillGrandSummaryMEs(eSetup);
245  } // fillGrand. for SiStripquality
246  if (monitorApvGains_) {
247  apvgainsDQM_->analysis(eSetup);
248  }
249  if (monitorLorentzAngle_) {
250  lorentzangleDQM_->analysis(eSetup);
251  }
253  bpcorrectionDQM_->analysis(eSetup);
254  }
255  if (monitorCabling_) {
256  cablingDQM_->analysis(eSetup);
257  }
258  if (monitorLowThreshold_) {
259  lowthresholdDQM_->analysis(eSetup);
260  }
261  if (monitorHighThreshold_) {
262  highthresholdDQM_->analysis(eSetup);
263  }
264 
265 } // analyze

References apvgainsDQM_, bpcorrectionDQM_, cablingDQM_, highthresholdDQM_, lorentzangleDQM_, lowthresholdDQM_, monitorApvGains_, monitorBackPlaneCorrection_, monitorCabling_, monitorHighThreshold_, monitorLorentzAngle_, monitorLowThreshold_, monitorNoises_, monitorPedestals_, monitorQuality_, noisesDQM_, pedestalsDQM_, and qualityDQM_.

◆ beginJob()

void SiStripClassToMonitorCondData::beginJob ( void  )

Definition at line 158 of file SiStripClassToMonitorCondData.cc.

158 {} // beginJob

◆ beginRun()

void SiStripClassToMonitorCondData::beginRun ( edm::RunNumber_t  iRun,
edm::EventSetup const &  eSetup 
)

Definition at line 83 of file SiStripClassToMonitorCondData.cc.

83  {
84  if (monitorPedestals_) {
86  std::make_unique<SiStripPedestalsDQM>(eSetup,
87  iRun,
88  conf_.getParameter<edm::ParameterSet>("SiStripPedestalsDQM_PSet"),
89  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
90  }
91 
92  if (monitorNoises_) {
93  noisesDQM_ = std::make_unique<SiStripNoisesDQM>(eSetup,
94  iRun,
95  conf_.getParameter<edm::ParameterSet>("SiStripNoisesDQM_PSet"),
96  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
97  }
98 
99  if (monitorQuality_) {
100  qualityDQM_ = std::make_unique<SiStripQualityDQM>(eSetup,
101  iRun,
102  conf_.getParameter<edm::ParameterSet>("SiStripQualityDQM_PSet"),
103  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
104  }
105 
106  if (monitorApvGains_) {
107  apvgainsDQM_ =
108  std::make_unique<SiStripApvGainsDQM>(eSetup,
109  iRun,
110  conf_.getParameter<edm::ParameterSet>("SiStripApvGainsDQM_PSet"),
111  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
112  }
113 
114  if (monitorLorentzAngle_) {
116  std::make_unique<SiStripLorentzAngleDQM>(eSetup,
117  iRun,
118  conf_.getParameter<edm::ParameterSet>("SiStripLorentzAngleDQM_PSet"),
119  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
120  }
121 
123  bpcorrectionDQM_ = std::make_unique<SiStripBackPlaneCorrectionDQM>(
124  eSetup,
125  iRun,
126  conf_.getParameter<edm::ParameterSet>("SiStripBackPlaneCorrectionDQM_PSet"),
127  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
128  }
129 
130  if (monitorLowThreshold_) {
132  std::make_unique<SiStripThresholdDQM>(eSetup,
133  iRun,
134  conf_.getParameter<edm::ParameterSet>("SiStripLowThresholdDQM_PSet"),
135  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
136  }
137 
138  if (monitorHighThreshold_) {
140  std::make_unique<SiStripThresholdDQM>(eSetup,
141  iRun,
142  conf_.getParameter<edm::ParameterSet>("SiStripHighThresholdDQM_PSet"),
143  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
144  }
145 
146  if (monitorCabling_) {
147  cablingDQM_ = std::make_unique<SiStripCablingDQM>(eSetup,
148  iRun,
149  conf_.getParameter<edm::ParameterSet>("SiStripCablingDQM_PSet"),
150  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
151  }
152 } // beginRun

References apvgainsDQM_, bpcorrectionDQM_, cablingDQM_, conf_, edm::ParameterSet::getParameter(), highthresholdDQM_, lorentzangleDQM_, lowthresholdDQM_, monitorApvGains_, monitorBackPlaneCorrection_, monitorCabling_, monitorHighThreshold_, monitorLorentzAngle_, monitorLowThreshold_, monitorNoises_, monitorPedestals_, monitorQuality_, noisesDQM_, pedestalsDQM_, and qualityDQM_.

Referenced by SiStripMonitorCondDataOnDemandExample::beginRun(), and SiStripAnalyser::beginRun().

◆ endJob()

void SiStripClassToMonitorCondData::endJob ( void  )

Definition at line 287 of file SiStripClassToMonitorCondData.cc.

287 {} // endJob

◆ endRun()

void SiStripClassToMonitorCondData::endRun ( edm::EventSetup const &  eSetup)

Definition at line 271 of file SiStripClassToMonitorCondData.cc.

271  {
272  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
274 
275  DQMStore *dqmStore_ = edm::Service<DQMStore>().operator->();
276 
277  if (outputMEsInRootFile) {
278  dqmStore_->save(outputFileName);
279  }
280 
281 } // endRun

References conf_, edm::ParameterSet::getParameter(), reco_skim_cfg_mod::outputFileName, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by SiStripMonitorCondDataOnDemandExample::endRun().

◆ getLayerMEsOnDemand()

void SiStripClassToMonitorCondData::getLayerMEsOnDemand ( edm::EventSetup const &  eSetup,
std::string  requestedSubDetector,
uint32_t  requestedSide,
uint32_t  requestedLayer 
)

Definition at line 198 of file SiStripClassToMonitorCondData.cc.

201  {
202  if (monitorPedestals_) {
203  pedestalsDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
204  }
205  if (monitorNoises_) {
206  noisesDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
207  }
208  if (monitorQuality_) {
209  qualityDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
210  qualityDQM_->fillGrandSummaryMEs(eSetup);
211  }
212  if (monitorApvGains_) {
213  apvgainsDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
214  }
215  if (monitorLorentzAngle_) {
216  lorentzangleDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
217  }
219  bpcorrectionDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
220  }
221  if (monitorCabling_) {
222  cablingDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
223  }
224  if (monitorLowThreshold_) {
225  lowthresholdDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
226  }
227  if (monitorHighThreshold_) {
228  highthresholdDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
229  }
230 }

References apvgainsDQM_, bpcorrectionDQM_, cablingDQM_, highthresholdDQM_, lorentzangleDQM_, lowthresholdDQM_, monitorApvGains_, monitorBackPlaneCorrection_, monitorCabling_, monitorHighThreshold_, monitorLorentzAngle_, monitorLowThreshold_, monitorNoises_, monitorPedestals_, monitorQuality_, noisesDQM_, pedestalsDQM_, and qualityDQM_.

Referenced by SiStripMonitorCondDataOnDemandExample::analyze().

◆ getModMEsOnDemand()

void SiStripClassToMonitorCondData::getModMEsOnDemand ( edm::EventSetup const &  eSetup,
uint32_t  requestedDetId 
)

Definition at line 163 of file SiStripClassToMonitorCondData.cc.

163  {
164  if (monitorPedestals_) {
165  pedestalsDQM_->analysisOnDemand(eSetup, requestedDetId);
166  }
167  if (monitorNoises_) {
168  noisesDQM_->analysisOnDemand(eSetup, requestedDetId);
169  }
170  if (monitorQuality_) {
171  qualityDQM_->analysisOnDemand(eSetup, requestedDetId);
172  qualityDQM_->fillGrandSummaryMEs(eSetup);
173  } // fillGrand. for SiStripquality
174  if (monitorApvGains_) {
175  apvgainsDQM_->analysisOnDemand(eSetup, requestedDetId);
176  }
177  if (monitorLorentzAngle_) {
178  lorentzangleDQM_->analysisOnDemand(eSetup, requestedDetId);
179  }
181  bpcorrectionDQM_->analysisOnDemand(eSetup, requestedDetId);
182  }
183  if (monitorCabling_) {
184  cablingDQM_->analysisOnDemand(eSetup, requestedDetId);
185  }
186  if (monitorLowThreshold_) {
187  lowthresholdDQM_->analysisOnDemand(eSetup, requestedDetId);
188  }
189  if (monitorHighThreshold_) {
190  highthresholdDQM_->analysisOnDemand(eSetup, requestedDetId);
191  }
192 }

References apvgainsDQM_, bpcorrectionDQM_, cablingDQM_, highthresholdDQM_, lorentzangleDQM_, lowthresholdDQM_, monitorApvGains_, monitorBackPlaneCorrection_, monitorCabling_, monitorHighThreshold_, monitorLorentzAngle_, monitorLowThreshold_, monitorNoises_, monitorPedestals_, monitorQuality_, noisesDQM_, pedestalsDQM_, and qualityDQM_.

Member Data Documentation

◆ apvgainsDQM_

std::unique_ptr<SiStripApvGainsDQM> SiStripClassToMonitorCondData::apvgainsDQM_
private

◆ bpcorrectionDQM_

std::unique_ptr<SiStripBackPlaneCorrectionDQM> SiStripClassToMonitorCondData::bpcorrectionDQM_
private

◆ cablingDQM_

std::unique_ptr<SiStripCablingDQM> SiStripClassToMonitorCondData::cablingDQM_
private

◆ conf_

edm::ParameterSet SiStripClassToMonitorCondData::conf_
private

Definition at line 61 of file SiStripClassToMonitorCondData.h.

Referenced by beginRun(), and endRun().

◆ gainRenormalisation_

bool SiStripClassToMonitorCondData::gainRenormalisation_
private

Definition at line 73 of file SiStripClassToMonitorCondData.h.

◆ highthresholdDQM_

std::unique_ptr<SiStripThresholdDQM> SiStripClassToMonitorCondData::highthresholdDQM_
private

◆ lorentzangleDQM_

std::unique_ptr<SiStripLorentzAngleDQM> SiStripClassToMonitorCondData::lorentzangleDQM_
private

◆ lowthresholdDQM_

std::unique_ptr<SiStripThresholdDQM> SiStripClassToMonitorCondData::lowthresholdDQM_
private

◆ monitorApvGains_

bool SiStripClassToMonitorCondData::monitorApvGains_
private

◆ monitorBackPlaneCorrection_

bool SiStripClassToMonitorCondData::monitorBackPlaneCorrection_
private

◆ monitorCabling_

bool SiStripClassToMonitorCondData::monitorCabling_
private

◆ monitorHighThreshold_

bool SiStripClassToMonitorCondData::monitorHighThreshold_
private

◆ monitorLorentzAngle_

bool SiStripClassToMonitorCondData::monitorLorentzAngle_
private

◆ monitorLowThreshold_

bool SiStripClassToMonitorCondData::monitorLowThreshold_
private

◆ monitorNoises_

bool SiStripClassToMonitorCondData::monitorNoises_
private

◆ monitorPedestals_

bool SiStripClassToMonitorCondData::monitorPedestals_
private

◆ monitorQuality_

bool SiStripClassToMonitorCondData::monitorQuality_
private

◆ noisesDQM_

std::unique_ptr<SiStripNoisesDQM> SiStripClassToMonitorCondData::noisesDQM_
private

◆ outPutFileName

std::string SiStripClassToMonitorCondData::outPutFileName
private

Definition at line 75 of file SiStripClassToMonitorCondData.h.

◆ pedestalsDQM_

std::unique_ptr<SiStripPedestalsDQM> SiStripClassToMonitorCondData::pedestalsDQM_
private

◆ qualityDQM_

std::unique_ptr<SiStripQualityDQM> SiStripClassToMonitorCondData::qualityDQM_
private
SiStripClassToMonitorCondData::cablingDQM_
std::unique_ptr< SiStripCablingDQM > cablingDQM_
Definition: SiStripClassToMonitorCondData.h:83
SiStripClassToMonitorCondData::monitorPedestals_
bool monitorPedestals_
Definition: SiStripClassToMonitorCondData.h:63
SiStripClassToMonitorCondData::qualityDQM_
std::unique_ptr< SiStripQualityDQM > qualityDQM_
Definition: SiStripClassToMonitorCondData.h:79
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripClassToMonitorCondData::noisesDQM_
std::unique_ptr< SiStripNoisesDQM > noisesDQM_
Definition: SiStripClassToMonitorCondData.h:78
SiStripClassToMonitorCondData::lowthresholdDQM_
std::unique_ptr< SiStripThresholdDQM > lowthresholdDQM_
Definition: SiStripClassToMonitorCondData.h:84
reco_skim_cfg_mod.outputFileName
outputFileName
Definition: reco_skim_cfg_mod.py:15
SiStripClassToMonitorCondData::conf_
edm::ParameterSet conf_
Definition: SiStripClassToMonitorCondData.h:61
SiStripClassToMonitorCondData::monitorBackPlaneCorrection_
bool monitorBackPlaneCorrection_
Definition: SiStripClassToMonitorCondData.h:68
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripClassToMonitorCondData::highthresholdDQM_
std::unique_ptr< SiStripThresholdDQM > highthresholdDQM_
Definition: SiStripClassToMonitorCondData.h:85
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripClassToMonitorCondData::monitorNoises_
bool monitorNoises_
Definition: SiStripClassToMonitorCondData.h:64
SiStripClassToMonitorCondData::pedestalsDQM_
std::unique_ptr< SiStripPedestalsDQM > pedestalsDQM_
Definition: SiStripClassToMonitorCondData.h:77
edm::Service
Definition: Service.h:30
SiStripClassToMonitorCondData::bpcorrectionDQM_
std::unique_ptr< SiStripBackPlaneCorrectionDQM > bpcorrectionDQM_
Definition: SiStripClassToMonitorCondData.h:82
SiStripClassToMonitorCondData::apvgainsDQM_
std::unique_ptr< SiStripApvGainsDQM > apvgainsDQM_
Definition: SiStripClassToMonitorCondData.h:80
SiStripClassToMonitorCondData::monitorLorentzAngle_
bool monitorLorentzAngle_
Definition: SiStripClassToMonitorCondData.h:67
SiStripClassToMonitorCondData::monitorCabling_
bool monitorCabling_
Definition: SiStripClassToMonitorCondData.h:71
SiStripClassToMonitorCondData::monitorQuality_
bool monitorQuality_
Definition: SiStripClassToMonitorCondData.h:65
SiStripClassToMonitorCondData::monitorLowThreshold_
bool monitorLowThreshold_
Definition: SiStripClassToMonitorCondData.h:69
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
SiStripClassToMonitorCondData::lorentzangleDQM_
std::unique_ptr< SiStripLorentzAngleDQM > lorentzangleDQM_
Definition: SiStripClassToMonitorCondData.h:81
SiStripClassToMonitorCondData::monitorApvGains_
bool monitorApvGains_
Definition: SiStripClassToMonitorCondData.h:66
SiStripClassToMonitorCondData::monitorHighThreshold_
bool monitorHighThreshold_
Definition: SiStripClassToMonitorCondData.h:70