CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiStripClassToMonitorCondData Class Reference

#include <SiStripClassToMonitorCondData.h>

List of all members.

Public Member Functions

void analyseCondData (const edm::EventSetup &)
void beginJob ()
void beginRun (edm::EventSetup const &eSetup)
void endJob ()
void endRun (edm::EventSetup const &eSetup)
void getLayerMEsOnDemand (edm::EventSetup const &eSetup, std::string requestedSubDetector, uint32_t requestedSide, uint32_t requestedLayer)
void getModMEsOnDemand (edm::EventSetup const &eSetup, uint32_t requestedDetId)
 SiStripClassToMonitorCondData (edm::ParameterSet const &iConfig)
 ~SiStripClassToMonitorCondData ()

Private Attributes

SiStripApvGainsDQMapvgainsDQM_
SiStripCablingDQMcablingDQM_
edm::ParameterSet conf_
bool gainRenormalisation_
SiStripThresholdDQMhighthresholdDQM_
SiStripLorentzAngleDQMlorentzangleDQM_
SiStripThresholdDQMlowthresholdDQM_
bool monitorApvGains_
bool monitorCabling_
bool monitorHighThreshold_
bool monitorLorentzAngle_
bool monitorLowThreshold_
bool monitorNoises_
bool monitorPedestals_
bool monitorQuality_
SiStripNoisesDQMnoisesDQM_
std::string outPutFileName
SiStripPedestalsDQMpedestalsDQM_
SiStripQualityDQMqualityDQM_

Detailed Description

Definition at line 40 of file SiStripClassToMonitorCondData.h.


Constructor & Destructor Documentation

SiStripClassToMonitorCondData::SiStripClassToMonitorCondData ( edm::ParameterSet const &  iConfig) [explicit]

Definition at line 64 of file SiStripClassToMonitorCondData.cc.

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

                                                                                          :conf_(iConfig){
  
  monitorPedestals_      = iConfig.getParameter<bool>("MonitorSiStripPedestal");
  monitorNoises_         = iConfig.getParameter<bool>("MonitorSiStripNoise");
  monitorQuality_        = iConfig.getParameter<bool>("MonitorSiStripQuality");
  monitorApvGains_       = iConfig.getParameter<bool>("MonitorSiStripApvGain");
  monitorLorentzAngle_   = iConfig.getParameter<bool>("MonitorSiStripLorentzAngle");
  monitorLowThreshold_   = iConfig.getParameter<bool>("MonitorSiStripLowThreshold");
  monitorHighThreshold_  = iConfig.getParameter<bool>("MonitorSiStripHighThreshold");
  monitorCabling_        = iConfig.getParameter<bool>("MonitorSiStripCabling"); 
   
}
SiStripClassToMonitorCondData::~SiStripClassToMonitorCondData ( )

Member Function Documentation

void SiStripClassToMonitorCondData::analyseCondData ( const edm::EventSetup eSetup)
void SiStripClassToMonitorCondData::beginJob ( void  )

Definition at line 163 of file SiStripClassToMonitorCondData.cc.

{} //beginJob
void SiStripClassToMonitorCondData::beginRun ( edm::EventSetup const &  eSetup)

Definition at line 103 of file SiStripClassToMonitorCondData.cc.

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

Referenced by SiStripMonitorCondDataOnDemandExample::beginRun(), and SiStripAnalyser::beginRun().

                                                                        {
  
  if(monitorPedestals_){
    pedestalsDQM_ = new SiStripPedestalsDQM(eSetup,
                                            conf_.getParameter<edm::ParameterSet>("SiStripPedestalsDQM_PSet"),
                                            conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
  }
  
  
  if(monitorNoises_){
    noisesDQM_ = new SiStripNoisesDQM(eSetup,
                                      conf_.getParameter<edm::ParameterSet>("SiStripNoisesDQM_PSet"),
                                      conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
  }
 
  
  if(monitorQuality_){
    qualityDQM_ = new SiStripQualityDQM(eSetup,
                                        conf_.getParameter<edm::ParameterSet>("SiStripQualityDQM_PSet"),
                                        conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
  } 
  
 
  if(monitorApvGains_){
    apvgainsDQM_ = new SiStripApvGainsDQM(eSetup,
                                          conf_.getParameter<edm::ParameterSet>("SiStripApvGainsDQM_PSet"),
                                          conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
  }
  
  if(monitorLorentzAngle_){
    lorentzangleDQM_ = new SiStripLorentzAngleDQM(eSetup,
                                                  conf_.getParameter<edm::ParameterSet>("SiStripLorentzAngleDQM_PSet"),
                                                  conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
  }
  
  if(monitorLowThreshold_){
    lowthresholdDQM_ = new SiStripThresholdDQM(eSetup,
                                               conf_.getParameter<edm::ParameterSet>("SiStripLowThresholdDQM_PSet"),
                                               conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
  }

  if(monitorHighThreshold_){
    highthresholdDQM_ = new SiStripThresholdDQM(eSetup,
                                                conf_.getParameter<edm::ParameterSet>("SiStripHighThresholdDQM_PSet"),
                                                conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
  }

  if(monitorCabling_){
    cablingDQM_ = new SiStripCablingDQM(eSetup,
                                        conf_.getParameter<edm::ParameterSet>("SiStripCablingDQM_PSet"),
                                        conf_.getParameter<edm::ParameterSet>("FillConditions_PSet"));
  }
} // beginRun
void SiStripClassToMonitorCondData::endJob ( void  )

Definition at line 243 of file SiStripClassToMonitorCondData.cc.

{} //endJob
void SiStripClassToMonitorCondData::endRun ( edm::EventSetup const &  eSetup)

Definition at line 224 of file SiStripClassToMonitorCondData.cc.

References conf_, edm::ParameterSet::getParameter(), cmsCodeRules::cppFunctionSkipper::operator, and dumpDBToFile_GT_ttrig_cfg::outputFileName.

Referenced by SiStripMonitorCondDataOnDemandExample::endRun().

                                                                      {
  
  bool outputMEsInRootFile     = conf_.getParameter<bool>("OutputMEsInRootFile");
  std::string outputFileName  = conf_.getParameter<std::string>("OutputFileName");

  DQMStore* dqmStore_=edm::Service<DQMStore>().operator->();
  
  if (outputMEsInRootFile) { 
    dqmStore_->showDirStructure();
    dqmStore_->save(outputFileName);
  } 
 
} // endRun
void SiStripClassToMonitorCondData::getLayerMEsOnDemand ( edm::EventSetup const &  eSetup,
std::string  requestedSubDetector,
uint32_t  requestedSide,
uint32_t  requestedLayer 
)

Definition at line 186 of file SiStripClassToMonitorCondData.cc.

References SiStripBaseCondObjDQM::analysisOnDemand(), apvgainsDQM_, cablingDQM_, SiStripQualityDQM::fillGrandSummaryMEs(), highthresholdDQM_, lorentzangleDQM_, lowthresholdDQM_, monitorApvGains_, monitorCabling_, monitorHighThreshold_, monitorLorentzAngle_, monitorLowThreshold_, monitorNoises_, monitorPedestals_, monitorQuality_, noisesDQM_, pedestalsDQM_, and qualityDQM_.

Referenced by SiStripAnalyser::analyze().

                                                                                {
 
  if(monitorPedestals_)      { pedestalsDQM_     ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
  if(monitorNoises_)         { noisesDQM_        ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}    
  if(monitorQuality_)        { qualityDQM_       ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);
  qualityDQM_       ->fillGrandSummaryMEs();}
  if(monitorApvGains_)       { apvgainsDQM_      ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);} 
  if(monitorLorentzAngle_)   { lorentzangleDQM_  ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);} 
  if(monitorCabling_)        { cablingDQM_       ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
  if(monitorLowThreshold_)   { lowthresholdDQM_  ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
  if(monitorHighThreshold_)  { highthresholdDQM_ ->analysisOnDemand(eSetup,requestedSubDetector, requestedSide,requestedLayer);}
  
}
void SiStripClassToMonitorCondData::getModMEsOnDemand ( edm::EventSetup const &  eSetup,
uint32_t  requestedDetId 
)

Member Data Documentation

Definition at line 60 of file SiStripClassToMonitorCondData.h.

Referenced by beginRun(), and endRun().

Definition at line 71 of file SiStripClassToMonitorCondData.h.

Definition at line 73 of file SiStripClassToMonitorCondData.h.