CMS 3D CMS Logo

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

#include <SiStripClassToMonitorCondData.h>

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

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

Detailed Description

Definition at line 40 of file SiStripClassToMonitorCondData.h.

Constructor & Destructor Documentation

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

Definition at line 62 of file SiStripClassToMonitorCondData.cc.

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

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

Definition at line 78 of file SiStripClassToMonitorCondData.cc.

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

78  {
79  if (monitorPedestals_) {
80  delete pedestalsDQM_;
81  }
82  if (monitorNoises_) {
83  delete noisesDQM_;
84  }
85  if (monitorQuality_) {
86  delete qualityDQM_;
87  }
88  if (monitorApvGains_) {
89  delete apvgainsDQM_;
90  }
92  delete lorentzangleDQM_;
93  }
95  delete bpcorrectionDQM_;
96  }
98  delete lowthresholdDQM_;
99  }
100  if (monitorHighThreshold_) {
101  delete highthresholdDQM_;
102  }
103  if (monitorCabling_) {
104  delete cablingDQM_;
105  }
106 }
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_

Member Function Documentation

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

Definition at line 259 of file SiStripClassToMonitorCondData.cc.

References SiStripBaseCondObjDQM::analysis(), apvgainsDQM_, bpcorrectionDQM_, cablingDQM_, SiStripQualityDQM::fillGrandSummaryMEs(), highthresholdDQM_, lorentzangleDQM_, lowthresholdDQM_, monitorApvGains_, monitorBackPlaneCorrection_, monitorCabling_, monitorHighThreshold_, monitorLorentzAngle_, monitorLowThreshold_, monitorNoises_, monitorPedestals_, monitorQuality_, noisesDQM_, pedestalsDQM_, and qualityDQM_.

259  {
260  if (monitorPedestals_) {
261  pedestalsDQM_->analysis(eSetup);
262  }
263  if (monitorNoises_) {
264  noisesDQM_->analysis(eSetup);
265  }
266  if (monitorQuality_) {
267  qualityDQM_->analysis(eSetup);
269  } // fillGrand. for SiStripquality
270  if (monitorApvGains_) {
271  apvgainsDQM_->analysis(eSetup);
272  }
273  if (monitorLorentzAngle_) {
274  lorentzangleDQM_->analysis(eSetup);
275  }
277  bpcorrectionDQM_->analysis(eSetup);
278  }
279  if (monitorCabling_) {
280  cablingDQM_->analysis(eSetup);
281  }
282  if (monitorLowThreshold_) {
283  lowthresholdDQM_->analysis(eSetup);
284  }
285  if (monitorHighThreshold_) {
286  highthresholdDQM_->analysis(eSetup);
287  }
288 
289 } // analyze
void fillGrandSummaryMEs(const edm::EventSetup &eSetup)
void analysis(const edm::EventSetup &eSetup_)
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_
void SiStripClassToMonitorCondData::beginJob ( void  )

Definition at line 182 of file SiStripClassToMonitorCondData.cc.

182 {} // beginJob
void SiStripClassToMonitorCondData::beginRun ( edm::RunNumber_t  iRun,
edm::EventSetup const &  eSetup 
)

Definition at line 112 of file SiStripClassToMonitorCondData.cc.

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 SiStripAnalyser::beginRun(), and SiStripMonitorCondDataOnDemandExample::beginRun().

112  {
113  if (monitorPedestals_) {
114  pedestalsDQM_ = new SiStripPedestalsDQM(eSetup,
115  iRun,
116  conf_.getParameter<edm::ParameterSet>("SiStripPedestalsDQM_PSet"),
117  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
118  }
119 
120  if (monitorNoises_) {
121  noisesDQM_ = new SiStripNoisesDQM(eSetup,
122  iRun,
123  conf_.getParameter<edm::ParameterSet>("SiStripNoisesDQM_PSet"),
124  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
125  }
126 
127  if (monitorQuality_) {
128  qualityDQM_ = new SiStripQualityDQM(eSetup,
129  iRun,
130  conf_.getParameter<edm::ParameterSet>("SiStripQualityDQM_PSet"),
131  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
132  }
133 
134  if (monitorApvGains_) {
135  apvgainsDQM_ = new SiStripApvGainsDQM(eSetup,
136  iRun,
137  conf_.getParameter<edm::ParameterSet>("SiStripApvGainsDQM_PSet"),
138  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
139  }
140 
141  if (monitorLorentzAngle_) {
143  iRun,
144  conf_.getParameter<edm::ParameterSet>("SiStripLorentzAngleDQM_PSet"),
145  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
146  }
147 
151  iRun,
152  conf_.getParameter<edm::ParameterSet>("SiStripBackPlaneCorrectionDQM_PSet"),
153  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
154  }
155 
156  if (monitorLowThreshold_) {
158  iRun,
159  conf_.getParameter<edm::ParameterSet>("SiStripLowThresholdDQM_PSet"),
160  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
161  }
162 
163  if (monitorHighThreshold_) {
165  iRun,
166  conf_.getParameter<edm::ParameterSet>("SiStripHighThresholdDQM_PSet"),
167  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
168  }
169 
170  if (monitorCabling_) {
171  cablingDQM_ = new SiStripCablingDQM(eSetup,
172  iRun,
173  conf_.getParameter<edm::ParameterSet>("SiStripCablingDQM_PSet"),
174  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
175  }
176 } // beginRun
T getParameter(std::string const &) const
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_
void SiStripClassToMonitorCondData::endJob ( void  )

Definition at line 312 of file SiStripClassToMonitorCondData.cc.

312 {} // endJob
void SiStripClassToMonitorCondData::endRun ( edm::EventSetup const &  eSetup)

Definition at line 295 of file SiStripClassToMonitorCondData.cc.

References conf_, edm::ParameterSet::getParameter(), Utilities::operator, PostProcessorHGCAL_cfi::outputFileName, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by SiStripMonitorCondDataOnDemandExample::endRun().

295  {
296  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
298 
299  DQMStore *dqmStore_ = edm::Service<DQMStore>().operator->();
300 
301  if (outputMEsInRootFile) {
302  dqmStore_->showDirStructure();
303  dqmStore_->save(outputFileName);
304  }
305 
306 } // endRun
T getParameter(std::string const &) const
void SiStripClassToMonitorCondData::getLayerMEsOnDemand ( edm::EventSetup const &  eSetup,
std::string  requestedSubDetector,
uint32_t  requestedSide,
uint32_t  requestedLayer 
)

Definition at line 222 of file SiStripClassToMonitorCondData.cc.

References SiStripBaseCondObjDQM::analysisOnDemand(), apvgainsDQM_, bpcorrectionDQM_, cablingDQM_, SiStripQualityDQM::fillGrandSummaryMEs(), highthresholdDQM_, lorentzangleDQM_, lowthresholdDQM_, monitorApvGains_, monitorBackPlaneCorrection_, monitorCabling_, monitorHighThreshold_, monitorLorentzAngle_, monitorLowThreshold_, monitorNoises_, monitorPedestals_, monitorQuality_, noisesDQM_, pedestalsDQM_, and qualityDQM_.

Referenced by SiStripMonitorCondDataOnDemandExample::analyze().

225  {
226  if (monitorPedestals_) {
227  pedestalsDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
228  }
229  if (monitorNoises_) {
230  noisesDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
231  }
232  if (monitorQuality_) {
233  qualityDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
235  }
236  if (monitorApvGains_) {
237  apvgainsDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
238  }
239  if (monitorLorentzAngle_) {
240  lorentzangleDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
241  }
243  bpcorrectionDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
244  }
245  if (monitorCabling_) {
246  cablingDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
247  }
248  if (monitorLowThreshold_) {
249  lowthresholdDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
250  }
251  if (monitorHighThreshold_) {
252  highthresholdDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
253  }
254 }
void fillGrandSummaryMEs(const edm::EventSetup &eSetup)
void analysisOnDemand(const edm::EventSetup &eSetup_, uint32_t detIdOnDemand)
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_
void SiStripClassToMonitorCondData::getModMEsOnDemand ( edm::EventSetup const &  eSetup,
uint32_t  requestedDetId 
)

Definition at line 187 of file SiStripClassToMonitorCondData.cc.

References SiStripBaseCondObjDQM::analysisOnDemand(), apvgainsDQM_, bpcorrectionDQM_, cablingDQM_, SiStripQualityDQM::fillGrandSummaryMEs(), highthresholdDQM_, lorentzangleDQM_, lowthresholdDQM_, monitorApvGains_, monitorBackPlaneCorrection_, monitorCabling_, monitorHighThreshold_, monitorLorentzAngle_, monitorLowThreshold_, monitorNoises_, monitorPedestals_, monitorQuality_, noisesDQM_, pedestalsDQM_, and qualityDQM_.

187  {
188  if (monitorPedestals_) {
189  pedestalsDQM_->analysisOnDemand(eSetup, requestedDetId);
190  }
191  if (monitorNoises_) {
192  noisesDQM_->analysisOnDemand(eSetup, requestedDetId);
193  }
194  if (monitorQuality_) {
195  qualityDQM_->analysisOnDemand(eSetup, requestedDetId);
197  } // fillGrand. for SiStripquality
198  if (monitorApvGains_) {
199  apvgainsDQM_->analysisOnDemand(eSetup, requestedDetId);
200  }
201  if (monitorLorentzAngle_) {
202  lorentzangleDQM_->analysisOnDemand(eSetup, requestedDetId);
203  }
205  bpcorrectionDQM_->analysisOnDemand(eSetup, requestedDetId);
206  }
207  if (monitorCabling_) {
208  cablingDQM_->analysisOnDemand(eSetup, requestedDetId);
209  }
210  if (monitorLowThreshold_) {
211  lowthresholdDQM_->analysisOnDemand(eSetup, requestedDetId);
212  }
213  if (monitorHighThreshold_) {
214  highthresholdDQM_->analysisOnDemand(eSetup, requestedDetId);
215  }
216 }
void fillGrandSummaryMEs(const edm::EventSetup &eSetup)
void analysisOnDemand(const edm::EventSetup &eSetup_, uint32_t detIdOnDemand)
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_

Member Data Documentation

SiStripApvGainsDQM* SiStripClassToMonitorCondData::apvgainsDQM_
private
SiStripBackPlaneCorrectionDQM* SiStripClassToMonitorCondData::bpcorrectionDQM_
private
SiStripCablingDQM* SiStripClassToMonitorCondData::cablingDQM_
private
edm::ParameterSet SiStripClassToMonitorCondData::conf_
private

Definition at line 59 of file SiStripClassToMonitorCondData.h.

Referenced by beginRun(), and endRun().

bool SiStripClassToMonitorCondData::gainRenormalisation_
private

Definition at line 71 of file SiStripClassToMonitorCondData.h.

SiStripThresholdDQM* SiStripClassToMonitorCondData::highthresholdDQM_
private
SiStripLorentzAngleDQM* SiStripClassToMonitorCondData::lorentzangleDQM_
private
SiStripThresholdDQM* SiStripClassToMonitorCondData::lowthresholdDQM_
private
bool SiStripClassToMonitorCondData::monitorApvGains_
private
bool SiStripClassToMonitorCondData::monitorBackPlaneCorrection_
private
bool SiStripClassToMonitorCondData::monitorCabling_
private
bool SiStripClassToMonitorCondData::monitorHighThreshold_
private
bool SiStripClassToMonitorCondData::monitorLorentzAngle_
private
bool SiStripClassToMonitorCondData::monitorLowThreshold_
private
bool SiStripClassToMonitorCondData::monitorNoises_
private
bool SiStripClassToMonitorCondData::monitorPedestals_
private
bool SiStripClassToMonitorCondData::monitorQuality_
private
SiStripNoisesDQM* SiStripClassToMonitorCondData::noisesDQM_
private
std::string SiStripClassToMonitorCondData::outPutFileName
private

Definition at line 73 of file SiStripClassToMonitorCondData.h.

SiStripPedestalsDQM* SiStripClassToMonitorCondData::pedestalsDQM_
private
SiStripQualityDQM* SiStripClassToMonitorCondData::qualityDQM_
private