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
SiStripMonitorCondData Class Reference

#include <SiStripMonitorCondData.h>

Inheritance diagram for SiStripMonitorCondData:
edm::EDAnalyzer

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void beginRun (edm::Run const &run, edm::EventSetup const &eSetup)
 
virtual void endJob ()
 
virtual void endRun (edm::Run const &run, edm::EventSetup const &eSetup)
 
 SiStripMonitorCondData (const edm::ParameterSet &)
 
 ~SiStripMonitorCondData ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

SiStripApvGainsDQMapvgainsDQM_
 
SiStripCablingDQMcablingDQM_
 
edm::ParameterSet conf_
 
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_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Definition at line 41 of file SiStripMonitorCondData.h.

Constructor & Destructor Documentation

SiStripMonitorCondData::SiStripMonitorCondData ( const edm::ParameterSet iConfig)
explicit

Definition at line 52 of file SiStripMonitorCondData.cc.

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

52  :conf_(iConfig){
53 
54  monitorPedestals_ = iConfig.getParameter<bool>("MonitorSiStripPedestal");
55  monitorNoises_ = iConfig.getParameter<bool>("MonitorSiStripNoise");
56  monitorLowThreshold_ = iConfig.getParameter<bool>("MonitorSiStripLowThreshold");
57  monitorHighThreshold_ = iConfig.getParameter<bool>("MonitorSiStripHighThreshold");
58  monitorQuality_ = iConfig.getParameter<bool>("MonitorSiStripQuality");
59  monitorApvGains_ = iConfig.getParameter<bool>("MonitorSiStripApvGain");
60  monitorLorentzAngle_ = iConfig.getParameter<bool>("MonitorSiStripLorentzAngle");
61  monitorCabling_ = iConfig.getParameter<bool>("MonitorSiStripCabling");
62 
63 }
T getParameter(std::string const &) const
SiStripMonitorCondData::~SiStripMonitorCondData ( )

Definition at line 71 of file SiStripMonitorCondData.cc.

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

71  {
72 
73  if(monitorPedestals_) { delete pedestalsDQM_ ;}
74  if(monitorNoises_) { delete noisesDQM_ ;}
77  if(monitorQuality_) { delete qualityDQM_ ;}
78  if(monitorApvGains_) { delete apvgainsDQM_ ;}
80  if(monitorCabling_) { delete cablingDQM_;}
81 
82 }
SiStripCablingDQM * cablingDQM_
SiStripLorentzAngleDQM * lorentzangleDQM_
SiStripQualityDQM * qualityDQM_
SiStripThresholdDQM * lowthresholdDQM_
SiStripThresholdDQM * highthresholdDQM_
SiStripNoisesDQM * noisesDQM_
SiStripPedestalsDQM * pedestalsDQM_
SiStripApvGainsDQM * apvgainsDQM_

Member Function Documentation

void SiStripMonitorCondData::analyze ( const edm::Event iEvent,
const edm::EventSetup eSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 158 of file SiStripMonitorCondData.cc.

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

158  {
159 
160  if(monitorPedestals_) { pedestalsDQM_ ->analysis(eSetup);}
161  if(monitorNoises_) { noisesDQM_ ->analysis(eSetup);}
164  if(monitorApvGains_) { apvgainsDQM_ ->analysis(eSetup);}
166  if(monitorQuality_) { qualityDQM_->analysis(eSetup);qualityDQM_->fillGrandSummaryMEs();}//fillGrand. for SiStripquality
167  if(monitorCabling_) { cablingDQM_ ->analysis(eSetup);}
168 } // analyze
SiStripCablingDQM * cablingDQM_
SiStripLorentzAngleDQM * lorentzangleDQM_
SiStripQualityDQM * qualityDQM_
SiStripThresholdDQM * lowthresholdDQM_
SiStripThresholdDQM * highthresholdDQM_
void analysis(const edm::EventSetup &eSetup_)
SiStripNoisesDQM * noisesDQM_
SiStripPedestalsDQM * pedestalsDQM_
SiStripApvGainsDQM * apvgainsDQM_
void SiStripMonitorCondData::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 150 of file SiStripMonitorCondData.cc.

150 {} //beginJob
void SiStripMonitorCondData::beginRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 90 of file SiStripMonitorCondData.cc.

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

90  {
91 
94  conf_.getParameter<edm::ParameterSet>("SiStripPedestalsDQM_PSet"),
95  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
96  }
97 
98 
99  if(monitorNoises_){
100  noisesDQM_ = new SiStripNoisesDQM(eSetup,
101  conf_.getParameter<edm::ParameterSet>("SiStripNoisesDQM_PSet"),
102  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
103  }
104 
105 
108  conf_.getParameter<edm::ParameterSet>("SiStripLowThresholdDQM_PSet"),
109  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
110  }
111 
114  conf_.getParameter<edm::ParameterSet>("SiStripHighThresholdDQM_PSet"),
115  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
116  }
117 
118  if(monitorQuality_){
119  qualityDQM_ = new SiStripQualityDQM(eSetup,
120  conf_.getParameter<edm::ParameterSet>("SiStripQualityDQM_PSet"),
121  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
122  }
123 
124 
125  if(monitorApvGains_){
126  apvgainsDQM_ = new SiStripApvGainsDQM(eSetup,
127  conf_.getParameter<edm::ParameterSet>("SiStripApvGainsDQM_PSet"),
128  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
129  }
130 
131 
134  conf_.getParameter<edm::ParameterSet>("SiStripLorentzAngleDQM_PSet"),
135  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
136  }
137  if(monitorCabling_){
138  cablingDQM_ = new SiStripCablingDQM(eSetup,
139  conf_.getParameter<edm::ParameterSet>("SiStripCablingDQM_PSet"),
140  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
141  }
142 } // beginRun
T getParameter(std::string const &) const
SiStripCablingDQM * cablingDQM_
SiStripLorentzAngleDQM * lorentzangleDQM_
SiStripQualityDQM * qualityDQM_
SiStripThresholdDQM * lowthresholdDQM_
SiStripThresholdDQM * highthresholdDQM_
SiStripNoisesDQM * noisesDQM_
SiStripPedestalsDQM * pedestalsDQM_
SiStripApvGainsDQM * apvgainsDQM_
void SiStripMonitorCondData::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 204 of file SiStripMonitorCondData.cc.

204 {}
void SiStripMonitorCondData::endRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 176 of file SiStripMonitorCondData.cc.

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

176  {
178  if(monitorNoises_) { noisesDQM_ ->end();}
181  if(monitorApvGains_) { apvgainsDQM_ ->end();}
183  if(monitorQuality_) { qualityDQM_ ->end();}
184  if(monitorCabling_) { cablingDQM_ ->end();}
185 
186  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
187  std::string outputFileName = conf_.getParameter<std::string>("OutputFileName");
188 
189  DQMStore* dqmStore_=edm::Service<DQMStore>().operator->();
190 
191  if (outputMEsInRootFile) {
192  dqmStore_->showDirStructure();
193  dqmStore_->save(outputFileName);
194  }
195 
196 
197 } // endRun
T getParameter(std::string const &) const
SiStripCablingDQM * cablingDQM_
SiStripLorentzAngleDQM * lorentzangleDQM_
SiStripQualityDQM * qualityDQM_
SiStripThresholdDQM * lowthresholdDQM_
SiStripThresholdDQM * highthresholdDQM_
SiStripNoisesDQM * noisesDQM_
SiStripPedestalsDQM * pedestalsDQM_
SiStripApvGainsDQM * apvgainsDQM_

Member Data Documentation

SiStripApvGainsDQM* SiStripMonitorCondData::apvgainsDQM_
private

Definition at line 76 of file SiStripMonitorCondData.h.

Referenced by analyze(), beginRun(), endRun(), and ~SiStripMonitorCondData().

SiStripCablingDQM* SiStripMonitorCondData::cablingDQM_
private

Definition at line 78 of file SiStripMonitorCondData.h.

Referenced by analyze(), beginRun(), endRun(), and ~SiStripMonitorCondData().

edm::ParameterSet SiStripMonitorCondData::conf_
private

Definition at line 58 of file SiStripMonitorCondData.h.

Referenced by beginRun(), and endRun().

SiStripThresholdDQM* SiStripMonitorCondData::highthresholdDQM_
private

Definition at line 74 of file SiStripMonitorCondData.h.

Referenced by analyze(), beginRun(), endRun(), and ~SiStripMonitorCondData().

SiStripLorentzAngleDQM* SiStripMonitorCondData::lorentzangleDQM_
private

Definition at line 77 of file SiStripMonitorCondData.h.

Referenced by analyze(), beginRun(), endRun(), and ~SiStripMonitorCondData().

SiStripThresholdDQM* SiStripMonitorCondData::lowthresholdDQM_
private

Definition at line 73 of file SiStripMonitorCondData.h.

Referenced by analyze(), beginRun(), endRun(), and ~SiStripMonitorCondData().

bool SiStripMonitorCondData::monitorApvGains_
private
bool SiStripMonitorCondData::monitorCabling_
private
bool SiStripMonitorCondData::monitorHighThreshold_
private
bool SiStripMonitorCondData::monitorLorentzAngle_
private
bool SiStripMonitorCondData::monitorLowThreshold_
private
bool SiStripMonitorCondData::monitorNoises_
private
bool SiStripMonitorCondData::monitorPedestals_
private
bool SiStripMonitorCondData::monitorQuality_
private
SiStripNoisesDQM* SiStripMonitorCondData::noisesDQM_
private

Definition at line 72 of file SiStripMonitorCondData.h.

Referenced by analyze(), beginRun(), endRun(), and ~SiStripMonitorCondData().

std::string SiStripMonitorCondData::outPutFileName
private

Definition at line 69 of file SiStripMonitorCondData.h.

SiStripPedestalsDQM* SiStripMonitorCondData::pedestalsDQM_
private

Definition at line 71 of file SiStripMonitorCondData.h.

Referenced by analyze(), beginRun(), endRun(), and ~SiStripMonitorCondData().

SiStripQualityDQM* SiStripMonitorCondData::qualityDQM_
private

Definition at line 75 of file SiStripMonitorCondData.h.

Referenced by analyze(), beginRun(), endRun(), and ~SiStripMonitorCondData().