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

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 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  {
78  if (monitorPedestals_) {
79  delete pedestalsDQM_;
80  }
81  if (monitorNoises_) {
82  delete noisesDQM_;
83  }
84  if (monitorQuality_) {
85  delete qualityDQM_;
86  }
87  if (monitorApvGains_) {
88  delete apvgainsDQM_;
89  }
91  delete lorentzangleDQM_;
92  }
94  delete bpcorrectionDQM_;
95  }
97  delete lowthresholdDQM_;
98  }
100  delete highthresholdDQM_;
101  }
102  if (monitorCabling_) {
103  delete cablingDQM_;
104  }
105 }

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

Member Function Documentation

◆ analyseCondData()

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

Definition at line 258 of file SiStripClassToMonitorCondData.cc.

258  {
259  if (monitorPedestals_) {
260  pedestalsDQM_->analysis(eSetup);
261  }
262  if (monitorNoises_) {
263  noisesDQM_->analysis(eSetup);
264  }
265  if (monitorQuality_) {
266  qualityDQM_->analysis(eSetup);
268  } // fillGrand. for SiStripquality
269  if (monitorApvGains_) {
270  apvgainsDQM_->analysis(eSetup);
271  }
272  if (monitorLorentzAngle_) {
273  lorentzangleDQM_->analysis(eSetup);
274  }
276  bpcorrectionDQM_->analysis(eSetup);
277  }
278  if (monitorCabling_) {
279  cablingDQM_->analysis(eSetup);
280  }
281  if (monitorLowThreshold_) {
282  lowthresholdDQM_->analysis(eSetup);
283  }
284  if (monitorHighThreshold_) {
285  highthresholdDQM_->analysis(eSetup);
286  }
287 
288 } // analyze

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

◆ beginJob()

void SiStripClassToMonitorCondData::beginJob ( void  )

Definition at line 181 of file SiStripClassToMonitorCondData.cc.

181 {} // beginJob

◆ beginRun()

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

Definition at line 111 of file SiStripClassToMonitorCondData.cc.

111  {
112  if (monitorPedestals_) {
113  pedestalsDQM_ = new SiStripPedestalsDQM(eSetup,
114  iRun,
115  conf_.getParameter<edm::ParameterSet>("SiStripPedestalsDQM_PSet"),
116  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
117  }
118 
119  if (monitorNoises_) {
120  noisesDQM_ = new SiStripNoisesDQM(eSetup,
121  iRun,
122  conf_.getParameter<edm::ParameterSet>("SiStripNoisesDQM_PSet"),
123  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
124  }
125 
126  if (monitorQuality_) {
127  qualityDQM_ = new SiStripQualityDQM(eSetup,
128  iRun,
129  conf_.getParameter<edm::ParameterSet>("SiStripQualityDQM_PSet"),
130  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
131  }
132 
133  if (monitorApvGains_) {
134  apvgainsDQM_ = new SiStripApvGainsDQM(eSetup,
135  iRun,
136  conf_.getParameter<edm::ParameterSet>("SiStripApvGainsDQM_PSet"),
137  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
138  }
139 
140  if (monitorLorentzAngle_) {
142  iRun,
143  conf_.getParameter<edm::ParameterSet>("SiStripLorentzAngleDQM_PSet"),
144  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
145  }
146 
150  iRun,
151  conf_.getParameter<edm::ParameterSet>("SiStripBackPlaneCorrectionDQM_PSet"),
152  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
153  }
154 
155  if (monitorLowThreshold_) {
157  iRun,
158  conf_.getParameter<edm::ParameterSet>("SiStripLowThresholdDQM_PSet"),
159  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
160  }
161 
162  if (monitorHighThreshold_) {
164  iRun,
165  conf_.getParameter<edm::ParameterSet>("SiStripHighThresholdDQM_PSet"),
166  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
167  }
168 
169  if (monitorCabling_) {
170  cablingDQM_ = new SiStripCablingDQM(eSetup,
171  iRun,
172  conf_.getParameter<edm::ParameterSet>("SiStripCablingDQM_PSet"),
173  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
174  }
175 } // 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 310 of file SiStripClassToMonitorCondData.cc.

310 {} // endJob

◆ endRun()

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

Definition at line 294 of file SiStripClassToMonitorCondData.cc.

294  {
295  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
297 
298  DQMStore *dqmStore_ = edm::Service<DQMStore>().operator->();
299 
300  if (outputMEsInRootFile) {
301  dqmStore_->save(outputFileName);
302  }
303 
304 } // 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 221 of file SiStripClassToMonitorCondData.cc.

224  {
225  if (monitorPedestals_) {
226  pedestalsDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
227  }
228  if (monitorNoises_) {
229  noisesDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
230  }
231  if (monitorQuality_) {
232  qualityDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
234  }
235  if (monitorApvGains_) {
236  apvgainsDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
237  }
238  if (monitorLorentzAngle_) {
239  lorentzangleDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
240  }
242  bpcorrectionDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
243  }
244  if (monitorCabling_) {
245  cablingDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
246  }
247  if (monitorLowThreshold_) {
248  lowthresholdDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
249  }
250  if (monitorHighThreshold_) {
251  highthresholdDQM_->analysisOnDemand(eSetup, requestedSubDetector, requestedSide, requestedLayer);
252  }
253 }

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().

◆ getModMEsOnDemand()

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

Definition at line 186 of file SiStripClassToMonitorCondData.cc.

186  {
187  if (monitorPedestals_) {
188  pedestalsDQM_->analysisOnDemand(eSetup, requestedDetId);
189  }
190  if (monitorNoises_) {
191  noisesDQM_->analysisOnDemand(eSetup, requestedDetId);
192  }
193  if (monitorQuality_) {
194  qualityDQM_->analysisOnDemand(eSetup, requestedDetId);
196  } // fillGrand. for SiStripquality
197  if (monitorApvGains_) {
198  apvgainsDQM_->analysisOnDemand(eSetup, requestedDetId);
199  }
200  if (monitorLorentzAngle_) {
201  lorentzangleDQM_->analysisOnDemand(eSetup, requestedDetId);
202  }
204  bpcorrectionDQM_->analysisOnDemand(eSetup, requestedDetId);
205  }
206  if (monitorCabling_) {
207  cablingDQM_->analysisOnDemand(eSetup, requestedDetId);
208  }
209  if (monitorLowThreshold_) {
210  lowthresholdDQM_->analysisOnDemand(eSetup, requestedDetId);
211  }
212  if (monitorHighThreshold_) {
213  highthresholdDQM_->analysisOnDemand(eSetup, requestedDetId);
214  }
215 }

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

Member Data Documentation

◆ apvgainsDQM_

SiStripApvGainsDQM* SiStripClassToMonitorCondData::apvgainsDQM_
private

◆ bpcorrectionDQM_

SiStripBackPlaneCorrectionDQM* SiStripClassToMonitorCondData::bpcorrectionDQM_
private

◆ cablingDQM_

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_

SiStripThresholdDQM* SiStripClassToMonitorCondData::highthresholdDQM_
private

◆ lorentzangleDQM_

SiStripLorentzAngleDQM* SiStripClassToMonitorCondData::lorentzangleDQM_
private

◆ lowthresholdDQM_

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_

SiStripNoisesDQM* SiStripClassToMonitorCondData::noisesDQM_
private

◆ outPutFileName

std::string SiStripClassToMonitorCondData::outPutFileName
private

Definition at line 75 of file SiStripClassToMonitorCondData.h.

◆ pedestalsDQM_

SiStripPedestalsDQM* SiStripClassToMonitorCondData::pedestalsDQM_
private

◆ qualityDQM_

SiStripQualityDQM* SiStripClassToMonitorCondData::qualityDQM_
private
SiStripClassToMonitorCondData::qualityDQM_
SiStripQualityDQM * qualityDQM_
Definition: SiStripClassToMonitorCondData.h:79
SiStripBaseCondObjDQM::analysisOnDemand
void analysisOnDemand(const edm::EventSetup &eSetup_, uint32_t detIdOnDemand)
Definition: SiStripBaseCondObjDQM.cc:129
SiStripClassToMonitorCondData::monitorPedestals_
bool monitorPedestals_
Definition: SiStripClassToMonitorCondData.h:63
SiStripPedestalsDQM
Definition: SiStripPedestalsDQM.h:9
SiStripApvGainsDQM
Definition: SiStripApvGainsDQM.h:11
SiStripBaseCondObjDQM::analysis
void analysis(const edm::EventSetup &eSetup_)
Definition: SiStripBaseCondObjDQM.cc:53
SiStripCablingDQM
Definition: SiStripCablingDQM.h:14
SiStripClassToMonitorCondData::cablingDQM_
SiStripCablingDQM * cablingDQM_
Definition: SiStripClassToMonitorCondData.h:83
SiStripBackPlaneCorrectionDQM
Definition: SiStripBackPlaneCorrectionDQM.h:9
reco_skim_cfg_mod.outputFileName
outputFileName
Definition: reco_skim_cfg_mod.py:15
SiStripClassToMonitorCondData::conf_
edm::ParameterSet conf_
Definition: SiStripClassToMonitorCondData.h:61
SiStripClassToMonitorCondData::lowthresholdDQM_
SiStripThresholdDQM * lowthresholdDQM_
Definition: SiStripClassToMonitorCondData.h:84
SiStripClassToMonitorCondData::monitorBackPlaneCorrection_
bool monitorBackPlaneCorrection_
Definition: SiStripClassToMonitorCondData.h:68
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
SiStripLorentzAngleDQM
Definition: SiStripLorentzAngleDQM.h:9
SiStripClassToMonitorCondData::monitorNoises_
bool monitorNoises_
Definition: SiStripClassToMonitorCondData.h:64
edm::Service
Definition: Service.h:30
SiStripClassToMonitorCondData::monitorLorentzAngle_
bool monitorLorentzAngle_
Definition: SiStripClassToMonitorCondData.h:67
SiStripClassToMonitorCondData::noisesDQM_
SiStripNoisesDQM * noisesDQM_
Definition: SiStripClassToMonitorCondData.h:78
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
SiStripClassToMonitorCondData::highthresholdDQM_
SiStripThresholdDQM * highthresholdDQM_
Definition: SiStripClassToMonitorCondData.h:85
SiStripClassToMonitorCondData::pedestalsDQM_
SiStripPedestalsDQM * pedestalsDQM_
Definition: SiStripClassToMonitorCondData.h:77
SiStripClassToMonitorCondData::monitorCabling_
bool monitorCabling_
Definition: SiStripClassToMonitorCondData.h:71
SiStripClassToMonitorCondData::lorentzangleDQM_
SiStripLorentzAngleDQM * lorentzangleDQM_
Definition: SiStripClassToMonitorCondData.h:81
SiStripClassToMonitorCondData::monitorQuality_
bool monitorQuality_
Definition: SiStripClassToMonitorCondData.h:65
SiStripClassToMonitorCondData::monitorLowThreshold_
bool monitorLowThreshold_
Definition: SiStripClassToMonitorCondData.h:69
SiStripClassToMonitorCondData::apvgainsDQM_
SiStripApvGainsDQM * apvgainsDQM_
Definition: SiStripClassToMonitorCondData.h:80
SiStripQualityDQM
Definition: SiStripQualityDQM.h:24
SiStripClassToMonitorCondData::monitorApvGains_
bool monitorApvGains_
Definition: SiStripClassToMonitorCondData.h:66
SiStripThresholdDQM
Definition: SiStripThresholdDQM.h:9
SiStripClassToMonitorCondData::bpcorrectionDQM_
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_
Definition: SiStripClassToMonitorCondData.h:82
SiStripQualityDQM::fillGrandSummaryMEs
void fillGrandSummaryMEs(const edm::EventSetup &eSetup)
Definition: SiStripQualityDQM.cc:182
SiStripNoisesDQM
Definition: SiStripNoisesDQM.h:11
SiStripClassToMonitorCondData::monitorHighThreshold_
bool monitorHighThreshold_
Definition: SiStripClassToMonitorCondData.h:70
SiStripClassToMonitorCondData::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiStripClassToMonitorCondData.h:42