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
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
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)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
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 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 41 of file SiStripMonitorCondData.h.

Constructor & Destructor Documentation

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

Definition at line 50 of file SiStripMonitorCondData.cc.

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

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

Definition at line 66 of file SiStripMonitorCondData.cc.

66 {}

Member Function Documentation

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

Definition at line 152 of file SiStripMonitorCondData.cc.

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

152  {
153  if (monitorPedestals_) {
154  pedestalsDQM_->analysis(eSetup);
155  }
156  if (monitorNoises_) {
157  noisesDQM_->analysis(eSetup);
158  }
159  if (monitorLowThreshold_) {
160  lowthresholdDQM_->analysis(eSetup);
161  }
162  if (monitorHighThreshold_) {
163  highthresholdDQM_->analysis(eSetup);
164  }
165  if (monitorApvGains_) {
166  apvgainsDQM_->analysis(eSetup);
167  }
168  if (monitorLorentzAngle_) {
169  lorentzangleDQM_->analysis(eSetup);
170  }
172  bpcorrectionDQM_->analysis(eSetup);
173  }
174  if (monitorQuality_) {
175  qualityDQM_->analysis(eSetup);
176  qualityDQM_->fillGrandSummaryMEs(eSetup);
177  } // fillGrand. for SiStripquality
178  if (monitorCabling_) {
179  cablingDQM_->analysis(eSetup);
180  }
181 } // 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 146 of file SiStripMonitorCondData.cc.

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

Reimplemented from edm::EDAnalyzer.

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

72  {
73  if (monitorPedestals_) {
75  std::make_unique<SiStripPedestalsDQM>(eSetup,
76  run.run(),
77  conf_.getParameter<edm::ParameterSet>("SiStripPedestalsDQM_PSet"),
78  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
79  }
80 
81  if (monitorNoises_) {
82  noisesDQM_ = std::make_unique<SiStripNoisesDQM>(eSetup,
83  run.run(),
84  conf_.getParameter<edm::ParameterSet>("SiStripNoisesDQM_PSet"),
85  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
86  }
87 
90  std::make_unique<SiStripThresholdDQM>(eSetup,
91  run.run(),
92  conf_.getParameter<edm::ParameterSet>("SiStripLowThresholdDQM_PSet"),
93  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
94  }
95 
98  std::make_unique<SiStripThresholdDQM>(eSetup,
99  run.run(),
100  conf_.getParameter<edm::ParameterSet>("SiStripHighThresholdDQM_PSet"),
101  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
102  }
103 
104  if (monitorQuality_) {
105  qualityDQM_ = std::make_unique<SiStripQualityDQM>(eSetup,
106  run.run(),
107  conf_.getParameter<edm::ParameterSet>("SiStripQualityDQM_PSet"),
108  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
109  }
110 
111  if (monitorApvGains_) {
112  apvgainsDQM_ =
113  std::make_unique<SiStripApvGainsDQM>(eSetup,
114  run.run(),
115  conf_.getParameter<edm::ParameterSet>("SiStripApvGainsDQM_PSet"),
116  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
117  }
118 
119  if (monitorLorentzAngle_) {
121  std::make_unique<SiStripLorentzAngleDQM>(eSetup,
122  run.run(),
123  conf_.getParameter<edm::ParameterSet>("SiStripLorentzAngleDQM_PSet"),
124  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
125  }
126 
128  bpcorrectionDQM_ = std::make_unique<SiStripBackPlaneCorrectionDQM>(
129  eSetup,
130  run.run(),
131  conf_.getParameter<edm::ParameterSet>("SiStripBackPlaneCorrectionDQM_PSet"),
132  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
133  }
134  if (monitorCabling_) {
135  cablingDQM_ = std::make_unique<SiStripCablingDQM>(eSetup,
136  run.run(),
137  conf_.getParameter<edm::ParameterSet>("SiStripCablingDQM_PSet"),
138  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
139  }
140 } // 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 232 of file SiStripMonitorCondData.cc.

References DEFINE_FWK_MODULE.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 187 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, PostProcessorHGCAL_cfi::outputFileName, pedestalsDQM_, qualityDQM_, and AlCaHLTBitMon_QueryRunRegistry::string.

187  {
188  if (monitorPedestals_) {
189  pedestalsDQM_->end();
190  }
191  if (monitorNoises_) {
192  noisesDQM_->end();
193  }
194  if (monitorLowThreshold_) {
195  lowthresholdDQM_->end();
196  }
197  if (monitorHighThreshold_) {
198  highthresholdDQM_->end();
199  }
200  if (monitorApvGains_) {
201  apvgainsDQM_->end();
202  }
203  if (monitorLorentzAngle_) {
204  lorentzangleDQM_->end();
205  }
207  bpcorrectionDQM_->end();
208  }
209  if (monitorQuality_) {
210  qualityDQM_->end();
211  }
212  if (monitorCabling_) {
213  cablingDQM_->end();
214  }
215 
216  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
218 
219  DQMStore *dqmStore_ = edm::Service<DQMStore>().operator->();
220 
221  if (outputMEsInRootFile) {
222  dqmStore_->showDirStructure();
223  dqmStore_->save(outputFileName);
224  }
225 
226 } // 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 73 of file SiStripMonitorCondData.h.

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

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

Definition at line 75 of file SiStripMonitorCondData.h.

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

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

Definition at line 76 of file SiStripMonitorCondData.h.

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

edm::ParameterSet SiStripMonitorCondData::conf_
private

Definition at line 54 of file SiStripMonitorCondData.h.

Referenced by beginRun(), and endRun().

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

Definition at line 71 of file SiStripMonitorCondData.h.

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

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

Definition at line 74 of file SiStripMonitorCondData.h.

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

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

Definition at line 70 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorApvGains_
private

Definition at line 61 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorBackPlaneCorrection_
private

Definition at line 63 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorCabling_
private

Definition at line 64 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorHighThreshold_
private

Definition at line 59 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorLorentzAngle_
private

Definition at line 62 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorLowThreshold_
private

Definition at line 58 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorNoises_
private

Definition at line 57 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorPedestals_
private

Definition at line 56 of file SiStripMonitorCondData.h.

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

bool SiStripMonitorCondData::monitorQuality_
private

Definition at line 60 of file SiStripMonitorCondData.h.

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

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

Definition at line 69 of file SiStripMonitorCondData.h.

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

std::string SiStripMonitorCondData::outPutFileName
private

Definition at line 66 of file SiStripMonitorCondData.h.

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

Definition at line 68 of file SiStripMonitorCondData.h.

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

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

Definition at line 72 of file SiStripMonitorCondData.h.

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