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
HcalCoarsePedestalClient Class Reference

#include <HcalCoarsePedestalClient.h>

Inheritance diagram for HcalCoarsePedestalClient:
HcalBaseDQClient

Public Member Functions

void analyze (void)
 
void beginJob (void)
 
void beginRun (void)
 
void calculateProblems (void)
 
void cleanup (void)
 
void endJob (void)
 
void endRun (void)
 
bool hasErrors_Temp (void)
 
bool hasOther_Temp (void)
 
bool hasWarnings_Temp (void)
 
 HcalCoarsePedestalClient ()
 Constructors. More...
 
 HcalCoarsePedestalClient (std::string myname)
 
 HcalCoarsePedestalClient (std::string myname, const edm::ParameterSet &ps)
 
void setup (void)
 
bool test_enabled (void)
 
void updateChannelStatus (std::map< HcalDetId, unsigned int > &myqual)
 
 ~HcalCoarsePedestalClient ()
 Destructor. More...
 
- Public Member Functions inherited from HcalBaseDQClient
void getLogicalMap (const edm::EventSetup &es)
 
 HcalBaseDQClient ()
 
 HcalBaseDQClient (std::string s, const edm::ParameterSet &ps)
 
virtual void htmlOutput (std::string htmlDir)
 
std::string name ()
 
void setEventSetup (const edm::EventSetup &es)
 
virtual void setStatusMap (std::map< HcalDetId, unsigned int > &map)
 
virtual bool validHtmlOutput ()
 
virtual ~HcalBaseDQClient (void)
 

Private Attributes

double ADCDiffThresh_
 
MonitorElementCoarsePedDiff
 
EtaPhiHistsCoarsePedestalsByDepth
 
TH2F * DatabasePedestalsADCByDepth [4]
 
int nevts_
 

Additional Inherited Members

- Public Attributes inherited from HcalBaseDQClient
int badChannelStatusMask_
 
std::map< HcalDetId, unsigned int > badstatusmap
 
const edm::EventSetupc
 
bool cloneME_
 
int debug_
 
DQMStoredqmStore_
 
bool enableCleanup_
 
bool enoughevents_
 
HcalLogicalMaplogicalMap_
 
double minerrorrate_
 
int minevents_
 
std::string name_
 
bool needLogicalMap_
 
bool Online_
 
std::string prefixME_
 
MonitorElementProblemCells
 
EtaPhiHistsProblemCellsByDepth
 
std::vector< std::string > problemnames_
 
std::string subdir_
 
bool testenabled_
 
bool validHtmlOutput_
 

Detailed Description

Definition at line 8 of file HcalCoarsePedestalClient.h.

Constructor & Destructor Documentation

HcalCoarsePedestalClient::HcalCoarsePedestalClient ( )
inline

Constructors.

Definition at line 13 of file HcalCoarsePedestalClient.h.

References HcalBaseDQClient::name_.

13 {name_="";};
HcalCoarsePedestalClient::HcalCoarsePedestalClient ( std::string  myname)

Definition at line 18 of file HcalCoarsePedestalClient.cc.

References HcalBaseDQClient::name_.

19 {
20  name_=myname;
21 }
HcalCoarsePedestalClient::HcalCoarsePedestalClient ( std::string  myname,
const edm::ParameterSet ps 
)

Definition at line 23 of file HcalCoarsePedestalClient.cc.

References HcalBaseDQClient::badChannelStatusMask_, HcalBaseDQClient::cloneME_, HcalBaseDQClient::debug_, HcalBaseDQClient::enableCleanup_, edm::ParameterSet::getUntrackedParameter(), HcalChannelStatus::HcalCellDead, HcalChannelStatus::HcalCellHot, HcalBaseDQClient::minerrorrate_, HcalBaseDQClient::minevents_, HcalBaseDQClient::name_, HcalBaseDQClient::prefixME_, HcalBaseDQClient::ProblemCellsByDepth, AlCaHLTBitMon_QueryRunRegistry::string, HcalBaseDQClient::subdir_, and HcalBaseDQClient::validHtmlOutput_.

24 {
25  name_=myname;
26  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup",false);
27  debug_ = ps.getUntrackedParameter<int>("debug",0);
28  prefixME_ = ps.getUntrackedParameter<std::string>("subSystemFolder","Hcal/");
29  if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!="/")
30  prefixME_.append("/");
31  subdir_ = ps.getUntrackedParameter<std::string>("CoarsePedestalFolder","CoarsePedestalMonitor_Hcal/"); // CoarsePedestalMonitor_Hcal
32  if (subdir_.size()>0 && subdir_.substr(subdir_.size()-1,subdir_.size())!="/")
33  subdir_.append("/");
34  subdir_=prefixME_+subdir_;
35 
36  validHtmlOutput_ = ps.getUntrackedParameter<bool>("CoarsePedestal_validHtmlOutput",true);
37  cloneME_ = ps.getUntrackedParameter<bool>("cloneME", true);
38  badChannelStatusMask_ = ps.getUntrackedParameter<int>("CoarsePedestal_BadChannelStatusMask",
39  ps.getUntrackedParameter<int>("BadChannelStatusMask",
40  ((1<<HcalChannelStatus::HcalCellDead)|(1<<HcalChannelStatus::HcalCellHot)))); // identify channel status values to mask
41 
42  minerrorrate_ = ps.getUntrackedParameter<double>("CoarsePedestal_minerrorrate",
43  ps.getUntrackedParameter<double>("minerrorrate",0.05));
44 
45 
46  // minevents_ canbe overwritten by monitor task value
47  minevents_ = ps.getUntrackedParameter<int>("CoarsePedestal_minevents",
48  ps.getUntrackedParameter<int>("minevents",1));
49 
51 
52 }
T getUntrackedParameter(std::string const &, T const &) const
EtaPhiHists * ProblemCellsByDepth
std::string subdir_
std::string prefixME_
HcalCoarsePedestalClient::~HcalCoarsePedestalClient ( )

Destructor.

Definition at line 347 of file HcalCoarsePedestalClient.cc.

348 {}

Member Function Documentation

void HcalCoarsePedestalClient::analyze ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 54 of file HcalCoarsePedestalClient.cc.

References calculateProblems(), gather_cfg::cout, and HcalBaseDQClient::debug_.

Referenced by endRun().

55 {
56  if (debug_>2) std::cout <<"\tHcalCoarsePedestalClient::analyze()"<<std::endl;
58 } // void HcalCoarsePedestalClient::analyze()
tuple cout
Definition: gather_cfg.py:121
void HcalCoarsePedestalClient::beginJob ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 215 of file HcalCoarsePedestalClient.cc.

References gather_cfg::cout, HcalBaseDQClient::debug_, HcalBaseDQClient::dqmStore_, cppFunctionSkipper::operator, and DQMStore::showDirStructure().

216 {
218  if (debug_>0)
219  {
220  std::cout <<"<HcalCoarsePedestalClient::beginJob()> Displaying dqmStore directory structure:"<<std::endl;
222  }
223 }
tuple cout
Definition: gather_cfg.py:121
void showDirStructure(void) const
Definition: DQMStore.cc:3277
DQMStore * dqmStore_
void HcalCoarsePedestalClient::beginRun ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 227 of file HcalCoarsePedestalClient.cc.

References ADCDiffThresh_, DQMStore::book1D(), DQMStore::book2D(), HcalBaseDQClient::cloneME_, CoarsePedDiff, CoarsePedestalsByDepth, gather_cfg::cout, DatabasePedestalsADCByDepth, HcalBaseDQClient::debug_, EtaPhiHists::depth, HcalBaseDQClient::dqmStore_, HcalBaseDQClient::enoughevents_, DQMStore::get(), MonitorElement::getFloatValue(), MonitorElement::getIntValue(), MonitorElement::getName(), HcalEtaPhiHistNames(), i, HcalBaseDQClient::minevents_, HcalBaseDQClient::name(), nevts_, HcalBaseDQClient::prefixME_, HcalBaseDQClient::ProblemCells, HcalBaseDQClient::ProblemCellsByDepth, HcalBaseDQClient::problemnames_, alignCSCRings::s, DQMStore::setCurrentFolder(), EtaPhiHists::setup(), AlCaHLTBitMon_QueryRunRegistry::string, HcalBaseDQClient::subdir_, and groupFilesInBlocks::temp.

228 {
229  enoughevents_=false;
230  if (!dqmStore_)
231  {
232  if (debug_>0) std::cout <<"<HcalCoarsePedestalClient::beginRun> dqmStore does not exist!"<<std::endl;
233  return;
234  }
237  CoarsePedestalsByDepth->setup(dqmStore_," Coarse Pedestal Map");
238 
239  CoarsePedDiff=dqmStore_->book1D("PedRefDiff","(Pedestal-Reference)",200,-10,10);
240 
241  problemnames_.clear();
242  ProblemCells=dqmStore_->book2D(" ProblemCoarsePedestals",
243  " Problem Coarse Pedestal Rate for all HCAL;ieta;iphi",
244  85,-42.5,42.5,
245  72,0.5,72.5);
246  problemnames_.push_back(ProblemCells->getName());
247  if (debug_>1)
248  std::cout << "Tried to create ProblemCells Monitor Element in directory "<<subdir_<<" \t Failed? "<<(ProblemCells==0)<<std::endl;
249  dqmStore_->setCurrentFolder(subdir_+"problem_coarsepedestals");
251  ProblemCellsByDepth->setup(dqmStore_," Problem Coarse Pedestal Rate");
252  for (unsigned int i=0; i<ProblemCellsByDepth->depth.size();++i)
253  problemnames_.push_back(ProblemCellsByDepth->depth[i]->getName());
254  nevts_=0;
255 
256  std::vector<std::string> name = HcalEtaPhiHistNames();
257  MonitorElement* me;
258  for (int i=0;i<4;++i)
259  {
260  std::string s=prefixME_+"HcalInfo/PedestalsFromCondDB/"+name[i]+"ADC Pedestals From Conditions DB";
261  me=dqmStore_->get(s.c_str());
262  if (me==0)
263  {
264  if (debug_>0) std::cout <<"<HcalCoarsePedestalClient::beginRun> Could not get histogram with name "<<s<<std::endl;
265  }
266  DatabasePedestalsADCByDepth[i]=HcalUtilsClient::getHisto<TH2F*>(me, cloneME_, DatabasePedestalsADCByDepth[i], debug_);
267  }
268  std::string s=subdir_+"CoarsePedestal_parameters/ADCdiff_Problem_Threshold";
269  me=dqmStore_->get(s.c_str());
270  if (me==0)
271  {
272  if (debug_>0)
273  std::cout <<"<HcalCoarsePedestalClient::beginRun> Could not get value with name "<<s<<std::endl;
274  }
275  else
277  s=subdir_+"CoarsePedestal_parameters/minEventsNeededForPedestalCalculation";
278 
279  me=dqmStore_->get(s.c_str());
280  int temp = 0;
281  if (me==0)
282  {
283  if (debug_>0)
284  {
285  std::cout <<"<HcalCoarsePedestalClient::beginRun> Could not get value with name "<<s<<"\n\t Continuing on using default 'minevents' value of "<<minevents_<<std::endl;
286  }
287  }
288  else
289  temp=me->getIntValue();
290  if (temp>minevents_)
291  {
292  if (debug_>0)
293  std::cout <<"<HcalCoarsePedestalClient::beginRun> Specified client 'minevents' value of "<<minevents_<<" is less than minimum task 'minevents' value of "<<temp<<"\n\t Setting client 'minevents' to "<<temp<<std::endl;
295  }
296 } // void HcalCoarsePedestalClient::beginRun()
const std::string & getName(void) const
get name of ME
int i
Definition: DBlmapReader.cc:9
MonitorElement * ProblemCells
std::string name()
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:942
std::vector< std::string > HcalEtaPhiHistNames()
void setup(DQMStore *&m_dbe, std::string Name, std::string Units="")
std::vector< MonitorElement * > depth
std::vector< std::string > problemnames_
EtaPhiHists * ProblemCellsByDepth
double getFloatValue(void) const
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1693
int64_t getIntValue(void) const
std::string subdir_
std::string prefixME_
tuple cout
Definition: gather_cfg.py:121
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:1070
DQMStore * dqmStore_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:655
void HcalCoarsePedestalClient::calculateProblems ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 60 of file HcalCoarsePedestalClient.cc.

References funct::abs(), ADCDiffThresh_, HcalBaseDQClient::badstatusmap, HcalObjRepresent::CalcIeta(), HcalBaseDQClient::cloneME_, CoarsePedDiff, CoarsePedestalsByDepth, gather_cfg::cout, DatabasePedestalsADCByDepth, HcalBaseDQClient::debug_, EtaPhiHists::depth, HcalBaseDQClient::dqmStore_, HcalBaseDQClient::enoughevents_, eta(), MonitorElement::Fill(), HcalObjRepresent::FillUnphysicalHEHFBins(), DQMStore::get(), MonitorElement::getBinContent(), MonitorElement::getTH2F(), HcalBarrel, HcalEmpty, HcalEndcap, HcalEtaPhiHistNames(), HcalForward, HcalOuter, i, isHB(), isHE(), isHF(), isHO(), HcalBaseDQClient::minerrorrate_, HcalBaseDQClient::minevents_, HcalBaseDQClient::name(), phi, HcalBaseDQClient::ProblemCells, HcalBaseDQClient::ProblemCellsByDepth, MonitorElement::Reset(), alignCSCRings::s, MonitorElement::setBinContent(), AlCaHLTBitMon_QueryRunRegistry::string, HcalBaseDQClient::subdir_, and ecaldqm::zside().

Referenced by analyze().

61 {
62  if (debug_>2) std::cout <<"\t\tHcalCoarsePedestalClient::calculateProblems()"<<std::endl;
63  if(!dqmStore_) return;
64  //int totalevents=0; // events checked on a channel-by-channel basis
65  int etabins=0, phibins=0, zside=0;
66  double problemvalue=0;
67 
69 
70  // Clear away old problems
71  if (ProblemCells!=0)
72  {
74  (ProblemCells->getTH2F())->SetMaximum(1.05);
75  (ProblemCells->getTH2F())->SetMinimum(0.);
76  (ProblemCells->getTH2F())->SetOption("colz");
77  }
78  for (unsigned int d=0;ProblemCellsByDepth!=0 && d<ProblemCellsByDepth->depth.size();++d)
79  {
80  if (ProblemCellsByDepth->depth[d]!=0)
81  {
82  ProblemCellsByDepth->depth[d]->Reset();
83  (ProblemCellsByDepth->depth[d]->getTH2F())->SetMaximum(1.05);
84  (ProblemCellsByDepth->depth[d]->getTH2F())->SetMinimum(0.);
85  (ProblemCellsByDepth->depth[d]->getTH2F())->SetOption("colz");
86  }
87  }
88 
89  // Get histograms that are used in testing
90  TH2F* CoarsePedestalsSumByDepth[4];
91  TH2F* CoarsePedestalsOccByDepth[4];
92 
93  std::vector<std::string> name = HcalEtaPhiHistNames();
94  bool gothistos=true;
95 
96  MonitorElement* me;
97  for (int i=0;i<4;++i)
98  {
99  std::string s=subdir_+"CoarsePedestalSumPlots/"+name[i]+"Coarse Pedestal Summed Map";
100  me=dqmStore_->get(s.c_str());
101  if (me==0)
102  {
103  gothistos=false;
104  if (debug_>0) std::cout <<"<HcalCoarsePedestalClient::calculateProblems> Could not get histogram with name "<<s<<std::endl;
105  }
106  CoarsePedestalsSumByDepth[i]=HcalUtilsClient::getHisto<TH2F*>(me, cloneME_, CoarsePedestalsSumByDepth[i], debug_);
107 
108  s=subdir_+"CoarsePedestalSumPlots/"+name[i]+"Coarse Pedestal Occupancy Map";
109  me=dqmStore_->get(s.c_str());
110  if (me==0)
111  {
112  gothistos=false;
113  if (debug_>0) std::cout <<"<HcalCoarsePedestalClient::calculateProblems> Could not get histogram with name "<<s<<std::endl;
114  }
115  CoarsePedestalsOccByDepth[i]=HcalUtilsClient::getHisto<TH2F*>(me, cloneME_, CoarsePedestalsOccByDepth[i], debug_);
116 
117  } // for (int i=0;i<4;++i)
118 
119  if (gothistos==false)
120  {
121  if (debug_>0) std::cout <<"<HcalCoarsePedestalClient::calculateProblems> Unable to get all necessary histograms to evaluate problem rate"<<std::endl;
122  return;
123  }
124 
125  enoughevents_=true; // Always set this to true, so that pedestal monitoring doesn't hold up
126 
127  int numevents=0;
128  for (unsigned int d=0;ProblemCellsByDepth!=0 && d<ProblemCellsByDepth->depth.size();++d)
129  {
130  if (ProblemCellsByDepth->depth[d]==0) continue;
131  if (CoarsePedestalsSumByDepth[d]==0 ||
132  CoarsePedestalsOccByDepth[d]==0 ||
133  DatabasePedestalsADCByDepth[d]==0) continue;
134 
135  if (CoarsePedestalsByDepth->depth[d]!=0)
136  CoarsePedestalsByDepth->depth[d]->Reset();
137 
138  etabins=(ProblemCellsByDepth->depth[d]->getTH2F())->GetNbinsX();
139  phibins=(ProblemCellsByDepth->depth[d]->getTH2F())->GetNbinsY();
140  for (int eta=0;eta<etabins;++eta)
141  {
142  int ieta=CalcIeta(eta,d+1);
143  if (ieta==-9999) continue;
144  for (int phi=0;phi<phibins;++phi)
145  {
146  if (abs(ieta)>20 && (phi+1)%2==0)
147  continue;
148  if (abs(ieta)>39 && (phi+1)%4!=3)
149  continue;
150  numevents=(int)CoarsePedestalsOccByDepth[d]->GetBinContent(eta+1,phi+1);
151  if (numevents==0 || numevents<minevents_)
152  {
153  if (debug_>1)
154  std::cout <<"NOT ENOUGH EVENTS for channel ("<<ieta<<", "<<phi+1<<", "<<d+1<<") numevents = "<<numevents<<" minevents = "<<minevents_<<std::endl;
155  continue; // insufficient pedestal information available for this channel; continue on?
156  }
157 
158  problemvalue=1.*CoarsePedestalsSumByDepth[d]->GetBinContent(eta+1,phi+1)/numevents;
159  CoarsePedestalsByDepth->depth[d]->setBinContent(eta+1,phi+1,problemvalue);
160  problemvalue=(problemvalue-DatabasePedestalsADCByDepth[d]->GetBinContent(eta+1,phi+1));
161  CoarsePedDiff->Fill(problemvalue);
162  problemvalue=fabs(problemvalue);
163  // Pedestal status is cumulative (DetDiag pedestals perform resets after each calibration cycle, and save each output)
164  // Either a channels pedestal is 'bad' (outside of allowed range) or 'good' (in range)
165  problemvalue>ADCDiffThresh_ ? problemvalue=1 : problemvalue=0;
166  if (debug_>0 && problemvalue==1)
167  std::cout <<"<HcalCoarsePedestalClient> Problem found for channel ("<<ieta<<", "<<phi+1<<", "<<d+1<<")"<<std::endl;
168  zside=0;
169  if (isHF(eta,d+1)) // shift ieta by 1 for HF
170  ieta<0 ? zside = -1 : zside = 1;
171  // For problem cells that exceed our allowed rate,
172  // set the values to -1 if the cells are already marked in the status database
173  if (problemvalue>minerrorrate_)
174  {
175  HcalSubdetector subdet=HcalEmpty;
176  if (isHB(eta,d+1))subdet=HcalBarrel;
177  else if (isHE(eta,d+1)) subdet=HcalEndcap;
178  else if (isHF(eta,d+1)) subdet=HcalForward;
179  else if (isHO(eta,d+1)) subdet=HcalOuter;
180  HcalDetId hcalid(subdet, ieta, phi+1, (int)(d+1));
181  if (badstatusmap.find(hcalid)!=badstatusmap.end())
182  problemvalue=999;
183  }
184  ProblemCellsByDepth->depth[d]->setBinContent(eta+1,phi+1,problemvalue);
185  if (ProblemCells!=0) ProblemCells->Fill(ieta+zside,phi+1,problemvalue);
186  } // loop on phi
187  } // loop on eta
188  } // loop on depth
189 
190  if (ProblemCells==0)
191  {
192  if (debug_>0) std::cout <<"<HcalCoarsePedestalClient::analyze> ProblemCells histogram does not exist!"<<std::endl;
193  return;
194  }
195 
196  // Normalization of ProblemCell plot, in the case where there are errors in multiple depths
197  etabins=(ProblemCells->getTH2F())->GetNbinsX();
198  phibins=(ProblemCells->getTH2F())->GetNbinsY();
199  for (int eta=0;eta<etabins;++eta)
200  {
201  for (int phi=0;phi<phibins;++phi)
202  {
205  }
206  }
207 
211  return;
212 }
bool isHO(int etabin, int depth)
int i
Definition: DBlmapReader.cc:9
MonitorElement * ProblemCells
std::string name()
void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< std::string > HcalEtaPhiHistNames()
int zside(DetId const &)
bool isHE(int etabin, int depth)
T eta() const
void Fill(long long x)
std::vector< MonitorElement * > depth
int CalcIeta(int subdet, int eta, int depth)
EtaPhiHists * ProblemCellsByDepth
HcalSubdetector
Definition: HcalAssistant.h:31
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1693
bool isHB(int etabin, int depth)
bool isHF(int etabin, int depth)
std::string subdir_
std::map< HcalDetId, unsigned int > badstatusmap
void FillUnphysicalHEHFBins(std::vector< TH2F > &hh)
double getBinContent(int binx) const
get content of bin (1-D)
tuple cout
Definition: gather_cfg.py:121
TH2F * getTH2F(void) const
void Reset(void)
reset ME (ie. contents, errors, etc)
DQMStore * dqmStore_
Definition: DDAxes.h:10
void HcalCoarsePedestalClient::cleanup ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 301 of file HcalCoarsePedestalClient.cc.

301 {}
void HcalCoarsePedestalClient::endJob ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 225 of file HcalCoarsePedestalClient.cc.

225 {}
void HcalCoarsePedestalClient::endRun ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 298 of file HcalCoarsePedestalClient.cc.

References analyze().

bool HcalCoarsePedestalClient::hasErrors_Temp ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 303 of file HcalCoarsePedestalClient.cc.

References HcalObjRepresent::CalcIeta(), gather_cfg::cout, HcalBaseDQClient::debug_, EtaPhiHists::depth, MonitorElement::getTH2F(), HcalBaseDQClient::minerrorrate_, HcalBaseDQClient::ProblemCells, and HcalBaseDQClient::ProblemCellsByDepth.

304 {
305  if (!ProblemCells)
306  {
307  if (debug_>1) std::cout <<"<HcalCoarsePedestalClient::hasErrors_Temp> ProblemCells histogram does not exist!"<<std::endl;
308  return false;
309  }
310  int problemcount=0;
311  int ieta=-9999;
312 
313  for (int depth=0;depth<4; ++depth)
314  {
315  int etabins = (ProblemCells->getTH2F())->GetNbinsX();
316  int phibins = (ProblemCells->getTH2F())->GetNbinsY();
317  for (int hist_eta=0;hist_eta<etabins;++hist_eta)
318  {
319  for (int hist_phi=0; hist_phi<phibins;++hist_phi)
320  {
321  ieta=CalcIeta(hist_eta,depth+1);
322  if (ieta==-9999) continue;
323  if (ProblemCellsByDepth->depth[depth]==0)
324  continue;
325  if (ProblemCellsByDepth->depth[depth]->getBinContent(hist_eta,hist_phi)>minerrorrate_)
326  ++problemcount;
327 
328  } // for (int hist_phi=1;...)
329  } // for (int hist_eta=1;...)
330  } // for (int depth=0;...)
331 
332  if (problemcount>0) return true;
333  return false;
334 }
MonitorElement * ProblemCells
std::vector< MonitorElement * > depth
int CalcIeta(int subdet, int eta, int depth)
EtaPhiHists * ProblemCellsByDepth
tuple cout
Definition: gather_cfg.py:121
TH2F * getTH2F(void) const
bool HcalCoarsePedestalClient::hasOther_Temp ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 337 of file HcalCoarsePedestalClient.cc.

337 {return false;}
bool HcalCoarsePedestalClient::hasWarnings_Temp ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 336 of file HcalCoarsePedestalClient.cc.

336 {return false;}
void HcalCoarsePedestalClient::setup ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 300 of file HcalCoarsePedestalClient.cc.

300 {}
bool HcalCoarsePedestalClient::test_enabled ( void  )
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 338 of file HcalCoarsePedestalClient.cc.

338 {return true;}
void HcalCoarsePedestalClient::updateChannelStatus ( std::map< HcalDetId, unsigned int > &  myqual)
virtual

Reimplemented from HcalBaseDQClient.

Definition at line 341 of file HcalCoarsePedestalClient.cc.

342 {
343  // client does not alter channel status yet;
344  // look at dead cell or hot cell clients for example code
345 } //void HcalCoarsePedestalClient::updateChannelStatus

Member Data Documentation

double HcalCoarsePedestalClient::ADCDiffThresh_
private

Definition at line 38 of file HcalCoarsePedestalClient.h.

Referenced by beginRun(), and calculateProblems().

MonitorElement* HcalCoarsePedestalClient::CoarsePedDiff
private

Definition at line 41 of file HcalCoarsePedestalClient.h.

Referenced by beginRun(), and calculateProblems().

EtaPhiHists* HcalCoarsePedestalClient::CoarsePedestalsByDepth
private

Definition at line 40 of file HcalCoarsePedestalClient.h.

Referenced by beginRun(), and calculateProblems().

TH2F* HcalCoarsePedestalClient::DatabasePedestalsADCByDepth[4]
private

Definition at line 39 of file HcalCoarsePedestalClient.h.

Referenced by beginRun(), and calculateProblems().

int HcalCoarsePedestalClient::nevts_
private

Definition at line 36 of file HcalCoarsePedestalClient.h.

Referenced by beginRun().