CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
HcalDigisClient Class Reference

#include <Validation/HcalDigisClient/src/HcalDigisClient.cc>

Inheritance diagram for HcalDigisClient:
DQMEDHarvester edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Classes

struct  HistLim
 

Public Member Functions

 HcalDigisClient (const edm::ParameterSet &)
 
 ~HcalDigisClient ()
 
- Public Member Functions inherited from DQMEDHarvester
virtual void analyze (edm::Event const &, edm::EventSetup const &) final
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDHarvester (void)
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endJob () final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- 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 (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &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 Member Functions

void book1D (DQMStore::IBooker &ib, std::string name, int n, double min, double max)
 
void book1D (DQMStore::IBooker &ib, std::string name, const HistLim &limX)
 
void book2D (DQMStore::IBooker &ib, std::string name, const HistLim &limX, const HistLim &limY)
 
void booking (DQMStore::IBooker &ib, std::string subdetopt)
 
void bookPf (DQMStore::IBooker &ib, std::string name, const HistLim &limX, const HistLim &limY)
 
void bookPf (DQMStore::IBooker &ib, std::string name, const HistLim &limX, const HistLim &limY, const char *option)
 
virtual void dqmEndJob (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
 
void fill1D (std::string name, double X, double weight=1)
 
void fill2D (std::string name, double X, double Y, double weight=1)
 
void fillPf (std::string name, double X, double Y)
 
int HcalDigisEndjob (const std::vector< MonitorElement * > &hcalMEs, std::string subdet_)
 
double integralMETH2D (MonitorElement *ME, int i0, int i1, int j0, int j1)
 
MonitorElementmonitor (std::string name)
 
virtual void runClient (DQMStore::IBooker &ib, DQMStore::IGetter &ig)
 
void scaleMETH2D (MonitorElement *ME, double s)
 
std::string str (int x)
 

Private Attributes

std::string dirName_
 
std::map< std::string,
MonitorElement * > * 
msm_
 
std::string outputFile_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 27 of file HcalDigisClient.h.

Constructor & Destructor Documentation

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

Definition at line 23 of file HcalDigisClient.cc.

References dirName_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), msm_, outputFile_, and AlCaHLTBitMon_QueryRunRegistry::string.

23  {
24  outputFile_ = iConfig.getUntrackedParameter<std::string > ("outputFile", "HcalDigisClient.root");
25  dirName_ = iConfig.getParameter<std::string > ("DQMDirName");
26  msm_ = new std::map<std::string, MonitorElement*>();
27 
28 
29 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::string dirName_
std::string outputFile_
std::map< std::string, MonitorElement * > * msm_
HcalDigisClient::~HcalDigisClient ( )

Definition at line 32 of file HcalDigisClient.cc.

References msm_.

32  {
33  delete msm_;
34 }
std::map< std::string, MonitorElement * > * msm_

Member Function Documentation

void HcalDigisClient::book1D ( DQMStore::IBooker ib,
std::string  name,
int  n,
double  min,
double  max 
)
inlineprivate

Definition at line 63 of file HcalDigisClient.h.

References DQMStore::IBooker::book1D(), bookConverter::max, min(), msm_, gen::n, and mergeVDriftHistosByStation::name.

Referenced by booking().

63  {
64  if (!msm_->count(name)) (*msm_)[name] = ib.book1D(name.c_str(), name.c_str(), n, min, max);
65  }
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
T min(T a, T b)
Definition: MathUtil.h:58
std::map< std::string, MonitorElement * > * msm_
void HcalDigisClient::book1D ( DQMStore::IBooker ib,
std::string  name,
const HistLim limX 
)
inlineprivate

Definition at line 67 of file HcalDigisClient.h.

References DQMStore::IBooker::book1D(), HcalDigisClient::HistLim::max, HcalDigisClient::HistLim::min, msm_, HcalDigisClient::HistLim::n, and mergeVDriftHistosByStation::name.

67  {
68  if (!msm_->count(name)) (*msm_)[name] = ib.book1D(name.c_str(), name.c_str(), limX.n, limX.min, limX.max);
69  }
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
std::map< std::string, MonitorElement * > * msm_
void HcalDigisClient::book2D ( DQMStore::IBooker ib,
std::string  name,
const HistLim limX,
const HistLim limY 
)
inlineprivate

Definition at line 75 of file HcalDigisClient.h.

References DQMStore::IBooker::book2D(), HcalDigisClient::HistLim::max, HcalDigisClient::HistLim::min, msm_, HcalDigisClient::HistLim::n, and mergeVDriftHistosByStation::name.

75  {
76  if (!msm_->count(name)) (*msm_)[name] = ib.book2D(name.c_str(), name.c_str(), limX.n, limX.min, limX.max, limY.n, limY.min, limY.max);
77  }
std::map< std::string, MonitorElement * > * msm_
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
void HcalDigisClient::booking ( DQMStore::IBooker ib,
std::string  subdetopt 
)
private

Definition at line 37 of file HcalDigisClient.cc.

References book1D(), HLT_25ns10e33_v2_cff::depth, str(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by dqmEndJob().

37  {
38 
39  std::string strtmp;
40  HistLim ietaLim(85, -42.5, 42.5);
41 
42  for (int depth = 1; depth <= 4; depth++) {
43  strtmp = "HcalDigiTask_occupancy_vs_ieta_depth" + str(depth) + "_" + subdetopt;
44  book1D(ib,strtmp, ietaLim);
45  }
46 
47 }
std::string str(int x)
void book1D(DQMStore::IBooker &ib, std::string name, int n, double min, double max)
void HcalDigisClient::bookPf ( DQMStore::IBooker ib,
std::string  name,
const HistLim limX,
const HistLim limY 
)
inlineprivate

Definition at line 83 of file HcalDigisClient.h.

References DQMStore::IBooker::bookProfile(), HcalDigisClient::HistLim::max, HcalDigisClient::HistLim::min, msm_, HcalDigisClient::HistLim::n, and mergeVDriftHistosByStation::name.

83  {
84  if (!msm_->count(name)) (*msm_)[name] = ib.bookProfile(name.c_str(), name.c_str(), limX.n, limX.min, limX.max, limY.n, limY.min, limY.max);
85  }
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:157
std::map< std::string, MonitorElement * > * msm_
void HcalDigisClient::bookPf ( DQMStore::IBooker ib,
std::string  name,
const HistLim limX,
const HistLim limY,
const char *  option 
)
inlineprivate

Definition at line 87 of file HcalDigisClient.h.

References DQMStore::IBooker::bookProfile(), HcalDigisClient::HistLim::max, HcalDigisClient::HistLim::min, msm_, HcalDigisClient::HistLim::n, and mergeVDriftHistosByStation::name.

87  {
88  if (!msm_->count(name)) (*msm_)[name] = ib.bookProfile(name.c_str(), name.c_str(), limX.n, limX.min, limX.max, limY.n, limY.min, limY.max, option);
89  }
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:157
std::map< std::string, MonitorElement * > * msm_
virtual void HcalDigisClient::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
inlineprivatevirtual

Implements DQMEDHarvester.

Definition at line 35 of file HcalDigisClient.h.

References booking(), dirName_, runClient(), and DQMStore::IGetter::setCurrentFolder().

35  {
36  igetter.setCurrentFolder("HcalDigisV/HcalDigiTask"); // moved this line from constructor
37 
38  // the following booking clas were moved from the constructor
39  booking(ibooker, "HB");
40  booking(ibooker, "HE");
41  booking(ibooker, "HO");
42  booking(ibooker, "HF");
43 
44  igetter.setCurrentFolder(dirName_); // This sets the DQMStore (should apply to ibooker as well
45  runClient(ibooker, igetter);
46  }
std::string dirName_
virtual void runClient(DQMStore::IBooker &ib, DQMStore::IGetter &ig)
void booking(DQMStore::IBooker &ib, std::string subdetopt)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:346
void HcalDigisClient::fill1D ( std::string  name,
double  X,
double  weight = 1 
)
inlineprivate

Definition at line 71 of file HcalDigisClient.h.

References msm_, and histoStyle::weight.

Referenced by HcalDigisEndjob().

71  {
72  msm_->find(name)->second->Fill(X, weight);
73  }
#define X(str)
Definition: MuonsGrabber.cc:48
std::map< std::string, MonitorElement * > * msm_
int weight
Definition: histoStyle.py:50
void HcalDigisClient::fill2D ( std::string  name,
double  X,
double  Y,
double  weight = 1 
)
inlineprivate

Definition at line 79 of file HcalDigisClient.h.

References msm_, and histoStyle::weight.

79  {
80  msm_->find(name)->second->Fill(X, Y, weight);
81  }
#define X(str)
Definition: MuonsGrabber.cc:48
std::map< std::string, MonitorElement * > * msm_
int weight
Definition: histoStyle.py:50
void HcalDigisClient::fillPf ( std::string  name,
double  X,
double  Y 
)
inlineprivate

Definition at line 91 of file HcalDigisClient.h.

References msm_.

91  {
92  msm_->find(name)->second->Fill(X, Y);
93  }
#define X(str)
Definition: MuonsGrabber.cc:48
std::map< std::string, MonitorElement * > * msm_
int HcalDigisClient::HcalDigisEndjob ( const std::vector< MonitorElement * > &  hcalMEs,
std::string  subdet_ 
)
private

Definition at line 73 of file HcalDigisClient.cc.

References ev, fill1D(), MonitorElement::getBinContent(), MonitorElement::getEntries(), MonitorElement::getNbinsX(), MonitorElement::getNbinsY(), MonitorElement::getTH1(), i, j, and MonitorElement::setBinContent().

Referenced by runClient().

73  {
74 
75  using namespace std;
76  string strtmp;
77 
78 
79  MonitorElement * nevtot(0);
80  MonitorElement * ieta_iphi_occupancy_map1(0);
81  MonitorElement * ieta_iphi_occupancy_map2(0);
82  MonitorElement * ieta_iphi_occupancy_map3(0);
83  MonitorElement * ieta_iphi_occupancy_map4(0);
84 
85 
86  // std::cout << " Number of histos " << hcalMEs.size() << std::endl;
87 
88  for (unsigned int ih = 0; ih < hcalMEs.size(); ih++) {
89 
90  if (hcalMEs[ih]->getName() == "nevtot") nevtot = hcalMEs[ih];
91 
92  strtmp = "HcalDigiTask_ieta_iphi_occupancy_map_depth1_" + subdet_;
93  if (hcalMEs[ih]->getName() == strtmp) ieta_iphi_occupancy_map1 = hcalMEs[ih];
94  strtmp = "HcalDigiTask_ieta_iphi_occupancy_map_depth2_" + subdet_;
95  if (hcalMEs[ih]->getName() == strtmp) ieta_iphi_occupancy_map2 = hcalMEs[ih];
96  strtmp = "HcalDigiTask_ieta_iphi_occupancy_map_depth3_" + subdet_;
97  if (hcalMEs[ih]->getName() == strtmp) ieta_iphi_occupancy_map3 = hcalMEs[ih];
98  strtmp = "HcalDigiTask_ieta_iphi_occupancy_map_depth4_" + subdet_;
99  if (hcalMEs[ih]->getName() == strtmp) ieta_iphi_occupancy_map4 = hcalMEs[ih];
100 
101  }
102 
103  if (nevtot == 0 ||
104  ieta_iphi_occupancy_map1 == 0 ||
105  ieta_iphi_occupancy_map2 == 0 ||
106  ieta_iphi_occupancy_map3 == 0 ||
107  ieta_iphi_occupancy_map4 == 0
108  ) {
109  edm::LogError("HcalDigisClient") << "No nevtot or maps histo found...";
110  return 0;
111  }
112 
113  int ev = nevtot->getEntries();
114  if(ev <= 0) {
115  edm::LogError("HcalDigisClient") << "normalization factor <= 0!";
116  return 0;
117  }
118 
119  float fev = (float) nevtot->getEntries();
120 
121  float sumphi_1, sumphi_2, sumphi_3, sumphi_4;
122  float phi_factor;
123  float cnorm;
124 
125  int nx = ieta_iphi_occupancy_map1->getNbinsX();
126  int ny = ieta_iphi_occupancy_map1->getNbinsY();
127 
128  for (int i = 1; i <= nx; i++) {
129  for (int j = 1; j <= ny; j++) {
130 
131  // occupancies
132 
133  strtmp = "HcalDigiTask_ieta_iphi_occupancy_map_depth1_" + subdet_;
134  cnorm = ieta_iphi_occupancy_map1->getBinContent(i, j) / fev;
135  ieta_iphi_occupancy_map1->setBinContent(i, j, cnorm);
136 
137  strtmp = "HcalDigiTask_ieta_iphi_occupancy_map_depth2_" + subdet_;
138  cnorm = ieta_iphi_occupancy_map2->getBinContent(i, j) / fev;
139  ieta_iphi_occupancy_map2->setBinContent(i, j, cnorm);
140 
141  strtmp = "HcalDigiTask_ieta_iphi_occupancy_map_depth3_" + subdet_;
142  cnorm = ieta_iphi_occupancy_map3->getBinContent(i, j) / fev;
143  ieta_iphi_occupancy_map3->setBinContent(i, j, cnorm);
144 
145  strtmp = "HcalDigiTask_ieta_iphi_occupancy_map_depth4_" + subdet_;
146  cnorm = ieta_iphi_occupancy_map4->getBinContent(i, j) / fev;
147  ieta_iphi_occupancy_map4->setBinContent(i, j, cnorm);
148 
149  }
150  }
151 
152  for (int i = 1; i <= 82; i++) {
153 
154  int ieta = i - 42; // -41 -1, 0 40
155  if (ieta >= 0) ieta += 1; // -41 -1, 1 41 - to make it detector-like
156 
157  if (ieta >= -20 && ieta <= 20) {
158  phi_factor = 72.;
159  } else {
160  if (ieta >= 40 || ieta <= -40)
161  phi_factor = 18.;
162  else
163  phi_factor = 36.;
164  }
165 
166  sumphi_1 = 0.;
167  sumphi_2 = 0.;
168  sumphi_3 = 0.;
169  sumphi_4 = 0.;
170 
171  for (int iphi = 1; iphi <= 72; iphi++) {
172  sumphi_1 += ieta_iphi_occupancy_map1->getTH1()->GetBinContent(ieta_iphi_occupancy_map1->getTH1()->FindFixBin(double(ieta),double(iphi)));
173  sumphi_2 += ieta_iphi_occupancy_map2->getTH1()->GetBinContent(ieta_iphi_occupancy_map2->getTH1()->FindFixBin(double(ieta),double(iphi)));
174  sumphi_3 += ieta_iphi_occupancy_map3->getTH1()->GetBinContent(ieta_iphi_occupancy_map3->getTH1()->FindFixBin(double(ieta),double(iphi)));
175  sumphi_4 += ieta_iphi_occupancy_map4->getTH1()->GetBinContent(ieta_iphi_occupancy_map4->getTH1()->FindFixBin(double(ieta),double(iphi)));
176  }
177 
178  //REMOVED (JRD) if (ieta >= 0) ieta -= 1; // -41 -1, 0 40 - to bring back to strtmp num !!!
179  double deta = double(ieta);
180 
181  // occupancies vs ieta
182  cnorm = sumphi_1 / phi_factor;
183  strtmp = "HcalDigiTask_occupancy_vs_ieta_depth1_" + subdet_;
184  fill1D(strtmp, deta, cnorm);
185 
186  cnorm = sumphi_2 / phi_factor;
187  strtmp = "HcalDigiTask_occupancy_vs_ieta_depth2_" + subdet_;
188  fill1D(strtmp, deta, cnorm);
189 
190  cnorm = sumphi_3 / phi_factor;
191  strtmp = "HcalDigiTask_occupancy_vs_ieta_depth3_" + subdet_;
192  fill1D(strtmp, deta, cnorm);
193 
194  cnorm = sumphi_4 / phi_factor;
195  strtmp = "HcalDigiTask_occupancy_vs_ieta_depth4_" + subdet_;
196  fill1D(strtmp, deta, cnorm);
197 
198  } // end of i-loop
199 
200  return 1;
201 }
int i
Definition: DBlmapReader.cc:9
bool ev
void fill1D(std::string name, double X, double weight=1)
int j
Definition: DBlmapReader.cc:9
double HcalDigisClient::integralMETH2D ( MonitorElement ME,
int  i0,
int  i1,
int  j0,
int  j1 
)
private

Definition at line 214 of file HcalDigisClient.cc.

References MonitorElement::getBinContent(), i, and j.

214  {
215  double sum(0);
216  for (int i = i0; i <= i1; i++) {
217  for (int j = j0; j <= j1; j++) {
218  sum += ME->getBinContent(i, j);
219  }
220  }
221 
222  return sum;
223 }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
double getBinContent(int binx) const
get content of bin (1-D)
MonitorElement * HcalDigisClient::monitor ( std::string  name)
private

Definition at line 203 of file HcalDigisClient.cc.

References msm_, and NULL.

203  {
204  if (!msm_->count(name)) return NULL;
205  else return msm_->find(name)->second;
206 }
#define NULL
Definition: scimark2.h:8
std::map< std::string, MonitorElement * > * msm_
void HcalDigisClient::runClient ( DQMStore::IBooker ib,
DQMStore::IGetter ig 
)
privatevirtual

Definition at line 49 of file HcalDigisClient.cc.

References dirName_, DQMStore::IGetter::getContents(), DQMStore::IGetter::getSubdirs(), HcalDigisEndjob(), i, j, and DQMStore::IGetter::setCurrentFolder().

Referenced by dqmEndJob().

49  {
51  std::vector<MonitorElement*> hcalMEs;
52  // Since out folders are fixed to three, we can just go over these three folders
53  // i.e., CaloTowersV/CaloTowersTask, HcalRecHitsV/HcalRecHitTask, NoiseRatesV/NoiseRatesTask.
54  std::vector<std::string> fullPathHLTFolders = ig.getSubdirs();
55  for (unsigned int i = 0; i < fullPathHLTFolders.size(); i++) {
56  ig.setCurrentFolder(fullPathHLTFolders[i]);
57  std::vector<std::string> fullSubPathHLTFolders = ig.getSubdirs();
58  for (unsigned int j = 0; j < fullSubPathHLTFolders.size(); j++) {
59  if (strcmp(fullSubPathHLTFolders[j].c_str(), "HcalDigisV/HcalDigiTask") == 0) {
60  hcalMEs = ig.getContents(fullSubPathHLTFolders[j]);
61  if (!HcalDigisEndjob(hcalMEs, "HB"))
62  edm::LogError("HcalDigisClient") << "Error in HcalDigisEndjob! HB";
63  if (!HcalDigisEndjob(hcalMEs, "HE"))
64  edm::LogError("HcalDigisClient") << "Error in HcalDigisEndjob! HE";
65  if (!HcalDigisEndjob(hcalMEs, "HO"))
66  edm::LogError("HcalDigisClient") << "Error in HcalDigisEndjob! HO";
67  if (!HcalDigisEndjob(hcalMEs, "HF"))
68  edm::LogError("HcalDigisClient") << "Error in HcalDigisEndjob! HF"; }
69  }
70  }
71 }
std::vector< MonitorElement * > getContents(Args &&...args)
Definition: DQMStore.h:197
int i
Definition: DBlmapReader.cc:9
std::string dirName_
int HcalDigisEndjob(const std::vector< MonitorElement * > &hcalMEs, std::string subdet_)
int j
Definition: DBlmapReader.cc:9
std::vector< std::string > getSubdirs(void)
Definition: DQMStore.cc:322
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:346
void HcalDigisClient::scaleMETH2D ( MonitorElement ME,
double  s 
)
private

Definition at line 225 of file HcalDigisClient.cc.

References ws_sso_content_reader::content, MonitorElement::getBinContent(), MonitorElement::getNbinsX(), MonitorElement::getNbinsY(), i, j, alignCSCRings::s, and MonitorElement::setBinContent().

225  {
226  int nx = ME->getNbinsX();
227  int ny = ME->getNbinsY();
228 
229  double content(0);
230  for (int i = 1; i <= nx; i++) {
231  for (int j = 1; j <= ny; j++) {
232  content = ME->getBinContent(i, j);
233  content *= s;
234  ME->setBinContent(i, j, content);
235  }
236  }
237 }
int i
Definition: DBlmapReader.cc:9
void setBinContent(int binx, double content)
set content of bin (1-D)
int getNbinsY(void) const
get # of bins in Y-axis
int j
Definition: DBlmapReader.cc:9
double getBinContent(int binx) const
get content of bin (1-D)
int getNbinsX(void) const
get # of bins in X-axis
std::string HcalDigisClient::str ( int  x)
private

Definition at line 208 of file HcalDigisClient.cc.

References GenerateHcalLaserBadRunList::out, and x.

Referenced by booking().

208  {
209  std::stringstream out;
210  out << x;
211  return out.str();
212 }

Member Data Documentation

std::string HcalDigisClient::dirName_
private

Definition at line 103 of file HcalDigisClient.h.

Referenced by dqmEndJob(), HcalDigisClient(), and runClient().

std::map<std::string, MonitorElement*>* HcalDigisClient::msm_
private
std::string HcalDigisClient::outputFile_
private

Definition at line 102 of file HcalDigisClient.h.

Referenced by HcalDigisClient().