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 Member Functions | Private Attributes
HcalDCSInfo Class Reference

#include <DQM/HcalMonitorCluster/interface/HcalDCSInfo.h>

Inheritance diagram for HcalDCSInfo:
edm::EDAnalyzer

Public Member Functions

 HcalDCSInfo (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~HcalDCSInfo ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Member Functions

void analyze (edm::Event const &, edm::EventSetup const &)
 Analyze. More...
 
void beginJob ()
 BeginJob. More...
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup)
 Begin Of Luminosity. More...
 
void beginRun (edm::Run const &run, edm::EventSetup const &eSetup)
 Begin Run. More...
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 End Luminosity Block. More...
 

Private Attributes

MonitorElementDCSFraction_
 
MonitorElementDCSFractionHB_
 
MonitorElementDCSFractionHE_
 
MonitorElementDCSFractionHF_
 
MonitorElementDCSFractionHFlumi_
 
MonitorElementDCSFractionHO0_
 
MonitorElementDCSFractionHO12_
 
MonitorElementDCSFractionHO_
 
MonitorElementDCSSummaryMap_
 
int debug_
 
DQMStoredqmStore_
 
unsigned long long m_cacheID_
 
std::string rootFolder_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- 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::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Description: Checks the # of Hcal FEDs from DAQ Usage: <usage>

Definition at line 42 of file HcalDCSInfo.h.

Constructor & Destructor Documentation

HcalDCSInfo::HcalDCSInfo ( const edm::ParameterSet ps)

Constructor.

Definition at line 20 of file HcalDCSInfo.cc.

References debug_, dqmStore_, edm::ParameterSet::getUntrackedParameter(), cppFunctionSkipper::operator, and rootFolder_.

20  {
21 
22  debug_ = pSet.getUntrackedParameter<int>("debug",0);
23  rootFolder_ = pSet.getUntrackedParameter<std::string>("subSystemFolder","Hcal");
24  // Create MessageSender
25  edm::LogInfo( "HcalDCSInfo") << "HcalDCSInfo::Creating HcalDCSInfo ";
26 
27  // get back-end interface
29 }
std::string rootFolder_
Definition: HcalDCSInfo.h:88
DQMStore * dqmStore_
Definition: HcalDCSInfo.h:76
HcalDCSInfo::~HcalDCSInfo ( )
virtual

Destructor.

Definition at line 31 of file HcalDCSInfo.cc.

32 {
33  edm::LogInfo("HcalDCSInfo") << "HcalDCSInfo::Deleting HcalDCSInfo ";
34 
35 } // destructor

Member Function Documentation

void HcalDCSInfo::analyze ( edm::Event const &  event,
edm::EventSetup const &  eSetup 
)
privatevirtual

Analyze.

Implements edm::EDAnalyzer.

Definition at line 83 of file HcalDCSInfo.cc.

84 {
85 }
void HcalDCSInfo::beginJob ( void  )
privatevirtual

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file HcalDCSInfo.cc.

References DQMStore::book2D(), DQMStore::bookFloat(), DCSFraction_, DCSFractionHB_, DCSFractionHE_, DCSFractionHF_, DCSFractionHFlumi_, DCSFractionHO0_, DCSFractionHO12_, DCSFractionHO_, DCSSummaryMap_, dqmStore_, rootFolder_, MonitorElement::setAxisRange(), MonitorElement::setBinLabel(), and DQMStore::setCurrentFolder().

40  {
41 
42 
43  dqmStore_->setCurrentFolder(rootFolder_+"/EventInfo/");
44 
45  // Book MEs for Hcal DCS fractions
46 
47  DCSFraction_= dqmStore_->bookFloat("DCSSummary");
48 
49  DCSSummaryMap_ = dqmStore_->book2D("DCSSummaryMap","HcalDCSSummaryMap",7,0.,7.,1,0.,1.);
51  DCSSummaryMap_->setBinLabel(1,"HB");
52  DCSSummaryMap_->setBinLabel(2,"HE");
53  DCSSummaryMap_->setBinLabel(3,"HO");
54  DCSSummaryMap_->setBinLabel(4,"HF");
55  DCSSummaryMap_->setBinLabel(5,"H00");
56  DCSSummaryMap_->setBinLabel(6,"H012");
57  DCSSummaryMap_->setBinLabel(7,"HFlumi");
58  DCSSummaryMap_->setBinLabel(1,"Status",2);
59 
60  dqmStore_->setCurrentFolder(rootFolder_+"/EventInfo/DCSContents");
61  DCSFractionHB_= dqmStore_->bookFloat("Hcal_HB");
62  DCSFractionHE_= dqmStore_->bookFloat("Hcal_HE");
63  DCSFractionHO_= dqmStore_->bookFloat("Hcal_HO");
64  DCSFractionHF_= dqmStore_->bookFloat("Hcal_HF");
65  DCSFractionHO0_= dqmStore_->bookFloat("Hcal_HO0");
66  DCSFractionHO12_= dqmStore_->bookFloat("Hcal_HO12");
67  DCSFractionHFlumi_= dqmStore_->bookFloat("Hcal_HFlumi");
68 
69 }
void setAxisRange(double xmin, double xmax, int axis=1)
set x-, y- or z-axis range (axis=1, 2, 3 respectively)
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * bookFloat(const char *name)
Book float.
Definition: DQMStore.cc:654
MonitorElement * DCSFraction_
Definition: HcalDCSInfo.h:78
std::string rootFolder_
Definition: HcalDCSInfo.h:88
MonitorElement * DCSFractionHO_
Definition: HcalDCSInfo.h:81
MonitorElement * DCSFractionHO0_
Definition: HcalDCSInfo.h:83
MonitorElement * DCSFractionHB_
Definition: HcalDCSInfo.h:79
MonitorElement * DCSFractionHE_
Definition: HcalDCSInfo.h:80
MonitorElement * DCSFractionHO12_
Definition: HcalDCSInfo.h:84
MonitorElement * DCSSummaryMap_
Definition: HcalDCSInfo.h:77
MonitorElement * DCSFractionHFlumi_
Definition: HcalDCSInfo.h:85
DQMStore * dqmStore_
Definition: HcalDCSInfo.h:76
MonitorElement * DCSFractionHF_
Definition: HcalDCSInfo.h:82
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:845
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
void HcalDCSInfo::beginLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  iSetup 
)
privatevirtual

Begin Of Luminosity.

Reimplemented from edm::EDAnalyzer.

Definition at line 90 of file HcalDCSInfo.cc.

91 {
92  edm::LogInfo ("HcalDCSInfo") <<"HcalDCSInfo:: Luminosity Block";
93 }
void HcalDCSInfo::beginRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
privatevirtual

Begin Run.

Reimplemented from edm::EDAnalyzer.

Definition at line 74 of file HcalDCSInfo.cc.

75 {
76  edm::LogInfo ("HcalDCSInfo") <<"HcalDCSInfo:: Begining of Run";
77  return;
78 }
void HcalDCSInfo::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup eSetup 
)
privatevirtual

End Luminosity Block.

Reimplemented from edm::EDAnalyzer.

Definition at line 95 of file HcalDCSInfo.cc.

References DCSFraction_, DCSFractionHB_, DCSFractionHE_, DCSFractionHF_, DCSFractionHFlumi_, DCSFractionHO0_, DCSFractionHO12_, DCSFractionHO_, DCSSummaryMap_, MonitorElement::Fill(), and MonitorElement::setBinContent().

96 {
97  edm::LogInfo ("HcalDCSInfo") <<"HcalDCSInfo:: Luminosity Block";
98 
99  // Fill them with -1 to start with
100 
101  for (int ii=0;ii<7;ii++) DCSSummaryMap_->setBinContent(ii+1,1,-1.0);
102  DCSFraction_->Fill(-1.0);
103  DCSFractionHB_->Fill(-1.0);
104  DCSFractionHE_->Fill(-1.0);
105  DCSFractionHO_->Fill(-1.0);
106  DCSFractionHF_->Fill(-1.0);
107  DCSFractionHO0_->Fill(-1.0);
108  DCSFractionHO12_->Fill(-1.0);
109  DCSFractionHFlumi_->Fill(-1.0);
110 
111  // Fill them with 1
112 
113  for (int ii=0;ii<7;ii++) DCSSummaryMap_->setBinContent(ii+1,1,1.0);
114  DCSFraction_->Fill(1.0);
115  DCSFractionHB_->Fill(1.0);
116  DCSFractionHE_->Fill(1.0);
117  DCSFractionHO_->Fill(1.0);
118  DCSFractionHF_->Fill(1.0);
119  DCSFractionHO0_->Fill(1.0);
120  DCSFractionHO12_->Fill(1.0);
121  DCSFractionHFlumi_->Fill(1.0);
122 }
void setBinContent(int binx, double content)
set content of bin (1-D)
void Fill(long long x)
MonitorElement * DCSFraction_
Definition: HcalDCSInfo.h:78
MonitorElement * DCSFractionHO_
Definition: HcalDCSInfo.h:81
MonitorElement * DCSFractionHO0_
Definition: HcalDCSInfo.h:83
MonitorElement * DCSFractionHB_
Definition: HcalDCSInfo.h:79
MonitorElement * DCSFractionHE_
Definition: HcalDCSInfo.h:80
MonitorElement * DCSFractionHO12_
Definition: HcalDCSInfo.h:84
MonitorElement * DCSSummaryMap_
Definition: HcalDCSInfo.h:77
MonitorElement * DCSFractionHFlumi_
Definition: HcalDCSInfo.h:85
MonitorElement * DCSFractionHF_
Definition: HcalDCSInfo.h:82

Member Data Documentation

MonitorElement* HcalDCSInfo::DCSFraction_
private

Definition at line 78 of file HcalDCSInfo.h.

Referenced by beginJob(), and endLuminosityBlock().

MonitorElement* HcalDCSInfo::DCSFractionHB_
private

Definition at line 79 of file HcalDCSInfo.h.

Referenced by beginJob(), and endLuminosityBlock().

MonitorElement* HcalDCSInfo::DCSFractionHE_
private

Definition at line 80 of file HcalDCSInfo.h.

Referenced by beginJob(), and endLuminosityBlock().

MonitorElement* HcalDCSInfo::DCSFractionHF_
private

Definition at line 82 of file HcalDCSInfo.h.

Referenced by beginJob(), and endLuminosityBlock().

MonitorElement* HcalDCSInfo::DCSFractionHFlumi_
private

Definition at line 85 of file HcalDCSInfo.h.

Referenced by beginJob(), and endLuminosityBlock().

MonitorElement* HcalDCSInfo::DCSFractionHO0_
private

Definition at line 83 of file HcalDCSInfo.h.

Referenced by beginJob(), and endLuminosityBlock().

MonitorElement* HcalDCSInfo::DCSFractionHO12_
private

Definition at line 84 of file HcalDCSInfo.h.

Referenced by beginJob(), and endLuminosityBlock().

MonitorElement* HcalDCSInfo::DCSFractionHO_
private

Definition at line 81 of file HcalDCSInfo.h.

Referenced by beginJob(), and endLuminosityBlock().

MonitorElement* HcalDCSInfo::DCSSummaryMap_
private

Definition at line 77 of file HcalDCSInfo.h.

Referenced by beginJob(), and endLuminosityBlock().

int HcalDCSInfo::debug_
private

Definition at line 72 of file HcalDCSInfo.h.

Referenced by HcalDCSInfo().

DQMStore* HcalDCSInfo::dqmStore_
private

Definition at line 76 of file HcalDCSInfo.h.

Referenced by beginJob(), and HcalDCSInfo().

unsigned long long HcalDCSInfo::m_cacheID_
private

Definition at line 87 of file HcalDCSInfo.h.

std::string HcalDCSInfo::rootFolder_
private

Definition at line 88 of file HcalDCSInfo.h.

Referenced by beginJob(), and HcalDCSInfo().