CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::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_
 
SiStripCablingDQMcablingDQM_
 
edm::ParameterSet conf_
 
bool gainRenormalisation_
 
SiStripThresholdDQMhighthresholdDQM_
 
SiStripLorentzAngleDQMlorentzangleDQM_
 
SiStripThresholdDQMlowthresholdDQM_
 
bool monitorApvGains_
 
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 64 of file SiStripClassToMonitorCondData.cc.

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

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

Definition at line 83 of file SiStripClassToMonitorCondData.cc.

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

83  {
84 
85  if(monitorPedestals_) { delete pedestalsDQM_;}
86  if(monitorNoises_) { delete noisesDQM_; }
87  if(monitorQuality_) { delete qualityDQM_; }
88  if(monitorApvGains_) { delete apvgainsDQM_; }
92  if(monitorCabling_) { delete cablingDQM_;}
93 
94 }

Member Function Documentation

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

Definition at line 205 of file SiStripClassToMonitorCondData.cc.

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

205  {
206 
207  if(monitorPedestals_) { pedestalsDQM_ ->analysis(eSetup);}
208  if(monitorNoises_) { noisesDQM_ ->analysis(eSetup);}
209  if(monitorQuality_) { qualityDQM_ ->analysis(eSetup); qualityDQM_->fillGrandSummaryMEs(eSetup);}//fillGrand. for SiStripquality
210  if(monitorApvGains_) { apvgainsDQM_ ->analysis(eSetup);}
212  if(monitorCabling_) { cablingDQM_ ->analysis(eSetup);}
215 
216 } // analyze
void fillGrandSummaryMEs(const edm::EventSetup &eSetup)
void analysis(const edm::EventSetup &eSetup_)
void SiStripClassToMonitorCondData::beginJob ( void  )

Definition at line 163 of file SiStripClassToMonitorCondData.cc.

163 {} //beginJob
void SiStripClassToMonitorCondData::beginRun ( edm::EventSetup const &  eSetup)

Definition at line 103 of file SiStripClassToMonitorCondData.cc.

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

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

103  {
104 
105  if(monitorPedestals_){
106  pedestalsDQM_ = new SiStripPedestalsDQM(eSetup,
107  conf_.getParameter<edm::ParameterSet>("SiStripPedestalsDQM_PSet"),
108  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
109  }
110 
111 
112  if(monitorNoises_){
113  noisesDQM_ = new SiStripNoisesDQM(eSetup,
114  conf_.getParameter<edm::ParameterSet>("SiStripNoisesDQM_PSet"),
115  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
116  }
117 
118 
119  if(monitorQuality_){
120  qualityDQM_ = new SiStripQualityDQM(eSetup,
121  conf_.getParameter<edm::ParameterSet>("SiStripQualityDQM_PSet"),
122  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
123  }
124 
125 
126  if(monitorApvGains_){
127  apvgainsDQM_ = new SiStripApvGainsDQM(eSetup,
128  conf_.getParameter<edm::ParameterSet>("SiStripApvGainsDQM_PSet"),
129  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
130  }
131 
134  conf_.getParameter<edm::ParameterSet>("SiStripLorentzAngleDQM_PSet"),
135  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
136  }
137 
140  conf_.getParameter<edm::ParameterSet>("SiStripLowThresholdDQM_PSet"),
141  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
142  }
143 
146  conf_.getParameter<edm::ParameterSet>("SiStripHighThresholdDQM_PSet"),
147  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
148  }
149 
150  if(monitorCabling_){
151  cablingDQM_ = new SiStripCablingDQM(eSetup,
152  conf_.getParameter<edm::ParameterSet>("SiStripCablingDQM_PSet"),
153  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
154  }
155 } // beginRun
T getParameter(std::string const &) const
void SiStripClassToMonitorCondData::endJob ( void  )

Definition at line 243 of file SiStripClassToMonitorCondData.cc.

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

Definition at line 224 of file SiStripClassToMonitorCondData.cc.

References conf_, edm::ParameterSet::getParameter(), cppFunctionSkipper::operator, dumpDBToFile_GT_ttrig_cfg::outputFileName, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by SiStripMonitorCondDataOnDemandExample::endRun().

224  {
225 
226  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
228 
229  DQMStore* dqmStore_=edm::Service<DQMStore>().operator->();
230 
231  if (outputMEsInRootFile) {
232  dqmStore_->showDirStructure();
233  dqmStore_->save(outputFileName);
234  }
235 
236 } // 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 186 of file SiStripClassToMonitorCondData.cc.

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

188  {
189 
190  if(monitorPedestals_) { pedestalsDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
191  if(monitorNoises_) { noisesDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
192  if(monitorQuality_) { qualityDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);
193  qualityDQM_ ->fillGrandSummaryMEs(eSetup);}
194  if(monitorApvGains_) { apvgainsDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
195  if(monitorLorentzAngle_) { lorentzangleDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
196  if(monitorCabling_) { cablingDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
197  if(monitorLowThreshold_) { lowthresholdDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
198  if(monitorHighThreshold_) { highthresholdDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
199 
200 }
void fillGrandSummaryMEs(const edm::EventSetup &eSetup)
void analysisOnDemand(const edm::EventSetup &eSetup_, uint32_t detIdOnDemand)
void SiStripClassToMonitorCondData::getModMEsOnDemand ( edm::EventSetup const &  eSetup,
uint32_t  requestedDetId 
)

Definition at line 169 of file SiStripClassToMonitorCondData.cc.

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

169  {
170 
171  if(monitorPedestals_) { pedestalsDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
172  if(monitorNoises_) { noisesDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
173  if(monitorQuality_) { qualityDQM_ ->analysisOnDemand(eSetup,requestedDetId);
174  qualityDQM_ ->fillGrandSummaryMEs(eSetup) ;}//fillGrand. for SiStripquality
175  if(monitorApvGains_) { apvgainsDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
176  if(monitorLorentzAngle_) { lorentzangleDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
177  if(monitorCabling_) { cablingDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
178  if(monitorLowThreshold_) { lowthresholdDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
179  if(monitorHighThreshold_) { highthresholdDQM_ ->analysisOnDemand(eSetup,requestedDetId);}
180 }
void fillGrandSummaryMEs(const edm::EventSetup &eSetup)
void analysisOnDemand(const edm::EventSetup &eSetup_, uint32_t detIdOnDemand)

Member Data Documentation

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

Definition at line 60 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::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