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 edm::EDConsumerBase

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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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 &)
 
- 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 iConfig)
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 }
T getParameter(std::string const &) const
SiStripMonitorCondData::~SiStripMonitorCondData ( )

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 iEvent,
const edm::EventSetup eSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 167 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_.

167  {
168 
169  if(monitorPedestals_) { pedestalsDQM_ ->analysis(eSetup);}
170  if(monitorNoises_) { noisesDQM_ ->analysis(eSetup);}
173  if(monitorApvGains_) { apvgainsDQM_ ->analysis(eSetup);}
176  if(monitorQuality_) { qualityDQM_->analysis(eSetup);qualityDQM_->fillGrandSummaryMEs(eSetup);}//fillGrand. for SiStripquality
177  if(monitorCabling_) { cablingDQM_ ->analysis(eSetup);}
178 } // 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  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 159 of file SiStripMonitorCondData.cc.

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

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_, and qualityDQM_.

93  {
94 
97  conf_.getParameter<edm::ParameterSet>("SiStripPedestalsDQM_PSet"),
98  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
99  }
100 
101 
102  if(monitorNoises_){
103  noisesDQM_ = new SiStripNoisesDQM(eSetup,
104  conf_.getParameter<edm::ParameterSet>("SiStripNoisesDQM_PSet"),
105  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
106  }
107 
108 
111  conf_.getParameter<edm::ParameterSet>("SiStripLowThresholdDQM_PSet"),
112  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
113  }
114 
117  conf_.getParameter<edm::ParameterSet>("SiStripHighThresholdDQM_PSet"),
118  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
119  }
120 
121  if(monitorQuality_){
122  qualityDQM_ = new SiStripQualityDQM(eSetup,
123  conf_.getParameter<edm::ParameterSet>("SiStripQualityDQM_PSet"),
124  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
125  }
126 
127 
128  if(monitorApvGains_){
129  apvgainsDQM_ = new SiStripApvGainsDQM(eSetup,
130  conf_.getParameter<edm::ParameterSet>("SiStripApvGainsDQM_PSet"),
131  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
132  }
133 
134 
137  conf_.getParameter<edm::ParameterSet>("SiStripLorentzAngleDQM_PSet"),
138  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
139  }
140 
143  conf_.getParameter<edm::ParameterSet>("SiStripBackPlaneCorrectionDQM_PSet"),
144  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
145  }
146  if(monitorCabling_){
147  cablingDQM_ = new SiStripCablingDQM(eSetup,
148  conf_.getParameter<edm::ParameterSet>("SiStripCablingDQM_PSet"),
149  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
150  }
151 } // 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  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 215 of file SiStripMonitorCondData.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 186 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_, cppFunctionSkipper::operator, dumpDBToFile_GT_ttrig_cfg::outputFileName, pedestalsDQM_, qualityDQM_, and AlCaHLTBitMon_QueryRunRegistry::string.

186  {
188  if(monitorNoises_) { noisesDQM_ ->end();}
191  if(monitorApvGains_) { apvgainsDQM_ ->end();}
194  if(monitorQuality_) { qualityDQM_ ->end();}
195  if(monitorCabling_) { cablingDQM_ ->end();}
196 
197  bool outputMEsInRootFile = conf_.getParameter<bool>("OutputMEsInRootFile");
199 
200  DQMStore* dqmStore_=edm::Service<DQMStore>().operator->();
201 
202  if (outputMEsInRootFile) {
203  dqmStore_->showDirStructure();
204  dqmStore_->save(outputFileName);
205  }
206 
207 
208 } // 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().