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 41 of file SiStripClassToMonitorCondData.h.

Constructor & Destructor Documentation

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

Definition at line 65 of file SiStripClassToMonitorCondData.cc.

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

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

Definition at line 85 of file SiStripClassToMonitorCondData.cc.

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

85  {
86 
87  if(monitorPedestals_) { delete pedestalsDQM_;}
88  if(monitorNoises_) { delete noisesDQM_; }
89  if(monitorQuality_) { delete qualityDQM_; }
90  if(monitorApvGains_) { delete apvgainsDQM_; }
95  if(monitorCabling_) { delete cablingDQM_;}
96 
97 }
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_

Member Function Documentation

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

Definition at line 225 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_.

225  {
226 
227  if(monitorPedestals_) { pedestalsDQM_ ->analysis(eSetup);}
228  if(monitorNoises_) { noisesDQM_ ->analysis(eSetup);}
229  if(monitorQuality_) { qualityDQM_ ->analysis(eSetup); qualityDQM_->fillGrandSummaryMEs(eSetup);}//fillGrand. for SiStripquality
230  if(monitorApvGains_) { apvgainsDQM_ ->analysis(eSetup);}
233  if(monitorCabling_) { cablingDQM_ ->analysis(eSetup);}
236 
237 } // analyze
void fillGrandSummaryMEs(const edm::EventSetup &eSetup)
void analysis(const edm::EventSetup &eSetup_)
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_
void SiStripClassToMonitorCondData::beginJob ( void  )

Definition at line 181 of file SiStripClassToMonitorCondData.cc.

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

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

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

Definition at line 264 of file SiStripClassToMonitorCondData.cc.

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

Definition at line 245 of file SiStripClassToMonitorCondData.cc.

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

Referenced by SiStripMonitorCondDataOnDemandExample::endRun().

245  {
246 
247  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
249 
250  DQMStore* dqmStore_=edm::Service<DQMStore>().operator->();
251 
252  if (outputMEsInRootFile) {
253  dqmStore_->showDirStructure();
254  dqmStore_->save(outputFileName);
255  }
256 
257 } // 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 205 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_.

207  {
208 
209  if(monitorPedestals_) { pedestalsDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
210  if(monitorNoises_) { noisesDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
211  if(monitorQuality_) { qualityDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);
212  qualityDQM_ ->fillGrandSummaryMEs(eSetup);}
213  if(monitorApvGains_) { apvgainsDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
214  if(monitorLorentzAngle_) { lorentzangleDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
215  if(monitorBackPlaneCorrection_) { bpcorrectionDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
216  if(monitorCabling_) { cablingDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
217  if(monitorLowThreshold_) { lowthresholdDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
218  if(monitorHighThreshold_) { highthresholdDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
219 
220 }
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 
189  if(monitorPedestals_) { pedestalsDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
190  if(monitorNoises_) { noisesDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
191  if(monitorQuality_) { qualityDQM_ ->analysisOnDemand(eSetup,requestedDetId);
192  qualityDQM_ ->fillGrandSummaryMEs(eSetup) ;}//fillGrand. for SiStripquality
193  if(monitorApvGains_) { apvgainsDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
194  if(monitorLorentzAngle_) { lorentzangleDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
195  if(monitorBackPlaneCorrection_) { bpcorrectionDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
196  if(monitorCabling_) { cablingDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
197  if(monitorLowThreshold_) { lowthresholdDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
198  if(monitorHighThreshold_) { highthresholdDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
199 }
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 61 of file SiStripClassToMonitorCondData.h.

Referenced by beginRun(), and endRun().

bool SiStripClassToMonitorCondData::gainRenormalisation_
private

Definition at line 73 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 75 of file SiStripClassToMonitorCondData.h.

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