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
HcalDetDiagLEDMonitor Class Reference
Inheritance diagram for HcalDetDiagLEDMonitor:
HcalBaseDQMonitor edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void beginRun (const edm::Run &run, const edm::EventSetup &c) override
 
void cleanup () override
 
void endRun (const edm::Run &run, const edm::EventSetup &c) override
 
void fillHistos ()
 
int GetStatistics ()
 
 HcalDetDiagLEDMonitor (const edm::ParameterSet &ps)
 
void reset () override
 
void setup () override
 
 ~HcalDetDiagLEDMonitor ()
 
- Public Member Functions inherited from HcalBaseDQMonitor
 HcalBaseDQMonitor (const edm::ParameterSet &ps)
 
 HcalBaseDQMonitor ()
 
virtual ~HcalBaseDQMonitor ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 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
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

void CheckStatus ()
 
void fill_channel_status (std::string subdet, int eta, int phi, int depth, int type, double status)
 
void fill_energy (std::string subdet, int eta, int phi, int depth, double e, int type)
 
double get_energy (std::string subdet, int eta, int phi, int depth, int type)
 
HcalDetDiagLEDDataGetCalib (std::string sd, int eta, int phi)
 
void LoadReference ()
 
void SaveReference ()
 

Private Attributes

HcalDetDiagLEDData calib_data [5][5][72]
 
EtaPhiHistsChannelsLEDEnergy
 
EtaPhiHistsChannelsLEDEnergyRef
 
EtaPhiHistsChannelStatusLEDMean
 
EtaPhiHistsChannelStatusLEDRMS
 
EtaPhiHistsChannelStatusMissingChannels
 
EtaPhiHistsChannelStatusTimeMean
 
EtaPhiHistsChannelStatusTimeRMS
 
EtaPhiHistsChannelStatusUnstableChannels
 
EtaPhiHistsChannelStatusUnstableLEDsignal
 
int dataset_seq_number
 
edm::InputTag digiLabel_
 
HcalElectronicsMapemap
 
MonitorElementEnergy
 
MonitorElementEnergy2Dhbhehf
 
MonitorElementEnergy2Dho
 
MonitorElementEnergyCorr
 
MonitorElementEnergyHF
 
MonitorElementEnergyRMS
 
MonitorElementEnergyRMSHF
 
HcalDetDiagLEDData hb_data [85][72][4]
 
MonitorElementHBMphi
 
MonitorElementHBPphi
 
HcalDetDiagLEDData he_data [85][72][4]
 
MonitorElementHEMphi
 
MonitorElementHEPphi
 
HcalDetDiagLEDData hf_data [85][72][4]
 
MonitorElementHFMphi
 
MonitorElementHFPphi
 
MonitorElementHO0phi
 
MonitorElementHO1Mphi
 
MonitorElementHO1Pphi
 
MonitorElementHO2Mphi
 
MonitorElementHO2Pphi
 
HcalDetDiagLEDData ho_data [85][72][4]
 
int ievt_
 
bool IsReference
 
std::map< unsigned int, int > KnownBadCells_
 
double LEDMeanTreshold
 
double LEDRmsTreshold
 
MonitorElementmeEVT_
 
MonitorElementmeRUN_
 
std::string OutputFilePath
 
std::string ReferenceData
 
std::string ReferenceRun
 
MonitorElementRefRun_
 
int run_number
 
MonitorElementTime
 
MonitorElementTime2Dhbhehf
 
MonitorElementTime2Dho
 
MonitorElementTimeHF
 
MonitorElementTimeRMS
 
MonitorElementTimeRMSHF
 
edm::EDGetTokenT
< HcalCalibDigiCollection
tok_calib_
 
edm::EDGetTokenT
< HBHEDigiCollection
tok_hbhe_
 
edm::EDGetTokenT
< HFDigiCollection
tok_hf_
 
edm::EDGetTokenT
< HODigiCollection
tok_ho_
 
edm::EDGetTokenT
< HcalTBTriggerData
tok_tb_
 
std::string XmlFilePath
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- 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 HcalBaseDQMonitor
virtual void beginJob ()
 
virtual void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
 
virtual void endJob (void)
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
 
void getLogicalMap (const edm::EventSetup &c)
 
bool IsAllowedCalibType ()
 
bool LumiInOrder (int lumisec)
 
void SetupEtaPhiHists (EtaPhiHists &hh, std::string Name, std::string Units)
 
- 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)
 
- Protected Attributes inherited from HcalBaseDQMonitor
std::vector< int > AllowedCalibTypes_
 
int badChannelStatusMask_
 
int currentLS
 
int currenttype_
 
DQMStoredbe_
 
int debug_
 
bool enableCleanup_
 
bool eventAllowed_
 
bool HBpresent_
 
bool HEpresent_
 
bool HFpresent_
 
bool HOpresent_
 
int ievt_
 
std::map< unsigned int, int > KnownBadCells_
 
int levt_
 
HcalLogicalMaplogicalMap_
 
bool makeDiagnostics_
 
MonitorElementmeIevt_
 
MonitorElementmeLevt_
 
bool mergeRuns_
 
MonitorElementmeTevt_
 
MonitorElementmeTevtHist_
 
bool needLogicalMap_
 
int NLumiBlocks_
 
bool Online_
 
std::string prefixME_
 
MonitorElementProblemsCurrentLB
 
MonitorElementProblemsVsLB
 
MonitorElementProblemsVsLB_HB
 
MonitorElementProblemsVsLB_HBHEHF
 
MonitorElementProblemsVsLB_HE
 
MonitorElementProblemsVsLB_HF
 
MonitorElementProblemsVsLB_HO
 
bool skipOutOfOrderLS_
 
std::string subdir_
 
int tevt_
 

Detailed Description

Definition at line 108 of file HcalDetDiagLEDMonitor.cc.

Constructor & Destructor Documentation

HcalDetDiagLEDMonitor::HcalDetDiagLEDMonitor ( const edm::ParameterSet ps)

Definition at line 242 of file HcalDetDiagLEDMonitor.cc.

References HcalBaseDQMonitor::AllowedCalibTypes_, dataset_seq_number, HcalBaseDQMonitor::debug_, digiLabel_, emap, HcalBaseDQMonitor::enableCleanup_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), ievt_, IsReference, LEDMeanTreshold, LEDRmsTreshold, HcalBaseDQMonitor::makeDiagnostics_, HcalBaseDQMonitor::mergeRuns_, HcalBaseDQMonitor::needLogicalMap_, HcalBaseDQMonitor::NLumiBlocks_, HcalBaseDQMonitor::Online_, OutputFilePath, HcalBaseDQMonitor::prefixME_, ReferenceData, run_number, HcalBaseDQMonitor::skipOutOfOrderLS_, AlCaHLTBitMon_QueryRunRegistry::string, HcalBaseDQMonitor::subdir_, tok_calib_, tok_hbhe_, tok_hf_, tok_ho_, tok_tb_, and XmlFilePath.

242  {
243 
244 
245  ievt_=0;
247  run_number=-1;
248  IsReference=false;
249 
250  Online_ = ps.getUntrackedParameter<bool>("online",false);
251  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns",false);
252  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup",false);
253  debug_ = ps.getUntrackedParameter<int>("debug",0);
254  prefixME_ = ps.getUntrackedParameter<std::string>("subSystemFolder","Hcal/");
255  if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!="/")
256  prefixME_.append("/");
257  subdir_ = ps.getUntrackedParameter<std::string>("TaskFolder","DetDiagLEDMonitor_Hcal");
258  if (subdir_.size()>0 && subdir_.substr(subdir_.size()-1,subdir_.size())!="/")
259  subdir_.append("/");
260  subdir_=prefixME_+subdir_;
261  AllowedCalibTypes_ = ps.getUntrackedParameter<std::vector<int> > ("AllowedCalibTypes");
262  skipOutOfOrderLS_ = ps.getUntrackedParameter<bool>("skipOutOfOrderLS",false);
263  NLumiBlocks_ = ps.getUntrackedParameter<int>("NLumiBlocks",4000);
264  makeDiagnostics_ = ps.getUntrackedParameter<bool>("makeDiagnostics",false);
265 
266  LEDMeanTreshold = ps.getUntrackedParameter<double>("LEDMeanTreshold" , 0.1);
267  LEDRmsTreshold = ps.getUntrackedParameter<double>("LEDRmsTreshold" , 0.1);
268 
269  ReferenceData = ps.getUntrackedParameter<std::string>("LEDReferenceData" ,"");
270  OutputFilePath = ps.getUntrackedParameter<std::string>("OutputFilePath", "");
271  XmlFilePath = ps.getUntrackedParameter<std::string>("XmlFilePath", "");
272 
273  digiLabel_ = ps.getUntrackedParameter<edm::InputTag>("digiLabel", edm::InputTag("hcalDigis"));
274 
275  emap=0;
276  needLogicalMap_ = true;
277 
278  // register for data access
279  tok_tb_ = consumes<HcalTBTriggerData>(ps.getParameter<edm::InputTag>("hcalTBTriggerDataTag"));
280  tok_hbhe_ = consumes<HBHEDigiCollection>(digiLabel_);
281  tok_ho_ = consumes<HODigiCollection>(digiLabel_);
282  tok_hf_ = consumes<HFDigiCollection>(digiLabel_);
283  tok_calib_ = consumes<HcalCalibDigiCollection>(ps.getUntrackedParameter<edm::InputTag>("calibDigiLabel",edm::InputTag("hcalDigis")));
284 
285 
286 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< HcalTBTriggerData > tok_tb_
std::vector< int > AllowedCalibTypes_
edm::EDGetTokenT< HcalCalibDigiCollection > tok_calib_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
HcalElectronicsMap * emap
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
edm::EDGetTokenT< HODigiCollection > tok_ho_
HcalDetDiagLEDMonitor::~HcalDetDiagLEDMonitor ( )

Definition at line 288 of file HcalDetDiagLEDMonitor.cc.

288 {}

Member Function Documentation

void HcalDetDiagLEDMonitor::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 390 of file HcalDetDiagLEDMonitor.cc.

References adc2fC, HcalDetDiagLEDData::add_statistics(), HcalBaseDQMonitor::analyze(), calib, calib_data, CheckStatus(), data, HcalBaseDQMonitor::dbe_, alignCSCRings::e, emap, eta(), MonitorElement::Fill(), fillHistos(), HcalLogicalMap::generateHcalElectronicsMap(), edm::Event::getByToken(), HcalBaseDQMonitor::getLogicalMap(), hb_data, HcalBarrel, HcalEndcap, he_data, hf_data, ho_data, i, edm::EventBase::id(), ievt_, edm::HandleBase::isValid(), HcalBaseDQMonitor::logicalMap_, meEVT_, meRUN_, phi, edm::EventID::run(), run_number, tok_calib_, tok_hbhe_, tok_hf_, tok_ho_, and tok_tb_.

390  {
391 int eta,phi,depth,nTS;
393  if (emap==0) {
395  }
396 
397  if(!dbe_) return;
398  bool LEDEvent=false;
399  bool LocalRun=false;
400  // for local runs
401 
402  edm::Handle<HcalTBTriggerData> trigger_data;
403  iEvent.getByToken(tok_tb_, trigger_data);
404  if(trigger_data.isValid()){
405  if(trigger_data->triggerWord()==6){ LEDEvent=true;LocalRun=true;}
406  }
407  if(!LocalRun) return;
408  if(!LEDEvent) return;
409 
410  HcalBaseDQMonitor::analyze(iEvent, iSetup);
411  meEVT_->Fill(++ievt_);
412  run_number=iEvent.id().run();
413  meRUN_->Fill(iEvent.id().run());
414 
415  double data[20];
416 
418  iEvent.getByToken(tok_hbhe_, hbhe);
419  if(hbhe.isValid()) for(HBHEDigiCollection::const_iterator digi=hbhe->begin();digi!=hbhe->end();digi++){
420  eta=digi->id().ieta(); phi=digi->id().iphi(); depth=digi->id().depth(); nTS=digi->size();
421  if(digi->id().subdet()==HcalBarrel){
422  for(int i=0;i<nTS;i++) data[i]=adc2fC[digi->sample(i).adc()&0xff]-2.5;
423  hb_data[eta+42][phi-1][depth-1].add_statistics(data,nTS);
424  }
425  if(digi->id().subdet()==HcalEndcap){
426  for(int i=0;i<nTS;i++) data[i]=adc2fC[digi->sample(i).adc()&0xff]-2.5;
427  he_data[eta+42][phi-1][depth-1].add_statistics(data,nTS);
428  }
429  }
430 
432  iEvent.getByToken(tok_ho_,ho);
433  if(ho.isValid()) for(HODigiCollection::const_iterator digi=ho->begin();digi!=ho->end();digi++){
434  eta=digi->id().ieta(); phi=digi->id().iphi(); depth=digi->id().depth(); nTS=digi->size();
435  for(int i=0;i<nTS;i++) data[i]=adc2fC[digi->sample(i).adc()&0xff]-2.5;
436  ho_data[eta+42][phi-1][depth-1].add_statistics(data,nTS);
437  }
438 
440  iEvent.getByToken(tok_hf_,hf);
441  if(hf.isValid()) for(HFDigiCollection::const_iterator digi=hf->begin();digi!=hf->end();digi++){
442  eta=digi->id().ieta(); phi=digi->id().iphi(); depth=digi->id().depth(); nTS=digi->size();
443  for(int i=0;i<nTS;i++) data[i]=adc2fC[digi->sample(i).adc()&0xff]-2.5;
444  hf_data[eta+42][phi-1][depth-1].add_statistics(data,nTS);
445  }
446 
448  iEvent.getByToken(tok_calib_, calib);
449  if(calib.isValid())for(HcalCalibDigiCollection::const_iterator digi=calib->begin();digi!=calib->end();digi++){
450  if(digi->id().cboxChannel()!=0 || digi->id().hcalSubdet()==0) continue;
451  nTS=digi->size();
452  double e=0;
453  for(int i=0;i<nTS;i++){ data[i]=adc2fC[digi->sample(i).adc()&0xff]; e+=data[i];}
454  if(e<15000) calib_data[digi->id().hcalSubdet()][digi->id().ieta()+2][digi->id().iphi()-1].add_statistics(data,nTS);
455  }
456 
457  if(((ievt_)%500)==0){
458  fillHistos();
459  CheckStatus();
460  }
461  return;
462 }
RunNumber_t run() const
Definition: EventID.h:42
int i
Definition: DBlmapReader.cc:9
edm::EDGetTokenT< HcalTBTriggerData > tok_tb_
HcalDetDiagLEDData hb_data[85][72][4]
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
std::vector< HBHEDataFrame >::const_iterator const_iterator
edm::EDGetTokenT< HcalCalibDigiCollection > tok_calib_
void getLogicalMap(const edm::EventSetup &c)
T eta() const
static const float adc2fC[128]
HcalDetDiagLEDData hf_data[85][72][4]
void Fill(long long x)
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
HcalElectronicsMap generateHcalElectronicsMap()
edm::EDGetTokenT< HFDigiCollection > tok_hf_
HcalDetDiagLEDData ho_data[85][72][4]
HcalLogicalMap * logicalMap_
HcalElectronicsMap * emap
void add_statistics(double *data, int nTS)
bool isValid() const
Definition: HandleBase.h:76
HcalDetDiagLEDData calib_data[5][5][72]
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
HcalDetDiagLEDData he_data[85][72][4]
edm::EventID id() const
Definition: EventBase.h:56
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
edm::EDGetTokenT< HODigiCollection > tok_ho_
Definition: DDAxes.h:10
void HcalDetDiagLEDMonitor::beginRun ( const edm::Run run,
const edm::EventSetup c 
)
overridevirtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 299 of file HcalDetDiagLEDMonitor.cc.

References HcalBaseDQMonitor::beginRun(), gather_cfg::cout, HcalBaseDQMonitor::debug_, edm::EventSetup::get(), HcalCondObjectContainer< Item >::getAllChannels(), reco::JetExtendedAssociation::getValue(), HcalCondObjectContainer< Item >::getValues(), DetId::Hcal, HcalChannelStatus::HcalCellMask, HcalChannelStatus::HcalCellOff, i, KnownBadCells_, HcalBaseDQMonitor::mergeRuns_, AlCaHLTBitMon_ParallelJobs::p, edm::ESHandle< class >::product(), reset(), setup(), ntuplemaker::status, and HcalBaseDQMonitor::tevt_.

300 {
301  if (debug_>1) std::cout <<"HcalDetDiagLEDMonitor::beginRun"<<std::endl;
303 
304  if (tevt_==0) this->setup(); // set up histograms if they have not been created before
305  if (mergeRuns_==false) this->reset();
306 
308  c.get<HcalChannelQualityRcd>().get(p);
309  HcalChannelQuality* chanquality= new HcalChannelQuality(*p.product());
310  std::vector<DetId> mydetids = chanquality->getAllChannels();
311  KnownBadCells_.clear();
312 
313  for (std::vector<DetId>::const_iterator i = mydetids.begin();i!=mydetids.end();++i){
314  if (i->det()!=DetId::Hcal) continue; // not an hcal cell
315  HcalDetId id=HcalDetId(*i);
316  int status=(chanquality->getValues(id))->getValue();
318  KnownBadCells_[id.rawId()]=status;
319  }
320  }
321 
322  return;
323 } // void HcalNDetDiagLEDMonitor::beginRun(...)
int i
Definition: DBlmapReader.cc:9
const Item * getValues(DetId fId, bool throwOnFail=true) const
virtual void beginRun(const edm::Run &run, const edm::EventSetup &c)
std::vector< DetId > getAllChannels() const
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
std::map< unsigned int, int > KnownBadCells_
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
tuple cout
Definition: gather_cfg.py:121
tuple status
Definition: ntuplemaker.py:245
void HcalDetDiagLEDMonitor::CheckStatus ( )
private

Definition at line 1064 of file HcalDetDiagLEDMonitor.cc.

References HcalElectronicsMap::allElectronicsIdPrecision(), HcalDetDiagLEDData::change_status(), ChannelStatusLEDMean, ChannelStatusLEDRMS, ChannelStatusMissingChannels, ChannelStatusTimeMean, ChannelStatusTimeRMS, ChannelStatusUnstableChannels, ChannelStatusUnstableLEDsignal, HcalDetId::depth(), EtaPhiHists::depth, DetId::det(), cond::rpcobgas::detid, emap, eta(), fill_channel_status(), HcalDetDiagLEDData::get_average_time(), HcalDetDiagLEDData::get_overflow(), HcalDetDiagLEDData::get_statistics(), HcalDetDiagLEDData::get_undeflow(), MonitorElement::getMean(), hb_data, DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalOuter, he_data, hf_data, ho_data, i, HcalDetId::ieta(), ievt_, HcalDetId::iphi(), KnownBadCells_, HcalElectronicsMap::lookup(), phi, plotscripts::rms(), DetId::subdetId(), Time, and TimeHF.

Referenced by analyze(), and endRun().

1064  {
1065  for(int i=0;i<4;i++){
1069  ChannelStatusLEDMean->depth[i]->Reset();
1070  ChannelStatusLEDRMS->depth[i]->Reset();
1071  ChannelStatusTimeMean->depth[i]->Reset();
1072  ChannelStatusTimeRMS->depth[i]->Reset();
1073  }
1074 
1075  std::vector <HcalElectronicsId> AllElIds = emap->allElectronicsIdPrecision();
1076  for (std::vector <HcalElectronicsId>::iterator eid = AllElIds.begin(); eid != AllElIds.end(); eid++) {
1077  DetId detid=emap->lookup(*eid);
1078  if (detid.det()!=DetId::Hcal) continue;
1079  HcalGenericDetId gid(emap->lookup(*eid));
1080  if(!(!(gid.null()) &&
1081  (gid.genericSubdet()==HcalGenericDetId::HcalGenBarrel ||
1082  gid.genericSubdet()==HcalGenericDetId::HcalGenEndcap ||
1083  gid.genericSubdet()==HcalGenericDetId::HcalGenForward ||
1084  gid.genericSubdet()==HcalGenericDetId::HcalGenOuter))) continue;
1085  int eta=0,phi=0,depth=0;
1086  if(KnownBadCells_.find(gid.rawId())==KnownBadCells_.end()) continue;
1087 
1088  HcalDetId hid(detid);
1089  eta=hid.ieta();
1090  phi=hid.iphi();
1091  depth=hid.depth();
1092 
1093  double AVE_TIME=Time->getMean();
1094  if(detid.subdetId()==HcalBarrel){
1095  int stat=hb_data[eta+42][phi-1][depth-1].get_statistics()+
1096  hb_data[eta+42][phi-1][depth-1].get_overflow()+hb_data[eta+42][phi-1][depth-1].get_undeflow();
1097  if(stat==0){
1098  fill_channel_status("HB",eta,phi,depth,1,1);
1099  hb_data[eta+42][phi-1][depth-1].change_status(1);
1100  }
1101  if(stat>0 && stat!=(ievt_)){
1102  fill_channel_status("HB",eta,phi,depth,2,(double)stat/(double)(ievt_));
1103  hb_data[eta+42][phi-1][depth-1].change_status(2);
1104  }
1105  if(hb_data[eta+42][phi-1][depth-1].get_statistics()>100){
1106  double ave=0;
1107  double rms=0;
1108  hb_data[eta+42][phi-1][depth-1].get_average_time(&ave,&rms);
1109  if((AVE_TIME-ave)>0.75 || (AVE_TIME-ave)<-0.75){
1110  fill_channel_status("HB",eta,phi,depth,6,AVE_TIME-ave);
1111  hb_data[eta+42][phi-1][depth-1].change_status(8);
1112  }
1113  }
1114  stat=hb_data[eta+42][phi-1][depth-1].get_undeflow();
1115  if(stat>0){
1116  fill_channel_status("HB",eta,phi,depth,3,(double)stat/(double)(ievt_));
1117  hb_data[eta+42][phi-1][depth-1].change_status(4);
1118  }
1119  }
1120  if(detid.subdetId()==HcalEndcap){
1121  int stat=he_data[eta+42][phi-1][depth-1].get_statistics()+
1122  he_data[eta+42][phi-1][depth-1].get_overflow()+he_data[eta+42][phi-1][depth-1].get_undeflow();
1123  if(stat==0){
1124  fill_channel_status("HE",eta,phi,depth,1,1);
1125  he_data[eta+42][phi-1][depth-1].change_status(1);
1126  }
1127  if(stat>0 && stat!=(ievt_)){
1128  fill_channel_status("HE",eta,phi,depth,2,(double)stat/(double)(ievt_));
1129  he_data[eta+42][phi-1][depth-1].change_status(2);
1130  }
1131  if(he_data[eta+42][phi-1][depth-1].get_statistics()>100){
1132  double ave=0;
1133  double rms=0;
1134  he_data[eta+42][phi-1][depth-1].get_average_time(&ave,&rms);
1135  if((AVE_TIME-ave)>0.75 || (AVE_TIME-ave)<-0.75){
1136  fill_channel_status("HE",eta,phi,depth,6,AVE_TIME-ave);
1137  he_data[eta+42][phi-1][depth-1].change_status(8);
1138  }
1139  }
1140  stat=he_data[eta+42][phi-1][depth-1].get_undeflow();
1141  if(stat>0){
1142  fill_channel_status("HE",eta,phi,depth,3,(double)stat/(double)(ievt_));
1143  he_data[eta+42][phi-1][depth-1].change_status(4);
1144  }
1145  }
1146  if(detid.subdetId()==HcalOuter){
1147  int stat=ho_data[eta+42][phi-1][depth-1].get_statistics()+
1148  ho_data[eta+42][phi-1][depth-1].get_overflow()+ho_data[eta+42][phi-1][depth-1].get_undeflow();
1149  if(stat==0){
1150  fill_channel_status("HO",eta,phi,depth,1,1);
1151  ho_data[eta+42][phi-1][depth-1].change_status(1);
1152  }
1153  if(stat>0 && stat!=(ievt_)){
1154  fill_channel_status("HO",eta,phi,depth,2,(double)stat/(double)(ievt_));
1155  ho_data[eta+42][phi-1][depth-1].change_status(2);
1156  }
1157  if(ho_data[eta+42][phi-1][depth-1].get_statistics()>100){
1158  double ave=0;
1159  double rms=0;
1160  ho_data[eta+42][phi-1][depth-1].get_average_time(&ave,&rms);
1161  if((AVE_TIME-ave)>0.75 || (AVE_TIME-ave)<-0.75){
1162  fill_channel_status("HO",eta,phi,depth,6,AVE_TIME-ave);
1163  ho_data[eta+42][phi-1][depth-1].change_status(8);
1164  }
1165  }
1166  stat=ho_data[eta+42][phi-1][depth-1].get_undeflow();
1167  if(stat>0){
1168  fill_channel_status("HO",eta,phi,depth,3,(double)stat/(double)(ievt_));
1169  ho_data[eta+42][phi-1][depth-1].change_status(4);
1170  }
1171  }
1172  if(detid.subdetId()==HcalForward){
1173  AVE_TIME=TimeHF->getMean();
1174  int stat=hf_data[eta+42][phi-1][depth-1].get_statistics()+
1175  hf_data[eta+42][phi-1][depth-1].get_overflow()+hf_data[eta+42][phi-1][depth-1].get_undeflow();
1176  if(stat==0){
1177  fill_channel_status("HF",eta,phi,depth,1,1);
1178  hf_data[eta+42][phi-1][depth-1].change_status(1);
1179  }
1180  if(stat>0 && stat!=(ievt_)){
1181  fill_channel_status("HF",eta,phi,depth,2,(double)stat/(double)(ievt_));
1182  hf_data[eta+42][phi-1][depth-1].change_status(2);
1183  }
1184  if(hf_data[eta+42][phi-1][depth-1].get_statistics()>100){
1185  double ave=0;
1186  double rms=0;
1187  hf_data[eta+42][phi-1][depth-1].get_average_time(&ave,&rms);
1188  if((AVE_TIME-ave)>0.75 || (AVE_TIME-ave)<-0.75){
1189  fill_channel_status("HF",eta,phi,depth,6,AVE_TIME-ave);
1190  hf_data[eta+42][phi-1][depth-1].change_status(8);
1191  }
1192  }
1193  stat=hf_data[eta+42][phi-1][depth-1].get_undeflow();
1194  if(stat>0){
1195  fill_channel_status("HF",eta,phi,depth,3,(double)stat/(double)(ievt_));
1196  hf_data[eta+42][phi-1][depth-1].change_status(4);
1197  }
1198  }
1199  }
1200 }
EtaPhiHists * ChannelStatusMissingChannels
int i
Definition: DBlmapReader.cc:9
std::vector< HcalElectronicsId > allElectronicsIdPrecision() const
HcalDetDiagLEDData hb_data[85][72][4]
void fill_channel_status(std::string subdet, int eta, int phi, int depth, int type, double status)
T eta() const
double getMean(int axis=1) const
get mean value of histogram along x, y or z axis (axis=1, 2, 3 respectively)
HcalDetDiagLEDData hf_data[85][72][4]
EtaPhiHists * ChannelStatusUnstableChannels
std::vector< MonitorElement * > depth
HcalDetDiagLEDData ho_data[85][72][4]
HcalElectronicsMap * emap
EtaPhiHists * ChannelStatusUnstableLEDsignal
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
bool get_average_time(double *ave, double *rms)
Definition: DetId.h:18
HcalDetDiagLEDData he_data[85][72][4]
std::map< unsigned int, int > KnownBadCells_
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
Definition: DDAxes.h:10
void HcalDetDiagLEDMonitor::cleanup ( void  )
overridevirtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 290 of file HcalDetDiagLEDMonitor.cc.

References HcalBaseDQMonitor::dbe_, DQMStore::removeContents(), DQMStore::setCurrentFolder(), and HcalBaseDQMonitor::subdir_.

290  {
291  if(dbe_){
293  dbe_->removeContents();
294  dbe_ = 0;
295  }
296 }
void removeContents(void)
erase all monitoring elements in current directory (not including subfolders);
Definition: DQMStore.cc:2765
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:585
void HcalDetDiagLEDMonitor::endRun ( const edm::Run run,
const edm::EventSetup c 
)
overridevirtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 1245 of file HcalDetDiagLEDMonitor.cc.

References CheckStatus(), fillHistos(), ievt_, and SaveReference().

1245  {
1246  if(ievt_>=100){
1247  fillHistos();
1248  CheckStatus();
1249  SaveReference();
1250  }
1251 }
void HcalDetDiagLEDMonitor::fill_channel_status ( std::string  subdet,
int  eta,
int  phi,
int  depth,
int  type,
double  status 
)
private

Definition at line 1228 of file HcalDetDiagLEDMonitor.cc.

References CalcEtaBin(), ChannelStatusLEDMean, ChannelStatusLEDRMS, ChannelStatusMissingChannels, ChannelStatusTimeMean, ChannelStatusTimeRMS, ChannelStatusUnstableChannels, ChannelStatusUnstableLEDsignal, EtaPhiHists::depth, HcalBarrel, HcalEndcap, HcalForward, and HcalOuter.

Referenced by CheckStatus().

1228  {
1229  int subdetval=-1;
1230  if (subdet.compare("HB")==0) subdetval=(int)HcalBarrel;
1231  else if (subdet.compare("HE")==0) subdetval=(int)HcalEndcap;
1232  else if (subdet.compare("HO")==0) subdetval=(int)HcalOuter;
1233  else if (subdet.compare("HF")==0) subdetval=(int)HcalForward;
1234  else return;
1235  int ietabin=CalcEtaBin(subdetval, eta, depth)+1;
1236 
1237  if(type==1) ChannelStatusMissingChannels->depth[depth-1] ->setBinContent(ietabin,phi,status);
1238  if(type==2) ChannelStatusUnstableChannels->depth[depth-1] ->setBinContent(ietabin,phi,status);
1239  if(type==3) ChannelStatusUnstableLEDsignal->depth[depth-1]->setBinContent(ietabin,phi,status);
1240  if(type==4) ChannelStatusLEDMean->depth[depth-1] ->setBinContent(ietabin,phi,status);
1241  if(type==5) ChannelStatusLEDRMS->depth[depth-1] ->setBinContent(ietabin,phi,status);
1242  if(type==6) ChannelStatusTimeMean->depth[depth-1] ->setBinContent(ietabin,phi,status);
1243  if(type==7) ChannelStatusTimeRMS->depth[depth-1] ->setBinContent(ietabin,phi,status);
1244 }
EtaPhiHists * ChannelStatusMissingChannels
type
Definition: HCALResponse.h:21
T eta() const
EtaPhiHists * ChannelStatusUnstableChannels
std::vector< MonitorElement * > depth
EtaPhiHists * ChannelStatusUnstableLEDsignal
int CalcEtaBin(int subdet, int ieta, int depth)
tuple status
Definition: ntuplemaker.py:245
Definition: DDAxes.h:10
void HcalDetDiagLEDMonitor::fill_energy ( std::string  subdet,
int  eta,
int  phi,
int  depth,
double  e,
int  type 
)
private

Definition at line 1201 of file HcalDetDiagLEDMonitor.cc.

References CalcEtaBin(), ChannelsLEDEnergy, ChannelsLEDEnergyRef, EtaPhiHists::depth, HcalBarrel, HcalEndcap, HcalForward, and HcalOuter.

Referenced by fillHistos().

1201  {
1202  int subdetval=-1;
1203  if (subdet.compare("HB")==0) subdetval=(int)HcalBarrel;
1204  else if (subdet.compare("HE")==0) subdetval=(int)HcalEndcap;
1205  else if (subdet.compare("HO")==0) subdetval=(int)HcalOuter;
1206  else if (subdet.compare("HF")==0) subdetval=(int)HcalForward;
1207  else return;
1208 
1209  int ietabin=CalcEtaBin(subdetval, eta, depth)+1;
1210  if(type==1) ChannelsLEDEnergy->depth[depth-1] ->setBinContent(ietabin,phi,e);
1211  else if(type==2) ChannelsLEDEnergyRef->depth[depth-1]->setBinContent(ietabin,phi,e);
1212 }
type
Definition: HCALResponse.h:21
T eta() const
std::vector< MonitorElement * > depth
int CalcEtaBin(int subdet, int ieta, int depth)
Definition: DDAxes.h:10
void HcalDetDiagLEDMonitor::fillHistos ( )

Definition at line 465 of file HcalDetDiagLEDMonitor.cc.

References funct::abs(), HcalElectronicsMap::allElectronicsIdPrecision(), HcalDetId::depth(), DetId::det(), cond::rpcobgas::detid, emap, Energy, Energy2Dhbhehf, Energy2Dho, EnergyCorr, EnergyHF, EnergyRMS, EnergyRMSHF, eta(), MonitorElement::Fill(), fill_energy(), HcalDetDiagLEDData::get_average_led(), HcalDetDiagLEDData::get_average_time(), get_energy(), GetCalib(), HcalLogicalMap::getHcalFrontEndId(), hb_data, HBMphi, HBPphi, DetId::Hcal, HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, he_data, HEMphi, HEPphi, hf_data, HFMphi, HFPphi, HO0phi, HO1Mphi, HO1Pphi, HO2Mphi, HO2Pphi, ho_data, i, HcalDetId::ieta(), HcalDetId::iphi(), isSiPM(), j, KnownBadCells_, HcalBaseDQMonitor::logicalMap_, HcalElectronicsMap::lookup(), phi, DetId::rawId(), HcalFrontEndId::rbx(), MonitorElement::Reset(), HcalFrontEndId::rm(), plotscripts::rms(), sd, AlCaHLTBitMon_QueryRunRegistry::string, cond::rpcobgas::time, Time, Time2Dhbhehf, Time2Dho, TimeHF, TimeRMS, and TimeRMSHF.

Referenced by analyze(), and endRun().

465  {
466  std::string subdet[4]={"HB","HE","HO","HF"};
467  Energy->Reset();
468  Time->Reset();
469  EnergyRMS->Reset();
470  TimeRMS->Reset();
471  EnergyHF->Reset();
472  TimeHF->Reset();
473  EnergyRMSHF->Reset();
474  TimeRMSHF->Reset();
475  EnergyCorr->Reset();
476  Time2Dhbhehf->Reset();
477  Time2Dho->Reset();
479  Energy2Dho->Reset();
480  HBPphi->Reset();
481  HBMphi->Reset();
482  HEPphi->Reset();
483  HEMphi->Reset();
484  HFPphi->Reset();
485  HFMphi->Reset();
486  HO0phi->Reset();
487  HO1Pphi->Reset();
488  HO2Pphi->Reset();
489  HO1Mphi->Reset();
490  HO2Mphi->Reset();
491 
492  // HB histograms
493  for(int eta=-16;eta<=16;eta++) for(int phi=1;phi<=72;phi++){
494  double T=0,nT=0,E=0,nE=0;
495  for(int depth=1;depth<=2;depth++){
496  if(hb_data[eta+42][phi-1][depth-1].get_statistics()>100){
497  double ave=0;
498  double rms=0;
499  double time=0;
500  double time_rms=0;
501  hb_data[eta+42][phi-1][depth-1].get_average_led(&ave,&rms);
502  hb_data[eta+42][phi-1][depth-1].get_average_time(&time,&time_rms);
503  Energy->Fill(ave);
504  if(ave>0)EnergyRMS->Fill(rms/ave);
505  Time->Fill(time);
506  TimeRMS->Fill(time_rms);
507  T+=time; nT++; E+=ave; nE++;
508  if(GetCalib("HB",eta,phi)->get_statistics()>100){
509  double ave_calib=0;
510  double rms_calib=0;
511  GetCalib("HB",eta,phi)->get_average_led(&ave_calib,&rms_calib);
512  fill_energy("HB",eta,phi,depth,ave/ave_calib,1);
513  EnergyCorr->Fill(ave_calib/ave);
514  }
515  }
516  }
517  if(nT>0){Time2Dhbhehf->Fill(eta,phi,T/nT);Energy2Dhbhehf->Fill(eta,phi,E/nE); }
518  }
519  // HE histograms
520  for(int eta=-29;eta<=29;eta++) for(int phi=1;phi<=72;phi++){
521  double T=0,nT=0,E=0,nE=0;
522  for(int depth=1;depth<=3;depth++){
523  if(he_data[eta+42][phi-1][depth-1].get_statistics()>100){
524  double ave=0;
525  double rms=0;
526  double time=0;
527  double time_rms=0;
528  he_data[eta+42][phi-1][depth-1].get_average_led(&ave,&rms);
529  he_data[eta+42][phi-1][depth-1].get_average_time(&time,&time_rms);
530  Energy->Fill(ave);
531  if(ave>0)EnergyRMS->Fill(rms/ave);
532  Time->Fill(time);
533  T+=time; nT++; E+=ave; nE++;
534  TimeRMS->Fill(time_rms);
535  if(GetCalib("HE",eta,phi)->get_statistics()>100){
536  double ave_calib=0;
537  double rms_calib=0;
538  GetCalib("HE",eta,phi)->get_average_led(&ave_calib,&rms_calib);
539  fill_energy("HE",eta,phi,depth,ave/ave_calib,1);
540  EnergyCorr->Fill(ave_calib/ave);
541  }
542  }
543  }
544  if(nT>0 && abs(eta)>16 ){Time2Dhbhehf->Fill(eta,phi,T/nT); Energy2Dhbhehf->Fill(eta,phi,E/nE); }
545  if(nT>0 && abs(eta)>20 ){Time2Dhbhehf->Fill(eta,phi+1,T/nT); Energy2Dhbhehf->Fill(eta,phi+1,E/nE);}
546  }
547  // HF histograms
548  for(int eta=-42;eta<=42;eta++) for(int phi=1;phi<=72;phi++){
549  double T=0,nT=0,E=0,nE=0;
550  for(int depth=1;depth<=2;depth++){
551  if(hf_data[eta+42][phi-1][depth-1].get_statistics()>100){
552  double ave=0;
553  double rms=0;
554  double time=0;
555  double time_rms=0;
556  hf_data[eta+42][phi-1][depth-1].get_average_led(&ave,&rms);
557  hf_data[eta+42][phi-1][depth-1].get_average_time(&time,&time_rms);
558  EnergyHF->Fill(ave);
559  if(ave>0)EnergyRMSHF->Fill(rms/ave);
560  TimeHF->Fill(time);
561  T+=time; nT++; E+=ave; nE++;
562  TimeRMSHF->Fill(time_rms);
563  if(GetCalib("HF",eta,phi)->get_statistics()>100){
564  double ave_calib=0;
565  double rms_calib=0;
566  GetCalib("HF",eta,phi)->get_average_led(&ave_calib,&rms_calib);
567  fill_energy("HF",eta,phi,depth,ave/ave_calib,1);
568  EnergyCorr->Fill(ave_calib/ave);
569  }
570  }
571  }
572  if(nT>0 && abs(eta)>29 ){ Time2Dhbhehf->Fill(eta,phi,T/nT); Time2Dhbhehf->Fill(eta,phi+1,T/nT);}
573  if(nT>0 && abs(eta)>29 ){ Energy2Dhbhehf->Fill(eta,phi,E/nE); Energy2Dhbhehf->Fill(eta,phi+1,E/nE);}
574  }
575  // HO histograms
576  for(int eta=-10;eta<=15;eta++) for(int phi=1;phi<=72;phi++){
577  double T=0,nT=0,E=0,nE=0;
578  if(eta>10 && !isSiPM(eta,phi,4)) continue;
579  for(int depth=4;depth<=4;depth++){
580  if(ho_data[eta+42][phi-1][depth-1].get_statistics()>100){
581  double ave=0;
582  double rms=0;
583  double time=0;
584  double time_rms=0;
585  ho_data[eta+42][phi-1][depth-1].get_average_led(&ave,&rms);
586  ho_data[eta+42][phi-1][depth-1].get_average_time(&time,&time_rms);
587  Energy->Fill(ave);
588  if(ave>0)EnergyRMS->Fill(rms/ave);
589  Time->Fill(time);
590  T+=time; nT++; E+=ave; nE++;
591  TimeRMS->Fill(time_rms);
592  if(GetCalib("HO",eta,phi)->get_statistics()>100){
593  double ave_calib=0;
594  double rms_calib=0;
595  GetCalib("HO",eta,phi)->get_average_led(&ave_calib,&rms_calib);
596  fill_energy("HO",eta,phi,depth,ave/ave_calib,1);
597  EnergyCorr->Fill(ave_calib/ave);
598  }
599  }
600  }
601  if(nT>0){ Time2Dho->Fill(eta,phi,T/nT); Energy2Dho->Fill(eta,phi+1,E/nE) ;}
602  }
603 
604  double ave=0.,rms=0.,ave_calib=0.,rms_calib=0.;
605  // HB Ref histograms
606  for(int eta=-16;eta<=16;eta++) for(int phi=1;phi<=72;phi++) for(int depth=1;depth<=2;depth++){
607  if(hb_data[eta+42][phi-1][depth-1].get_reference(&ave,&rms) && GetCalib("HB",eta,phi)->get_reference(&ave_calib,&rms_calib)){
608  fill_energy("HB",eta,phi,depth,ave/ave_calib,2);
609  }
610  }
611  // HE Ref histograms
612  for(int eta=-29;eta<=29;eta++) for(int phi=1;phi<=72;phi++) for(int depth=1;depth<=3;depth++){
613  if(he_data[eta+42][phi-1][depth-1].get_reference(&ave,&rms) && GetCalib("HE",eta,phi)->get_reference(&ave_calib,&rms_calib)){
614  fill_energy("HE",eta,phi,depth,ave/ave_calib,2);
615  }
616  }
617  // HO Ref histograms
618  for(int eta=-10;eta<=15;eta++) for(int phi=1;phi<=72;phi++) for(int depth=4;depth<=4;depth++){
619  if(eta>10 && !isSiPM(eta,phi,4)) continue;
620  if(ho_data[eta+42][phi-1][depth-1].get_reference(&ave,&rms) && GetCalib("HO",eta,phi)->get_reference(&ave_calib,&rms_calib)){
621  fill_energy("HO",eta,phi,depth,ave/ave_calib,2);
622  }
623  }
624  // HF Ref histograms
625  for(int eta=-42;eta<=42;eta++) for(int phi=1;phi<=72;phi++) for(int depth=1;depth<=2;depth++){
626  if(hf_data[eta+42][phi-1][depth-1].get_reference(&ave,&rms) && GetCalib("HF",eta,phi)->get_reference(&ave_calib,&rms_calib)){
627  fill_energy("HF",eta,phi,depth,ave/ave_calib,2);
628  }
629  }
630 
631  //fill RM histograms: this part is incomplete, will be modefied later
632  double hbp[18][4],nhbp[18][4],hbm[18][4],nhbm[18][4];
633  double hep[18][4],nhep[18][4],hem[18][4],nhem[18][4];
634  double hfp[18][4],nhfp[18][4],hfm[18][4],nhfm[18][4];
635  double ho0[18][4],nho0[18][4];
636  double ho1p[18][4],nho1p[18][4];
637  double ho2p[18][4],nho2p[18][4];
638  double ho1m[18][4],nho1m[18][4];
639  double ho2m[18][4],nho2m[18][4];
640  for(int i=0;i<18;i++) for(int j=0;j<4;j++)
641  hbp[i][j]=nhbp[i][j]=hbm[i][j]=nhbm[i][j]=hep[i][j]=nhep[i][j]=hem[i][j]=nhem[i][j]=hfp[i][j]=nhfp[i][j]=hfm[i][j]=nhfm[i][j]=0;
642  for(int i=0;i<18;i++) for(int j=0;j<4;j++)
643  ho0[i][j]=nho0[i][j]=ho1p[i][j]=nho1p[i][j]=ho2p[i][j]=nho2p[i][j]=ho1m[i][j]=nho1m[i][j]=ho2m[i][j]=nho2m[i][j]=0;
644 
645  std::vector <HcalElectronicsId> AllElIds = emap->allElectronicsIdPrecision();
646  for(std::vector <HcalElectronicsId>::iterator eid = AllElIds.begin(); eid != AllElIds.end(); eid++){
647  DetId detid=emap->lookup(*eid);
648  if(detid.det()!=DetId::Hcal) continue;
649  HcalGenericDetId gid(emap->lookup(*eid));
650  if(!(!(gid.null()) &&
651  (gid.genericSubdet()==HcalGenericDetId::HcalGenBarrel ||
652  gid.genericSubdet()==HcalGenericDetId::HcalGenEndcap ||
653  gid.genericSubdet()==HcalGenericDetId::HcalGenForward ||
654  gid.genericSubdet()==HcalGenericDetId::HcalGenOuter))) continue;
655  int sd=0,eta=0,phi=0,depth=0;
656  if(gid.genericSubdet()==HcalGenericDetId::HcalGenBarrel) sd=0;
657  else if(gid.genericSubdet()==HcalGenericDetId::HcalGenEndcap) sd=1;
658  else if(gid.genericSubdet()==HcalGenericDetId::HcalGenOuter) sd=2;
659  else if(gid.genericSubdet()==HcalGenericDetId::HcalGenForward)sd=3;
660  HcalDetId hid(detid);
661  if(KnownBadCells_.find(hid.rawId())==KnownBadCells_.end()) continue;
662 
663  eta=hid.ieta();
664  phi=hid.iphi();
665  depth=hid.depth();
666 
667  double ave =get_energy(subdet[sd],eta,phi,depth,1);
668  double ref =get_energy(subdet[sd],eta,phi,depth,2);
669 
671  int rbx;
672  if(sd==0 || sd==1 || sd==3){
673  sscanf(&(lmap_entry.rbx().c_str())[3],"%d",&rbx);
674  }else{
675  if(abs(eta)<5) sscanf(&(lmap_entry.rbx().c_str())[3],"%d",&rbx);
676  if(abs(eta)>=5) sscanf(&(lmap_entry.rbx().c_str())[4],"%d",&rbx);
677  }
678  if(ave>0 && ref>0){
679  if(sd==0 && eta>0){ hbp[rbx-1][lmap_entry.rm()-1]+=ave/ref; nhbp[rbx-1][lmap_entry.rm()-1]++; }
680  if(sd==0 && eta<0){ hbm[rbx-1][lmap_entry.rm()-1]+=ave/ref; nhbm[rbx-1][lmap_entry.rm()-1]++; }
681  if(sd==1 && eta>0){ hep[rbx-1][lmap_entry.rm()-1]+=ave/ref; nhep[rbx-1][lmap_entry.rm()-1]++; }
682  if(sd==1 && eta<0){ hem[rbx-1][lmap_entry.rm()-1]+=ave/ref; nhem[rbx-1][lmap_entry.rm()-1]++; }
683  if(sd==3 && eta>0){ hfp[rbx-1][lmap_entry.rm()-1]+=ave/ref; nhfp[rbx-1][lmap_entry.rm()-1]++; }
684  if(sd==3 && eta<0){ hfm[rbx-1][lmap_entry.rm()-1]+=ave/ref; nhfm[rbx-1][lmap_entry.rm()-1]++; }
685  if(sd==2 && abs(eta)<5){ ho0[rbx-1][lmap_entry.rm()-1]+=ave/ref; nho0[rbx-1][lmap_entry.rm()-1]++; }
686  if(sd==2 && eta>=5 && eta<=10){ ho1p[rbx-1][lmap_entry.rm()-1]+=ave/ref; nho1p[rbx-1][lmap_entry.rm()-1]++; }
687  if(sd==2 && eta>=11 && eta<=15){ ho2p[rbx-1][lmap_entry.rm()-1]+=ave/ref; nho2p[rbx-1][lmap_entry.rm()-1]++; }
688  if(sd==2 && eta>=-10 && eta<=-5){ ho1m[rbx-1][lmap_entry.rm()-1]+=ave/ref; nho1m[rbx-1][lmap_entry.rm()-1]++; }
689  if(sd==2 && eta>=-15 && eta<=-11){ ho2m[rbx-1][lmap_entry.rm()-1]+=ave/ref; nho2m[rbx-1][lmap_entry.rm()-1]++; }
690  }
691  }
692  for(int i=0;i<18;i++)for(int j=0;j<4;j++){
693  int phi=i*4+j+1;
694  if(nhbp[i][j]>1) HBPphi->Fill(phi+0.5,hbp[i][j]/nhbp[i][j]);
695  if(nhbm[i][j]>1) HBMphi->Fill(phi+0.5,hbm[i][j]/nhbm[i][j]);
696  if(nhep[i][j]>1) HEPphi->Fill(phi+0.5,hep[i][j]/nhep[i][j]);
697  if(nhem[i][j]>1) HEMphi->Fill(phi+0.5,hem[i][j]/nhem[i][j]);
698  }
699  for(int i=0;i<12;i++)for(int j=0;j<3;j++){
700  int phi=i*3+j+1;
701  if(nhfp[i][j]>1) HFPphi->Fill(phi+0.5,hfp[i][j]/nhfp[i][j]);
702  if(nhfm[i][j]>1) HFMphi->Fill(phi+0.5,hfm[i][j]/nhfm[i][j]);
703  }
704  for(int i=0;i<12;i++)for(int j=0;j<4;j++){
705  int phi=i*4+j+1;
706  if(nho0[i][j]>1) HO0phi->Fill(phi+0.5,ho0[i][j]/nho0[i][j]);
707  if(nho1p[i][j]>1) HO1Pphi->Fill(phi+0.5,ho1p[i][j]/nho1p[i][j]);
708  if(nho2p[i][j]>1) HO2Pphi->Fill(phi+0.5,ho2p[i][j]/nho2p[i][j]);
709  if(nho1m[i][j]>1) HO1Mphi->Fill(phi+0.5,ho1m[i][j]/nho1m[i][j]);
710  if(nho2m[i][j]>1) HO2Mphi->Fill(phi+0.5,ho2m[i][j]/nho2m[i][j]);
711  }
712 }
int i
Definition: DBlmapReader.cc:9
std::vector< HcalElectronicsId > allElectronicsIdPrecision() const
HcalDetDiagLEDData hb_data[85][72][4]
bool get_average_led(double *ave, double *rms)
T eta() const
HcalDetDiagLEDData hf_data[85][72][4]
HcalDetDiagLEDData * GetCalib(std::string sd, int eta, int phi)
std::string rbx() const
void Fill(long long x)
bool isSiPM(int ieta, int iphi, int depth)
HcalDetDiagLEDData ho_data[85][72][4]
HcalLogicalMap * logicalMap_
int rm() const
HcalElectronicsMap * emap
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int j
Definition: DBlmapReader.cc:9
bool get_average_time(double *ave, double *rms)
const HcalFrontEndId getHcalFrontEndId(const DetId &)
Definition: DetId.h:18
double sd
void fill_energy(std::string subdet, int eta, int phi, int depth, double e, int type)
HcalDetDiagLEDData he_data[85][72][4]
std::map< unsigned int, int > KnownBadCells_
double get_energy(std::string subdet, int eta, int phi, int depth, int type)
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
long double T
void Reset(void)
reset ME (ie. contents, errors, etc)
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
Definition: DDAxes.h:10
double HcalDetDiagLEDMonitor::get_energy ( std::string  subdet,
int  eta,
int  phi,
int  depth,
int  type 
)
private

Definition at line 1214 of file HcalDetDiagLEDMonitor.cc.

References CalcEtaBin(), ChannelsLEDEnergy, ChannelsLEDEnergyRef, EtaPhiHists::depth, HcalBarrel, HcalEndcap, HcalForward, and HcalOuter.

Referenced by fillHistos().

1214  {
1215  int subdetval=-1;
1216  if (subdet.compare("HB")==0) subdetval=(int)HcalBarrel;
1217  else if (subdet.compare("HE")==0) subdetval=(int)HcalEndcap;
1218  else if (subdet.compare("HO")==0) subdetval=(int)HcalOuter;
1219  else if (subdet.compare("HF")==0) subdetval=(int)HcalForward;
1220  else return -1.0;
1221 
1222  int ietabin=CalcEtaBin(subdetval, eta, depth)+1;
1223  if(type==1) return ChannelsLEDEnergy->depth[depth-1] ->getBinContent(ietabin, phi);
1224  else if(type==2) return ChannelsLEDEnergyRef->depth[depth-1] ->getBinContent(ietabin,phi);
1225  return -1.0;
1226 }
type
Definition: HCALResponse.h:21
T eta() const
std::vector< MonitorElement * > depth
int CalcEtaBin(int subdet, int ieta, int depth)
Definition: DDAxes.h:10
HcalDetDiagLEDData* HcalDetDiagLEDMonitor::GetCalib ( std::string  sd,
int  eta,
int  phi 
)
inlineprivate

Definition at line 127 of file HcalDetDiagLEDMonitor.cc.

References funct::abs(), calib_data, ETA, PHI, and SD.

Referenced by fillHistos().

127  {
128  int SD=0,ETA=0,PHI=0;
129  if(sd.compare("HB")==0) SD=1;
130  if(sd.compare("HE")==0) SD=2;
131  if(sd.compare("HO")==0) SD=3;
132  if(sd.compare("HF")==0) SD=4;
133  if(SD==1 || SD==2){
134  if(eta>0) ETA=1; else ETA=-1;
135  if(phi==71 ||phi==72 || phi==1 || phi==2) PHI=71; else PHI=((phi-3)/4)*4+3;
136  }else if(SD==3){
137  if(abs(eta)<=4){
138  ETA=0;
139  if(phi==71 ||phi==72 || phi==1 || phi==2 || phi==3 || phi==4) PHI=71; else PHI=((phi-5)/6)*6+5;
140  }else{
141  if(abs(eta)>4 && abs(eta)<=10) ETA=1;
142  if(abs(eta)>10 && abs(eta)<=15) ETA=2;
143  if(eta<0) ETA=-ETA;
144  if(phi==71 ||phi==72 || (phi>=1 && phi<=10)) PHI=71; else PHI=((phi-11)/12)*12+11;
145  }
146  }else if(SD==4){
147  if(eta>0) ETA=1; else ETA=-1;
148  if(phi>=1 && phi<=18) PHI=1;
149  if(phi>=19 && phi<=36) PHI=19;
150  if(phi>=37 && phi<=54) PHI=37;
151  if(phi>=55 && phi<=72) PHI=55;
152  }
153  return &calib_data[SD][ETA+2][PHI-1];
154  };
T eta() const
static const float SD[]
Definition: sicif.h:67
#define ETA
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double sd
#define PHI
HcalDetDiagLEDData calib_data[5][5][72]
Definition: DDAxes.h:10
int HcalDetDiagLEDMonitor::GetStatistics ( )
inline

Definition at line 120 of file HcalDetDiagLEDMonitor.cc.

References ievt_.

120 { return ievt_; }
void HcalDetDiagLEDMonitor::LoadReference ( )
private

Definition at line 1031 of file HcalDetDiagLEDMonitor.cc.

References calib_data, reco::tau::disc::Eta(), f, hb_data, he_data, hf_data, ho_data, IsReference, colinearityKinematic::Phi, ReferenceData, ReferenceRun, plotscripts::rms(), HcalDetDiagLEDData::set_reference(), AlCaHLTBitMon_QueryRunRegistry::string, and lumiQTWidget::t.

Referenced by setup().

1031  {
1032 double led,rms;
1033 int Eta,Phi,Depth;
1034 char subdet[10];
1035 TFile *f;
1036  if(gSystem->AccessPathName(ReferenceData.c_str())) return;
1037  f = new TFile(ReferenceData.c_str(),"READ");
1038  if(!f->IsOpen()) return ;
1039  TObjString *STR=(TObjString *)f->Get("run number");
1040  if(STR){ std::string Ref(STR->String()); ReferenceRun=Ref;}
1041  TTree* t=(TTree*)f->Get("HCAL LED data");
1042  if(!t) return;
1043  t->SetBranchAddress("Subdet", subdet);
1044  t->SetBranchAddress("eta", &Eta);
1045  t->SetBranchAddress("phi", &Phi);
1046  t->SetBranchAddress("depth", &Depth);
1047  t->SetBranchAddress("led", &led);
1048  t->SetBranchAddress("rms", &rms);
1049  for(int ievt=0;ievt<t->GetEntries();ievt++){
1050 
1051  t->GetEntry(ievt);
1052  if(strcmp(subdet,"HB")==0) hb_data[Eta+42][Phi-1][Depth-1].set_reference(led,rms);
1053  if(strcmp(subdet,"HE")==0) he_data[Eta+42][Phi-1][Depth-1].set_reference(led,rms);
1054  if(strcmp(subdet,"HO")==0) ho_data[Eta+42][Phi-1][Depth-1].set_reference(led,rms);
1055  if(strcmp(subdet,"HF")==0) hf_data[Eta+42][Phi-1][Depth-1].set_reference(led,rms);
1056  if(strcmp(subdet,"CALIB_HB")==0) calib_data[1][Eta+2][Phi-1].set_reference(led,rms);
1057  if(strcmp(subdet,"CALIB_HE")==0) calib_data[2][Eta+2][Phi-1].set_reference(led,rms);
1058  if(strcmp(subdet,"CALIB_HO")==0) calib_data[3][Eta+2][Phi-1].set_reference(led,rms);
1059  if(strcmp(subdet,"CALIB_HF")==0) calib_data[4][Eta+2][Phi-1].set_reference(led,rms);
1060  }
1061  f->Close();
1062  IsReference=true;
1063 }
HcalDetDiagLEDData hb_data[85][72][4]
HcalDetDiagLEDData hf_data[85][72][4]
HcalDetDiagLEDData ho_data[85][72][4]
double f[11][100]
HcalDetDiagLEDData calib_data[5][5][72]
HcalDetDiagLEDData he_data[85][72][4]
void set_reference(float val, float rms)
void HcalDetDiagLEDMonitor::reset ( void  )
overridevirtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 297 of file HcalDetDiagLEDMonitor.cc.

Referenced by beginRun().

297 {}
void HcalDetDiagLEDMonitor::SaveReference ( )
private

Definition at line 714 of file HcalDetDiagLEDMonitor.cc.

References HcalElectronicsMap::allElectronicsIdPrecision(), calib_data, dataset_seq_number, HcalDetId::depth(), DetId::det(), cond::rpcobgas::detid, alignCSCRings::e, emap, reco::tau::disc::Eta(), eta(), patZpeak::events, HcalDetDiagLEDData::get_average_led(), HcalDetDiagLEDData::get_average_time(), HcalDetDiagLEDData::get_statistics(), HcalDetDiagLEDData::get_status(), hb_data, DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalOuter, he_data, hf_data, ho_data, HcalDetId::ieta(), ievt_, HcalDetId::iphi(), HcalElectronicsMap::lookup(), OutputFilePath, phi, colinearityKinematic::Phi, plotscripts::rms(), DTTTrigCorrFirst::run, run_number, sd, step1_ZMM_7Tev::Status, AlCaHLTBitMon_QueryRunRegistry::string, DetId::subdetId(), lumiQTWidget::t, interactiveExample::theFile, cond::rpcobgas::time, Time, diffTreeTool::tree, xmlFile(), and XmlFilePath.

Referenced by endRun().

714  {
715 double led,rms,Time,time_rms;
716 int Eta,Phi,Depth,Statistic,Status=0;
717 char Subdet[10],str[500];
718  sprintf(str,"%sHcalDetDiagLEDData_run%06i_%i.root",OutputFilePath.c_str(),run_number,dataset_seq_number);
719  TFile *theFile = new TFile(str, "RECREATE");
720  if(!theFile->IsOpen()) return;
721  theFile->cd();
722  sprintf(str,"%d",run_number); TObjString run(str); run.Write("run number");
723  sprintf(str,"%d",ievt_); TObjString events(str); events.Write("Total events processed");
724 
725  TTree *tree =new TTree("HCAL LED data","HCAL LED data");
726  if(tree==0) return;
727  tree->Branch("Subdet", &Subdet, "Subdet/C");
728  tree->Branch("eta", &Eta, "Eta/I");
729  tree->Branch("phi", &Phi, "Phi/I");
730  tree->Branch("depth", &Depth, "Depth/I");
731  tree->Branch("statistic",&Statistic, "Statistic/I");
732  tree->Branch("status", &Status, "Status/I");
733  tree->Branch("led", &led, "led/D");
734  tree->Branch("rms", &rms, "rms/D");
735  tree->Branch("time", &Time, "time/D");
736  tree->Branch("time_rms", &time_rms, "time_rms/D");
737  sprintf(Subdet,"HB");
738  for(int eta=-16;eta<=16;eta++) for(int phi=1;phi<=72;phi++) for(int depth=1;depth<=2;depth++){
739  if((Statistic=hb_data[eta+42][phi-1][depth-1].get_statistics())>100){
740  Eta=eta; Phi=phi; Depth=depth;
741  Status=hb_data[eta+42][phi-1][depth-1].get_status();
742  hb_data[eta+42][phi-1][depth-1].get_average_led(&led,&rms);
743  hb_data[eta+42][phi-1][depth-1].get_average_time(&Time,&time_rms);
744  tree->Fill();
745  }
746  }
747  sprintf(Subdet,"HE");
748  for(int eta=-29;eta<=29;eta++) for(int phi=1;phi<=72;phi++) for(int depth=1;depth<=3;depth++){
749  if((Statistic=he_data[eta+42][phi-1][depth-1].get_statistics())>100){
750  Eta=eta; Phi=phi; Depth=depth;
751  Status=he_data[eta+42][phi-1][depth-1].get_status();
752  he_data[eta+42][phi-1][depth-1].get_average_led(&led,&rms);
753  he_data[eta+42][phi-1][depth-1].get_average_time(&Time,&time_rms);
754  tree->Fill();
755  }
756  }
757  sprintf(Subdet,"HO");
758  for(int eta=-15;eta<=15;eta++) for(int phi=1;phi<=72;phi++) for(int depth=4;depth<=4;depth++){
759  if((Statistic=ho_data[eta+42][phi-1][depth-1].get_statistics())>100){
760  Eta=eta; Phi=phi; Depth=depth;
761  Status=ho_data[eta+42][phi-1][depth-1].get_status();
762  ho_data[eta+42][phi-1][depth-1].get_average_led(&led,&rms);
763  ho_data[eta+42][phi-1][depth-1].get_average_time(&Time,&time_rms);
764  tree->Fill();
765  }
766  }
767  sprintf(Subdet,"HF");
768  for(int eta=-42;eta<=42;eta++) for(int phi=1;phi<=72;phi++) for(int depth=1;depth<=2;depth++){
769  if((Statistic=hf_data[eta+42][phi-1][depth-1].get_statistics())>100){
770  Eta=eta; Phi=phi; Depth=depth;
771  Status=hf_data[eta+42][phi-1][depth-1].get_status();
772  hf_data[eta+42][phi-1][depth-1].get_average_led(&led,&rms);
773  hf_data[eta+42][phi-1][depth-1].get_average_time(&Time,&time_rms);
774  tree->Fill();
775  }
776  }
777  sprintf(Subdet,"CALIB_HB");
778  for(int eta=-1;eta<=1;eta++) for(int phi=1;phi<=72;phi++){
779  if((calib_data[1][eta+2][phi-1].get_statistics())>100){
780  Eta=eta; Phi=phi; Depth=0;
781  Status=calib_data[1][eta+2][phi-1].get_status();
782  calib_data[1][eta+2][phi-1].get_average_led(&led,&rms);
783  calib_data[1][eta+2][phi-1].get_average_time(&Time,&time_rms);
784  tree->Fill();
785  }
786  }
787  sprintf(Subdet,"CALIB_HE");
788  for(int eta=-1;eta<=1;eta++) for(int phi=1;phi<=72;phi++){
789  if((calib_data[2][eta+2][phi-1].get_statistics())>100){
790  Eta=eta; Phi=phi; Depth=0;
791  Status=calib_data[2][eta+2][phi-1].get_status();
792  calib_data[2][eta+2][phi-1].get_average_led(&led,&rms);
793  calib_data[2][eta+2][phi-1].get_average_time(&Time,&time_rms);
794  tree->Fill();
795  }
796  }
797  sprintf(Subdet,"CALIB_HO");
798  for(int eta=-2;eta<=2;eta++) for(int phi=1;phi<=72;phi++){
799  if((calib_data[3][eta+2][phi-1].get_statistics())>100){
800  Eta=eta; Phi=phi; Depth=0;
801  Status=calib_data[3][eta+2][phi-1].get_status();
802  calib_data[3][eta+2][phi-1].get_average_led(&led,&rms);
803  calib_data[3][eta+2][phi-1].get_average_time(&Time,&time_rms);
804  tree->Fill();
805  }
806  }
807  sprintf(Subdet,"CALIB_HF");
808  for(int eta=-2;eta<=2;eta++) for(int phi=1;phi<=72;phi++){
809  if((calib_data[4][eta+2][phi-1].get_statistics())>100){
810  Eta=eta; Phi=phi; Depth=0;
811  Status=calib_data[4][eta+2][phi-1].get_status();
812  calib_data[4][eta+2][phi-1].get_average_led(&led,&rms);
813  calib_data[4][eta+2][phi-1].get_average_time(&Time,&time_rms);
814  tree->Fill();
815  }
816  }
817  theFile->Write();
818  theFile->Close();
819 
820 
821  if(XmlFilePath.size()>0){
822  //create XML file
823  char TIME[40];
824  Long_t t; t=time(0); strftime(TIME,30,"%F %T",localtime(&t));
825 
826  sprintf(str,"HcalDetDiagLED_%i_%i.xml",run_number,dataset_seq_number);
827  std::string xmlName=str;
828  std::ofstream xmlFile;
829  xmlFile.open(xmlName.c_str());
830 
831  xmlFile<<"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
832  xmlFile<<"<ROOT>\n";
833  xmlFile<<" <HEADER>\n";
834  xmlFile<<" <HINTS mode='only-det-root'/>\n";
835  xmlFile<<" <TYPE>\n";
836  xmlFile<<" <EXTENSION_TABLE_NAME>HCAL_DETMON_LED_LASER_V1</EXTENSION_TABLE_NAME>\n";
837  xmlFile<<" <NAME>HCAL LED [local]</NAME>\n";
838  xmlFile<<" </TYPE>\n";
839  xmlFile<<" <!-- run details -->\n";
840  xmlFile<<" <RUN>\n";
841  xmlFile<<" <RUN_TYPE>LOCAL-RUN</RUN_TYPE>\n";
842  xmlFile<<" <RUN_NUMBER>"<<run_number<<"</RUN_NUMBER>\n";
843  xmlFile<<" <RUN_BEGIN_TIMESTAMP>2009-01-01 00:00:00</RUN_BEGIN_TIMESTAMP>\n";
844  xmlFile<<" <COMMENT_DESCRIPTION>hcal LED data</COMMENT_DESCRIPTION>\n";
845  xmlFile<<" <LOCATION>P5</LOCATION>\n";
846  xmlFile<<" <INITIATED_BY_USER>dma</INITIATED_BY_USER>\n";
847  xmlFile<<" </RUN>\n";
848  xmlFile<<" </HEADER>\n";
849  xmlFile<<" <DATA_SET>\n";
850  xmlFile<<" <!-- optional dataset metadata -->\n\n";
851  xmlFile<<" <SET_NUMBER>"<<dataset_seq_number<<"</SET_NUMBER>\n";
852  xmlFile<<" <SET_BEGIN_TIMESTAMP>2009-01-01 00:00:00</SET_BEGIN_TIMESTAMP>\n";
853  xmlFile<<" <SET_END_TIMESTAMP>2009-01-01 00:00:00</SET_END_TIMESTAMP>\n";
854  xmlFile<<" <NUMBER_OF_EVENTS_IN_SET>"<<ievt_<<"</NUMBER_OF_EVENTS_IN_SET>\n";
855  xmlFile<<" <COMMENT_DESCRIPTION>Automatic DQM output</COMMENT_DESCRIPTION>\n";
856  xmlFile<<" <DATA_FILE_NAME>"<< xmlName <<"</DATA_FILE_NAME>\n";
857  xmlFile<<" <IMAGE_FILE_NAME>data plot url or file path</IMAGE_FILE_NAME>\n";
858  xmlFile<<" <!-- who and when created this dataset-->\n\n";
859  xmlFile<<" <CREATE_TIMESTAMP>"<<TIME<<"</CREATE_TIMESTAMP>\n";
860  xmlFile<<" <CREATED_BY_USER>dma</CREATED_BY_USER>\n";
861  xmlFile<<" <!-- version (string) and subversion (number) -->\n";
862  xmlFile<<" <!-- fields are used to read data back from the database -->\n\n";
863  xmlFile<<" <VERSION>"<<run_number<<dataset_seq_number<<"</VERSION>\n";
864  xmlFile<<" <SUBVERSION>1</SUBVERSION>\n";
865  xmlFile<<" <!-- Assign predefined dataset attributes -->\n\n";
866  xmlFile<<" <PREDEFINED_ATTRIBUTES>\n";
867  xmlFile<<" <ATTRIBUTE>\n";
868  xmlFile<<" <NAME>HCAL Dataset Status</NAME>\n";
869  xmlFile<<" <VALUE>VALID</VALUE>\n";
870  xmlFile<<" </ATTRIBUTE>\n";
871  xmlFile<<" </PREDEFINED_ATTRIBUTES>\n";
872  xmlFile<<" <!-- multiple data block records -->\n\n";
873 
874  std::vector <HcalElectronicsId> AllElIds = emap->allElectronicsIdPrecision();
875  for(std::vector <HcalElectronicsId>::iterator eid = AllElIds.begin(); eid != AllElIds.end(); eid++){
876  DetId detid=emap->lookup(*eid);
877  if (detid.det()!=DetId::Hcal) continue;
878  HcalGenericDetId gid(emap->lookup(*eid));
879  if(!(!(gid.null()) &&
880  (gid.genericSubdet()==HcalGenericDetId::HcalGenBarrel ||
881  gid.genericSubdet()==HcalGenericDetId::HcalGenEndcap ||
882  gid.genericSubdet()==HcalGenericDetId::HcalGenForward ||
883  gid.genericSubdet()==HcalGenericDetId::HcalGenOuter))) continue;
884  int eta,phi,depth;
885  std::string subdet="";
886  HcalDetId hid(detid);
887  eta=hid.ieta();
888  phi=hid.iphi();
889  depth=hid.depth();
890 
891  double e=0,e_rms=0,t=0,t_rms=0;
892  if(detid.subdetId()==HcalBarrel){
893  subdet="HB";
894  Statistic=hb_data[eta+42][phi-1][depth-1].get_statistics();
895  Status =hb_data[eta+42][phi-1][depth-1].get_status();
896  hb_data[eta+42][phi-1][depth-1].get_average_led(&e,&e_rms);
897  hb_data[eta+42][phi-1][depth-1].get_average_time(&t,&t_rms);
898  }else if(detid.subdetId()==HcalEndcap){
899  subdet="HE";
900  Statistic=he_data[eta+42][phi-1][depth-1].get_statistics();
901  Status =he_data[eta+42][phi-1][depth-1].get_status();
902  he_data[eta+42][phi-1][depth-1].get_average_led(&e,&e_rms);
903  he_data[eta+42][phi-1][depth-1].get_average_time(&t,&t_rms);
904  }else if(detid.subdetId()==HcalForward){
905  subdet="HF";
906  Statistic=hf_data[eta+42][phi-1][depth-1].get_statistics();
907  Status =hf_data[eta+42][phi-1][depth-1].get_status();
908  hf_data[eta+42][phi-1][depth-1].get_average_led(&e,&e_rms);
909  hf_data[eta+42][phi-1][depth-1].get_average_time(&t,&t_rms);
910  }else if(detid.subdetId()==HcalOuter){
911  subdet="HO";
912  Statistic=ho_data[eta+42][phi-1][depth-1].get_statistics();
913  Status =ho_data[eta+42][phi-1][depth-1].get_status();
914  ho_data[eta+42][phi-1][depth-1].get_average_led(&e,&e_rms);
915  ho_data[eta+42][phi-1][depth-1].get_average_time(&t,&t_rms);
916  }else continue;
917  xmlFile<<" <DATA>\n";
918  xmlFile<<" <NUMBER_OF_EVENTS_USED>"<<Statistic<<"</NUMBER_OF_EVENTS_USED>\n";
919  xmlFile<<" <SIGNAL_MEAN>"<<e<<"</SIGNAL_MEAN>\n";
920  xmlFile<<" <SIGNAL_RMS>"<<e_rms<<"</SIGNAL_RMS>\n";
921  xmlFile<<" <TIME_MEAN>"<<t<<"</TIME_MEAN>\n";
922  xmlFile<<" <TIME_RMS>"<<t_rms<<"</TIME_RMS>\n";
923  xmlFile<<" <CHANNEL_STATUS_WORD>"<<Status<<"</CHANNEL_STATUS_WORD>\n";
924  xmlFile<<" <CHANNEL_OBJECTNAME>HcalDetId</CHANNEL_OBJECTNAME>\n";
925  xmlFile<<" <SUBDET>"<<subdet<<"</SUBDET>\n";
926  xmlFile<<" <IETA>"<<eta<<"</IETA>\n";
927  xmlFile<<" <IPHI>"<<phi<<"</IPHI>\n";
928  xmlFile<<" <DEPTH>"<<depth<<"</DEPTH>\n";
929  xmlFile<<" <TYPE>0</TYPE>\n";
930  xmlFile<<" </DATA>\n";
931  }
933  xmlFile<<" </DATA_SET>\n";
934  xmlFile<<"</ROOT>\n";
935  xmlFile.close();
936 
937  //create CALIB XML file
938  sprintf(str,"HcalDetDiagLEDCalib_%i_%i.xml",run_number,dataset_seq_number);
939  std::string xmlNameCalib=str;
940  std::ofstream xmlFileCalib;
941  xmlFileCalib.open(xmlNameCalib.c_str());
942 
943  xmlFileCalib<<"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
944  xmlFileCalib<<"<ROOT>\n";
945  xmlFileCalib<<" <HEADER>\n";
946  xmlFileCalib<<" <HINTS mode='only-det-root'/>\n";
947  xmlFileCalib<<" <TYPE>\n";
948  xmlFileCalib<<" <EXTENSION_TABLE_NAME>HCAL_DETMON_LED_LASER_V1</EXTENSION_TABLE_NAME>\n";
949  xmlFileCalib<<" <NAME>HCAL LED CALIB [local]</NAME>\n";
950  xmlFileCalib<<" </TYPE>\n";
951  xmlFileCalib<<" <!-- run details -->\n";
952  xmlFileCalib<<" <RUN>\n";
953  xmlFileCalib<<" <RUN_TYPE>LOCAL-RUN</RUN_TYPE>\n";
954  xmlFileCalib<<" <RUN_NUMBER>"<<run_number<<"</RUN_NUMBER>\n";
955  xmlFileCalib<<" <RUN_BEGIN_TIMESTAMP>2009-01-01 00:00:00</RUN_BEGIN_TIMESTAMP>\n";
956  xmlFileCalib<<" <COMMENT_DESCRIPTION>hcal LED CALIB data</COMMENT_DESCRIPTION>\n";
957  xmlFileCalib<<" <LOCATION>P5</LOCATION>\n";
958  xmlFileCalib<<" <INITIATED_BY_USER>dma</INITIATED_BY_USER>\n";
959  xmlFileCalib<<" </RUN>\n";
960  xmlFileCalib<<" </HEADER>\n";
961  xmlFileCalib<<" <DATA_SET>\n";
962  xmlFileCalib<<" <!-- optional dataset metadata -->\n\n";
963  xmlFileCalib<<" <SET_NUMBER>"<<dataset_seq_number<<"</SET_NUMBER>\n";
964  xmlFileCalib<<" <SET_BEGIN_TIMESTAMP>2009-01-01 00:00:00</SET_BEGIN_TIMESTAMP>\n";
965  xmlFileCalib<<" <SET_END_TIMESTAMP>2009-01-01 00:00:00</SET_END_TIMESTAMP>\n";
966  xmlFileCalib<<" <NUMBER_OF_EVENTS_IN_SET>"<<ievt_<<"</NUMBER_OF_EVENTS_IN_SET>\n";
967  xmlFileCalib<<" <COMMENT_DESCRIPTION>Automatic DQM output</COMMENT_DESCRIPTION>\n";
968  xmlFileCalib<<" <DATA_FILE_NAME>"<< xmlNameCalib <<"</DATA_FILE_NAME>\n";
969  xmlFileCalib<<" <IMAGE_FILE_NAME>data plot url or file path</IMAGE_FILE_NAME>\n";
970  xmlFileCalib<<" <!-- who and when created this dataset-->\n\n";
971  xmlFileCalib<<" <CREATE_TIMESTAMP>"<<TIME<<"</CREATE_TIMESTAMP>\n";
972  xmlFileCalib<<" <CREATED_BY_USER>dma</CREATED_BY_USER>\n";
973  xmlFileCalib<<" <!-- version (string) and subversion (number) -->\n";
974  xmlFileCalib<<" <!-- fields are used to read data back from the database -->\n\n";
975  xmlFileCalib<<" <VERSION>"<<run_number<<dataset_seq_number<<"</VERSION>\n";
976  xmlFileCalib<<" <SUBVERSION>1</SUBVERSION>\n";
977  xmlFileCalib<<" <!-- Assign predefined dataset attributes -->\n\n";
978  xmlFileCalib<<" <PREDEFINED_ATTRIBUTES>\n";
979  xmlFileCalib<<" <ATTRIBUTE>\n";
980  xmlFileCalib<<" <NAME>HCAL Dataset Status</NAME>\n";
981  xmlFileCalib<<" <VALUE>VALID</VALUE>\n";
982  xmlFileCalib<<" </ATTRIBUTE>\n";
983  xmlFileCalib<<" </PREDEFINED_ATTRIBUTES>\n";
984  xmlFileCalib<<" <!-- multiple data block records -->\n\n";
985 
986  for(int sd=1;sd<=4;sd++) for(int eta=-2;eta<=2;eta++) for(int phi=1;phi<=72;phi++){
987  std::string subdet="";
988  if(sd==1) subdet="HB";
989  if(sd==2) subdet="HE";
990  if(sd==3) subdet="HO";
991  if(sd==4) subdet="HF";
992  if((calib_data[sd][eta+2][phi-1].get_statistics())>100){
993  double e=0,e_rms=0,t=0,t_rms=0;
994  Status=calib_data[sd][eta+2][phi-1].get_status();
995  Statistic=calib_data[sd][eta+2][phi-1].get_statistics();
996  calib_data[sd][eta+2][phi-1].get_average_led(&e,&e_rms);
997  calib_data[sd][eta+2][phi-1].get_average_time(&t,&t_rms);
998  xmlFileCalib<<" <DATA>\n";
999  xmlFileCalib<<" <NUMBER_OF_EVENTS_USED>"<<Statistic<<"</NUMBER_OF_EVENTS_USED>\n";
1000  xmlFileCalib<<" <SIGNAL_MEAN>"<<e<<"</SIGNAL_MEAN>\n";
1001  xmlFileCalib<<" <SIGNAL_RMS>"<<e_rms<<"</SIGNAL_RMS>\n";
1002  xmlFileCalib<<" <TIME_MEAN>"<<t<<"</TIME_MEAN>\n";
1003  xmlFileCalib<<" <TIME_RMS>"<<t_rms<<"</TIME_RMS>\n";
1004  xmlFileCalib<<" <CHANNEL_STATUS_WORD>"<<Status<<"</CHANNEL_STATUS_WORD>\n";
1005  xmlFileCalib<<" <CHANNEL_OBJECTNAME>HcalDetId</CHANNEL_OBJECTNAME>\n";
1006  xmlFileCalib<<" <SUBDET>"<<subdet<<"</SUBDET>\n";
1007  xmlFileCalib<<" <IETA>"<<eta<<"</IETA>\n";
1008  xmlFileCalib<<" <IPHI>"<<phi<<"</IPHI>\n";
1009  xmlFileCalib<<" <DEPTH>"<<0<<"</DEPTH>\n";
1010  xmlFileCalib<<" <TYPE>0</TYPE>\n";
1011  xmlFileCalib<<" </DATA>\n";
1012  }
1013  }
1015  xmlFileCalib<<" </DATA_SET>\n";
1016  xmlFileCalib<<"</ROOT>\n";
1017  xmlFileCalib.close();
1018 
1019  sprintf(str,"zip %s.zip %s %s",xmlName.c_str(),xmlName.c_str(),xmlNameCalib.c_str());
1020  system(str);
1021  sprintf(str,"rm -f %s %s",xmlName.c_str(),xmlNameCalib.c_str());
1022  system(str);
1023  sprintf(str,"mv -f %s.zip %s",xmlName.c_str(),XmlFilePath.c_str());
1024  system(str);
1025  }
1026 
1027 
1028  dataset_seq_number++;
1029 }
std::vector< HcalElectronicsId > allElectronicsIdPrecision() const
HcalDetDiagLEDData hb_data[85][72][4]
bool get_average_led(double *ave, double *rms)
T eta() const
HcalDetDiagLEDData hf_data[85][72][4]
HcalDetDiagLEDData ho_data[85][72][4]
HcalElectronicsMap * emap
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
bool get_average_time(double *ave, double *rms)
Definition: DetId.h:18
double sd
bool xmlFile(const std::string fParam)
HcalDetDiagLEDData calib_data[5][5][72]
HcalDetDiagLEDData he_data[85][72][4]
tuple events
Definition: patZpeak.py:19
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
Definition: DDAxes.h:10
void HcalDetDiagLEDMonitor::setup ( void  )
overridevirtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 325 of file HcalDetDiagLEDMonitor.cc.

References DQMStore::book1D(), DQMStore::book2D(), DQMStore::bookInt(), DQMStore::bookString(), ChannelsLEDEnergy, ChannelsLEDEnergyRef, ChannelStatusLEDMean, ChannelStatusLEDRMS, ChannelStatusMissingChannels, ChannelStatusTimeMean, ChannelStatusTimeRMS, ChannelStatusUnstableChannels, ChannelStatusUnstableLEDsignal, HcalBaseDQMonitor::dbe_, Energy, Energy2Dhbhehf, Energy2Dho, EnergyCorr, EnergyHF, EnergyRMS, EnergyRMSHF, HBMphi, HBPphi, HEMphi, HEPphi, HFMphi, HFPphi, HO0phi, HO1Mphi, HO1Pphi, HO2Mphi, HO2Pphi, LoadReference(), meEVT_, meRUN_, mergeVDriftHistosByStation::name, ReferenceRun, RefRun_, DQMStore::setCurrentFolder(), EtaPhiHists::setup(), HcalBaseDQMonitor::setup(), AlCaHLTBitMon_QueryRunRegistry::string, HcalBaseDQMonitor::subdir_, Time, Time2Dhbhehf, Time2Dho, TimeHF, TimeRMS, and TimeRMSHF.

Referenced by beginRun().

325  {
326  // Call base class setup
328  if (!dbe_) return;
329 
332  meEVT_ = dbe_->bookInt("HcalDetDiagLEDMonitor Event Number");
333  meRUN_ = dbe_->bookInt("HcalDetDiagLEDMonitor Run Number");
334  ReferenceRun="UNKNOWN";
335  LoadReference();
337  RefRun_= dbe_->bookString("HcalDetDiagLEDMonitor Reference Run",ReferenceRun);
338  dbe_->setCurrentFolder(subdir_+"Summary Plots");
339 
340  name="HBHEHO LED Energy Distribution"; Energy = dbe_->book1D(name,name,200,0,3000);
341  name="HBHEHO LED Timing Distribution"; Time = dbe_->book1D(name,name,200,0,10);
342  name="HBHEHO LED Energy RMS_div_Energy Distribution";EnergyRMS = dbe_->book1D(name,name,200,0,0.2);
343  name="HBHEHO LED Timing RMS Distribution"; TimeRMS = dbe_->book1D(name,name,200,0,0.4);
344  name="HF LED Energy Distribution"; EnergyHF = dbe_->book1D(name,name,200,0,3000);
345  name="HF LED Timing Distribution"; TimeHF = dbe_->book1D(name,name,200,0,10);
346  name="HF LED Energy RMS_div_Energy Distribution"; EnergyRMSHF = dbe_->book1D(name,name,200,0,0.5);
347  name="HF LED Timing RMS Distribution"; TimeRMSHF = dbe_->book1D(name,name,200,0,0.4);
348  name="LED Energy Corr(PinDiod) Distribution"; EnergyCorr = dbe_->book1D(name,name,200,0,10);
349  name="LED Timing HBHEHF"; Time2Dhbhehf = dbe_->book2D(name,name,87,-43,43,74,0,73);
350  name="LED Timing HO"; Time2Dho = dbe_->book2D(name,name,33,-16,16,74,0,73);
351  name="LED Energy HBHEHF"; Energy2Dhbhehf = dbe_->book2D(name,name,87,-43,43,74,0,73);
352  name="LED Energy HO"; Energy2Dho = dbe_->book2D(name,name,33,-16,16,74,0,73);
353 
354  name="HBP Average over HPD LED Ref"; HBPphi = dbe_->book2D(name,name,180,1,73,400,0,2);
355  name="HBM Average over HPD LED Ref"; HBMphi = dbe_->book2D(name,name,180,1,73,400,0,2);
356  name="HEP Average over HPD LED Ref"; HEPphi = dbe_->book2D(name,name,180,1,73,400,0,2);
357  name="HEM Average over HPD LED Ref"; HEMphi = dbe_->book2D(name,name,180,1,73,400,0,2);
358  name="HFP Average over RM LED Ref"; HFPphi = dbe_->book2D(name,name,180,1,37,400,0,2);
359  name="HFM Average over RM LED Ref"; HFMphi = dbe_->book2D(name,name,180,1,37,400,0,2);
360  name="HO0 Average over HPD LED Ref"; HO0phi = dbe_->book2D(name,name,180,1,49,400,0,2);
361  name="HO1P Average over HPD LED Ref"; HO1Pphi= dbe_->book2D(name,name,180,1,49,400,0,2);
362  name="HO2P Average over HPD LED Ref"; HO2Pphi= dbe_->book2D(name,name,180,1,49,400,0,2);
363  name="HO1M Average over HPD LED Ref"; HO1Mphi= dbe_->book2D(name,name,180,1,49,400,0,2);
364  name="HO2M Average over HPD LED Ref"; HO2Mphi= dbe_->book2D(name,name,180,1,49,400,0,2);
365 
367  ChannelsLEDEnergy->setup(dbe_," Channel LED Energy");
369  ChannelsLEDEnergyRef->setup(dbe_," Channel LED Energy Reference");
370 
371  dbe_->setCurrentFolder(subdir_+"channel status");
373  ChannelStatusMissingChannels->setup(dbe_," Missing Channels");
375  ChannelStatusUnstableChannels->setup(dbe_," Unstable Channels");
377  ChannelStatusUnstableLEDsignal->setup(dbe_," Unstable LED");
379  ChannelStatusLEDMean->setup(dbe_," LED Mean");
381  ChannelStatusLEDRMS->setup(dbe_," LED RMS");
383  ChannelStatusTimeMean->setup(dbe_," Time Mean");
385  ChannelStatusTimeRMS->setup(dbe_," Time RMS");
386 
387 
388 }
EtaPhiHists * ChannelStatusMissingChannels
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:873
void setup(DQMStore *&m_dbe, std::string Name, std::string Units="")
EtaPhiHists * ChannelStatusUnstableChannels
MonitorElement * bookString(const char *name, const char *value)
Book string.
Definition: DQMStore.cc:839
EtaPhiHists * ChannelStatusUnstableLEDsignal
MonitorElement * bookInt(const char *name)
Book int.
Definition: DQMStore.cc:780
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:1001
virtual void setup(void)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:585

Member Data Documentation

HcalDetDiagLEDData HcalDetDiagLEDMonitor::calib_data[5][5][72]
private

Definition at line 199 of file HcalDetDiagLEDMonitor.cc.

Referenced by analyze(), GetCalib(), LoadReference(), and SaveReference().

EtaPhiHists* HcalDetDiagLEDMonitor::ChannelsLEDEnergy
private

Definition at line 201 of file HcalDetDiagLEDMonitor.cc.

Referenced by fill_energy(), get_energy(), and setup().

EtaPhiHists* HcalDetDiagLEDMonitor::ChannelsLEDEnergyRef
private

Definition at line 202 of file HcalDetDiagLEDMonitor.cc.

Referenced by fill_energy(), get_energy(), and setup().

EtaPhiHists* HcalDetDiagLEDMonitor::ChannelStatusLEDMean
private

Definition at line 206 of file HcalDetDiagLEDMonitor.cc.

Referenced by CheckStatus(), fill_channel_status(), and setup().

EtaPhiHists* HcalDetDiagLEDMonitor::ChannelStatusLEDRMS
private

Definition at line 207 of file HcalDetDiagLEDMonitor.cc.

Referenced by CheckStatus(), fill_channel_status(), and setup().

EtaPhiHists* HcalDetDiagLEDMonitor::ChannelStatusMissingChannels
private

Definition at line 203 of file HcalDetDiagLEDMonitor.cc.

Referenced by CheckStatus(), fill_channel_status(), and setup().

EtaPhiHists* HcalDetDiagLEDMonitor::ChannelStatusTimeMean
private

Definition at line 208 of file HcalDetDiagLEDMonitor.cc.

Referenced by CheckStatus(), fill_channel_status(), and setup().

EtaPhiHists* HcalDetDiagLEDMonitor::ChannelStatusTimeRMS
private

Definition at line 209 of file HcalDetDiagLEDMonitor.cc.

Referenced by CheckStatus(), fill_channel_status(), and setup().

EtaPhiHists* HcalDetDiagLEDMonitor::ChannelStatusUnstableChannels
private

Definition at line 204 of file HcalDetDiagLEDMonitor.cc.

Referenced by CheckStatus(), fill_channel_status(), and setup().

EtaPhiHists* HcalDetDiagLEDMonitor::ChannelStatusUnstableLEDsignal
private

Definition at line 205 of file HcalDetDiagLEDMonitor.cc.

Referenced by CheckStatus(), fill_channel_status(), and setup().

int HcalDetDiagLEDMonitor::dataset_seq_number
private

Definition at line 157 of file HcalDetDiagLEDMonitor.cc.

Referenced by HcalDetDiagLEDMonitor(), and SaveReference().

edm::InputTag HcalDetDiagLEDMonitor::digiLabel_
private

Definition at line 211 of file HcalDetDiagLEDMonitor.cc.

Referenced by HcalDetDiagLEDMonitor().

HcalElectronicsMap* HcalDetDiagLEDMonitor::emap
private
MonitorElement* HcalDetDiagLEDMonitor::Energy
private

Definition at line 170 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::Energy2Dhbhehf
private

Definition at line 176 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::Energy2Dho
private

Definition at line 177 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::EnergyCorr
private

Definition at line 182 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::EnergyHF
private

Definition at line 172 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::EnergyRMS
private

Definition at line 178 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::EnergyRMSHF
private

Definition at line 180 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

HcalDetDiagLEDData HcalDetDiagLEDMonitor::hb_data[85][72][4]
private
MonitorElement* HcalDetDiagLEDMonitor::HBMphi
private

Definition at line 184 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::HBPphi
private

Definition at line 183 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

HcalDetDiagLEDData HcalDetDiagLEDMonitor::he_data[85][72][4]
private
MonitorElement* HcalDetDiagLEDMonitor::HEMphi
private

Definition at line 186 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::HEPphi
private

Definition at line 185 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

HcalDetDiagLEDData HcalDetDiagLEDMonitor::hf_data[85][72][4]
private
MonitorElement* HcalDetDiagLEDMonitor::HFMphi
private

Definition at line 188 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::HFPphi
private

Definition at line 187 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::HO0phi
private

Definition at line 189 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::HO1Mphi
private

Definition at line 192 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::HO1Pphi
private

Definition at line 190 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::HO2Mphi
private

Definition at line 193 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::HO2Pphi
private

Definition at line 191 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

HcalDetDiagLEDData HcalDetDiagLEDMonitor::ho_data[85][72][4]
private
int HcalDetDiagLEDMonitor::ievt_
private
bool HcalDetDiagLEDMonitor::IsReference
private

Definition at line 158 of file HcalDetDiagLEDMonitor.cc.

Referenced by HcalDetDiagLEDMonitor(), and LoadReference().

std::map<unsigned int, int> HcalDetDiagLEDMonitor::KnownBadCells_
private

Definition at line 219 of file HcalDetDiagLEDMonitor.cc.

Referenced by beginRun(), CheckStatus(), and fillHistos().

double HcalDetDiagLEDMonitor::LEDMeanTreshold
private

Definition at line 160 of file HcalDetDiagLEDMonitor.cc.

Referenced by HcalDetDiagLEDMonitor().

double HcalDetDiagLEDMonitor::LEDRmsTreshold
private

Definition at line 161 of file HcalDetDiagLEDMonitor.cc.

Referenced by HcalDetDiagLEDMonitor().

MonitorElement* HcalDetDiagLEDMonitor::meEVT_
private

Definition at line 168 of file HcalDetDiagLEDMonitor.cc.

Referenced by analyze(), and setup().

MonitorElement * HcalDetDiagLEDMonitor::meRUN_
private

Definition at line 168 of file HcalDetDiagLEDMonitor.cc.

Referenced by analyze(), and setup().

std::string HcalDetDiagLEDMonitor::OutputFilePath
private

Definition at line 165 of file HcalDetDiagLEDMonitor.cc.

Referenced by HcalDetDiagLEDMonitor(), and SaveReference().

std::string HcalDetDiagLEDMonitor::ReferenceData
private

Definition at line 163 of file HcalDetDiagLEDMonitor.cc.

Referenced by HcalDetDiagLEDMonitor(), and LoadReference().

std::string HcalDetDiagLEDMonitor::ReferenceRun
private

Definition at line 164 of file HcalDetDiagLEDMonitor.cc.

Referenced by LoadReference(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::RefRun_
private

Definition at line 169 of file HcalDetDiagLEDMonitor.cc.

Referenced by setup().

int HcalDetDiagLEDMonitor::run_number
private

Definition at line 156 of file HcalDetDiagLEDMonitor.cc.

Referenced by analyze(), HcalDetDiagLEDMonitor(), and SaveReference().

MonitorElement* HcalDetDiagLEDMonitor::Time
private

Definition at line 171 of file HcalDetDiagLEDMonitor.cc.

Referenced by CheckStatus(), fillHistos(), SaveReference(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::Time2Dhbhehf
private

Definition at line 174 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::Time2Dho
private

Definition at line 175 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::TimeHF
private

Definition at line 173 of file HcalDetDiagLEDMonitor.cc.

Referenced by CheckStatus(), fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::TimeRMS
private

Definition at line 179 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

MonitorElement* HcalDetDiagLEDMonitor::TimeRMSHF
private

Definition at line 181 of file HcalDetDiagLEDMonitor.cc.

Referenced by fillHistos(), and setup().

edm::EDGetTokenT<HcalCalibDigiCollection> HcalDetDiagLEDMonitor::tok_calib_
private

Definition at line 217 of file HcalDetDiagLEDMonitor.cc.

Referenced by analyze(), and HcalDetDiagLEDMonitor().

edm::EDGetTokenT<HBHEDigiCollection> HcalDetDiagLEDMonitor::tok_hbhe_
private

Definition at line 214 of file HcalDetDiagLEDMonitor.cc.

Referenced by analyze(), and HcalDetDiagLEDMonitor().

edm::EDGetTokenT<HFDigiCollection> HcalDetDiagLEDMonitor::tok_hf_
private

Definition at line 216 of file HcalDetDiagLEDMonitor.cc.

Referenced by analyze(), and HcalDetDiagLEDMonitor().

edm::EDGetTokenT<HODigiCollection> HcalDetDiagLEDMonitor::tok_ho_
private

Definition at line 215 of file HcalDetDiagLEDMonitor.cc.

Referenced by analyze(), and HcalDetDiagLEDMonitor().

edm::EDGetTokenT<HcalTBTriggerData> HcalDetDiagLEDMonitor::tok_tb_
private

Definition at line 213 of file HcalDetDiagLEDMonitor.cc.

Referenced by analyze(), and HcalDetDiagLEDMonitor().

std::string HcalDetDiagLEDMonitor::XmlFilePath
private

Definition at line 166 of file HcalDetDiagLEDMonitor.cc.

Referenced by HcalDetDiagLEDMonitor(), and SaveReference().