CMS 3D CMS Logo

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

#include <SiStripMonitorCondData.h>

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

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
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

- 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
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (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)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 39 of file SiStripMonitorCondData.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 42 of file SiStripMonitorCondData.h.

◆ MonitorElement

Definition at line 41 of file SiStripMonitorCondData.h.

Constructor & Destructor Documentation

◆ SiStripMonitorCondData()

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

Definition at line 49 of file SiStripMonitorCondData.cc.

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

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

◆ ~SiStripMonitorCondData()

SiStripMonitorCondData::~SiStripMonitorCondData ( )
override

Definition at line 65 of file SiStripMonitorCondData.cc.

65 {}

Member Function Documentation

◆ analyze()

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

Implements edm::EDAnalyzer.

Definition at line 151 of file SiStripMonitorCondData.cc.

151  {
152  if (monitorPedestals_) {
153  pedestalsDQM_->analysis(eSetup);
154  }
155  if (monitorNoises_) {
156  noisesDQM_->analysis(eSetup);
157  }
158  if (monitorLowThreshold_) {
159  lowthresholdDQM_->analysis(eSetup);
160  }
161  if (monitorHighThreshold_) {
162  highthresholdDQM_->analysis(eSetup);
163  }
164  if (monitorApvGains_) {
165  apvgainsDQM_->analysis(eSetup);
166  }
167  if (monitorLorentzAngle_) {
168  lorentzangleDQM_->analysis(eSetup);
169  }
171  bpcorrectionDQM_->analysis(eSetup);
172  }
173  if (monitorQuality_) {
174  qualityDQM_->analysis(eSetup);
175  qualityDQM_->fillGrandSummaryMEs(eSetup);
176  } // fillGrand. for SiStripquality
177  if (monitorCabling_) {
178  cablingDQM_->analysis(eSetup);
179  }
180 } // analyze

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

◆ beginJob()

void SiStripMonitorCondData::beginJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 145 of file SiStripMonitorCondData.cc.

145 {} // beginJob

◆ beginRun()

void SiStripMonitorCondData::beginRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 71 of file SiStripMonitorCondData.cc.

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

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

◆ endJob()

void SiStripMonitorCondData::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 230 of file SiStripMonitorCondData.cc.

230 {}

◆ endRun()

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

Reimplemented from edm::EDAnalyzer.

Definition at line 186 of file SiStripMonitorCondData.cc.

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

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

Member Data Documentation

◆ apvgainsDQM_

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

Definition at line 74 of file SiStripMonitorCondData.h.

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

◆ bpcorrectionDQM_

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

Definition at line 76 of file SiStripMonitorCondData.h.

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

◆ cablingDQM_

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

Definition at line 77 of file SiStripMonitorCondData.h.

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

◆ conf_

edm::ParameterSet SiStripMonitorCondData::conf_
private

Definition at line 55 of file SiStripMonitorCondData.h.

Referenced by beginRun(), and endRun().

◆ highthresholdDQM_

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

Definition at line 72 of file SiStripMonitorCondData.h.

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

◆ lorentzangleDQM_

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

Definition at line 75 of file SiStripMonitorCondData.h.

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

◆ lowthresholdDQM_

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

Definition at line 71 of file SiStripMonitorCondData.h.

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

◆ monitorApvGains_

bool SiStripMonitorCondData::monitorApvGains_
private

Definition at line 62 of file SiStripMonitorCondData.h.

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

◆ monitorBackPlaneCorrection_

bool SiStripMonitorCondData::monitorBackPlaneCorrection_
private

Definition at line 64 of file SiStripMonitorCondData.h.

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

◆ monitorCabling_

bool SiStripMonitorCondData::monitorCabling_
private

Definition at line 65 of file SiStripMonitorCondData.h.

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

◆ monitorHighThreshold_

bool SiStripMonitorCondData::monitorHighThreshold_
private

Definition at line 60 of file SiStripMonitorCondData.h.

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

◆ monitorLorentzAngle_

bool SiStripMonitorCondData::monitorLorentzAngle_
private

Definition at line 63 of file SiStripMonitorCondData.h.

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

◆ monitorLowThreshold_

bool SiStripMonitorCondData::monitorLowThreshold_
private

Definition at line 59 of file SiStripMonitorCondData.h.

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

◆ monitorNoises_

bool SiStripMonitorCondData::monitorNoises_
private

Definition at line 58 of file SiStripMonitorCondData.h.

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

◆ monitorPedestals_

bool SiStripMonitorCondData::monitorPedestals_
private

Definition at line 57 of file SiStripMonitorCondData.h.

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

◆ monitorQuality_

bool SiStripMonitorCondData::monitorQuality_
private

Definition at line 61 of file SiStripMonitorCondData.h.

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

◆ noisesDQM_

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

Definition at line 70 of file SiStripMonitorCondData.h.

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

◆ outPutFileName

std::string SiStripMonitorCondData::outPutFileName
private

Definition at line 67 of file SiStripMonitorCondData.h.

◆ pedestalsDQM_

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

Definition at line 69 of file SiStripMonitorCondData.h.

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

◆ qualityDQM_

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

Definition at line 73 of file SiStripMonitorCondData.h.

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

SiStripMonitorCondData::pedestalsDQM_
std::unique_ptr< SiStripPedestalsDQM > pedestalsDQM_
Definition: SiStripMonitorCondData.h:69
SiStripMonitorCondData::apvgainsDQM_
std::unique_ptr< SiStripApvGainsDQM > apvgainsDQM_
Definition: SiStripMonitorCondData.h:74
SiStripMonitorCondData::lowthresholdDQM_
std::unique_ptr< SiStripThresholdDQM > lowthresholdDQM_
Definition: SiStripMonitorCondData.h:71
SiStripMonitorCondData::monitorLowThreshold_
bool monitorLowThreshold_
Definition: SiStripMonitorCondData.h:59
SiStripMonitorCondData::bpcorrectionDQM_
std::unique_ptr< SiStripBackPlaneCorrectionDQM > bpcorrectionDQM_
Definition: SiStripMonitorCondData.h:76
SiStripMonitorCondData::monitorBackPlaneCorrection_
bool monitorBackPlaneCorrection_
Definition: SiStripMonitorCondData.h:64
SiStripMonitorCondData::noisesDQM_
std::unique_ptr< SiStripNoisesDQM > noisesDQM_
Definition: SiStripMonitorCondData.h:70
SiStripMonitorCondData::lorentzangleDQM_
std::unique_ptr< SiStripLorentzAngleDQM > lorentzangleDQM_
Definition: SiStripMonitorCondData.h:75
SiStripMonitorCondData::cablingDQM_
std::unique_ptr< SiStripCablingDQM > cablingDQM_
Definition: SiStripMonitorCondData.h:77
reco_skim_cfg_mod.outputFileName
outputFileName
Definition: reco_skim_cfg_mod.py:15
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
SiStripMonitorCondData::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiStripMonitorCondData.h:42
SiStripMonitorCondData::conf_
edm::ParameterSet conf_
Definition: SiStripMonitorCondData.h:55
SiStripMonitorCondData::monitorQuality_
bool monitorQuality_
Definition: SiStripMonitorCondData.h:61
SiStripMonitorCondData::monitorApvGains_
bool monitorApvGains_
Definition: SiStripMonitorCondData.h:62
SiStripMonitorCondData::monitorPedestals_
bool monitorPedestals_
Definition: SiStripMonitorCondData.h:57
edm::Service
Definition: Service.h:30
SiStripMonitorCondData::monitorCabling_
bool monitorCabling_
Definition: SiStripMonitorCondData.h:65
SiStripMonitorCondData::highthresholdDQM_
std::unique_ptr< SiStripThresholdDQM > highthresholdDQM_
Definition: SiStripMonitorCondData.h:72
SiStripMonitorCondData::qualityDQM_
std::unique_ptr< SiStripQualityDQM > qualityDQM_
Definition: SiStripMonitorCondData.h:73
SiStripMonitorCondData::monitorNoises_
bool monitorNoises_
Definition: SiStripMonitorCondData.h:58
SiStripMonitorCondData::monitorHighThreshold_
bool monitorHighThreshold_
Definition: SiStripMonitorCondData.h:60
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SiStripMonitorCondData::monitorLorentzAngle_
bool monitorLorentzAngle_
Definition: SiStripMonitorCondData.h:63