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

std::unique_ptr< SiStripApvGainsDQMapvgainsDQM_
 
std::unique_ptr< SiStripBackPlaneCorrectionDQMbpcorrectionDQM_
 
std::unique_ptr< SiStripCablingDQMcablingDQM_
 
edm::ParameterSet conf_
 
std::unique_ptr< SiStripThresholdDQMhighthresholdDQM_
 
std::unique_ptr< SiStripLorentzAngleDQMlorentzangleDQM_
 
std::unique_ptr< SiStripThresholdDQMlowthresholdDQM_
 
bool monitorApvGains_
 
bool monitorBackPlaneCorrection_
 
bool monitorCabling_
 
bool monitorHighThreshold_
 
bool monitorLorentzAngle_
 
bool monitorLowThreshold_
 
bool monitorNoises_
 
bool monitorPedestals_
 
bool monitorQuality_
 
std::unique_ptr< SiStripNoisesDQMnoisesDQM_
 
std::string outPutFileName
 
std::unique_ptr< SiStripPedestalsDQMpedestalsDQM_
 
std::unique_ptr< 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<typename ESProduct , Transition Tr = Transition::Event>
auto esConsumes (eventsetup::EventSetupRecordKey const &, ESInputTag const &tag)
 
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.

73  {
74 }

Member Function Documentation

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

Definition at line 165 of file SiStripMonitorCondData.cc.

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

165  {
166 
167  if(monitorPedestals_) { pedestalsDQM_ ->analysis(eSetup);}
168  if(monitorNoises_) { noisesDQM_ ->analysis(eSetup);}
169  if(monitorLowThreshold_) { lowthresholdDQM_ ->analysis(eSetup);}
170  if(monitorHighThreshold_) { highthresholdDQM_ ->analysis(eSetup);}
171  if(monitorApvGains_) { apvgainsDQM_ ->analysis(eSetup);}
172  if(monitorLorentzAngle_) { lorentzangleDQM_ ->analysis(eSetup);}
173  if(monitorBackPlaneCorrection_) { bpcorrectionDQM_ ->analysis(eSetup);}
174  if(monitorQuality_) { qualityDQM_->analysis(eSetup);qualityDQM_->fillGrandSummaryMEs(eSetup);}//fillGrand. for SiStripquality
175  if(monitorCabling_) { cablingDQM_ ->analysis(eSetup);}
176 } // analyze
std::unique_ptr< SiStripNoisesDQM > noisesDQM_
std::unique_ptr< SiStripCablingDQM > cablingDQM_
std::unique_ptr< SiStripThresholdDQM > highthresholdDQM_
std::unique_ptr< SiStripApvGainsDQM > apvgainsDQM_
std::unique_ptr< SiStripQualityDQM > qualityDQM_
std::unique_ptr< SiStripThresholdDQM > lowthresholdDQM_
std::unique_ptr< SiStripPedestalsDQM > pedestalsDQM_
std::unique_ptr< SiStripBackPlaneCorrectionDQM > bpcorrectionDQM_
std::unique_ptr< SiStripLorentzAngleDQM > lorentzangleDQM_
void SiStripMonitorCondData::beginJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 157 of file SiStripMonitorCondData.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 82 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().

82  {
83 
85  pedestalsDQM_ = std::make_unique<SiStripPedestalsDQM>(eSetup,
86  run.run(),
87  conf_.getParameter<edm::ParameterSet>("SiStripPedestalsDQM_PSet"),
88  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
89  }
90 
91 
92  if(monitorNoises_){
93  noisesDQM_ = std::make_unique<SiStripNoisesDQM>(eSetup,
94  run.run(),
95  conf_.getParameter<edm::ParameterSet>("SiStripNoisesDQM_PSet"),
96  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
97  }
98 
99 
101  lowthresholdDQM_ = std::make_unique<SiStripThresholdDQM>(eSetup,
102  run.run(),
103  conf_.getParameter<edm::ParameterSet>("SiStripLowThresholdDQM_PSet"),
104  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
105  }
106 
108  highthresholdDQM_ = std::make_unique<SiStripThresholdDQM>(eSetup,
109  run.run(),
110  conf_.getParameter<edm::ParameterSet>("SiStripHighThresholdDQM_PSet"),
111  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
112  }
113 
114  if(monitorQuality_){
115  qualityDQM_ = std::make_unique<SiStripQualityDQM>(eSetup,
116  run.run(),
117  conf_.getParameter<edm::ParameterSet>("SiStripQualityDQM_PSet"),
118  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
119  }
120 
121 
122  if(monitorApvGains_){
123  apvgainsDQM_ = std::make_unique<SiStripApvGainsDQM>(eSetup,
124  run.run(),
125  conf_.getParameter<edm::ParameterSet>("SiStripApvGainsDQM_PSet"),
126  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
127  }
128 
129 
131  lorentzangleDQM_ = std::make_unique<SiStripLorentzAngleDQM>(eSetup,
132  run.run(),
133  conf_.getParameter<edm::ParameterSet>("SiStripLorentzAngleDQM_PSet"),
134  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
135  }
136 
138  bpcorrectionDQM_ = std::make_unique<SiStripBackPlaneCorrectionDQM>(eSetup,
139  run.run(),
140  conf_.getParameter<edm::ParameterSet>("SiStripBackPlaneCorrectionDQM_PSet"),
141  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
142  }
143  if(monitorCabling_){
144  cablingDQM_ = std::make_unique<SiStripCablingDQM>(eSetup,
145  run.run(),
146  conf_.getParameter<edm::ParameterSet>("SiStripCablingDQM_PSet"),
147  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
148  }
149 } // beginRun
std::unique_ptr< SiStripNoisesDQM > noisesDQM_
T getParameter(std::string const &) const
std::unique_ptr< SiStripCablingDQM > cablingDQM_
std::unique_ptr< SiStripThresholdDQM > highthresholdDQM_
std::unique_ptr< SiStripApvGainsDQM > apvgainsDQM_
std::unique_ptr< SiStripQualityDQM > qualityDQM_
std::unique_ptr< SiStripThresholdDQM > lowthresholdDQM_
std::unique_ptr< SiStripPedestalsDQM > pedestalsDQM_
std::unique_ptr< SiStripBackPlaneCorrectionDQM > bpcorrectionDQM_
std::unique_ptr< SiStripLorentzAngleDQM > lorentzangleDQM_
void SiStripMonitorCondData::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 213 of file SiStripMonitorCondData.cc.

References DEFINE_FWK_MODULE.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 184 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_, Utilities::operator, postProcessorL1Gen_cff::outputFileName, pedestalsDQM_, qualityDQM_, and AlCaHLTBitMon_QueryRunRegistry::string.

184  {
185  if(monitorPedestals_) { pedestalsDQM_ ->end();}
186  if(monitorNoises_) { noisesDQM_ ->end();}
187  if(monitorLowThreshold_) { lowthresholdDQM_ ->end();}
189  if(monitorApvGains_) { apvgainsDQM_ ->end();}
190  if(monitorLorentzAngle_) { lorentzangleDQM_ ->end();}
192  if(monitorQuality_) { qualityDQM_ ->end();}
193  if(monitorCabling_) { cablingDQM_ ->end();}
194 
195  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
197 
198  DQMStore* dqmStore_=edm::Service<DQMStore>().operator->();
199 
200  if (outputMEsInRootFile) {
201  dqmStore_->showDirStructure();
202  dqmStore_->save(outputFileName);
203  }
204 
205 
206 } // endRun
std::unique_ptr< SiStripNoisesDQM > noisesDQM_
T getParameter(std::string const &) const
std::unique_ptr< SiStripCablingDQM > cablingDQM_
std::unique_ptr< SiStripThresholdDQM > highthresholdDQM_
std::unique_ptr< SiStripApvGainsDQM > apvgainsDQM_
std::unique_ptr< SiStripQualityDQM > qualityDQM_
std::unique_ptr< SiStripThresholdDQM > lowthresholdDQM_
std::unique_ptr< SiStripPedestalsDQM > pedestalsDQM_
std::unique_ptr< SiStripBackPlaneCorrectionDQM > bpcorrectionDQM_
std::unique_ptr< SiStripLorentzAngleDQM > lorentzangleDQM_

Member Data Documentation

std::unique_ptr<SiStripApvGainsDQM> SiStripMonitorCondData::apvgainsDQM_
private

Definition at line 78 of file SiStripMonitorCondData.h.

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

std::unique_ptr<SiStripBackPlaneCorrectionDQM> SiStripMonitorCondData::bpcorrectionDQM_
private

Definition at line 80 of file SiStripMonitorCondData.h.

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

std::unique_ptr<SiStripCablingDQM> SiStripMonitorCondData::cablingDQM_
private

Definition at line 81 of file SiStripMonitorCondData.h.

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

edm::ParameterSet SiStripMonitorCondData::conf_
private

Definition at line 59 of file SiStripMonitorCondData.h.

Referenced by beginRun(), and endRun().

std::unique_ptr<SiStripThresholdDQM> SiStripMonitorCondData::highthresholdDQM_
private

Definition at line 76 of file SiStripMonitorCondData.h.

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

std::unique_ptr<SiStripLorentzAngleDQM> SiStripMonitorCondData::lorentzangleDQM_
private

Definition at line 79 of file SiStripMonitorCondData.h.

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

std::unique_ptr<SiStripThresholdDQM> SiStripMonitorCondData::lowthresholdDQM_
private

Definition at line 75 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorApvGains_
private

Definition at line 66 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorBackPlaneCorrection_
private

Definition at line 68 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorCabling_
private

Definition at line 69 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorHighThreshold_
private

Definition at line 64 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorLorentzAngle_
private

Definition at line 67 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorLowThreshold_
private

Definition at line 63 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorNoises_
private

Definition at line 62 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorPedestals_
private

Definition at line 61 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorQuality_
private

Definition at line 65 of file SiStripMonitorCondData.h.

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

std::unique_ptr<SiStripNoisesDQM> SiStripMonitorCondData::noisesDQM_
private

Definition at line 74 of file SiStripMonitorCondData.h.

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

std::string SiStripMonitorCondData::outPutFileName
private

Definition at line 71 of file SiStripMonitorCondData.h.

std::unique_ptr<SiStripPedestalsDQM> SiStripMonitorCondData::pedestalsDQM_
private

Definition at line 73 of file SiStripMonitorCondData.h.

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

std::unique_ptr<SiStripQualityDQM> SiStripMonitorCondData::qualityDQM_
private

Definition at line 77 of file SiStripMonitorCondData.h.

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