CMS 3D CMS Logo

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

#include <SiStripMonitorCondData.h>

Inheritance diagram for SiStripMonitorCondData:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void beginRun (edm::Run const &run, edm::EventSetup const &eSetup) override
 
void endJob () override
 
void endRun (edm::Run const &run, edm::EventSetup const &eSetup) override
 
 SiStripMonitorCondData (const edm::ParameterSet &)
 
 ~SiStripMonitorCondData () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 42 of file SiStripMonitorCondData.h.

Constructor & Destructor Documentation

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

Definition at line 53 of file SiStripMonitorCondData.cc.

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

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

Definition at line 73 of file SiStripMonitorCondData.cc.

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

73  {
74 
75  if(monitorPedestals_) { delete pedestalsDQM_ ;}
76  if(monitorNoises_) { delete noisesDQM_ ;}
79  if(monitorQuality_) { delete qualityDQM_ ;}
80  if(monitorApvGains_) { delete apvgainsDQM_ ;}
83  if(monitorCabling_) { delete cablingDQM_;}
84 
85 }
SiStripCablingDQM * cablingDQM_
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_
SiStripLorentzAngleDQM * lorentzangleDQM_
SiStripQualityDQM * qualityDQM_
SiStripThresholdDQM * lowthresholdDQM_
SiStripThresholdDQM * highthresholdDQM_
SiStripNoisesDQM * noisesDQM_
SiStripPedestalsDQM * pedestalsDQM_
SiStripApvGainsDQM * apvgainsDQM_

Member Function Documentation

void SiStripMonitorCondData::analyze ( const edm::Event ,
const edm::EventSetup  
)
override

Definition at line 176 of file SiStripMonitorCondData.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_.

176  {
177 
178  if(monitorPedestals_) { pedestalsDQM_ ->analysis(eSetup);}
179  if(monitorNoises_) { noisesDQM_ ->analysis(eSetup);}
182  if(monitorApvGains_) { apvgainsDQM_ ->analysis(eSetup);}
185  if(monitorQuality_) { qualityDQM_->analysis(eSetup);qualityDQM_->fillGrandSummaryMEs(eSetup);}//fillGrand. for SiStripquality
186  if(monitorCabling_) { cablingDQM_ ->analysis(eSetup);}
187 } // analyze
void fillGrandSummaryMEs(const edm::EventSetup &eSetup)
SiStripCablingDQM * cablingDQM_
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_
SiStripLorentzAngleDQM * lorentzangleDQM_
SiStripQualityDQM * qualityDQM_
SiStripThresholdDQM * lowthresholdDQM_
SiStripThresholdDQM * highthresholdDQM_
void analysis(const edm::EventSetup &eSetup_)
SiStripNoisesDQM * noisesDQM_
SiStripPedestalsDQM * pedestalsDQM_
SiStripApvGainsDQM * apvgainsDQM_
void SiStripMonitorCondData::beginJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 168 of file SiStripMonitorCondData.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 93 of file SiStripMonitorCondData.cc.

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

93  {
94 
97  run.run(),
98  conf_.getParameter<edm::ParameterSet>("SiStripPedestalsDQM_PSet"),
99  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
100  }
101 
102 
103  if(monitorNoises_){
104  noisesDQM_ = new SiStripNoisesDQM(eSetup,
105  run.run(),
106  conf_.getParameter<edm::ParameterSet>("SiStripNoisesDQM_PSet"),
107  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
108  }
109 
110 
113  run.run(),
114  conf_.getParameter<edm::ParameterSet>("SiStripLowThresholdDQM_PSet"),
115  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
116  }
117 
120  run.run(),
121  conf_.getParameter<edm::ParameterSet>("SiStripHighThresholdDQM_PSet"),
122  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
123  }
124 
125  if(monitorQuality_){
126  qualityDQM_ = new SiStripQualityDQM(eSetup,
127  run.run(),
128  conf_.getParameter<edm::ParameterSet>("SiStripQualityDQM_PSet"),
129  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
130  }
131 
132 
133  if(monitorApvGains_){
134  apvgainsDQM_ = new SiStripApvGainsDQM(eSetup,
135  run.run(),
136  conf_.getParameter<edm::ParameterSet>("SiStripApvGainsDQM_PSet"),
137  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
138  }
139 
140 
143  run.run(),
144  conf_.getParameter<edm::ParameterSet>("SiStripLorentzAngleDQM_PSet"),
145  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
146  }
147 
150  run.run(),
151  conf_.getParameter<edm::ParameterSet>("SiStripBackPlaneCorrectionDQM_PSet"),
152  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
153  }
154  if(monitorCabling_){
155  cablingDQM_ = new SiStripCablingDQM(eSetup,
156  run.run(),
157  conf_.getParameter<edm::ParameterSet>("SiStripCablingDQM_PSet"),
158  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
159  }
160 } // beginRun
T getParameter(std::string const &) const
SiStripCablingDQM * cablingDQM_
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_
SiStripLorentzAngleDQM * lorentzangleDQM_
SiStripQualityDQM * qualityDQM_
SiStripThresholdDQM * lowthresholdDQM_
SiStripThresholdDQM * highthresholdDQM_
SiStripNoisesDQM * noisesDQM_
SiStripPedestalsDQM * pedestalsDQM_
SiStripApvGainsDQM * apvgainsDQM_
void SiStripMonitorCondData::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 224 of file SiStripMonitorCondData.cc.

References DEFINE_FWK_MODULE.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 195 of file SiStripMonitorCondData.cc.

References apvgainsDQM_, bpcorrectionDQM_, cablingDQM_, conf_, SiStripBaseCondObjDQM::end(), edm::ParameterSet::getParameter(), highthresholdDQM_, lorentzangleDQM_, lowthresholdDQM_, monitorApvGains_, monitorBackPlaneCorrection_, monitorCabling_, monitorHighThreshold_, monitorLorentzAngle_, monitorLowThreshold_, monitorNoises_, monitorPedestals_, monitorQuality_, noisesDQM_, Utilities::operator, postProcessorL1Gen_cff::outputFileName, pedestalsDQM_, qualityDQM_, and AlCaHLTBitMon_QueryRunRegistry::string.

195  {
197  if(monitorNoises_) { noisesDQM_ ->end();}
200  if(monitorApvGains_) { apvgainsDQM_ ->end();}
203  if(monitorQuality_) { qualityDQM_ ->end();}
204  if(monitorCabling_) { cablingDQM_ ->end();}
205 
206  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
208 
209  DQMStore* dqmStore_=edm::Service<DQMStore>().operator->();
210 
211  if (outputMEsInRootFile) {
212  dqmStore_->showDirStructure();
213  dqmStore_->save(outputFileName);
214  }
215 
216 
217 } // endRun
T getParameter(std::string const &) const
SiStripCablingDQM * cablingDQM_
SiStripBackPlaneCorrectionDQM * bpcorrectionDQM_
SiStripLorentzAngleDQM * lorentzangleDQM_
SiStripQualityDQM * qualityDQM_
SiStripThresholdDQM * lowthresholdDQM_
SiStripThresholdDQM * highthresholdDQM_
SiStripNoisesDQM * noisesDQM_
SiStripPedestalsDQM * pedestalsDQM_
SiStripApvGainsDQM * apvgainsDQM_

Member Data Documentation

SiStripApvGainsDQM* SiStripMonitorCondData::apvgainsDQM_
private

Definition at line 78 of file SiStripMonitorCondData.h.

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

SiStripBackPlaneCorrectionDQM* SiStripMonitorCondData::bpcorrectionDQM_
private

Definition at line 80 of file SiStripMonitorCondData.h.

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

SiStripCablingDQM* SiStripMonitorCondData::cablingDQM_
private

Definition at line 81 of file SiStripMonitorCondData.h.

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

edm::ParameterSet SiStripMonitorCondData::conf_
private

Definition at line 59 of file SiStripMonitorCondData.h.

Referenced by beginRun(), and endRun().

SiStripThresholdDQM* SiStripMonitorCondData::highthresholdDQM_
private

Definition at line 76 of file SiStripMonitorCondData.h.

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

SiStripLorentzAngleDQM* SiStripMonitorCondData::lorentzangleDQM_
private

Definition at line 79 of file SiStripMonitorCondData.h.

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

SiStripThresholdDQM* SiStripMonitorCondData::lowthresholdDQM_
private

Definition at line 75 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorApvGains_
private
bool SiStripMonitorCondData::monitorBackPlaneCorrection_
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 74 of file SiStripMonitorCondData.h.

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

std::string SiStripMonitorCondData::outPutFileName
private

Definition at line 71 of file SiStripMonitorCondData.h.

SiStripPedestalsDQM* SiStripMonitorCondData::pedestalsDQM_
private

Definition at line 73 of file SiStripMonitorCondData.h.

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

SiStripQualityDQM* SiStripMonitorCondData::qualityDQM_
private

Definition at line 77 of file SiStripMonitorCondData.h.

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