CMS 3D CMS Logo

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::EDProducer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources, edm::EndLuminosityBlockProducer > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Classes

struct  HistLim
 

Public Member Functions

 HcalDigisClient (const edm::ParameterSet &)
 
 ~HcalDigisClient ()
 
- Public Member Functions inherited from DQMEDHarvester
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override final
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &) override
 
 DQMEDHarvester (void)
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endJob () override final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override final
 
virtual void endRun (edm::Run const &, edm::EventSetup const &) override
 
virtual void produce (edm::Event &, edm::EventSetup const &) override final
 
virtual ~DQMEDHarvester ()=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources, edm::EndLuminosityBlockProducer >
 EDProducer ()=default
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

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 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_, DQMStore::IBooker &ib)
 
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::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
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 55 of file HcalDigisClient.h.

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

Referenced by HcalDigisEndjob().

55  {
56  if (!msm_->count(name)) (*msm_)[name] = ib.book1D(name.c_str(), name.c_str(), n, min, max);
57  }
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 59 of file HcalDigisClient.h.

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

59  {
60  if (!msm_->count(name)) (*msm_)[name] = ib.book1D(name.c_str(), name.c_str(), limX.n, limX.min, limX.max);
61  }
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 67 of file HcalDigisClient.h.

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

67  {
68  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);
69  }
std::map< std::string, MonitorElement * > * msm_
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
void HcalDigisClient::bookPf ( DQMStore::IBooker ib,
std::string  name,
const HistLim limX,
const HistLim limY 
)
inlineprivate

Definition at line 75 of file HcalDigisClient.h.

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

75  {
76  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);
77  }
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 79 of file HcalDigisClient.h.

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

79  {
80  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);
81  }
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 dirName_, runClient(), and DQMStore::IGetter::setCurrentFolder().

35  {
36  igetter.setCurrentFolder(dirName_); // This sets the DQMStore (should apply to ibooker as well
37  runClient(ibooker, igetter);
38  }
std::string dirName_
virtual void runClient(DQMStore::IBooker &ib, DQMStore::IGetter &ig)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:347
void HcalDigisClient::fill1D ( std::string  name,
double  X,
double  weight = 1 
)
inlineprivate

Definition at line 63 of file HcalDigisClient.h.

References msm_.

Referenced by HcalDigisEndjob().

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

Definition at line 71 of file HcalDigisClient.h.

References msm_.

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

Definition at line 83 of file HcalDigisClient.h.

References integralMETH2D(), msm_, alignCSCRings::s, scaleMETH2D(), str(), AlCaHLTBitMon_QueryRunRegistry::string, and x.

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

Definition at line 62 of file HcalDigisClient.cc.

References book1D(), ws_sso_content_reader::content, particleFlowClusterECALTimeSelected_cfi::depth, end, ev, fill1D(), spr::find(), objects.autophobj::float, MonitorElement::getEntries(), mps_fire::i, position, str(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by runClient().

62  {
63 
64  using namespace std;
65  string strtmp;
66 
67 
68  MonitorElement * nevtot(0);
69 
70  std::vector<MonitorElement*> ieta_iphi_occupancy_maps;
71  std::vector<std::string> depthID;
72 
73  // std::cout << " Number of histos " << hcalMEs.size() << std::endl;
74 
75  for (unsigned int ih = 0; ih < hcalMEs.size(); ih++) {
76 
77  if (hcalMEs[ih]->getName() == "nevtot"){
78  nevtot = hcalMEs[ih];
79  continue;
80  }
81 
82  //We search the occupancy maps corresponding to this subdetector
83  if ( (hcalMEs[ih]->getName().find("HcalDigiTask_ieta_iphi_occupancy_map_depth") != std::string::npos)
84  &&(hcalMEs[ih]->getName().find(subdet_) != std::string::npos) ){
85 
86  ieta_iphi_occupancy_maps.push_back(hcalMEs[ih]);
87 
88  std::string start = "depth";
89  std::string end = "_H";
90 
91  int position = hcalMEs[ih]->getName().find(start) + start.length();
92  int length = hcalMEs[ih]->getName().find(end) - position;
93 
94  depthID.push_back(hcalMEs[ih]->getName().substr(position, length));
95 
96  continue;
97  }
98 
99 
100  }
101 
102 
103  if ( hcalMEs.size() == 0){
104  edm::LogError("HcalDigisClient") << "No nevtot or maps histo found...";
105  return 0;
106  }
107  if( !nevtot){
108  edm::LogError("HcalDigisClient") << "No nevtot histoo found...";
109  return 0;
110  }
111  if( ieta_iphi_occupancy_maps.size() < 1){
112  edm::LogError("HcalDigisClient") << "No maps histos found...";
113  return 0;
114  }
115 
116 
117  int ev = nevtot->getEntries();
118 
119 
120  if(ev <= 0) {
121  edm::LogError("HcalDigisClient") << "normalization factor <= 0!";
122  return 0;
123  }
124 
125  float fev = (float) nevtot->getEntries();
126 
127  int depths = ieta_iphi_occupancy_maps.size();
128 
129  HistLim ietaLim(85, -42.5, 42.5);
130 
131  for (int depth = 1; depth <= depths; depth++) {
132  strtmp = "HcalDigiTask_occupancy_vs_ieta_depth" + str(depth) + "_" + subdet_;
133  book1D(ib,strtmp, ietaLim);
134  }
135 
136  std::vector<float> sumphi;
137  for(int depth = 1; depth <= depths; depth++) sumphi.push_back(0.);
138 
139  float phi_factor;
140  float cnorm;
141  float enorm;
142 
143 
144  for(int depth = 1; depth <= depths; depth++){
145  int nx = ieta_iphi_occupancy_maps[depth-1]->getNbinsX();
146  int ny = ieta_iphi_occupancy_maps[depth-1]->getNbinsY();
147 
148 
149  for (int i = 1; i <= nx; i++) {
150  for (int j = 1; j <= ny; j++) {
151 
152  // occupancies
153  cnorm = ieta_iphi_occupancy_maps[depth-1]->getBinContent(i, j) / fev;
154  enorm = ieta_iphi_occupancy_maps[depth-1]->getBinError(i, j) / fev;
155  ieta_iphi_occupancy_maps[depth-1]->setBinContent(i, j, cnorm);
156  ieta_iphi_occupancy_maps[depth-1]->setBinError(i, j, enorm);
157 
158  } //for loop over NbinsYU
159  } //for loop over NbinsX
160  } //for loop over the occupancy maps
161 
162  for (int i = 1; i <= 82; i++) {
163 
164  int ieta = i - 42; // -41 -1, 0 40
165  if (ieta >= 0) ieta += 1; // -41 -1, 1 41 - to make it detector-like
166 
167  if (ieta >= -20 && ieta <= 20) {
168  phi_factor = 72.;
169  } else {
170  if (ieta >= 40 || ieta <= -40)
171  phi_factor = 18.;
172  else
173  phi_factor = 36.;
174  }
175 
176  //zero the sumphi vector at the start of each ieta ring
177  for(int depth = 1; depth <= depths; depth++) sumphi[depth-1] = 0;
178 
179  for (int iphi = 1; iphi <= 72; iphi++) {
180  for(int depth = 1; depth <= depths; depth++){
181  int binIeta = ieta_iphi_occupancy_maps[depth-1]->getTH2F()->GetXaxis()->FindBin(ieta);
182  int binIphi = ieta_iphi_occupancy_maps[depth-1]->getTH2F()->GetYaxis()->FindBin(iphi);
183 
184  float content = ieta_iphi_occupancy_maps[depth-1]->getBinContent(binIeta,binIphi);
185 
186  sumphi[depth-1] += content;
187 
188  }//for loop over depths
189  }//for loop over phi
190 
191  double deta = double(ieta);
192 
193  // occupancies vs ieta
194  for(int depth = 1; depth <= depths; depth++){
195  cnorm = sumphi[depth-1] / phi_factor;
196  strtmp = "HcalDigiTask_occupancy_vs_ieta_depth" + depthID[depth-1] + "_" + subdet_;
197  fill1D(strtmp, deta, cnorm);
198  }
199  } // end of i-loop
200 
201  return 1;
202 }
Definition: start.py:1
bool ev
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
void fill1D(std::string name, double X, double weight=1)
#define end
Definition: vmac.h:37
std::string str(int x)
void book1D(DQMStore::IBooker &ib, std::string name, int n, double min, double max)
static int position[264][3]
Definition: ReadPGInfo.cc:509
double HcalDigisClient::integralMETH2D ( MonitorElement ME,
int  i0,
int  i1,
int  j0,
int  j1 
)
private

Definition at line 215 of file HcalDigisClient.cc.

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

Referenced by fillPf().

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

Definition at line 204 of file HcalDigisClient.cc.

References msm_, and NULL.

204  {
205  if (!msm_->count(name)) return NULL;
206  else return msm_->find(name)->second;
207 }
#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 37 of file HcalDigisClient.cc.

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

Referenced by dqmEndJob().

37  {
39  std::vector<MonitorElement*> hcalMEs;
40  // Since out folders are fixed to three, we can just go over these three folders
41  // i.e., CaloTowersV/CaloTowersTask, HcalRecHitsV/HcalRecHitTask, NoiseRatesV/NoiseRatesTask.
42  std::vector<std::string> fullPathHLTFolders = ig.getSubdirs();
43  for (unsigned int i = 0; i < fullPathHLTFolders.size(); i++) {
44  ig.setCurrentFolder(fullPathHLTFolders[i]);
45  std::vector<std::string> fullSubPathHLTFolders = ig.getSubdirs();
46  for (unsigned int j = 0; j < fullSubPathHLTFolders.size(); j++) {
47  if (strcmp(fullSubPathHLTFolders[j].c_str(), "HcalDigisV/HcalDigiTask") == 0) {
48  hcalMEs = ig.getContents(fullSubPathHLTFolders[j]);
49  ig.setCurrentFolder("HcalDigisV/HcalDigiTask");
50  if (!HcalDigisEndjob(hcalMEs, "HB", ib))
51  edm::LogError("HcalDigisClient") << "Error in HcalDigisEndjob! HB";
52  if (!HcalDigisEndjob(hcalMEs, "HE", ib))
53  edm::LogError("HcalDigisClient") << "Error in HcalDigisEndjob! HE";
54  if (!HcalDigisEndjob(hcalMEs, "HO", ib))
55  edm::LogError("HcalDigisClient") << "Error in HcalDigisEndjob! HO";
56  if (!HcalDigisEndjob(hcalMEs, "HF", ib))
57  edm::LogError("HcalDigisClient") << "Error in HcalDigisEndjob! HF"; }
58  }
59  }
60 }
std::vector< MonitorElement * > getContents(Args &&...args)
Definition: DQMStore.h:197
std::string dirName_
int HcalDigisEndjob(const std::vector< MonitorElement * > &hcalMEs, std::string subdet_, DQMStore::IBooker &ib)
std::vector< std::string > getSubdirs(void)
Definition: DQMStore.cc:323
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:347
void HcalDigisClient::scaleMETH2D ( MonitorElement ME,
double  s 
)
private

Definition at line 226 of file HcalDigisClient.cc.

References ws_sso_content_reader::content, DEFINE_FWK_MODULE, relativeConstraints::error, MonitorElement::getBinContent(), MonitorElement::getBinError(), MonitorElement::getNbinsX(), MonitorElement::getNbinsY(), mps_fire::i, alignCSCRings::s, MonitorElement::setBinContent(), and MonitorElement::setBinError().

Referenced by fillPf().

226  {
227  int nx = ME->getNbinsX();
228  int ny = ME->getNbinsY();
229 
230  double content(0);
231  double error(0);
232  for (int i = 1; i <= nx; i++) {
233  for (int j = 1; j <= ny; j++) {
234  content = ME->getBinContent(i, j);
235  error = ME->getBinError(i, j);
236  content *= s;
237  error *= s;
238  ME->setBinContent(i, j, content);
239  ME->setBinError(i, j, error);
240  }
241  }
242 }
void setBinContent(int binx, double content)
set content of bin (1-D)
int getNbinsY(void) const
get # of bins in Y-axis
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
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 209 of file HcalDigisClient.cc.

References MillePedeFileConverter_cfg::out, and x.

Referenced by fillPf(), and HcalDigisEndjob().

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

Member Data Documentation

std::string HcalDigisClient::dirName_
private

Definition at line 93 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 92 of file HcalDigisClient.h.

Referenced by HcalDigisClient().