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

#include <HcalDigiMonitor.h>

Inheritance diagram for HcalDigiMonitor:
HcalBaseDQMonitor DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 
void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
 
void bookHistograms (DQMStore::IBooker &ib, const edm::Run &run, const edm::EventSetup &c)
 
void endJob ()
 
void endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
 
void endRun (const edm::Run &run, const edm::EventSetup &c)
 
 HcalDigiMonitor (const edm::ParameterSet &ps)
 
template<class DIGI >
int process_Digi (DIGI &digi, DigiHists &h, int &firstcap)
 
void processEvent (const HBHEDigiCollection &hbhe, const HODigiCollection &ho, const HFDigiCollection &hf, const HcalDbService &cond, const HcalUnpackerReport &report, int orN, int bcN)
 
void reset ()
 
void setup (DQMStore::IBooker &)
 
 ~HcalDigiMonitor ()
 
- Public Member Functions inherited from HcalBaseDQMonitor
 HcalBaseDQMonitor (const edm::ParameterSet &ps)
 
 HcalBaseDQMonitor ()
 
virtual ~HcalBaseDQMonitor ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

void fill_Nevents ()
 
template<class T >
int process_Digi (T &digi, DigiHists &hist, int &firstcap)
 
void setupSubdetHists (DQMStore::IBooker &ib, DigiHists &hist, std::string subdet)
 
void UpdateHists (DigiHists &h)
 
void zeroCounters ()
 

Private Attributes

int alarmer_counter_
 
int badcapID [85][72][4]
 
int baddigis [85][72][4]
 
int baddigisize [85][72][4]
 
int badFibBCNOff [85][72][4]
 
int badunpackerreport [85][72][4]
 
edm::ESHandle< HcalDbServiceconditions_
 
edm::EDGetTokenT
< DcsStatusCollection
dcsStatusToken_
 
bool digi_checkadcsum_
 
bool digi_checkcapid_
 
bool digi_checkdigisize_
 
bool digi_checkdverr_
 
bool digi_checkoccupancy_
 
MonitorElementDigiBQ
 
MonitorElementDigiBQFrac
 
EtaPhiHists DigiErrorOccupancyByDepth
 
EtaPhiHists DigiErrorsBadADCSum
 
EtaPhiHists DigiErrorsBadCapID
 
EtaPhiHists DigiErrorsBadDigiSize
 
EtaPhiHists DigiErrorsBadFibBCNOff
 
EtaPhiHists DigiErrorsByDepth
 
EtaPhiHists DigiErrorsDVErr
 
int digierrorsdverr [85][72][4]
 
MonitorElementDigiErrorSpigot
 
EtaPhiHists DigiErrorsUnpacker
 
MonitorElementDigiErrorVME
 
MonitorElementDigiExpectedSize
 
edm::InputTag digiLabel_
 
int DigiMonitor_ExpectedOrbitMessageTime_
 
MonitorElementDigiNum
 
int diginum [9072]
 
EtaPhiHists DigiOccupancyByDepth
 
MonitorElementDigiOccupancyEta
 
MonitorElementDigiOccupancyPhi
 
MonitorElementDigiOccupancySpigot
 
MonitorElementDigiOccupancyVME
 
MonitorElementDigiSize
 
int digisize [20][4]
 
MonitorElementDigiUnpackerErrorCount
 
MonitorElementDigiUnpackerErrorFrac
 
bool doFCpeds_
 
int errorSpigot [15][36]
 
int errorVME [40][18]
 
bool excludeBadQPLLs_
 
bool excludeHO1P02_
 
bool excludeHORing2_
 
edm::InputTag FEDRawDataCollection_
 
edm::EDGetTokenT
< FEDRawDataCollection
FEDRawDataCollectionToken_
 
MonitorElementh_invalid_bcn
 
MonitorElementh_invalid_orbitnumMod103
 
MonitorElementh_valid_digis
 
int hbcount_
 
bool hbhedcsON
 
DigiHists hbHists
 
MonitorElementHBocc_vs_LB
 
int hecount_
 
DigiHists heHists
 
MonitorElementHEocc_vs_LB
 
int hfcount_
 
bool hfdcsON
 
DigiHists hfHists
 
int HFlumibad
 
MonitorElementHFM_shape
 
MonitorElementHFocc_vs_LB
 
MonitorElementHFP_shape
 
MonitorElementHFtiming_etaProfile
 
MonitorElementHFtiming_occupancy2D
 
MonitorElementHFtiming_totaltime2D
 
edm::InputTag hltresultsLabel_
 
int HO0bad
 
int HO12bad
 
int hocount_
 
DigiHists hoHists
 
MonitorElementHOocc_vs_LB
 
double HT_HFM_
 
double HT_HFP_
 
int knownbadQPLLs
 
int maxdigisizeHBHE_
 
int maxdigisizeHF_
 
int maxdigisizeHO_
 
std::vector< std::string > MinBiasHLTBits_
 
int mindigisizeHBHE_
 
int mindigisizeHF_
 
int mindigisizeHO_
 
int occupancyErrorEta [85]
 
int occupancyErrorEtaPhi [85][72][4]
 
int occupancyErrorPhi [72]
 
int occupancyEta [85]
 
int occupancyEtaPhi [85][72][4]
 
int occupancyPhi [72]
 
int occupancySpigot [40][36]
 
int occupancyVME [40][18]
 
bool passedMinBiasHLT_
 Methods, variables accessible only within class code. More...
 
std::map< HcalDetId,
std::vector< double > > 
PedestalsByCapId_
 
double pedSubtractedADC_ [10]
 
MonitorElementProblemDigisInLastNLB_HBHEHF_alarm
 
bool setupDone_
 
int shapeThresh_
 
int shapeThreshHB_
 
int shapeThreshHE_
 
int shapeThreshHF_
 
int shapeThreshHO_
 
bool shutOffOrbitTest_
 
edm::EDGetTokenT
< HBHEDigiCollection
tok_hbhe_
 
edm::EDGetTokenT
< HFDigiCollection
tok_hf_
 
edm::EDGetTokenT
< HFRecHitCollection
tok_hfrec_
 
edm::EDGetTokenT
< HODigiCollection
tok_ho_
 
edm::EDGetTokenT
< FEDRawDataCollection
tok_raw_
 
edm::EDGetTokenT
< edm::TriggerResults
tok_trigger_
 
edm::EDGetTokenT
< HcalUnpackerReport
tok_unpack_
 
uint64_t uniqcounter [85][72][4]
 
uint64_t uniqcounter2 [85][72][4]
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from HcalBaseDQMonitor
virtual void cleanup (void)
 
virtual void dqmBeginRun (const edm::Run &run, const edm::EventSetup &c)
 
void getLogicalMap (const edm::EventSetup &c)
 
bool IsAllowedCalibType ()
 
bool LumiInOrder (int lumisec)
 
void SetupEtaPhiHists (DQMStore::IBooker &ib, EtaPhiHists &hh, std::string Name, std::string Units)
 
- Protected Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- 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_
 
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

Author
J. Temple - Univ. of Maryland

Definition at line 68 of file HcalDigiMonitor.h.

Constructor & Destructor Documentation

HcalDigiMonitor::HcalDigiMonitor ( const edm::ParameterSet ps)

Definition at line 12 of file HcalDigiMonitor.cc.

References HcalBaseDQMonitor::AllowedCalibTypes_, HcalBaseDQMonitor::badChannelStatusMask_, gather_cfg::cout, dcsStatusToken_, HcalBaseDQMonitor::debug_, digi_checkadcsum_, digi_checkcapid_, digi_checkdigisize_, digi_checkdverr_, digi_checkoccupancy_, digiLabel_, DigiMonitor_ExpectedOrbitMessageTime_, HcalBaseDQMonitor::enableCleanup_, excludeBadQPLLs_, excludeHO1P02_, excludeHORing2_, FEDRawDataCollection_, FEDRawDataCollectionToken_, edm::ParameterSet::getUntrackedParameter(), HcalChannelStatus::HcalCellDead, HFM_shape, HFP_shape, HFtiming_etaProfile, HFtiming_occupancy2D, HFtiming_totaltime2D, hltresultsLabel_, HcalBaseDQMonitor::makeDiagnostics_, maxdigisizeHBHE_, maxdigisizeHF_, maxdigisizeHO_, HcalBaseDQMonitor::mergeRuns_, MinBiasHLTBits_, mindigisizeHBHE_, mindigisizeHF_, mindigisizeHO_, HcalBaseDQMonitor::NLumiBlocks_, HcalBaseDQMonitor::Online_, HcalBaseDQMonitor::prefixME_, setupDone_, shapeThresh_, shapeThreshHB_, shapeThreshHE_, shapeThreshHF_, shapeThreshHO_, shutOffOrbitTest_, HcalBaseDQMonitor::skipOutOfOrderLS_, AlCaHLTBitMon_QueryRunRegistry::string, HcalBaseDQMonitor::subdir_, tok_hbhe_, tok_hf_, tok_hfrec_, tok_ho_, tok_raw_, tok_trigger_, and tok_unpack_.

13 {
14  Online_ = ps.getUntrackedParameter<bool>("online",false);
15  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns",false);
16  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup",false);
17  debug_ = ps.getUntrackedParameter<int>("debug",0);
18  prefixME_ = ps.getUntrackedParameter<std::string>("subSystemFolder","Hcal/");
19  if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!="/")
20  prefixME_.append("/");
21  subdir_ = ps.getUntrackedParameter<std::string>("TaskFolder","DigiMonitor_Hcal");
22  if (subdir_.size()>0 && subdir_.substr(subdir_.size()-1,subdir_.size())!="/")
23  subdir_.append("/");
24  subdir_=prefixME_+subdir_;
25  AllowedCalibTypes_ = ps.getUntrackedParameter<std::vector<int> > ("AllowedCalibTypes");
26  skipOutOfOrderLS_ = ps.getUntrackedParameter<bool>("skipOutOfOrderLS",true);
27  NLumiBlocks_ = ps.getUntrackedParameter<int>("NLumiBlocks",4000);
28  makeDiagnostics_ = ps.getUntrackedParameter<bool>("makeDiagnostics",false);
30  FEDRawDataCollection_ = ps.getUntrackedParameter<edm::InputTag>("FEDRawDataCollection");
31  shapeThresh_ = ps.getUntrackedParameter<int>("shapeThresh",20);
32  //shapeThresh_ is used for plotting pulse shapes for all digis with pedestal-subtracted ADC sum > shapeThresh_;
33  shapeThreshHB_ = ps.getUntrackedParameter<int>("shapeThreshHB",shapeThresh_);
34  shapeThreshHE_ = ps.getUntrackedParameter<int>("shapeThreshHE",shapeThresh_);
35  shapeThreshHF_ = ps.getUntrackedParameter<int>("shapeThreshHF",shapeThresh_);
36  shapeThreshHO_ = ps.getUntrackedParameter<int>("shapeThreshHO",shapeThresh_);
37 
38  hltresultsLabel_ = ps.getUntrackedParameter<edm::InputTag>("HLTResultsLabel");
39  MinBiasHLTBits_ = ps.getUntrackedParameter<std::vector<std::string> >("MinBiasHLTBits");
40  excludeHORing2_ = ps.getUntrackedParameter<bool>("excludeHORing2",false);
41  excludeHO1P02_ = ps.getUntrackedParameter<bool>("excludeHO1P02",false);
42  excludeBadQPLLs_ = ps.getUntrackedParameter<bool>("excludeBadQPLL",false);
43 
44  if (debug_>0)
45  std::cout <<"<HcalDigiMonitor> Digi shape ADC threshold set to: >" << shapeThresh_ <<" counts above nominal pedestal (3*10)"<< std::endl;
46 
47  // Specify which tests to run when looking for problem digis
48  digi_checkoccupancy_ = ps.getUntrackedParameter<bool>("checkForMissingDigis",false); // off by default -- checked by dead cell monitor
49  digi_checkcapid_ = ps.getUntrackedParameter<bool>("checkCapID",true);
50  digi_checkdigisize_ = ps.getUntrackedParameter<bool>("checkDigiSize",true);
51  digi_checkadcsum_ = ps.getUntrackedParameter<bool>("checkADCsum",true);
52  digi_checkdverr_ = ps.getUntrackedParameter<bool>("checkDVerr",true);
53  mindigisizeHBHE_ = ps.getUntrackedParameter<int>("minDigiSizeHBHE",1);
54  maxdigisizeHBHE_ = ps.getUntrackedParameter<int>("maxDigiSizeHBHE",10);
55  mindigisizeHO_ = ps.getUntrackedParameter<int>("minDigiSizeHO",1);
56  maxdigisizeHO_ = ps.getUntrackedParameter<int>("maxDigiSizeHO",10);
57  mindigisizeHF_ = ps.getUntrackedParameter<int>("minDigiSizeHF",1);
58  maxdigisizeHF_ = ps.getUntrackedParameter<int>("maxDigiSizeHF",10);
59 
60 
61  badChannelStatusMask_ = ps.getUntrackedParameter<int>("BadChannelStatusMask",
62  ps.getUntrackedParameter<int>("BadChannelStatusMask",
63  (1<<HcalChannelStatus::HcalCellDead))); // identify channel status values to mask
64  if (debug_>1)
65  {
66  std::cout <<"<HcalDigiMonitor> Checking for the following problems:"<<std::endl;
67  if (digi_checkcapid_) std::cout <<"\tChecking that cap ID rotation is correct;"<<std::endl;
69  {
70  std::cout <<"\tChecking that HBHE digi size is between ["<<mindigisizeHBHE_<<" - "<<maxdigisizeHBHE_<<"];"<<std::endl;
71  std::cout <<"\tChecking that HO digi size is between ["<<mindigisizeHO_<<" - "<<maxdigisizeHO_<<"];"<<std::endl;
72  std::cout <<"\tChecking that HF digi size is between ["<<mindigisizeHF_<<" - "<<maxdigisizeHF_<<"];"<<std::endl;
73  }
74  if (digi_checkadcsum_) std::cout <<"\tChecking that ADC sum of digi is greater than 0;"<<std::endl;
75  if (digi_checkdverr_) std::cout <<"\tChecking that data valid bit is true and digi error bit is false;\n"<<std::endl;
76  }
77 
78  shutOffOrbitTest_ = ps.getUntrackedParameter<bool>("shutOffOrbitTest",false);
79  DigiMonitor_ExpectedOrbitMessageTime_=ps.getUntrackedParameter<int>("ExpectedOrbitMessageTime",3559); // -1 means that orbit mismatches won't be checked
80 
84  HFP_shape=0;
85  HFM_shape=0;
86  setupDone_=false;
87 
88  // register for data access
89  tok_raw_ = consumes<FEDRawDataCollection>(FEDRawDataCollection_);
90  tok_hbhe_ = consumes<HBHEDigiCollection>(digiLabel_);
91  tok_ho_ = consumes<HODigiCollection>(digiLabel_);
92  tok_hf_ = consumes<HFDigiCollection>(digiLabel_);
93  tok_unpack_ = consumes<HcalUnpackerReport>(digiLabel_);
94  tok_trigger_ = consumes<edm::TriggerResults>(hltresultsLabel_);
95  tok_hfrec_ = consumes<HFRecHitCollection>(ps.getUntrackedParameter<edm::InputTag>("hfRechitLabel"));
96 
97  //set Token(-s)
98  dcsStatusToken_ = consumes<DcsStatusCollection>(std::string("scalersRawToDigi"));
99  FEDRawDataCollectionToken_ = consumes<FEDRawDataCollection>(FEDRawDataCollection_);
100 }
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< DcsStatusCollection > dcsStatusToken_
MonitorElement * HFtiming_occupancy2D
edm::InputTag digiLabel_
std::vector< std::string > MinBiasHLTBits_
MonitorElement * HFP_shape
MonitorElement * HFtiming_totaltime2D
std::vector< int > AllowedCalibTypes_
MonitorElement * HFM_shape
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
int DigiMonitor_ExpectedOrbitMessageTime_
edm::EDGetTokenT< HcalUnpackerReport > tok_unpack_
edm::InputTag hltresultsLabel_
MonitorElement * HFtiming_etaProfile
edm::EDGetTokenT< HODigiCollection > tok_ho_
edm::InputTag FEDRawDataCollection_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollectionToken_
edm::EDGetTokenT< edm::TriggerResults > tok_trigger_
tuple cout
Definition: gather_cfg.py:121
edm::EDGetTokenT< HFRecHitCollection > tok_hfrec_
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
HcalDigiMonitor::~HcalDigiMonitor ( )

Definition at line 103 of file HcalDigiMonitor.cc.

103 {}

Member Function Documentation

void HcalDigiMonitor::analyze ( const edm::Event e,
const edm::EventSetup c 
)
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 449 of file HcalDigiMonitor.cc.

References funct::abs(), HcalBaseDQMonitor::analyze(), edm::EventBase::bunchCrossing(), conditions_, gather_cfg::cout, FEDRawData::data(), dcsStatusToken_, HcalBaseDQMonitor::debug_, DigiExpectedSize, digiLabel_, FEDRawDataCollection_, FEDRawDataCollectionToken_, MonitorElement::Fill(), edm::Event::getByToken(), HcalHTRData::getNDD(), HcalDCCHeader::getSourceId(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), DcsStatus::HBHEa, DcsStatus::HBHEb, DcsStatus::HBHEc, hbhedcsON, HF, DcsStatus::HF, hfdcsON, hltresultsLabel_, HT_HFM_, HT_HFP_, i, HcalBaseDQMonitor::ievt_, HcalBaseDQMonitor::IsAllowedCalibType(), edm::HandleBase::isValid(), relval_steps::k, HcalBaseDQMonitor::LumiInOrder(), edm::EventBase::luminosityBlock(), maxdigisizeHBHE_, maxdigisizeHF_, maxdigisizeHO_, FEDNumbering::MAXHCALFEDID, FEDNumbering::MAXHCALuTCAFEDID, MinBiasHLTBits_, mindigisizeHBHE_, mindigisizeHF_, mindigisizeHO_, FEDNumbering::MINHCALFEDID, FEDNumbering::MINHCALuTCAFEDID, edm::EventBase::orbitNumber(), passedMinBiasHLT_, processEvent(), zeeHLT_cff::report, FEDRawData::size(), edm::TriggerNames::size(), HcalDCCHeader::SPIGOT_COUNT, theHFEtaBounds, tok_hbhe_, tok_hf_, tok_hfrec_, tok_ho_, tok_trigger_, tok_unpack_, edm::TriggerNames::triggerName(), and edm::Event::triggerNames().

450 {
452 
453  if (!IsAllowedCalibType()) return;
454  if (LumiInOrder(e.luminosityBlock())==false) return;
455 
456  // Get HLT trigger information for HF timing study
457  passedMinBiasHLT_=false;
458 
460  // check if detectors whether they were ON
462  e.getByToken(dcsStatusToken_, dcsStatus);
463 
464  if (dcsStatus.isValid() && dcsStatus->size() != 0)
465  {
466  if ((*dcsStatus)[0].ready(DcsStatus::HBHEa) &&
467  (*dcsStatus)[0].ready(DcsStatus::HBHEb) &&
468  (*dcsStatus)[0].ready(DcsStatus::HBHEc))
469  {
470  hbhedcsON = true;
471  if (debug_) std::cout << "hbhe on" << std::endl;
472  }
473  else hbhedcsON = false;
474 
475  if ((*dcsStatus)[0].ready(DcsStatus::HF))
476  {
477  hfdcsON = true;
478  if (debug_) std::cout << "hf on" << std::endl;
479  }
480  else hfdcsON = false;
481  }
483 
485  if (!(e.getByToken(tok_trigger_,hltRes)))
486  {
487  if (debug_>0) edm::LogWarning("HcalDigiMonitor")<<" Could not get HLT results with tag "<<hltresultsLabel_<<std::endl;
488  }
489  else
490  {
491  const edm::TriggerNames & triggerNames = e.triggerNames(*hltRes);
492  const unsigned int nTrig(triggerNames.size());
493  for (unsigned int i=0;i<nTrig;++i){
494  // repeat for minbias triggers
495  for (unsigned int k=0;k<MinBiasHLTBits_.size();++k)
496  {
497  // if (triggerNames.triggerName(i)==MinBiasHLTBits_[k] && hltRes->accept(i))
498  if (triggerNames.triggerName(i).find(MinBiasHLTBits_[k])!=std::string::npos && hltRes->accept(i))
499  {
500  passedMinBiasHLT_=true;
501  break;
502  }
503  }
504  }
505  } //else
506 
507  // Now get collections we need
508  HT_HFP_=0;
509  HT_HFM_=0;
510  // bool rechitsFound=false;
512  if (e.getByToken(tok_hfrec_,hf_rechit))
513  {
514  // rechitsFound=true;
515  for (HFRecHitCollection::const_iterator HF=hf_rechit->begin();HF!=hf_rechit->end();++HF)
516  {
517  float en=HF->energy();
518  int ieta=HF->id().ieta();
519  // ieta for HF starts at 29, so subtract away 29 when computing fEta
520  double fEta=fabs(0.5*(theHFEtaBounds[abs(ieta)-28]+theHFEtaBounds[abs(ieta)-29]));
521  ieta>0 ? HT_HFP_+=en/cosh(fEta) : HT_HFM_+=en/cosh(fEta);
522  }
523  }
524  else
525  {
526  // if no rechits found, form above-threshold plots based only on digi comparison to ADC threshold
527  HT_HFP_=999;
528  HT_HFM_=999;
529  }
530 
531  // try to get digis
535 
536  if (!(e.getByToken(tok_hbhe_,hbhe_digi)))
537  {
538  edm::LogWarning("HcalDigiMonitor")<< digiLabel_<<" hbhe_digi not available";
539  return;
540  }
541 
542  if (!(e.getByToken(tok_hf_,hf_digi)))
543  {
544  edm::LogWarning("HcalDigiMonitor")<< digiLabel_<<" hf_digi not available";
545  return;
546  }
547  if (!(e.getByToken(tok_ho_,ho_digi)))
548  {
549  edm::LogWarning("HcalDigiMonitor")<< digiLabel_<<" ho_digi not available";
550  return;
551  }
553  if (!(e.getByToken(tok_unpack_,report)))
554  {
555  edm::LogWarning("HcalDigiMonitor")<< digiLabel_<<" unpacker report not available";
556  return;
557  }
558  // try to get Raw Data
560  if ( !(e.getByToken(FEDRawDataCollectionToken_, rawraw)))
561  {
562  edm::LogWarning("HcalRawDataMonitor")<<" raw data with label "<<FEDRawDataCollection_<<" not available";
563  return;
564  }
565 
566  // get the DCC header & trailer (or bail out)
567  // this needs to be done better, for now basically getting only one number per HBHE/HO/HF
568  // will create a map (dccid, spigot) -> DetID to be used in process_Digi later
569  for (int i=FEDNumbering::MINHCALFEDID;
572  continue;
573  const FEDRawData& fed = rawraw->FEDData(i);
574  if (fed.size()<12) continue; //At least the size of headers and trailers of a DCC.
575 
576  const HcalDCCHeader* dccHeader=(const HcalDCCHeader*)(fed.data());
577  if(!dccHeader) return;
578  if (debug_>0)
579  std::cout << "### Processing FED: " << i << std::endl;
580 
581  // For uTCA spigos are useless => by default we have digisize = 4
582  // As of 20.05.2015
583  // HF = 2
584  if ((i>=1118 && i<=1122) ||
585  (i>=718 && i<=723))
586  {
587  mindigisizeHF_ = 4;
588  maxdigisizeHF_ = 4;
589  DigiExpectedSize->Fill(2, 4);
590  continue;
591  }
592 
593  // VME readout contains Number of Time Samples per Digi
594  // uTCA doesn't!
595  HcalHTRData htr;
596  for (int spigot=0; spigot<HcalDCCHeader::SPIGOT_COUNT; spigot++) {
597  if (!dccHeader->getSpigotPresent(spigot)) continue;
598 
599  // Load the given decoder with the pointer and length from this spigot.
600  // i.e. initialize htr, within dcc raw data size.
601  dccHeader->getSpigotData(spigot, htr, fed.size());
602 
603  int NTS = htr.getNDD(); //number time slices, in precision channels
604  if (debug_>0)
605  std::cout << "### Number of TS=" << NTS << std::endl;
606  if (NTS==0) continue; // no DAQ data in this HTR (fully zero-suppressed)
607  int dccid=dccHeader->getSourceId();
608 
609  if(dccid==720 && (spigot==12 || spigot==13)) continue; // calibration HTR
610  if(dccid==722 && (spigot==12 || spigot==13)) continue; // ZDC HTR
611 
612  int subdet = -1;
613 
614  if(dccid >= 700 && dccid<=717) { subdet = 0; mindigisizeHBHE_ = NTS; maxdigisizeHBHE_ = NTS; } // HBHE
615  if((dccid >= 1118 && dccid<=1122) ||
616  (dccid>=718 && dccid<=723))
617  { subdet = 2; mindigisizeHF_ = NTS; maxdigisizeHF_ = NTS; } // HF
618  if(dccid >= 724 && dccid<=731) { subdet = 1; mindigisizeHO_ = NTS; maxdigisizeHO_ = NTS; } // HO
619 
620  DigiExpectedSize->Fill(subdet,int(NTS),1);
621  }
622  }
623 
624  // all objects grabbed; event is good
625  if (debug_>1) std::cout <<"\t<HcalDigiMonitor::analyze> Processing good event! event # = "<<ievt_<<std::endl;
626 
627 // HcalBaseDQMonitor::analyze(e,s); // base class increments ievt_, etc. counters
628 
629  // Digi collection was grabbed successfully; process the Event
630  processEvent(*hbhe_digi, *ho_digi, *hf_digi, *conditions_,
631  *report, e.orbitNumber(),e.bunchCrossing());
632 
633 } //void HcalDigiMonitor::analyze(...)
bool passedMinBiasHLT_
Methods, variables accessible only within class code.
int i
Definition: DBlmapReader.cc:9
bool LumiInOrder(int lumisec)
edm::EDGetTokenT< DcsStatusCollection > dcsStatusToken_
int getNDD() const
Get the number of daq data samples per channel when not zero-suppressed.
Definition: HcalHTRData.cc:388
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
Definition: Event.cc:208
edm::InputTag digiLabel_
std::vector< std::string > MinBiasHLTBits_
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:449
std::vector< HFRecHit >::const_iterator const_iterator
int bunchCrossing() const
Definition: EventBase.h:66
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:63
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
Strings::size_type size() const
Definition: TriggerNames.cc:39
int getSpigotData(int nspigot, HcalHTRData &decodeTool, int validSize) const
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:47
void Fill(long long x)
tuple report
Definition: zeeHLT_cff.py:9
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
bool getSpigotPresent(unsigned int nspigot) const
Read the &quot;PRESENT&quot; bit for this spigot.
int orbitNumber() const
Definition: EventBase.h:67
bool isValid() const
Definition: HandleBase.h:75
edm::EDGetTokenT< HcalUnpackerReport > tok_unpack_
int getSourceId() const
Definition: HcalDCCHeader.h:32
static const double theHFEtaBounds[]
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:27
edm::InputTag hltresultsLabel_
edm::EDGetTokenT< HODigiCollection > tok_ho_
edm::InputTag FEDRawDataCollection_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollectionToken_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:28
edm::EDGetTokenT< edm::TriggerResults > tok_trigger_
tuple cout
Definition: gather_cfg.py:121
MonitorElement * DigiExpectedSize
void processEvent(const HBHEDigiCollection &hbhe, const HODigiCollection &ho, const HFDigiCollection &hf, const HcalDbService &cond, const HcalUnpackerReport &report, int orN, int bcN)
edm::EDGetTokenT< HFRecHitCollection > tok_hfrec_
edm::ESHandle< HcalDbService > conditions_
void HcalDigiMonitor::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup c 
)
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 1177 of file HcalDigiMonitor.cc.

References HcalBaseDQMonitor::beginLuminosityBlock(), HcalBaseDQMonitor::ProblemsCurrentLB, and MonitorElement::Reset().

1179 {
1182 }
MonitorElement * ProblemsCurrentLB
virtual void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
void Reset(void)
reset ME (ie. contents, errors, etc)
void HcalDigiMonitor::bookHistograms ( DQMStore::IBooker ib,
const edm::Run run,
const edm::EventSetup c 
)
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 342 of file HcalDigiMonitor.cc.

References HcalQIECoder::adc(), HcalBaseDQMonitor::badChannelStatusMask_, HcalBaseDQMonitor::bookHistograms(), conditions_, gather_cfg::cout, HcalBaseDQMonitor::debug_, edm::EventSetup::get(), HcalCondObjectContainer< Item >::getAllChannels(), reco::JetExtendedAssociation::getValue(), HcalCondObjectContainer< Item >::getValues(), DetId::Hcal, i, HcalBaseDQMonitor::KnownBadCells_, HcalBaseDQMonitor::mergeRuns_, AlCaHLTBitMon_ParallelJobs::p, HcalCalibrations::pedestal(), PedestalsByCapId_, edm::ESHandle< class >::product(), reset(), setup(), ntuplemaker::status, and HcalBaseDQMonitor::tevt_.

343 {
345  if (mergeRuns_ && tevt_>0) return; // don't reset counters if merging runs
346 
347  if (debug_>1) std::cout <<"\t<HcalDigiMonitor::bookHistograms> Getting conditions from DB!"<<std::endl;
348  c.get<HcalDbRecord>().get(conditions_);
349 
350  // Get all pedestals by Cap ID
352  c.get<HcalChannelQualityRcd>().get("withTopo",p);
353  const HcalChannelQuality *chanquality= p.product();
354  std::vector<DetId> mydetids = chanquality->getAllChannels();
355  PedestalsByCapId_.clear();
356 
357  for (std::vector<DetId>::const_iterator chan = mydetids.begin();chan!=mydetids.end();++chan)
358  {
359  if (chan->det()!=DetId::Hcal) continue; // not hcal
360  std::vector <double> peds; // could be ints, right?
361  peds.clear();
362  HcalCalibrations calibs=conditions_->getHcalCalibrations(*chan);
363  const HcalQIECoder* channelCoder = conditions_->getHcalCoder(*chan);
364  const HcalQIEShape* shape = conditions_->getHcalShape(channelCoder);
365  //double total=0; // use this is we want to calculate average pedestal value
366  for (int capid=0;capid<4;++capid)
367  {
368  // temp_ADC should be an int, right?
369  double temp_ADC=channelCoder->adc(*shape,(float)calibs.pedestal(capid),capid);
370  peds.push_back(temp_ADC);
371  //total=total+temp_ADC;
372  }
373  //for (int capid=0;capid<4;++capid) peds.push_back(total/4.); // use this if we just want to use average value
374  PedestalsByCapId_[*chan]=peds;
375  } // loop on DetIds
376 
377  if (tevt_==0) this->setup(ib); // create all histograms; not necessary if merging runs together
378  if (mergeRuns_==false) this->reset(); // call reset at start of all runs
379 
380  // Get known dead cells for this run
381  KnownBadCells_.clear();
382  if (badChannelStatusMask_>0)
383  {
385  c.get<HcalChannelQualityRcd>().get("withTopo",p);
386  const HcalChannelQuality* chanquality= p.product();
387  std::vector<DetId> mydetids = chanquality->getAllChannels();
388  for (std::vector<DetId>::const_iterator i = mydetids.begin();
389  i!=mydetids.end();
390  ++i)
391  {
392  if (i->det()!=DetId::Hcal) continue; // not an hcal cell
393  HcalDetId id=HcalDetId(*i);
394  int status=(chanquality->getValues(id))->getValue();
395  if ((status & badChannelStatusMask_))
396  {
397  KnownBadCells_[id.rawId()]=status;
398  }
399  }
400  } // if (badChannelStatusMask_>0)
401 
402 } // void HcalDigiMonitor::bookHistograms()
int i
Definition: DBlmapReader.cc:9
std::map< unsigned int, int > KnownBadCells_
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
double pedestal(int fCapId) const
get pedestal for capid=0..3
const Item * getValues(DetId fId, bool throwOnFail=true) const
std::map< HcalDetId, std::vector< double > > PedestalsByCapId_
std::vector< DetId > getAllChannels() const
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:86
void setup(DQMStore::IBooker &)
unsigned adc(const HcalQIEShape &fShape, float fCharge, unsigned fCapId) const
fC + capid [0..3] -&gt; ADC conversion
Definition: HcalQIECoder.cc:27
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
edm::ESHandle< HcalDbService > conditions_
void HcalDigiMonitor::endJob ( void  )

Definition at line 154 of file HcalDigiMonitor.cc.

References HcalBaseDQMonitor::cleanup(), gather_cfg::cout, HcalBaseDQMonitor::debug_, and HcalBaseDQMonitor::enableCleanup_.

155 {
156  if (debug_>0) std::cout <<"HcalDigiMonitor::endJob()"<<std::endl;
157  if (enableCleanup_) cleanup(); // when do we force cleanup?
158 }
virtual void cleanup(void)
tuple cout
Definition: gather_cfg.py:121
void HcalDigiMonitor::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup c 
)
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 1184 of file HcalDigiMonitor.cc.

References alarmer_counter_, fill_Nevents(), hbhedcsON, HcalBaseDQMonitor::HBpresent_, HcalBaseDQMonitor::HEpresent_, hfdcsON, HcalBaseDQMonitor::HFpresent_, HcalBaseDQMonitor::LumiInOrder(), edm::LuminosityBlockBase::luminosityBlock(), ProblemDigisInLastNLB_HBHEHF_alarm, HcalBaseDQMonitor::ProblemsCurrentLB, MonitorElement::Reset(), and zeroCounters().

1186 {
1187  if (LumiInOrder(lumiSeg.luminosityBlock())==false) return;
1188 
1189  // Reset current LS histogram
1190  if (ProblemsCurrentLB)
1192 
1194 
1195  //increase the number of LS counting, for alarmer. Only make alarms for HBHE
1196  if(hbhedcsON == true && hfdcsON == true && HBpresent_ == 1 && HEpresent_ == 1 && HFpresent_ == 1)
1197  ++alarmer_counter_;
1198  else
1199  alarmer_counter_ = 0;
1200 
1201  fill_Nevents();
1202 
1203  zeroCounters(); // reset counters of good/bad digis
1204 
1205  return;
1206 }
bool LumiInOrder(int lumisec)
MonitorElement * ProblemsCurrentLB
LuminosityBlockNumber_t luminosityBlock() const
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * ProblemDigisInLastNLB_HBHEHF_alarm
void HcalDigiMonitor::endRun ( const edm::Run run,
const edm::EventSetup c 
)
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 149 of file HcalDigiMonitor.cc.

150 {
151  // Anything to do here?
152 }
void HcalDigiMonitor::fill_Nevents ( )
private

Definition at line 1208 of file HcalDigiMonitor.cc.

References funct::abs(), DigiHists::ADC, DigiHists::adc, DigiHists::ADCsum, DigiHists::adcsum, alarmer_counter_, badcapID, baddigis, baddigisize, badFibBCNOff, badunpackerreport, DigiHists::BQ, DigiHists::BQFrac, CalcEtaBin(), DigiHists::CapID, DigiHists::capid, DigiHists::capIDdiff, DigiHists::count_bad, DigiHists::count_BQ, DigiHists::count_BQFrac, DigiHists::count_presample, DigiHists::count_shape, DigiHists::count_shapeThresh, gather_cfg::cout, HcalBaseDQMonitor::currentLS, HcalBaseDQMonitor::debug_, EtaPhiHists::depth, DIGI_BQ_FRAC_NBINS, DIGI_NUM, DIGI_SUBDET_NUM, DigiErrorsBadCapID, DigiErrorsBadDigiSize, DigiErrorsBadFibBCNOff, DigiErrorsByDepth, DigiErrorsDVErr, digierrorsdverr, DigiErrorSpigot, DigiErrorsUnpacker, DigiErrorVME, DigiHists::DigiFirstCapID, DigiNum, diginum, DigiOccupancyByDepth, DigiOccupancyEta, DigiOccupancyPhi, DigiOccupancySpigot, DigiOccupancyVME, DigiSize, digisize, DigiHists::DVerr, DigiHists::dverr, errorSpigot, errorVME, eta(), DigiHists::fibBCNOff, DigiHists::fibbcnoff, MonitorElement::Fill(), HcalObjRepresent::FillUnphysicalHEHFBins(), hbHists, HcalBaseDQMonitor::HBpresent_, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, heHists, HcalBaseDQMonitor::HEpresent_, hfHists, HFlumibad, HcalBaseDQMonitor::HFpresent_, HO0bad, HO12bad, hoHists, HcalBaseDQMonitor::HOpresent_, i, HcalBaseDQMonitor::ievt_, j, knownbadQPLLs, HcalBaseDQMonitor::makeDiagnostics_, min(), occupancyEta, occupancyEtaPhi, occupancyPhi, occupancySpigot, occupancyVME, phi, DigiHists::presample, ProblemDigisInLastNLB_HBHEHF_alarm, HcalBaseDQMonitor::ProblemsCurrentLB, HcalBaseDQMonitor::ProblemsVsLB, HcalBaseDQMonitor::ProblemsVsLB_HB, HcalBaseDQMonitor::ProblemsVsLB_HBHEHF, HcalBaseDQMonitor::ProblemsVsLB_HE, HcalBaseDQMonitor::ProblemsVsLB_HF, HcalBaseDQMonitor::ProblemsVsLB_HO, DigiHists::shape, DigiHists::shapeThresh, HcalDCCHeader::SPIGOT_COUNT, HcalBaseDQMonitor::tevt_, DigiHists::TS_sum_minus, DigiHists::TS_sum_plus, DigiHists::tssumminus, DigiHists::tssumplus, validDetId(), and ecaldqm::zside().

Referenced by endLuminosityBlock().

1209 {
1210  if (debug_>0)
1211  std::cout <<"<HcalDigiMonitor> Calling fill_Nevents for event "<<tevt_<< " (processed events = "<<ievt_<<")"<<std::endl;
1212  int iPhi, iEta, iDepth;
1213  // bool valid=false;
1214 
1215  // Fill problems vs. lumi block plots
1222 
1224  alarmer_counter_ = 0;
1225 
1226  if( alarmer_counter_ >= 5 )
1228 
1229  // Fill the number of problem digis in each channel
1230  if (ProblemsCurrentLB)
1231  {
1232  ProblemsCurrentLB->Fill(-1,-1,1); // event counter
1240  }
1241 
1242  // Fill plots of sums of adjacent digi samples
1243  for (int i=0;i<10;++i)
1244  {
1245  for (int j=0;j<50;++j)
1246  {
1247  if (hbHists.tssumplus[j][i]>0) hbHists.TS_sum_plus[i]->Fill(j, hbHists.tssumplus[j][i]);
1248  if (hbHists.tssumminus[j][i]>0) hbHists.TS_sum_minus[i]->Fill(j, hbHists.tssumminus[j][i]);
1249  if (heHists.tssumplus[j][i]>0) heHists.TS_sum_plus[i]->Fill(j, heHists.tssumplus[j][i]);
1250  if (heHists.tssumminus[j][i]>0) heHists.TS_sum_minus[i]->Fill(j, heHists.tssumminus[j][i]);
1251  if (hoHists.tssumplus[j][i]>0) hoHists.TS_sum_plus[i]->Fill(j, hoHists.tssumplus[j][i]);
1252  if (hoHists.tssumminus[j][i]>0) hoHists.TS_sum_minus[i]->Fill(j, hoHists.tssumminus[j][i]);
1253  if (hfHists.tssumplus[j][i]>0) hfHists.TS_sum_plus[i]->Fill(j, hfHists.tssumplus[j][i]);
1254  if (hfHists.tssumminus[j][i]>0) hfHists.TS_sum_minus[i]->Fill(j, hfHists.tssumminus[j][i]);
1255  }
1256  } // for (int i=0;i<10;++i)
1257 
1258  for (int i=0;i<DIGI_NUM;++i)
1259  {
1260  if (diginum[i]>0) DigiNum->Fill(i, diginum[i]);
1261  if (i>=DIGI_SUBDET_NUM) continue;
1262 
1263  if (hbHists.count_BQ[i]>0) hbHists.BQ->Fill(i, hbHists.count_BQ[i]);
1264  if (heHists.count_BQ[i]>0) heHists.BQ->Fill(i, heHists.count_BQ[i]);
1265  if (hoHists.count_BQ[i]>0) hoHists.BQ->Fill(i, hoHists.count_BQ[i]);
1266  if (hfHists.count_BQ[i]>0) hfHists.BQ->Fill(i, hfHists.count_BQ[i]);
1267  }//for int i=0;i<DIGI_NUM;++i)
1268 
1269 
1270  // Fill data-valid/error plots and capid plots
1271  for (int i=0;i<4;++i)
1272  {
1273  if (hbHists.dverr[i]>0) hbHists.DVerr->Fill(i, hbHists.dverr[i]);
1274  if (heHists.dverr[i]>0) heHists.DVerr->Fill(i, heHists.dverr[i]);
1275  if (hoHists.dverr[i]>0) hoHists.DVerr->Fill(i, hoHists.dverr[i]);
1276  if (hfHists.dverr[i]>0) hfHists.DVerr->Fill(i, hfHists.dverr[i]);
1277 
1278  if (hbHists.capid[i]>0) hbHists.CapID->Fill(i, hbHists.capid[i]);
1279  if (heHists.capid[i]>0) heHists.CapID->Fill(i, heHists.capid[i]);
1280  if (hoHists.capid[i]>0) hoHists.CapID->Fill(i, hoHists.capid[i]);
1281  if (hfHists.capid[i]>0) hfHists.CapID->Fill(i, hfHists.capid[i]);
1282  }
1283 
1284  for (int i=0;i<200;++i)
1285  {
1286  if (hbHists.adc[i]>0) hbHists.ADC->Fill(i, hbHists.adc[i]);
1287 
1288  if (heHists.adc[i]>0) heHists.ADC->Fill(i, heHists.adc[i]);
1289  if (hoHists.adc[i]>0) hoHists.ADC->Fill(i, hoHists.adc[i]);
1290  if (hfHists.adc[i]>0) hfHists.ADC->Fill(i, hfHists.adc[i]);
1291 
1292  if (hbHists.adcsum[i]>0) hbHists.ADCsum->Fill(i, hbHists.adcsum[i]);
1293  if (heHists.adcsum[i]>0) heHists.ADCsum->Fill(i, heHists.adcsum[i]);
1294  if (hoHists.adcsum[i]>0) hoHists.ADCsum->Fill(i, hoHists.adcsum[i]);
1295  if (hfHists.adcsum[i]>0) hfHists.ADCsum->Fill(i, hfHists.adcsum[i]);
1296  }
1297 
1298  for (int i = 0; i < 15; ++i)
1299  {
1300  if (hbHists.fibbcnoff[i]>0) hbHists.fibBCNOff->Fill(i-7,
1301  hbHists.fibbcnoff[i]);
1302  if (heHists.fibbcnoff[i]>0) heHists.fibBCNOff->Fill(i-7,
1303  heHists.fibbcnoff[i]);
1304  if (hfHists.fibbcnoff[i]>0) hfHists.fibBCNOff->Fill(i-7,
1305  hfHists.fibbcnoff[i]);
1306  if (hoHists.fibbcnoff[i]>0) hoHists.fibBCNOff->Fill(i-7,
1307  hoHists.fibbcnoff[i]);
1308  }
1309 
1310  // Fill plots of bad fraction of digis found
1311  for (int i=0;i<DIGI_BQ_FRAC_NBINS;++i)
1312  {
1313  if (DIGI_BQ_FRAC_NBINS==1) break;
1314  if (hbHists.count_BQFrac[i]>0) hbHists.BQFrac->Fill(1.*i/(DIGI_BQ_FRAC_NBINS-1), hbHists.count_BQFrac[i]);
1315  if (heHists.count_BQFrac[i]>0) heHists.BQFrac->Fill(1.*i/(DIGI_BQ_FRAC_NBINS-1), heHists.count_BQFrac[i]);
1316  if (hoHists.count_BQFrac[i]>0)
1317  {
1318  hoHists.BQFrac->Fill(1.*i/(DIGI_BQ_FRAC_NBINS), hoHists.count_BQFrac[i]);
1319  }
1320  if (hfHists.count_BQFrac[i]>0) hfHists.BQFrac->Fill(1.*i/(DIGI_BQ_FRAC_NBINS-1), hfHists.count_BQFrac[i]);
1321  }//for (int i=0;i<DIGI_BQ_FRAC_NBINS;++i)
1322 
1323  // Fill presample plots
1324  for (int i=0;i<50;++i)
1325  {
1330  } //for (int i=0;i<50;++i)
1331 
1332  // Fill shape plots
1333  for (int i=0;i<10;++i)
1334  {
1343  }// for (int i=0;i<10;++i)
1344 
1345  // Fill capID difference plots
1346  for (int i=0;i<8;++i)
1347  {
1352  }
1353 
1354  // Fill VME plots
1355  for (int i=0;i<40;++i)
1356  {
1357  for (int j=0;j<18;++j)
1358  {
1359  if (errorVME[i][j]>0) DigiErrorVME->Fill(i, j,errorVME[i][j]);
1360  if (occupancyVME[i][j]>0) DigiOccupancyVME->Fill(i, j,occupancyVME[i][j]);
1361  }
1362  } //for (int i=0;i<40;++i)
1363 
1364  // Fill SPIGOT plots
1365  for (int i=0;i<HcalDCCHeader::SPIGOT_COUNT;++i)
1366  {
1367  for (int j=0;j<36;++j)
1368  {
1369  if (errorSpigot[i][j]>0) DigiErrorSpigot->Fill(i, j,errorSpigot[i][j]);
1370  if (occupancySpigot[i][j]>0) DigiOccupancySpigot->Fill(i, j,occupancySpigot[i][j]);
1371  }
1372  } //for (int i=0;i<HcalDCCHeader::SPIGOT_COUNT;++i)
1373 
1374  // Loop over subdetectors
1375  for (int sub=0;sub<4;++sub)
1376  {
1377  for (int dsize=0;dsize<20;++dsize)
1378  {
1379  if (digisize[dsize][sub]>0)
1380  DigiSize->Fill(sub,dsize,digisize[dsize][sub]);
1381  }
1382  } // for (int sub=0;sub<4;++sub)
1383 
1384  // Loop over eta, phi, depth
1385  for (int d=0;d<4;++d)
1386  {
1387  iDepth=d+1;
1388  DigiErrorsByDepth.depth[d]->setBinContent(0,0,ievt_); // underflow bin contains event counter
1389  DigiOccupancyByDepth.depth[d]->setBinContent(0,0,ievt_);
1390  DigiErrorsBadDigiSize.depth[d]->setBinContent(0,0,ievt_);
1391  DigiErrorsUnpacker.depth[d]->setBinContent(0,0,ievt_);
1392  DigiErrorsBadFibBCNOff.depth[d]->setBinContent(0,0,ievt_);
1393 
1394  for (int phi=0;phi<72;++phi)
1395  {
1396  iPhi=phi+1;
1398  for (int eta=0;eta<83;++eta)
1399  {
1400  // DigiOccupanyEta uses 'true' ieta (included the overlap at +/- 29)
1401  iEta=eta-41;
1402  if (phi==0)
1404  // valid=false;
1405 
1406  // HB
1407  if (validDetId(HcalBarrel, iEta, iPhi, iDepth))
1408  {
1409  // valid=true;
1410  if (HBpresent_)
1411  {
1412  int calcEta = CalcEtaBin(HcalBarrel,iEta,iDepth);
1413 
1414  DigiOccupancyByDepth.depth[d]->Fill(iEta, iPhi,
1415  occupancyEtaPhi[calcEta][phi][d]);
1416 
1417  if (makeDiagnostics_)
1418  {
1419  DigiErrorsBadCapID.depth[d]->Fill(iEta, iPhi,
1420  badcapID[calcEta][phi][d]);
1421  DigiErrorsDVErr.depth[d]->Fill(iEta, iPhi,
1422  digierrorsdverr[calcEta][phi][d]);
1423  }
1424  DigiErrorsBadDigiSize.depth[d]->Fill(iEta, iPhi,
1425  baddigisize[calcEta][phi][d]);
1426  DigiErrorsBadFibBCNOff.depth[d]->Fill(iEta, iPhi,
1427  badFibBCNOff[calcEta][phi][d]);
1428  DigiErrorsUnpacker.depth[d]->Fill(iEta, iPhi,
1429  badunpackerreport[calcEta][phi][d]);
1430  DigiErrorsByDepth.depth[d]->Fill(iEta, iPhi,
1431  baddigis[calcEta][phi][d]);
1432  // Use this for testing purposes only
1433  //DigiErrorsByDepth[d]->Fill(iEta, iPhi, ievt_);
1434  } // if (HBpresent_)
1435  } // validDetId(HB)
1436  // HE
1437  if (validDetId(HcalEndcap, iEta, iPhi, iDepth))
1438  {
1439  // valid=true;
1440  if (HEpresent_)
1441  {
1442  int calcEta = CalcEtaBin(HcalEndcap,iEta,iDepth);
1443 
1444  DigiOccupancyByDepth.depth[d]->Fill(iEta, iPhi,
1445  occupancyEtaPhi[calcEta][phi][d]);
1446 
1447  if (makeDiagnostics_)
1448  {
1449  DigiErrorsBadCapID.depth[d]->Fill(iEta, iPhi,
1450  badcapID[calcEta][phi][d]);
1451  DigiErrorsDVErr.depth[d]->Fill(iEta, iPhi,
1452  digierrorsdverr[calcEta][phi][d]);
1453  }
1454  DigiErrorsBadDigiSize.depth[d]->Fill(iEta, iPhi,
1455  baddigisize[calcEta][phi][d]);
1456  DigiErrorsBadFibBCNOff.depth[d]->Fill(iEta, iPhi,
1457  badFibBCNOff[calcEta][phi][d]);
1458  DigiErrorsUnpacker.depth[d]->Fill(iEta, iPhi,
1459  badunpackerreport[calcEta][phi][d]);
1460  DigiErrorsByDepth.depth[d]->Fill(iEta, iPhi,
1461  baddigis[calcEta][phi][d]);
1462  } // if (HEpresent_)
1463  } // valid HE found
1464  // HO
1465  if (validDetId(HcalOuter,iEta,iPhi,iDepth))
1466  {
1467  // valid=true;
1468  if (HOpresent_)
1469  {
1470  int calcEta = CalcEtaBin(HcalOuter,iEta,iDepth);
1471  DigiOccupancyByDepth.depth[d]->Fill(iEta, iPhi,
1472  occupancyEtaPhi[calcEta][phi][d]);
1473  if (makeDiagnostics_)
1474  {
1475  DigiErrorsBadCapID.depth[d]->Fill(iEta, iPhi,
1476  badcapID[calcEta][phi][d]);
1477  DigiErrorsDVErr.depth[d]->Fill(iEta, iPhi,
1478  digierrorsdverr[calcEta][phi][d]);
1479  }
1480  DigiErrorsBadDigiSize.depth[d]->Fill(iEta, iPhi,
1481  baddigisize[calcEta][phi][d]);
1482  DigiErrorsBadFibBCNOff.depth[d]->Fill(iEta, iPhi,
1483  badFibBCNOff[calcEta][phi][d]);
1484  DigiErrorsUnpacker.depth[d]->Fill(iEta, iPhi,
1485  badunpackerreport[calcEta][phi][d]);
1486 
1487  DigiErrorsByDepth.depth[d]->Fill(iEta,iPhi,
1488  baddigis[calcEta][phi][d]);
1489  } // if (HOpresent_)
1490  }//validDetId(HO)
1491  // HF
1492  if (validDetId(HcalForward,iEta,iPhi,iDepth))
1493  {
1494  // valid=true;
1495  if (HFpresent_)
1496  {
1497  int calcEta = CalcEtaBin(HcalForward,iEta,iDepth);
1498  int zside = iEta/abs(iEta);
1499  DigiOccupancyByDepth.depth[d]->Fill(iEta+zside, iPhi,
1500  occupancyEtaPhi[calcEta][phi][d]);
1501 
1502  if (makeDiagnostics_)
1503  {
1504  DigiErrorsBadCapID.depth[d]->Fill(iEta+zside, iPhi,
1505  badcapID[calcEta][phi][d]);
1506  DigiErrorsDVErr.depth[d]->Fill(iEta+zside, iPhi,
1507  digierrorsdverr[calcEta][phi][d]);
1508  }
1509  DigiErrorsBadDigiSize.depth[d]->Fill(iEta+zside, iPhi,
1510  baddigisize[calcEta][phi][d]);
1511  DigiErrorsBadFibBCNOff.depth[d]->Fill(iEta+zside, iPhi,
1512  badFibBCNOff[calcEta][phi][d]);
1513  DigiErrorsUnpacker.depth[d]->Fill(iEta+zside, iPhi,
1514  badunpackerreport[calcEta][phi][d]);
1515  DigiErrorsByDepth.depth[d]->Fill(iEta+zside, iPhi,
1516  baddigis[calcEta][phi][d]);
1517 
1518  } // if (HFpresent_)
1519  }
1520  } // for (int eta=0;...)
1521  } // for (int phi=0;...)
1522  } // for (int d=0;...)
1523 
1524  // Now fill all the unphysical cell values
1526  if (makeDiagnostics_)
1527  {
1530  }
1535 
1536  // zeroCounters(); // reset counters of good/bad digis
1537 
1538  return;
1539 } // void HcalDigiMonitor::fill_Nevents()
int i
Definition: DBlmapReader.cc:9
int capid[4]
int count_presample[50]
MonitorElement * ProblemsCurrentLB
MonitorElement * ADC
EtaPhiHists DigiErrorsDVErr
int occupancySpigot[40][36]
int tssumminus[50][10]
MonitorElement * shape
MonitorElement * DigiSize
int occupancyVME[40][18]
MonitorElement * BQ
MonitorElement * ProblemsVsLB_HF
int errorVME[40][18]
MonitorElement * shapeThresh
int badcapID[85][72][4]
#define DIGI_BQ_FRAC_NBINS
int fibbcnoff[15]
int count_BQ[2593]
int zside(DetId const &)
int badFibBCNOff[85][72][4]
MonitorElement * DigiOccupancyEta
MonitorElement * DigiErrorVME
MonitorElement * DigiOccupancyVME
T eta() const
int dverr[4]
MonitorElement * DigiNum
int baddigis[85][72][4]
void Fill(long long x)
int adcsum[200]
MonitorElement * DigiErrorSpigot
EtaPhiHists DigiErrorsBadFibBCNOff
int adc[200]
std::vector< MonitorElement * > depth
int baddigisize[85][72][4]
#define DIGI_SUBDET_NUM
MonitorElement * ProblemsVsLB_HBHEHF
MonitorElement * ProblemsVsLB_HB
int digierrorsdverr[85][72][4]
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int j
Definition: DBlmapReader.cc:9
std::vector< MonitorElement * > TS_sum_minus
T min(T a, T b)
Definition: MathUtil.h:58
std::vector< MonitorElement * > TS_sum_plus
MonitorElement * ADCsum
EtaPhiHists DigiErrorsBadDigiSize
int errorSpigot[15][36]
MonitorElement * fibBCNOff
#define DIGI_NUM
MonitorElement * DigiOccupancySpigot
MonitorElement * ProblemsVsLB_HE
void FillUnphysicalHEHFBins(std::vector< TH2F > &hh)
int CalcEtaBin(int subdet, int ieta, int depth)
MonitorElement * DVerr
int occupancyEtaPhi[85][72][4]
MonitorElement * CapID
int tssumplus[50][10]
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
double count_shapeThresh[10]
int capIDdiff[8]
tuple cout
Definition: gather_cfg.py:121
MonitorElement * DigiFirstCapID
EtaPhiHists DigiErrorsBadCapID
MonitorElement * ProblemsVsLB_HO
EtaPhiHists DigiOccupancyByDepth
MonitorElement * BQFrac
MonitorElement * ProblemsVsLB
int badunpackerreport[85][72][4]
MonitorElement * presample
int count_BQFrac[101]
int count_shape[10]
EtaPhiHists DigiErrorsByDepth
EtaPhiHists DigiErrorsUnpacker
int digisize[20][4]
MonitorElement * DigiOccupancyPhi
MonitorElement * ProblemDigisInLastNLB_HBHEHF_alarm
bool validDetId(HcalSubdetector sd, int ies, int ip, int dp)
Definition: DDAxes.h:10
template<class T >
int HcalDigiMonitor::process_Digi ( T digi,
DigiHists hist,
int &  firstcap 
)
private

Referenced by processEvent().

template<class DIGI >
int HcalDigiMonitor::process_Digi ( DIGI &  digi,
DigiHists h,
int &  firstcap 
)

Definition at line 927 of file HcalDigiMonitor.cc.

References DigiHists::adc, DigiHists::adcsum, badcapID, baddigis, baddigisize, badFibBCNOff, bitUpset(), CalcEtaBin(), DigiHists::capid, DigiHists::capIDdiff, DigiHists::count_bad, DigiHists::count_good, DigiHists::count_presample, DigiHists::count_shape, DigiHists::count_shapeThresh, HcalBaseDQMonitor::currenttype_, digi_checkcapid_, digi_checkdigisize_, digi_checkdverr_, digierrorsdverr, DigiMonitor_ExpectedOrbitMessageTime_, DigiSize, digisize, DigiHists::dverr, errorSpigot, errorVME, alignCSCRings::ff, DigiHists::fibbcnoff, MonitorElement::Fill(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HFM_shape, HFP_shape, HFtiming_etaProfile, HFtiming_occupancy2D, HFtiming_totaltime2D, HT_HFM_, HT_HFP_, i, if(), isSiPM(), prof2calltree::last, HcalBaseDQMonitor::makeDiagnostics_, bookConverter::max, maxdigisizeHBHE_, maxdigisizeHF_, maxdigisizeHO_, min(), mindigisizeHBHE_, mindigisizeHF_, mindigisizeHO_, occupancyEta, occupancyEtaPhi, occupancyPhi, occupancySpigot, occupancyVME, HLT_25ns14e33_v1_cff::offset, HcalBaseDQMonitor::Online_, passedMinBiasHLT_, PedestalsByCapId_, pedSubtractedADC_, shapeThreshHB_, shapeThreshHE_, shapeThreshHF_, shapeThreshHO_, shutOffOrbitTest_, contentValuesCheck::ss, DigiHists::ThreshCount, DigiHists::tssumminus, DigiHists::tssumplus, and uniqcounter.

928 {
929  int err=0x0;
930  bool bitUp = false;
931  int ADCcount=0;
932 
933  int shapeThresh=0;
934 
935  int mindigisize=1;
936  int maxdigisize=10;
937 
938  if (digi.id().subdet()==HcalBarrel)
939  {
940  shapeThresh=shapeThreshHB_;
941  mindigisize=mindigisizeHBHE_;
942  maxdigisize=maxdigisizeHBHE_;
943  }
944  else if (digi.id().subdet()==HcalEndcap)
945  {
946  shapeThresh=shapeThreshHE_;
947  mindigisize=mindigisizeHBHE_;
948  maxdigisize=maxdigisizeHBHE_;
949  }
950  else if (digi.id().subdet()==HcalOuter)
951  {
952  shapeThresh=shapeThreshHO_;
953  mindigisize=mindigisizeHO_;
954  maxdigisize=maxdigisizeHO_;
955  }
956  else if (digi.id().subdet()==HcalForward)
957  {
958  shapeThresh=shapeThreshHF_;
959  mindigisize=mindigisizeHF_;
960  maxdigisize=maxdigisizeHF_;
961  }
962  int iEta = digi.id().ieta();
963  int iPhi = digi.id().iphi();
964  int iDepth = digi.id().depth();
965  int calcEta = CalcEtaBin(digi.id().subdet(),iEta,iDepth);
966 
967  // Check that digi size is correct
968  if (digi.size()<mindigisize || digi.size()>maxdigisize)
969  {
970  if (digi_checkdigisize_) err|=0x1;
971  ++baddigisize[calcEta][iPhi-1][iDepth-1];
972  }
973  // Check digi size; if > 20, increment highest bin of digisize array
974  if (digi.size()<20)
975  ++digisize[static_cast<int>(digi.size())][digi.id().subdet()-1];
976  else
977  ++digisize[19][digi.id().subdet()-1];
978 
979  // loop over time slices of digi to check capID and errors
980  ++h.count_presample[digi.presamples()];
981 
982  // Check CapID rotation
983  if (firstcap==-1) firstcap = digi.sample(0).capid();
984  int capdif = digi.sample(0).capid() - firstcap;
985  //capdif = capdif%3 - capdif/3; // unnecessary?
986  // capdif should run from -3 to +3
987  if (capdif >-4 && capdif<4)
988  ++h.capIDdiff[capdif+3];
989  else
990  ++h.capIDdiff[7];
991 
992  int last=-1;
993 
994  int offset = digi.fiberIdleOffset();
995 
996  // Only count BCN offset errors if ExpectedOrbitMessage Time is >-1
997  // For offline (and thus cfg default), this won't be checked, since
998  // we can't keep up to date with changes.
999  if (offset != -1000 && DigiMonitor_ExpectedOrbitMessageTime_>-1)
1000  {
1001  // increment counters only for non-zero offsets?
1002  ++h.fibbcnoff[offset + 7];
1003  if (offset != 0)
1004  {
1005  ++badFibBCNOff[calcEta][iPhi-1][iDepth-1];
1006  if (shutOffOrbitTest_ == false) err |= 0xF; // not an error if test turned off
1007  }
1008  }
1009 
1010  int tssum=0;
1011 
1012  bool digi_error=false;
1013 
1014  const int DigiSize=digi.size();
1015  for (int i=0;i<10;++i) pedSubtractedADC_[i]=0;
1016  const int pedSubADCsize=sizeof(pedSubtractedADC_)/sizeof(double);
1017 
1018  std::map<HcalDetId, std::vector<double> >::iterator foundID = PedestalsByCapId_.find(digi.id());
1019  for (int i=0;i<DigiSize;++i)
1020  {
1021  int thisCapid = digi.sample(i).capid();
1022  if (thisCapid>=0 && thisCapid<4) ++h.capid[thisCapid];
1023 
1024  if (makeDiagnostics_)
1025  {
1026  if(bitUpset(last,thisCapid)) bitUp=true; // checking capID rotation
1027  last = thisCapid;
1028  // Check for digi error bits
1029  if (digi_checkdverr_)
1030  {
1031  if(digi.sample(i).er()) err=(err|0x2);
1032  if(!digi.sample(i).dv()) err=(err|0x2);
1033  }
1034  if ((digi_error==false) && (digi.sample(i).er() || !digi.sample(i).dv()))
1035  {
1036  ++digierrorsdverr[calcEta][iPhi-1][iDepth-1];
1037  digi_error=true; // only count 1 error per digi in this plot
1038  }
1039  ++h.dverr[static_cast<int>(2*digi.sample(i).er()+digi.sample(i).dv())];
1040  } // if (makeDiagnostics_)
1041 
1042  h.count_shape[i]+=digi.sample(i).adc();
1043 
1044  // Calculate ADC sum of adjacent samples -- still necessary?
1045  if (i==digi.size()-1) continue;
1046  tssum= digi.sample(i).adc()+digi.sample(i+1).adc();
1047  if (tssum<50 && tssum>=0)
1048  {
1049  if (iEta>0)
1050  ++h.tssumplus[tssum][i];
1051  else
1052  ++h.tssumminus[tssum][i];
1053  }
1054 
1055  if (digi.sample(i).adc()<0) ++h.adc[0];
1056  else if (digi.sample(i).adc()<200) ++h.adc[digi.sample(i).adc()];
1057  else ++h.adc[199];
1058 
1059  if (i>=pedSubADCsize) continue; // don't exceed maximum array length when checking digis
1060 
1061  if (foundID!=PedestalsByCapId_.end())
1062  {
1063  pedSubtractedADC_[i]=digi.sample(i).adc()-(foundID->second)[thisCapid];
1064  ADCcount+=(int)(digi.sample(i).adc()-(foundID->second)[thisCapid]);
1065  }
1066  else
1067  {
1068  pedSubtractedADC_[i]=digi.sample(i).adc()-3;
1069  ADCcount+=digi.sample(i).adc()-3; // default pedestal subtraction of 3 ADC counts
1070  }
1071  } // for (int i=0;i<digi.size();++i)
1072 
1073  // capid error found
1074  if(bitUp)
1075  {
1076  if (digi_checkcapid_) err=(err|0x4);
1077  ++badcapID[calcEta][iPhi-1][iDepth-1];
1078  }
1079 
1080 
1081  // These plots generally don't get filled, unless we turn off the suppression of bad digis
1082  if (err>0)
1083  {
1084  if(uniqcounter[calcEta][iPhi-1][iDepth-1]<1)
1085  {
1086  ++h.count_bad;
1087  ++baddigis[calcEta][iPhi-1][iDepth-1];
1088  ++errorVME[static_cast<int>(2*(digi.elecId().htrSlot()+0.5*digi.elecId().htrTopBottom()))][static_cast<int>(digi.elecId().readoutVMECrateId())];
1089  ++errorSpigot[static_cast<int>(digi.elecId().spigot())][static_cast<int>(digi.elecId().dccid())];
1090  }
1091  uniqcounter[calcEta][iPhi-1][iDepth-1]++;
1092 
1093  return err;
1094  }
1095 
1096  if (ADCcount<0) ADCcount=0;
1097  if (ADCcount<199)
1098  ++h.adcsum[ADCcount];
1099  else
1100  ++h.adcsum[199]; // effective overflow bin
1101 
1102  // require larger threshold to look at pulse shapes
1103 
1104  if (ADCcount>shapeThresh && passedMinBiasHLT_ && HT_HFP_>1 && HT_HFM_>1)
1105  {
1106  h.ThreshCount->Fill(0,1);
1107  if (digi.id().subdet()!=HcalOuter || isSiPM(iEta,iPhi, iDepth)==false)
1108  {
1109  for (int i=0;i<pedSubADCsize;++i)
1111  }
1112  }
1113 
1114  // occupancy plots are only filled for good histograms
1115  ++h.count_good;
1116  ++occupancyEtaPhi[calcEta][iPhi-1][iDepth-1];
1117  ++occupancyEta[iEta+41];
1118  ++occupancyPhi[iPhi-1];
1119  // htr Slots run from 0-20, incremented by 0.5 for top/bottom
1120  ++occupancyVME[static_cast<int>(2*(digi.elecId().htrSlot()+0.5*digi.elecId().htrTopBottom()))][static_cast<int>(digi.elecId().readoutVMECrateId())];
1121  ++occupancySpigot[static_cast<int>(digi.elecId().spigot())][static_cast<int>(digi.elecId().dccid())];
1122 
1123  // Pawel's code for HF timing checks -- run only in online mode for non-calib events
1124  if (digi.id().subdet()==HcalForward
1125  && Online_ //only run online
1126  && currenttype_==0 // require non-calibration event
1127  && passedMinBiasHLT_ // require min bias trigger
1128  )
1129  {
1130  int maxtime=-1;
1131  double maxenergy=-1, fullenergy=0;
1132  int digisize=digi.size();
1133  for (int ff=0;ff<digisize;++ff)
1134  {
1135  fullenergy+=digi.sample(ff).nominal_fC()-2.5;
1136  if (digi.sample(ff).nominal_fC()-2.5>maxenergy)
1137  {
1138  maxenergy=digi.sample(ff).nominal_fC()-2.5;
1139  maxtime=ff;
1140  }
1141  }
1142 
1143  if (maxtime>=2 && maxtime<=5 && maxenergy>20 && maxenergy<100) // only look between time slices 2-5; anything else should be nonsense
1144  {
1145  for (int ff=0;ff<digisize;++ff){
1146  if(fullenergy>0){
1147  if(digi.id().ieta()>0)HFP_shape->Fill(ff,(digi.sample(ff).nominal_fC()-2.5)/fullenergy);
1148  if(digi.id().ieta()<0)HFM_shape->Fill(ff,(digi.sample(ff).nominal_fC()-2.5)/fullenergy);
1149  }
1150  }
1151 
1152  double time_den=0, time_num=0;
1153  // form weighted time sum
1154  int startslice=std::max(0,maxtime-1);
1155  int endslice=std::min(digisize-1,maxtime+1);
1156  for (int ss=startslice;ss<=endslice;++ss)
1157  {
1158  // subtract 'default' pedestal of 2.5 fC
1159  time_num+=ss*(digi.sample(ss).nominal_fC()-2.5);
1160  time_den+=digi.sample(ss).nominal_fC()-2.5;
1161  }
1162 
1163  int myiphi=iPhi;
1164  if (iDepth==2) ++myiphi;
1165  if (HFtiming_etaProfile!=0 && time_den!=0)
1166  HFtiming_etaProfile->Fill(iEta,time_num/time_den);
1167  if (HFtiming_totaltime2D!=0 && time_den!=0)
1168  HFtiming_totaltime2D->Fill(iEta,myiphi,time_num/time_den);
1169  if (HFtiming_occupancy2D!=0 && time_den!=0)
1170  HFtiming_occupancy2D->Fill(iEta,myiphi,1);
1171  } //maxtime>-1
1172  } // if HcalForward
1173 
1174  return err;
1175 } // template <class DIGI> int HcalDigiMonitor::process_Digi
bool passedMinBiasHLT_
Methods, variables accessible only within class code.
int i
Definition: DBlmapReader.cc:9
int capid[4]
int count_presample[50]
MonitorElement * HFtiming_occupancy2D
int occupancySpigot[40][36]
int tssumminus[50][10]
MonitorElement * DigiSize
MonitorElement * HFP_shape
int occupancyVME[40][18]
int errorVME[40][18]
MonitorElement * HFtiming_totaltime2D
MonitorElement * HFM_shape
int badcapID[85][72][4]
int fibbcnoff[15]
int badFibBCNOff[85][72][4]
int dverr[4]
int baddigis[85][72][4]
MonitorElement * ThreshCount
void Fill(long long x)
int adcsum[200]
std::map< HcalDetId, std::vector< double > > PedestalsByCapId_
int adc[200]
bool isSiPM(int ieta, int iphi, int depth)
int DigiMonitor_ExpectedOrbitMessageTime_
int baddigisize[85][72][4]
int digierrorsdverr[85][72][4]
uint64_t uniqcounter[85][72][4]
T min(T a, T b)
Definition: MathUtil.h:58
int errorSpigot[15][36]
static bool bitUpset(int last, int now)
MonitorElement * HFtiming_etaProfile
int CalcEtaBin(int subdet, int ieta, int depth)
int occupancyEtaPhi[85][72][4]
int tssumplus[50][10]
double count_shapeThresh[10]
int capIDdiff[8]
if(conf.exists("allCellsPositionCalc"))
int count_shape[10]
int digisize[20][4]
double pedSubtractedADC_[10]
void HcalDigiMonitor::processEvent ( const HBHEDigiCollection hbhe,
const HODigiCollection ho,
const HFDigiCollection hf,
const HcalDbService cond,
const HcalUnpackerReport report,
int  orN,
int  bcN 
)

Definition at line 635 of file HcalDigiMonitor.cc.

References funct::abs(), HcalUnpackerReport::bad_quality_begin(), HcalUnpackerReport::bad_quality_end(), baddigis, HcalUnpackerReport::badQualityDigis(), badunpackerreport, edm::SortedCollection< T, SORT >::begin(), CalcEtaBin(), DigiHists::count_bad, DigiHists::count_BQ, DigiHists::count_BQFrac, DigiHists::count_good, counter, HcalBaseDQMonitor::currentLS, HcalDetId::depth(), EtaPhiHists::depth, DIGI_BQ_FRAC_NBINS, DIGI_NUM, DIGI_SUBDET_NUM, DigiBQ, DigiBQFrac, DigiErrorOccupancyByDepth, DigiErrorsBadADCSum, DigiErrorsBadCapID, DigiErrorsBadDigiSize, DigiErrorsBadFibBCNOff, DigiErrorsByDepth, DigiErrorsDVErr, DigiErrorSpigot, DigiErrorsUnpacker, DigiErrorVME, DigiExpectedSize, DigiNum, diginum, DigiOccupancyEta, DigiOccupancyPhi, DigiOccupancySpigot, DigiOccupancyVME, DigiSize, DigiUnpackerErrorCount, DigiUnpackerErrorFrac, edm::SortedCollection< T, SORT >::end(), excludeBadQPLLs_, excludeHO1P02_, excludeHORing2_, MonitorElement::Fill(), h_invalid_bcn, h_invalid_orbitnumMod103, h_valid_digis, hbHists, HBocc_vs_LB, HcalBaseDQMonitor::HBpresent_, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, heHists, HEocc_vs_LB, HcalBaseDQMonitor::HEpresent_, hfHists, HFlumibad, HFocc_vs_LB, HcalBaseDQMonitor::HFpresent_, HO0bad, HO12bad, hoHists, HOocc_vs_LB, HcalBaseDQMonitor::HOpresent_, HBHEDataFrame::id(), HODataFrame::id(), HcalDetId::ieta(), HcalDetId::iphi(), isSiPM(), j, HcalBaseDQMonitor::KnownBadCells_, knownbadQPLLs, process_Digi(), edm::SortedCollection< T, SORT >::size(), HcalDetId::subdet(), uniqcounter2, MonitorElement::update(), and UpdateHists().

Referenced by analyze().

641 {
642 
643  // Skip events in which minimal good digis found -- still getting some strange (calib?) events through DQM
644 
646 
647  unsigned int allgooddigis= hbhe.size()+ho.size()+hf.size();
648 
649  // new data format in HCAL marks idle messages in the abort gap as bad capid.
650  // ignore this events. Also, sometimes there are many corrupted digis left
651  // from the QIE reset: ignore if in abort gap
652  if(bcN>=3446 && bcN<=3564)
653  if( (report.badQualityDigis()>100 && hbhe.size()==0) || (report.badQualityDigis()>1000) )
654  return;
655 
656  // bad threshold: ignore events in which bad outnumber good by more than 100:1
657  // (one RBX in HBHE seems to send valid data occasionally even on QIE resets, which is why we can't just require allgooddigis==0 when looking for events to skip)
658  if ((allgooddigis==0) ||
659  (1.*report.badQualityDigis()>100*allgooddigis))
660  {
661  h_valid_digis->Fill(1);
662  if (bcN>-1)
663  h_invalid_bcn->Fill(bcN);
664  if (orN>-1)
665  h_invalid_orbitnumMod103->Fill(orN%103);
666 
667  return;
668  }
669 
670  h_valid_digis->Fill(0);
671 
672  // hbHists.count_bad=0;
673  // hbHists.count_good=0;
674  // heHists.count_bad=0;
675  // heHists.count_good=0;
676  // hoHists.count_bad=0;
677  // hoHists.count_good=0;
678  // hfHists.count_bad=0;
679  // hfHists.count_good=0;
680 
681  // int HO0bad=0;
682  // int HO12bad=0;
683  // int HFlumibad=0;
684 
685  // Check unpacker report for bad digis
686 
687  typedef std::vector<DetId> DetIdVector;
688 
689  for ( DetIdVector::const_iterator baddigi_iter=report.bad_quality_begin();
690  baddigi_iter != report.bad_quality_end();
691  ++baddigi_iter)
692  {
693  HcalDetId id(baddigi_iter->rawId());
694  int rDepth = id.depth();
695  int rPhi = id.iphi();
696  int rEta = id.ieta();
697  int binEta = CalcEtaBin(id.subdet(), rEta, rDepth); // why is this here?
698 
699  if (binEta < 85 && binEta >= 0
700  && (rPhi-1) >= 0 && (rPhi-1)<72
701  && (rDepth-1) >= 0 && (rDepth-1)<4)
702  if(uniqcounter2[binEta][rPhi-1][rDepth-1]<1)
703  {
704  if (id.subdet()==HcalBarrel) ++hbHists.count_bad;
705  else if (id.subdet()==HcalEndcap) ++heHists.count_bad;
706  else if (id.subdet()==HcalForward)
707  {
708  ++hfHists.count_bad;
709  if (rDepth==1 && (abs(rEta)==33 || abs(rEta)==34)) ++HFlumibad;
710  else if (rDepth==2 && (abs(rEta)==35 || abs(rEta)==36)) ++HFlumibad;
711  }
712  else if (id.subdet()==HcalOuter)
713  {
714  // Mark HORing+/-2 channels as present, HO/YB+/-2 has HV off (at 100V).
715  if (excludeHORing2_==true && rDepth==4)
716  if (abs(rEta)>=11 && abs(rEta)<=15 && !isSiPM(rEta,rPhi,rDepth)) continue;
717 
718  if (excludeHO1P02_==true)
719  if( (rEta>4 && rEta<10) && (rPhi<=10 || rPhi>70) ) continue;
720 
721  if (KnownBadCells_.find(id)!=KnownBadCells_.end()) continue;
722 
723  ++hoHists.count_bad;
724  if (abs(rEta)<5) ++HO0bad;
725  else ++HO12bad;
726  }
727  else
728  continue; // skip anything that isn't HB, HE, HO, HF
729  // extra protection against nonsensical values -- prevents occasional crashes
730 
731  ++badunpackerreport[binEta][rPhi-1][rDepth-1];
732  ++baddigis[binEta][rPhi-1][rDepth-1];
733 
734  // QPLL unlocking channels, have to ignore unpacker errors (fix requires opening CMS)
735  bool HEM15A = true ? (id.subdet()==HcalEndcap && (rPhi>56 && rPhi<59 && rEta<0)) : false;
736  bool HEM15B = true ? (id.subdet()==HcalEndcap && (rPhi>54 && rPhi<57 && rEta<0)) : false;
737  bool HBP14A = true ? (id.subdet()==HcalBarrel && (rPhi>50 && rPhi<53 && rEta>0)) : false;
738 
739  if(excludeBadQPLLs_ && rDepth==1)
740  if( HEM15A || HEM15B || HBP14A )
741  ++knownbadQPLLs;
742 
743  uniqcounter2[binEta][rPhi-1][rDepth-1]++;
744  }
745  }
747 
748  int firsthbcap=-1;
749  int firsthecap=-1;
750  int firsthocap=-1;
751  int firsthfcap=-1;
752 
753  for (HBHEDigiCollection::const_iterator j=hbhe.begin(); j!=hbhe.end(); ++j)
754  {
755  const HBHEDataFrame digi = (const HBHEDataFrame)(*j);
756 
757  if (digi.id().subdet()==HcalBarrel)
758  {
759  if (!HBpresent_) continue;
760  if (KnownBadCells_.find(digi.id())!=KnownBadCells_.end()) continue;
761 
762  process_Digi(digi, hbHists, firsthbcap);
763 
764  }
765  else if (digi.id().subdet()==HcalEndcap)
766  {
767  if (!HEpresent_) continue;
768  process_Digi(digi, heHists,firsthecap);
769  }
770  }
771 
772  // // Fill good digis vs lumi block; also fill bad errors?
775 
776  // Calculate number of bad quality cells and bad quality fraction
778  {
780  if (counter<DIGI_SUBDET_NUM)
783  if (counter2<DIGI_SUBDET_NUM) ++hbHists.count_BQFrac[(int)counter2];
784  }
785 
787  {
788  int counter=heHists.count_bad;
789  if (counter<DIGI_SUBDET_NUM)
792  if (counter2<DIGI_SUBDET_NUM) ++heHists.count_BQFrac[int(counter2)];
793  }
794 
796  if (HOpresent_)
797  {
798  for (HODigiCollection::const_iterator j=ho.begin(); j!=ho.end(); ++j)
799  {
800  const HODataFrame digi = (const HODataFrame)(*j);
801  // Mark HORing+/-2 channels as present, HO/YB+/-2 has HV off (at 100V).
802  if (excludeHORing2_==true && digi.id().depth()==4)
803  if (abs(digi.id().ieta())>=11 && abs(digi.id().ieta())<=15 &&
804  !isSiPM(digi.id().ieta(),digi.id().iphi(),digi.id().depth())) continue;
805 
806  if (excludeHO1P02_==true)
807  if( (digi.id().ieta()>4 && digi.id().ieta()<10)
808  && (digi.id().iphi()<=10 || digi.id().iphi()>70) ) continue;
809 
810  if (KnownBadCells_.find(digi.id())!=KnownBadCells_.end()) continue;
811 
812  process_Digi(digi, hoHists, firsthocap);
813  } // for (HODigiCollection)
814 
815  if (hoHists.count_bad>0 || hoHists.count_good>0)
816  {
817  int counter=hoHists.count_bad;
818  if (counter<DIGI_SUBDET_NUM)
820 
822  if (counter2<DIGI_SUBDET_NUM) ++hoHists.count_BQFrac[int(counter2)];
823  }
825  } // if (HOpresent_)
826 
828  if (HFpresent_)
829  {
830  for (HFDigiCollection::const_iterator j=hf.begin(); j!=hf.end(); ++j)
831  {
832  const HFDataFrame digi = (const HFDataFrame)(*j);
833  process_Digi(digi, hfHists, firsthfcap);
834  } // for (HFDigiCollection)
835 
836  if (hfHists.count_bad>0 || hfHists.count_good>0)
837  {
838  int counter=hfHists.count_bad;
839  if (counter<DIGI_SUBDET_NUM)
842  if (counter2<DIGI_SUBDET_NUM) ++hfHists.count_BQFrac[int(counter2)];
843  }
845  } // if (HFpresent_)
846 
847  // This only counts digis that are present but bad somehow; it does not count digis that are missing
850 
851  if (count_good<DIGI_NUM)
852  ++diginum[count_good];
853 
854  // Fill bad quality histograms
855  DigiUnpackerErrorFrac->Fill(1.*report.badQualityDigis()/(report.badQualityDigis()+count_good));
856  DigiBQ->Fill(count_bad);
857  if (count_bad>0 || count_good>0)
858  DigiBQFrac->Fill(1.*count_bad/(count_bad+count_good));
859 
860  // Call 'update' on all histograms so that they update in online DQM
865 
866  // Now update global (non-subdetector-specific) histograms
867  DigiNum->update();
868  DigiErrorVME->update();
870  DigiBQ->update();
871  DigiBQFrac->update();
874 
875  // Update eta-phi hists
876  for (unsigned int zz=0;zz<DigiErrorOccupancyByDepth.depth.size();++zz)
877  DigiErrorOccupancyByDepth.depth[zz]->update();
878  for (unsigned int zz=0;zz<DigiErrorsByDepth.depth.size();++zz)
879  DigiErrorsByDepth.depth[zz]->update();
880  for (unsigned int zz=0;zz<DigiErrorsBadCapID.depth.size();++zz)
881  DigiErrorsBadCapID.depth[zz]->update();
882  for (unsigned int zz=0;zz<DigiErrorsDVErr.depth.size();++zz)
883  DigiErrorsDVErr.depth[zz]->update();
884  for (unsigned int zz=0;zz<DigiErrorsBadDigiSize.depth.size();++zz)
885  DigiErrorsBadDigiSize.depth[zz]->update();
886  for (unsigned int zz=0;zz<DigiErrorsBadADCSum.depth.size();++zz)
887  DigiErrorsBadADCSum.depth[zz]->update();
888  for (unsigned int zz=0;zz<DigiErrorsUnpacker.depth.size();++zz)
889  DigiErrorsUnpacker.depth[zz]->update();
890  for (unsigned int zz=0;zz<DigiErrorsBadFibBCNOff.depth.size();++zz)
891  DigiErrorsBadFibBCNOff.depth[zz]->update();
892 
897  DigiSize->update();
899 
900  // // Fill problems vs. lumi block plots
901  // ProblemsVsLB->Fill(currentLS,count_bad);
902  // ProblemsVsLB_HB->Fill(currentLS,hbHists.count_bad);
903  // ProblemsVsLB_HE->Fill(currentLS,heHists.count_bad);
904  // ProblemsVsLB_HO->Fill(currentLS,hoHists.count_bad);
905  // ProblemsVsLB_HF->Fill(currentLS,hfHists.count_bad);
906  // ProblemsVsLB_HBHEHF->Fill(currentLS,hbHists.count_bad+heHists.count_bad+hfHists.count_bad);
907 
908  // // Fill the number of problem digis in each channel
909  // ProblemsCurrentLB->Fill(-1,-1,1); // event counter
910  // ProblemsCurrentLB->Fill(0,0,hbHists.count_bad);
911  // ProblemsCurrentLB->Fill(1,0,heHists.count_bad);
912  // ProblemsCurrentLB->Fill(2,0,hoHists.count_bad);
913  // ProblemsCurrentLB->Fill(3,0,hfHists.count_bad);
914  // ProblemsCurrentLB->Fill(4,0,HO0bad);
915  // ProblemsCurrentLB->Fill(5,0,HO12bad);
916  // ProblemsCurrentLB->Fill(6,0,HFlumibad);
917 
918  // Call fill method every checkNevents
919  //fill_Nevents();
920 
921  return;
922 } // void HcalDigiMonitor::processEvent(...)
MonitorElement * h_invalid_bcn
MonitorElement * DigiBQFrac
EtaPhiHists DigiErrorsDVErr
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:30
MonitorElement * DigiSize
std::map< unsigned int, int > KnownBadCells_
EtaPhiHists DigiErrorOccupancyByDepth
#define DIGI_BQ_FRAC_NBINS
std::vector< HBHEDataFrame >::const_iterator const_iterator
int count_BQ[2593]
void update(void)
Mark the object updated.
MonitorElement * DigiOccupancyEta
MonitorElement * DigiErrorVME
MonitorElement * DigiOccupancyVME
MonitorElement * DigiNum
MonitorElement * HOocc_vs_LB
const HcalDetId & id() const
Definition: HODataFrame.h:23
int baddigis[85][72][4]
void Fill(long long x)
MonitorElement * DigiErrorSpigot
EtaPhiHists DigiErrorsBadFibBCNOff
void UpdateHists(DigiHists &h)
bool isSiPM(int ieta, int iphi, int depth)
int depth() const
get the tower depth
Definition: HcalDetId.h:40
std::vector< MonitorElement * > depth
MonitorElement * HBocc_vs_LB
#define DIGI_SUBDET_NUM
int ieta() const
get the cell ieta
Definition: HcalDetId.h:36
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int j
Definition: DBlmapReader.cc:9
DetIdVector::const_iterator bad_quality_begin() const
MonitorElement * HFocc_vs_LB
int process_Digi(T &digi, DigiHists &hist, int &firstcap)
uint64_t uniqcounter2[85][72][4]
const_iterator end() const
MonitorElement * DigiBQ
MonitorElement * DigiUnpackerErrorCount
MonitorElement * HEocc_vs_LB
int iphi() const
get the cell iphi
Definition: HcalDetId.h:38
EtaPhiHists DigiErrorsBadDigiSize
#define DIGI_NUM
MonitorElement * DigiOccupancySpigot
EtaPhiHists DigiErrorsBadADCSum
int CalcEtaBin(int subdet, int ieta, int depth)
MonitorElement * h_invalid_orbitnumMod103
int badQualityDigis() const
size_type size() const
MonitorElement * h_valid_digis
static std::atomic< unsigned int > counter
const HcalDetId & id() const
Definition: HBHEDataFrame.h:22
MonitorElement * DigiUnpackerErrorFrac
EtaPhiHists DigiErrorsBadCapID
int badunpackerreport[85][72][4]
int count_BQFrac[101]
MonitorElement * DigiExpectedSize
EtaPhiHists DigiErrorsByDepth
EtaPhiHists DigiErrorsUnpacker
const_iterator begin() const
DetIdVector::const_iterator bad_quality_end() const
MonitorElement * DigiOccupancyPhi
void HcalDigiMonitor::reset ( void  )
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 1733 of file HcalDigiMonitor.cc.

References DigiHists::ADC, DigiHists::ADCsum, alarmer_counter_, DigiHists::BQ, DigiHists::BQFrac, DigiHists::CapID, DigiBQ, DigiBQFrac, DigiErrorOccupancyByDepth, DigiErrorsBadADCSum, DigiErrorsBadCapID, DigiErrorsBadDigiSize, DigiErrorsBadFibBCNOff, DigiErrorsByDepth, DigiErrorsDVErr, DigiErrorSpigot, DigiErrorsUnpacker, DigiErrorVME, DigiHists::DigiFirstCapID, DigiNum, DigiOccupancyByDepth, DigiOccupancyEta, DigiOccupancyPhi, DigiOccupancySpigot, DigiOccupancyVME, DigiUnpackerErrorCount, DigiUnpackerErrorFrac, DigiHists::DVerr, DigiHists::fibBCNOff, hbhedcsON, hbHists, heHists, hfdcsON, hfHists, hoHists, i, knownbadQPLLs, DigiHists::presample, ProblemDigisInLastNLB_HBHEHF_alarm, EtaPhiHists::Reset(), MonitorElement::Reset(), DigiHists::shape, DigiHists::shapeThresh, DigiHists::TS_sum_minus, DigiHists::TS_sum_plus, and zeroCounters().

Referenced by bookHistograms(), and setup().

1734 {
1735  // reset the temporary histograms
1736  zeroCounters();
1737 
1738  // then reset the MonitorElements
1739 
1741  alarmer_counter_ = 0;
1742  knownbadQPLLs = 0;
1743 
1744  hbhedcsON = true; hfdcsON = true;
1745 
1755 
1760  DigiErrorVME->Reset();
1762 
1763  DigiBQ->Reset();
1764  DigiBQFrac->Reset();
1767 
1768  DigiNum->Reset();
1769 
1770  hbHists.shape->Reset();
1772  hbHists.presample->Reset();
1773  hbHists.BQ->Reset();
1774  hbHists.BQFrac->Reset();
1776  hbHists.DVerr->Reset();
1777  hbHists.CapID->Reset();
1778  hbHists.ADC->Reset();
1779  hbHists.ADCsum->Reset();
1780  hbHists.fibBCNOff->Reset();
1781  for (unsigned int i=0;i<hbHists.TS_sum_plus.size();++i)
1782  hbHists.TS_sum_plus[i]->Reset();
1783  for (unsigned int i=0;i<hbHists.TS_sum_minus.size();++i)
1784  hbHists.TS_sum_minus[i]->Reset();
1785 
1786  heHists.shape->Reset();
1788  heHists.presample->Reset();
1789  heHists.BQ->Reset();
1790  heHists.BQFrac->Reset();
1792  heHists.DVerr->Reset();
1793  heHists.CapID->Reset();
1794  heHists.ADC->Reset();
1795  heHists.ADCsum->Reset();
1796  heHists.fibBCNOff->Reset();
1797  for (unsigned int i=0;i<heHists.TS_sum_plus.size();++i)
1798  heHists.TS_sum_plus[i]->Reset();
1799  for (unsigned int i=0;i<heHists.TS_sum_minus.size();++i)
1800  heHists.TS_sum_minus[i]->Reset();
1801 
1802  hoHists.shape->Reset();
1804  hoHists.presample->Reset();
1805  hoHists.BQ->Reset();
1806  hoHists.BQFrac->Reset();
1808  hoHists.DVerr->Reset();
1809  hoHists.CapID->Reset();
1810  hoHists.ADC->Reset();
1811  hoHists.ADCsum->Reset();
1812  hoHists.fibBCNOff->Reset();
1813  for (unsigned int i=0;i<hoHists.TS_sum_plus.size();++i)
1814  hoHists.TS_sum_plus[i]->Reset();
1815  for (unsigned int i=0;i<hoHists.TS_sum_minus.size();++i)
1816  hoHists.TS_sum_minus[i]->Reset();
1817 
1818  hfHists.shape->Reset();
1820  hfHists.presample->Reset();
1821  hfHists.BQ->Reset();
1822  hfHists.BQFrac->Reset();
1824  hfHists.DVerr->Reset();
1825  hfHists.CapID->Reset();
1826  hfHists.ADC->Reset();
1827  hfHists.ADCsum->Reset();
1828  hfHists.fibBCNOff->Reset();
1829  for (unsigned int i=0;i<hfHists.TS_sum_plus.size();++i)
1830  hfHists.TS_sum_plus[i]->Reset();
1831  for (unsigned int i=0;i<hfHists.TS_sum_minus.size();++i)
1832  hfHists.TS_sum_minus[i]->Reset();
1833 
1834  return;
1835 }
int i
Definition: DBlmapReader.cc:9
MonitorElement * DigiBQFrac
MonitorElement * ADC
EtaPhiHists DigiErrorsDVErr
MonitorElement * shape
MonitorElement * BQ
MonitorElement * shapeThresh
void Reset(void)
EtaPhiHists DigiErrorOccupancyByDepth
MonitorElement * DigiOccupancyEta
MonitorElement * DigiErrorVME
MonitorElement * DigiOccupancyVME
MonitorElement * DigiNum
MonitorElement * DigiErrorSpigot
EtaPhiHists DigiErrorsBadFibBCNOff
std::vector< MonitorElement * > TS_sum_minus
std::vector< MonitorElement * > TS_sum_plus
MonitorElement * DigiBQ
MonitorElement * DigiUnpackerErrorCount
MonitorElement * ADCsum
EtaPhiHists DigiErrorsBadDigiSize
MonitorElement * fibBCNOff
MonitorElement * DigiOccupancySpigot
EtaPhiHists DigiErrorsBadADCSum
MonitorElement * DVerr
MonitorElement * CapID
MonitorElement * DigiUnpackerErrorFrac
MonitorElement * DigiFirstCapID
EtaPhiHists DigiErrorsBadCapID
EtaPhiHists DigiOccupancyByDepth
MonitorElement * BQFrac
MonitorElement * presample
void Reset(void)
reset ME (ie. contents, errors, etc)
EtaPhiHists DigiErrorsByDepth
EtaPhiHists DigiErrorsUnpacker
MonitorElement * DigiOccupancyPhi
MonitorElement * ProblemDigisInLastNLB_HBHEHF_alarm
void HcalDigiMonitor::setup ( DQMStore::IBooker ib)
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 161 of file HcalDigiMonitor.cc.

References bins_cellcount_new, bins_fraccount_new, DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::bookInt(), DQMStore::IBooker::bookProfile(), gather_cfg::cout, HcalBaseDQMonitor::debug_, DIGI_NUM, DigiBQ, DigiBQFrac, DigiErrorsBadCapID, DigiErrorsBadDigiSize, DigiErrorsBadFibBCNOff, DigiErrorsByDepth, DigiErrorsDVErr, DigiErrorSpigot, DigiErrorsUnpacker, DigiErrorVME, DigiExpectedSize, DigiMonitor_ExpectedOrbitMessageTime_, DigiNum, DigiOccupancyByDepth, DigiOccupancyEta, DigiOccupancyPhi, DigiOccupancySpigot, DigiOccupancyVME, DigiSize, DigiUnpackerErrorCount, DigiUnpackerErrorFrac, MonitorElement::Fill(), h_invalid_bcn, h_invalid_orbitnumMod103, h_valid_digis, hbHists, HBocc_vs_LB, heHists, HEocc_vs_LB, hfHists, HFM_shape, HFocc_vs_LB, HFP_shape, HFtiming_etaProfile, HFtiming_occupancy2D, HFtiming_totaltime2D, hoHists, HOocc_vs_LB, HcalBaseDQMonitor::makeDiagnostics_, mergeVDriftHistosByStation::name, pileupCalc::nbins, HcalBaseDQMonitor::NLumiBlocks_, HcalBaseDQMonitor::Online_, ProblemDigisInLastNLB_HBHEHF_alarm, HcalBaseDQMonitor::ProblemsVsLB, HcalBaseDQMonitor::ProblemsVsLB_HB, HcalBaseDQMonitor::ProblemsVsLB_HBHEHF, HcalBaseDQMonitor::ProblemsVsLB_HE, HcalBaseDQMonitor::ProblemsVsLB_HF, HcalBaseDQMonitor::ProblemsVsLB_HO, reset(), MonitorElement::setAxisTitle(), MonitorElement::setBinLabel(), DQMStore::IBooker::setCurrentFolder(), HcalBaseDQMonitor::setup(), setupDone_, HcalBaseDQMonitor::SetupEtaPhiHists(), setupSubdetHists(), shapeThresh_, shapeThreshHB_, shapeThreshHE_, shapeThreshHF_, shapeThreshHO_, HcalDCCHeader::SPIGOT_COUNT, and HcalBaseDQMonitor::subdir_.

Referenced by bookHistograms().

162 {
163  if (setupDone_)
164  return;
165  setupDone_=true;
166  // Call base class setup
168 
169  /******* Set up all histograms ********/
170  if (debug_>1)
171  std::cout <<"<HcalDigiMonitor::setup> Setting up histograms"<<std::endl;
172 
173  std::ostringstream name;
175 
176  ib.setCurrentFolder(subdir_+"digi_parameters");
177  MonitorElement* ExpectedOrbit = ib.bookInt("ExpectedOrbitMessageTime");
179 
180  MonitorElement* shapeT = ib.bookInt("DigiShapeThresh");
181  shapeT->Fill(shapeThresh_);
182  MonitorElement* shapeTHB = ib.bookInt("DigiShapeThreshHB");
183  shapeTHB->Fill(shapeThreshHB_);
184  MonitorElement* shapeTHE = ib.bookInt("DigiShapeThreshHE");
185  shapeTHE->Fill(shapeThreshHE_);
186  MonitorElement* shapeTHO = ib.bookInt("DigiShapeThreshHO");
187  shapeTHO->Fill(shapeThreshHO_);
188  MonitorElement* shapeTHF = ib.bookInt("DigiShapeThreshHF");
189  shapeTHF->Fill(shapeThreshHF_);
190 
191  ib.setCurrentFolder(subdir_+"bad_digis/bad_digi_occupancy");
192  SetupEtaPhiHists(ib,DigiErrorsByDepth,"Bad Digi Map","");
193  ib.setCurrentFolder(subdir_+"bad_digis/1D_digi_plots");
194  ProblemsVsLB=ib.bookProfile("BadDigisVsLB","Number Bad Digis vs Luminosity block;Lumi block;# of Bad digis",
195  NLumiBlocks_,0.5,NLumiBlocks_+0.5,100,0,10000);
196  ProblemsVsLB_HB=ib.bookProfile("HB Bad Quality Digis vs LB","HB Bad Quality Digis vs Luminosity Block",
197  NLumiBlocks_,0.5,NLumiBlocks_+0.5,
198  100,0,10000);
199  ProblemsVsLB_HE=ib.bookProfile("HE Bad Quality Digis vs LB","HE Bad Quality Digis vs Luminosity Block",
200  NLumiBlocks_,0.5,NLumiBlocks_+0.5,
201  100,0,10000);
202  ProblemsVsLB_HO=ib.bookProfile("HO Bad Quality Digis vs LB","HO Bad Quality Digis vs Luminosity Block",
203  NLumiBlocks_,0.5,NLumiBlocks_+0.5,
204  100,0,10000);
205  ProblemsVsLB_HF=ib.bookProfile("HF Bad Quality Digis vs LB","HF Bad Quality Digis vs Luminosity Block",
206  NLumiBlocks_,0.5,NLumiBlocks_+0.5,
207  100,0,10000);
208  ProblemsVsLB_HBHEHF=ib.bookProfile("HBHEHF Bad Quality Digis vs LB","HBHEHF Bad Quality Digis vs Luminosity Block",
209  NLumiBlocks_,0.5,NLumiBlocks_+0.5,
210  100,0,10000);
211 
212  ProblemDigisInLastNLB_HBHEHF_alarm=ib.book1D("ProblemDigisInLastNLB_HBHEHF_alarm",
213  "Total Number of ProblemDigis HBHEHF in last 10 LS. Last bin contains OverFlow",
214  100,0,100);
215 
216 
217  if (makeDiagnostics_)
218  {
219  // by default, unpacked digis won't have these errors
220  ib.setCurrentFolder(subdir_+"diagnostics/bad_digis/badcapID");
221  SetupEtaPhiHists(ib,DigiErrorsBadCapID," Digis with Bad Cap ID Rotation", "");
222  ib.setCurrentFolder(subdir_+"diagnostics/bad_digis/data_invalid_error");
223  SetupEtaPhiHists(ib,DigiErrorsDVErr," Digis with Data Invalid or Error Bit Set", "");
224  }
225 
226  if (Online_)
227  {
228  // Special histograms for Pawel's timing study
229  ib.setCurrentFolder(subdir_+"HFTimingStudy");
230  HFtiming_etaProfile=ib.bookProfile("HFTiming_etaProfile","HFTiming Eta Profile;ieta;average time (time slice)",83,-41.5,41.5,200,0,10);
231  HFP_shape=ib.book1D("HFP_signal_shape","HFP signal shape",10,-0.5,9.5);
232  HFM_shape=ib.book1D("HFM_signal_shape","HFM signal shape",10,-0.5,9.5);
233  ib.setCurrentFolder(subdir_+"HFTimingStudy/sumplots");
234  HFtiming_totaltime2D=ib.book2D("HFTiming_Total_Time","HFTiming Total Time",83,-41.5,41.5,72,0.5,72.5);
235  HFtiming_occupancy2D=ib.book2D("HFTiming_Occupancy","HFTiming Occupancy",83,-41.5,41.5,72,0.5,72.5);
236  }
237 
238  ib.setCurrentFolder(subdir_+"bad_digis/bad_reportUnpackerErrors");
239  SetupEtaPhiHists(ib,DigiErrorsUnpacker," Bad Unpacker Digis", "");
240 
241  ib.setCurrentFolder(subdir_+"bad_digis/baddigisize");
242  SetupEtaPhiHists(ib,DigiErrorsBadDigiSize," Digis with Bad Size", "");
243 
244  ib.setCurrentFolder(subdir_+"digi_info");
245 
246  h_valid_digis=ib.book1D("ValidEvents","Events with minimum number of valid digis",2,-0.5,1.5);
247  h_valid_digis->setBinLabel(1,"Valid");
248  h_valid_digis->setBinLabel(2,"Invalid");
249 
250  h_invalid_orbitnumMod103=ib.book1D("InvalidDigiEvents_ORN","Orbit Number (mod 103) for Events with Many Unpacker Errors",103,-0.5,102.5);
251  h_invalid_bcn=ib.book1D("InvalidDigiEvents_BCN","Bunch Crossing Number fo Events with Many Unpacker Errors",3464,-0.5,3563.5);
252 
253  DigiSize = ib.book2D("Digi Size", "Digi Size",4,0,4,20,-0.5,19.5);
254  DigiSize->setBinLabel(1,"HB",1);
255  DigiSize->setBinLabel(2,"HE",1);
256  DigiSize->setBinLabel(3,"HO",1);
257  DigiSize->setBinLabel(4,"HF",1);
258  DigiSize->setAxisTitle("Subdetector",1);
259  DigiSize->setAxisTitle("Digi Size",2);
260 
261  DigiExpectedSize = ib.book2D("Digi Expected Size", "Digi Expected Size",3,0,3,20,-0.5,19.5);
262  DigiExpectedSize->setBinLabel(1,"HBHE",1);
263  DigiExpectedSize->setBinLabel(2,"HO",1);
264  DigiExpectedSize->setBinLabel(3,"HF",1);
265  DigiExpectedSize->setAxisTitle("Subdetector",1);
266  DigiExpectedSize->setAxisTitle("Digi Expected Size from HTR",2);
267 
268  ib.setCurrentFolder(subdir_+"bad_digis/badfibBCNoff");
269  SetupEtaPhiHists(ib,DigiErrorsBadFibBCNOff," Digis with non-zero Fiber Orbit Msg Idle BCN Offsets", "");
270 
271  ib.setCurrentFolder(subdir_+"good_digis/1D_digi_plots");
272  HBocc_vs_LB=ib.bookProfile("HBoccVsLB","HB digi occupancy vs Luminosity Block;Lumi block;# of Good digis",
273  NLumiBlocks_,0.5,NLumiBlocks_+0.5,
274  0,2600);
275  HEocc_vs_LB=ib.bookProfile("HEoccVsLB","HE digi occupancy vs Luminosity Block;Lumi block;# of Good digis",
276  NLumiBlocks_,0.5,NLumiBlocks_+0.5,
277  0,2600);
278  HOocc_vs_LB=ib.bookProfile("HOoccVsLB","HO digi occupancy vs Luminosity Block;Lumi block;# of Good digis",
279  NLumiBlocks_,0.5,NLumiBlocks_+0.5,
280  0,2200);
281  HFocc_vs_LB=ib.bookProfile("HFoccVsLB","HF digi occupancy vs Luminosity Block;Lumi block;# of Good digis",
282  NLumiBlocks_,0.5,NLumiBlocks_+0.5,
283  0,1800);
284 
285  ib.setCurrentFolder(subdir_+"good_digis/digi_occupancy");
286  SetupEtaPhiHists(ib,DigiOccupancyByDepth," Digi Eta-Phi Occupancy Map","");
287  DigiOccupancyPhi= ib.book1D("Digi Phi Occupancy Map",
288  "Digi Phi Occupancy Map;i#phi;# of Events",
289  72,0.5,72.5);
290  DigiOccupancyEta= ib.book1D("Digi Eta Occupancy Map",
291  "Digi Eta Occupancy Map;i#eta;# of Events",
292  83,-41.5,41.5);
293  DigiOccupancyVME = ib.book2D("Digi VME Occupancy Map",
294  "Digi VME Occupancy Map;HTR Slot;VME Crate Id",
295  40,-0.25,19.75,36,-0.5,35.5);
296 
297  DigiOccupancySpigot = ib.book2D("Digi Spigot Occupancy Map",
298  "Digi Spigot Occupancy Map;Spigot;DCC Id",
300  36,-0.5,35.5);
301 
302  ib.setCurrentFolder(subdir_+"bad_digis/bad_digi_occupancy");
303  DigiErrorVME = ib.book2D("Digi VME Error Map",
304  "Digi VME Error Map;HTR Slot;VME Crate Id",
305  40,-0.25,19.75,18,-0.5,17.5);
306 
307  DigiErrorSpigot = ib.book2D("Digi Spigot Error Map",
308  "Digi Spigot Error Map;Spigot;DCC Id",
310  36,-0.5,35.5);
311 
312  ib.setCurrentFolder(subdir_+"bad_digis");
313  int nbins = sizeof(bins_cellcount_new)/sizeof(float)-1;
314 
315  DigiBQ = ib.book1D("NumBadQualDigis","Number Bad Qual Digis within Digi Collection",nbins, bins_cellcount_new);
316 
317  nbins=sizeof(bins_fraccount_new)/sizeof(float)-1;
318 
319  DigiBQFrac = ib.book1D("Bad Digi Fraction","Bad Digi Fraction;Bad Quality Digi Fraction for digis in collection; # of Events",
320  nbins, bins_fraccount_new);
321 
322  nbins = sizeof(bins_cellcount_new)/sizeof(float)-1;
323  DigiUnpackerErrorCount = ib.book1D("Unpacker Error Count", "Number of Bad Digis from Unpacker; Bad Unpacker Digis; # of Events",nbins, bins_cellcount_new);
324 
325  nbins=sizeof(bins_fraccount_new)/sizeof(float)-1;
326  DigiUnpackerErrorFrac = ib.book1D("Unpacker Bad Digi Fraction",
327  "Bad Digis From Unpacker/ (Bad Digis From Unpacker + Good Digis); Bad Unpacker Fraction; # of Events",
328  nbins,bins_fraccount_new);
329 
330  ib.setCurrentFolder(subdir_+"good_digis/");
331  DigiNum = ib.book1D("NumGoodDigis","Number of Digis;# of Good Digis;# of Events",DIGI_NUM+1,-0.5,DIGI_NUM+1-0.5);
332 
333  setupSubdetHists(ib,hbHists,"HB");
334  setupSubdetHists(ib,heHists,"HE");
335  setupSubdetHists(ib,hoHists,"HO");
336  setupSubdetHists(ib,hfHists,"HF");
337 
338  this->reset();
339  return;
340 } // void HcalDigiMonitor::setup()
MonitorElement * h_invalid_bcn
MonitorElement * DigiBQFrac
MonitorElement * HFtiming_occupancy2D
EtaPhiHists DigiErrorsDVErr
MonitorElement * DigiSize
MonitorElement * HFP_shape
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:157
MonitorElement * ProblemsVsLB_HF
MonitorElement * HFtiming_totaltime2D
MonitorElement * HFM_shape
MonitorElement * bookInt(Args &&...args)
Definition: DQMStore.h:103
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * DigiOccupancyEta
MonitorElement * DigiErrorVME
MonitorElement * DigiOccupancyVME
MonitorElement * DigiNum
MonitorElement * HOocc_vs_LB
void Fill(long long x)
MonitorElement * DigiErrorSpigot
EtaPhiHists DigiErrorsBadFibBCNOff
void SetupEtaPhiHists(DQMStore::IBooker &ib, EtaPhiHists &hh, std::string Name, std::string Units)
int DigiMonitor_ExpectedOrbitMessageTime_
MonitorElement * HBocc_vs_LB
MonitorElement * ProblemsVsLB_HBHEHF
MonitorElement * ProblemsVsLB_HB
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
const float bins_cellcount_new[]
MonitorElement * HFocc_vs_LB
MonitorElement * DigiBQ
MonitorElement * DigiUnpackerErrorCount
MonitorElement * HEocc_vs_LB
EtaPhiHists DigiErrorsBadDigiSize
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
#define DIGI_NUM
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
MonitorElement * DigiOccupancySpigot
MonitorElement * HFtiming_etaProfile
MonitorElement * ProblemsVsLB_HE
MonitorElement * h_invalid_orbitnumMod103
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
MonitorElement * h_valid_digis
void setupSubdetHists(DQMStore::IBooker &ib, DigiHists &hist, std::string subdet)
tuple cout
Definition: gather_cfg.py:121
MonitorElement * DigiUnpackerErrorFrac
EtaPhiHists DigiErrorsBadCapID
MonitorElement * ProblemsVsLB_HO
EtaPhiHists DigiOccupancyByDepth
MonitorElement * ProblemsVsLB
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * DigiExpectedSize
virtual void setup(DQMStore::IBooker &)
EtaPhiHists DigiErrorsByDepth
EtaPhiHists DigiErrorsUnpacker
const float bins_fraccount_new[]
MonitorElement * DigiOccupancyPhi
MonitorElement * ProblemDigisInLastNLB_HBHEHF_alarm
void HcalDigiMonitor::setupSubdetHists ( DQMStore::IBooker ib,
DigiHists hist,
std::string  subdet 
)
private

Definition at line 405 of file HcalDigiMonitor.cc.

References DigiHists::ADC, DigiHists::ADCsum, DQMStore::IBooker::book1D(), DigiHists::BQ, DigiHists::BQFrac, DigiHists::CapID, DIGI_BQ_FRAC_NBINS, DigiHists::DigiFirstCapID, DigiHists::DVerr, DigiHists::fibBCNOff, mergeVDriftHistosByStation::name, DigiHists::presample, MonitorElement::setBinLabel(), DQMStore::IBooker::setCurrentFolder(), DigiHists::shape, DigiHists::shapeThresh, HcalBaseDQMonitor::subdir_, DigiHists::ThreshCount, DigiHists::TS_sum_minus, and DigiHists::TS_sum_plus.

Referenced by setup().

406 {
407  std::stringstream name;
408  int nChan=0;
409  if (subdet=="HB" || subdet=="HE") nChan=2592;
410  else if (subdet == "HO") nChan=2160;
411  else if (subdet == "HF") nChan=1728;
412 
413  ib.setCurrentFolder(subdir_+"digi_info/"+subdet);
414  hist.shape = ib.book1D(subdet+" Digi Shape",subdet+" Digi Shape;Time Slice",10,-0.5,9.5);
415  hist.shapeThresh = ib.book1D(subdet+" Digi Shape - over thresh",
416  subdet+" Digi Shape - over thresh passing trigger and HF HT cuts;Time slice",
417  10,-0.5,9.5);
418  hist.ThreshCount = ib.book1D(subdet+" Total Digis Over Threshold",
419  subdet+" Total Digis Over Threshold",
420  1,-0.5,0.5);
421  // Create plots of sums of adjacent time slices
422  for (int ts=0;ts<9;++ts)
423  {
424  name<<subdet<<" Plus Time Slices "<<ts<<" and "<<ts+1;
425  hist.TS_sum_plus.push_back(ib.book1D(name.str().c_str(),name.str().c_str(),50, 0., 50.));
426  name.str("");
427  name<<subdet<<" Minus Time Slices "<<ts<<" and "<<ts+1;
428  hist.TS_sum_minus.push_back(ib.book1D(name.str().c_str(),name.str().c_str(),50, 0., 50.));
429  name.str("");
430  }
431  hist.presample= ib.book1D(subdet+" Digi Presamples",subdet+" Digi Presamples",50,-0.5,49.5);
432  hist.BQ = ib.book1D(subdet+" Bad Quality Digis",subdet+" Bad Quality Digis",nChan+1,-0.5,nChan+0.5);
433  //(hist.BQ->getTH1F())->LabelsOption("v");
434  hist.BQFrac = ib.book1D(subdet+" Bad Quality Digi Fraction",subdet+" Bad Quality Digi Fraction",DIGI_BQ_FRAC_NBINS,(0-0.5/(DIGI_BQ_FRAC_NBINS-1)),1+0.5/(DIGI_BQ_FRAC_NBINS-1));
435  hist.DigiFirstCapID = ib.book1D(subdet+" Capid 1st Time Slice",subdet+" Capid for 1st Time Slice;CapId (T0)- 1st CapId (T0);# of Events",7,-3.5,3.5);
436 
437  hist.DVerr = ib.book1D(subdet+" Data Valid Err Bits",subdet+" QIE Data Valid Err Bits",4,-0.5,3.5);
438  hist.DVerr ->setBinLabel(1,"Err=0, DV=0",1);
439  hist.DVerr ->setBinLabel(2,"Err=0, DV=1",1);
440  hist.DVerr ->setBinLabel(3,"Err=1, DV=0",1);
441  hist.DVerr ->setBinLabel(4,"Err=1, DV=1",1);
442  hist.CapID = ib.book1D(subdet+" CapID",subdet+" CapID",4,-0.5,3.5);
443  hist.ADC = ib.book1D(subdet+" ADC count per time slice",subdet+" ADC count per time slice",200,-0.5,199.5);
444  hist.ADCsum = ib.book1D(subdet+" ADC sum", subdet+" ADC sum",200,-0.5,199.5);
445  hist.fibBCNOff = ib.book1D(subdet+" Fiber Orbit Message Idle BCN Offset", subdet+" Fiber Orbit Message Idle BCN Offset;Offset from Expected",
446  15, -7.5, 7.5);
447 }
MonitorElement * ADC
MonitorElement * shape
MonitorElement * BQ
MonitorElement * shapeThresh
#define DIGI_BQ_FRAC_NBINS
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * ThreshCount
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
std::vector< MonitorElement * > TS_sum_minus
std::vector< MonitorElement * > TS_sum_plus
MonitorElement * ADCsum
MonitorElement * fibBCNOff
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * DVerr
MonitorElement * CapID
MonitorElement * DigiFirstCapID
MonitorElement * BQFrac
MonitorElement * presample
void HcalDigiMonitor::UpdateHists ( DigiHists h)
private

Definition at line 1711 of file HcalDigiMonitor.cc.

References DigiHists::ADC, DigiHists::ADCsum, DigiHists::BQ, DigiHists::BQFrac, DigiHists::CapID, DigiHists::DigiFirstCapID, DigiHists::DVerr, DigiHists::fibBCNOff, i, DigiHists::presample, DigiHists::shape, DigiHists::shapeThresh, DigiHists::TS_sum_minus, DigiHists::TS_sum_plus, and MonitorElement::update().

Referenced by processEvent().

1712 {
1713  // call update command for all histograms (should make them update when running in online DQM?)
1714  h.shape->update();
1715  h.shapeThresh->update();
1716  h.presample->update();
1717  h.BQ->update();
1718  h.BQFrac->update();
1719  h.DigiFirstCapID->update();
1720  h.DVerr->update();
1721  h.CapID->update();
1722  h.ADC->update();
1723  h.ADCsum->update();
1724  h.fibBCNOff->update();
1725 
1726  for (unsigned int i=0;i<h.TS_sum_plus.size();++i)
1727  h.TS_sum_plus[i]->update();
1728  for (unsigned int i=0;i<h.TS_sum_minus.size();++i)
1729  h.TS_sum_minus[i]->update();
1730 } //void HcalDigiMonitor::UpdateHists(DigiHists& h)
int i
Definition: DBlmapReader.cc:9
MonitorElement * ADC
MonitorElement * shape
MonitorElement * BQ
MonitorElement * shapeThresh
void update(void)
Mark the object updated.
std::vector< MonitorElement * > TS_sum_minus
std::vector< MonitorElement * > TS_sum_plus
MonitorElement * ADCsum
MonitorElement * fibBCNOff
MonitorElement * DVerr
MonitorElement * CapID
MonitorElement * DigiFirstCapID
MonitorElement * BQFrac
MonitorElement * presample
void HcalDigiMonitor::zeroCounters ( )
private

Definition at line 1542 of file HcalDigiMonitor.cc.

References DigiHists::adc, DigiHists::adcsum, badcapID, baddigis, baddigisize, badFibBCNOff, badunpackerreport, DigiHists::capid, DigiHists::capIDdiff, DigiHists::count_bad, DigiHists::count_BQ, DigiHists::count_BQFrac, DigiHists::count_good, DigiHists::count_presample, DigiHists::count_shape, DigiHists::count_shapeThresh, DEPTHBINS, DIGI_BQ_FRAC_NBINS, DIGI_NUM, DIGI_SUBDET_NUM, digierrorsdverr, diginum, digisize, DigiHists::dverr, errorSpigot, errorVME, eta(), ETABINS, DigiHists::fibbcnoff, hbHists, heHists, hfHists, HFlumibad, HO0bad, HO12bad, hoHists, i, j, relval_steps::k, knownbadQPLLs, occupancyEta, occupancyEtaPhi, occupancyPhi, occupancySpigot, occupancyVME, phi, PHIBINS, HcalDCCHeader::SPIGOT_COUNT, DigiHists::tssumminus, DigiHists::tssumplus, uniqcounter, and uniqcounter2.

Referenced by endLuminosityBlock(), and reset().

1543 {
1544  // Set all histogram counters back to 0
1545  // Call this after all every N evnets
1546 
1547  /******** Zero all counters *******/
1548  for (int d=0; d<DEPTHBINS; d++) {
1549  for (int eta=0; eta<ETABINS; eta++) {
1550  for (int phi=0; phi<PHIBINS; phi++){
1551  uniqcounter[eta][phi][d] = 0.0;
1552  uniqcounter2[eta][phi][d] = 0.0;
1553  }
1554  }
1555  }
1556 
1557  hbHists.count_bad=0;
1558  hbHists.count_good=0;
1559  heHists.count_bad=0;
1560  heHists.count_good=0;
1561  hoHists.count_bad=0;
1562  hoHists.count_good=0;
1563  hfHists.count_bad=0;
1564  hfHists.count_good=0;
1565 
1566  knownbadQPLLs = 0;
1567 
1568  HO0bad=0;
1569  HO12bad=0;
1570  HFlumibad=0;
1571 
1572  for (int i=0;i<85;++i)
1573  {
1574  occupancyEta[i]=0;
1575  if (i<72)
1576  occupancyPhi[i]=0;
1577  for (int j=0;j<72;++j)
1578  {
1579  for (int k=0;k<4;++k)
1580  {
1581  baddigis[i][j][k]=0;
1582  badcapID[i][j][k]=0;
1583  baddigisize[i][j][k]=0;
1584  occupancyEtaPhi[i][j][k]=0;
1585  digierrorsdverr[i][j][k]=0;
1586  badFibBCNOff[i][j][k]=0;
1587  badunpackerreport[i][j][k]=0;
1588  }
1589  } // for (int j=0;j<72;++i)
1590  } // for (int i=0;i<85;++i)
1591 
1592  for (int i=0;i<40;++i)
1593  {
1594  for (int j=0;j<18;++j)
1595  {
1596  occupancyVME[i][j]=0;
1597  errorVME[i][j]=0;
1598  }
1599  }
1600 
1601  for (int i=0;i<HcalDCCHeader::SPIGOT_COUNT;++i)
1602  {
1603  for (int j=0;j<36;++j)
1604  {
1605  occupancySpigot[i][j]=0;
1606  errorSpigot[i][j]=0;
1607  }
1608  }
1609 
1610 
1611  for (int i=0;i<20;++i)
1612  {
1613  for (int j=0;j<4;++j)
1614  digisize[i][j]=0;
1615  }
1616 
1617  for (int i=0;i<DIGI_NUM;++i)
1618  {
1619  diginum[i]=0;
1620 
1621  // set all DigiHists counters to 0
1622  if (i<4)
1623  {
1624  hbHists.dverr[i]=0;
1625  heHists.dverr[i]=0;
1626  hoHists.dverr[i]=0;
1627  hfHists.dverr[i]=0;
1628  hbHists.capid[i]=0;
1629  heHists.capid[i]=0;
1630  hoHists.capid[i]=0;
1631  hfHists.capid[i]=0;
1632  }
1633  if (i<8)
1634  {
1635  hbHists.capIDdiff[i]=0;
1636  heHists.capIDdiff[i]=0;
1637  hoHists.capIDdiff[i]=0;
1638  hfHists.capIDdiff[i]=0;
1639  }
1640 
1641  if (i<10)
1642  {
1643  hbHists.count_shape[i]=0;
1644  heHists.count_shape[i]=0;
1645  hoHists.count_shape[i]=0;
1646  hfHists.count_shape[i]=0;
1647 
1652  }
1653  if (i<50)
1654  {
1659  for (int j=0;j<10;++j)
1660  {
1661  hbHists.tssumplus[i][j]=0;
1662  heHists.tssumplus[i][j]=0;
1663  hoHists.tssumplus[i][j]=0;
1664  hfHists.tssumplus[i][j]=0;
1665  hbHists.tssumminus[i][j]=0;
1666  heHists.tssumminus[i][j]=0;
1667  hoHists.tssumminus[i][j]=0;
1668  hfHists.tssumminus[i][j]=0;
1669  }
1670  }
1671 
1672  if (i<15)
1673  {
1674  hbHists.fibbcnoff[i]=0;
1675  heHists.fibbcnoff[i]=0;
1676  hoHists.fibbcnoff[i]=0;
1677  hfHists.fibbcnoff[i]=0;
1678  }
1679 
1680  if (i<200)
1681  {
1682  hbHists.adc[i]=0;
1683  heHists.adc[i]=0;
1684  hoHists.adc[i]=0;
1685  hfHists.adc[i]=0;
1686  hbHists.adcsum[i]=0;
1687  heHists.adcsum[i]=0;
1688  hoHists.adcsum[i]=0;
1689  hfHists.adcsum[i]=0;
1690  }
1691  if (i<DIGI_SUBDET_NUM)
1692  {
1693  hbHists.count_BQ[i]=0;
1694  heHists.count_BQ[i]=0;
1695  hoHists.count_BQ[i]=0;
1696  hfHists.count_BQ[i]=0;
1697  }
1698  if (i<DIGI_BQ_FRAC_NBINS)
1699  {
1700  hbHists.count_BQFrac[i]=0;
1701  heHists.count_BQFrac[i]=0;
1702  hoHists.count_BQFrac[i]=0;
1703  hfHists.count_BQFrac[i]=0;
1704  }
1705  } // for (int i=0;i<DIGI_NUM;++i)
1706 
1707 
1708  return;
1709 }
int i
Definition: DBlmapReader.cc:9
int capid[4]
int count_presample[50]
int occupancySpigot[40][36]
int tssumminus[50][10]
int occupancyVME[40][18]
int errorVME[40][18]
int badcapID[85][72][4]
#define DIGI_BQ_FRAC_NBINS
int fibbcnoff[15]
int count_BQ[2593]
int badFibBCNOff[85][72][4]
T eta() const
int dverr[4]
int baddigis[85][72][4]
int adcsum[200]
#define DEPTHBINS
int adc[200]
int baddigisize[85][72][4]
#define DIGI_SUBDET_NUM
int digierrorsdverr[85][72][4]
uint64_t uniqcounter[85][72][4]
int j
Definition: DBlmapReader.cc:9
uint64_t uniqcounter2[85][72][4]
int errorSpigot[15][36]
#define DIGI_NUM
#define ETABINS
int occupancyEtaPhi[85][72][4]
int tssumplus[50][10]
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
double count_shapeThresh[10]
#define PHIBINS
int capIDdiff[8]
int badunpackerreport[85][72][4]
int count_BQFrac[101]
int count_shape[10]
int digisize[20][4]
Definition: DDAxes.h:10

Member Data Documentation

int HcalDigiMonitor::alarmer_counter_
private

Definition at line 122 of file HcalDigiMonitor.h.

Referenced by endLuminosityBlock(), fill_Nevents(), and reset().

int HcalDigiMonitor::badcapID[85][72][4]
private

Definition at line 156 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

int HcalDigiMonitor::baddigis[85][72][4]
private

Definition at line 155 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), processEvent(), and zeroCounters().

int HcalDigiMonitor::baddigisize[85][72][4]
private

Definition at line 157 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

int HcalDigiMonitor::badFibBCNOff[85][72][4]
private

Definition at line 158 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

int HcalDigiMonitor::badunpackerreport[85][72][4]
private

Definition at line 159 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), and zeroCounters().

edm::ESHandle<HcalDbService> HcalDigiMonitor::conditions_
private

Definition at line 228 of file HcalDigiMonitor.h.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<DcsStatusCollection> HcalDigiMonitor::dcsStatusToken_
private

Definition at line 241 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

bool HcalDigiMonitor::digi_checkadcsum_
private

Definition at line 133 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor().

bool HcalDigiMonitor::digi_checkcapid_
private

Definition at line 131 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), and process_Digi().

bool HcalDigiMonitor::digi_checkdigisize_
private

Definition at line 132 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), and process_Digi().

bool HcalDigiMonitor::digi_checkdverr_
private

Definition at line 134 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), and process_Digi().

bool HcalDigiMonitor::digi_checkoccupancy_
private

Definition at line 130 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor().

MonitorElement* HcalDigiMonitor::DigiBQ
private

Definition at line 189 of file HcalDigiMonitor.h.

Referenced by processEvent(), reset(), and setup().

MonitorElement* HcalDigiMonitor::DigiBQFrac
private

Definition at line 190 of file HcalDigiMonitor.h.

Referenced by processEvent(), reset(), and setup().

EtaPhiHists HcalDigiMonitor::DigiErrorOccupancyByDepth
private

Definition at line 184 of file HcalDigiMonitor.h.

Referenced by processEvent(), and reset().

EtaPhiHists HcalDigiMonitor::DigiErrorsBadADCSum
private

Definition at line 149 of file HcalDigiMonitor.h.

Referenced by processEvent(), and reset().

EtaPhiHists HcalDigiMonitor::DigiErrorsBadCapID
private

Definition at line 146 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

EtaPhiHists HcalDigiMonitor::DigiErrorsBadDigiSize
private

Definition at line 148 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

EtaPhiHists HcalDigiMonitor::DigiErrorsBadFibBCNOff
private

Definition at line 151 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

EtaPhiHists HcalDigiMonitor::DigiErrorsByDepth
private

Definition at line 145 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

EtaPhiHists HcalDigiMonitor::DigiErrorsDVErr
private

Definition at line 147 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

int HcalDigiMonitor::digierrorsdverr[85][72][4]
private

Definition at line 161 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

MonitorElement* HcalDigiMonitor::DigiErrorSpigot
private

Definition at line 187 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

EtaPhiHists HcalDigiMonitor::DigiErrorsUnpacker
private

Definition at line 150 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

MonitorElement* HcalDigiMonitor::DigiErrorVME
private

Definition at line 186 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

MonitorElement* HcalDigiMonitor::DigiExpectedSize
private

Definition at line 154 of file HcalDigiMonitor.h.

Referenced by analyze(), processEvent(), and setup().

edm::InputTag HcalDigiMonitor::digiLabel_
private

Definition at line 217 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

int HcalDigiMonitor::DigiMonitor_ExpectedOrbitMessageTime_
private

Definition at line 138 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), process_Digi(), and setup().

MonitorElement* HcalDigiMonitor::DigiNum
private

Definition at line 205 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

int HcalDigiMonitor::diginum[9072]
private

Definition at line 206 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), and zeroCounters().

EtaPhiHists HcalDigiMonitor::DigiOccupancyByDepth
private

Definition at line 169 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), reset(), and setup().

MonitorElement* HcalDigiMonitor::DigiOccupancyEta
private

Definition at line 170 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

MonitorElement* HcalDigiMonitor::DigiOccupancyPhi
private

Definition at line 171 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

MonitorElement* HcalDigiMonitor::DigiOccupancySpigot
private

Definition at line 173 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

MonitorElement* HcalDigiMonitor::DigiOccupancyVME
private

Definition at line 172 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and setup().

MonitorElement* HcalDigiMonitor::DigiSize
private

Definition at line 153 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), processEvent(), and setup().

int HcalDigiMonitor::digisize[20][4]
private

Definition at line 160 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

MonitorElement* HcalDigiMonitor::DigiUnpackerErrorCount
private

Definition at line 191 of file HcalDigiMonitor.h.

Referenced by processEvent(), reset(), and setup().

MonitorElement* HcalDigiMonitor::DigiUnpackerErrorFrac
private

Definition at line 192 of file HcalDigiMonitor.h.

Referenced by processEvent(), reset(), and setup().

bool HcalDigiMonitor::doFCpeds_
private

Definition at line 111 of file HcalDigiMonitor.h.

int HcalDigiMonitor::errorSpigot[15][36]
private

Definition at line 198 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

int HcalDigiMonitor::errorVME[40][18]
private

Definition at line 197 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

bool HcalDigiMonitor::excludeBadQPLLs_
private

Definition at line 102 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), and processEvent().

bool HcalDigiMonitor::excludeHO1P02_
private

Definition at line 101 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), and processEvent().

bool HcalDigiMonitor::excludeHORing2_
private

Definition at line 100 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), and processEvent().

edm::InputTag HcalDigiMonitor::FEDRawDataCollection_
private

Definition at line 218 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

edm::EDGetTokenT<FEDRawDataCollection> HcalDigiMonitor::FEDRawDataCollectionToken_
private

Definition at line 242 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

MonitorElement* HcalDigiMonitor::h_invalid_bcn
private

Definition at line 166 of file HcalDigiMonitor.h.

Referenced by processEvent(), and setup().

MonitorElement* HcalDigiMonitor::h_invalid_orbitnumMod103
private

Definition at line 165 of file HcalDigiMonitor.h.

Referenced by processEvent(), and setup().

MonitorElement* HcalDigiMonitor::h_valid_digis
private

Definition at line 164 of file HcalDigiMonitor.h.

Referenced by processEvent(), and setup().

int HcalDigiMonitor::hbcount_
private

Definition at line 139 of file HcalDigiMonitor.h.

bool HcalDigiMonitor::hbhedcsON
private

Definition at line 124 of file HcalDigiMonitor.h.

Referenced by analyze(), endLuminosityBlock(), and reset().

DigiHists HcalDigiMonitor::hbHists
private

Definition at line 215 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), setup(), and zeroCounters().

MonitorElement* HcalDigiMonitor::HBocc_vs_LB
private

Definition at line 200 of file HcalDigiMonitor.h.

Referenced by processEvent(), and setup().

int HcalDigiMonitor::hecount_
private

Definition at line 139 of file HcalDigiMonitor.h.

DigiHists HcalDigiMonitor::heHists
private

Definition at line 215 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), setup(), and zeroCounters().

MonitorElement* HcalDigiMonitor::HEocc_vs_LB
private

Definition at line 201 of file HcalDigiMonitor.h.

Referenced by processEvent(), and setup().

int HcalDigiMonitor::hfcount_
private

Definition at line 139 of file HcalDigiMonitor.h.

bool HcalDigiMonitor::hfdcsON
private

Definition at line 124 of file HcalDigiMonitor.h.

Referenced by analyze(), endLuminosityBlock(), and reset().

DigiHists HcalDigiMonitor::hfHists
private

Definition at line 215 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), setup(), and zeroCounters().

int HcalDigiMonitor::HFlumibad
private

Definition at line 114 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), and zeroCounters().

MonitorElement* HcalDigiMonitor::HFM_shape
private

Definition at line 213 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), process_Digi(), and setup().

MonitorElement* HcalDigiMonitor::HFocc_vs_LB
private

Definition at line 203 of file HcalDigiMonitor.h.

Referenced by processEvent(), and setup().

MonitorElement* HcalDigiMonitor::HFP_shape
private

Definition at line 212 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), process_Digi(), and setup().

MonitorElement* HcalDigiMonitor::HFtiming_etaProfile
private

Definition at line 211 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), process_Digi(), and setup().

MonitorElement* HcalDigiMonitor::HFtiming_occupancy2D
private

Definition at line 210 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), process_Digi(), and setup().

MonitorElement* HcalDigiMonitor::HFtiming_totaltime2D
private

Definition at line 209 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), process_Digi(), and setup().

edm::InputTag HcalDigiMonitor::hltresultsLabel_
private

Definition at line 230 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

int HcalDigiMonitor::HO0bad
private

Definition at line 114 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), and zeroCounters().

int HcalDigiMonitor::HO12bad
private

Definition at line 114 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), and zeroCounters().

int HcalDigiMonitor::hocount_
private

Definition at line 139 of file HcalDigiMonitor.h.

DigiHists HcalDigiMonitor::hoHists
private

Definition at line 215 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), setup(), and zeroCounters().

MonitorElement* HcalDigiMonitor::HOocc_vs_LB
private

Definition at line 202 of file HcalDigiMonitor.h.

Referenced by processEvent(), and setup().

double HcalDigiMonitor::HT_HFM_
private

Definition at line 233 of file HcalDigiMonitor.h.

Referenced by analyze(), and process_Digi().

double HcalDigiMonitor::HT_HFP_
private

Definition at line 233 of file HcalDigiMonitor.h.

Referenced by analyze(), and process_Digi().

int HcalDigiMonitor::knownbadQPLLs
private

Definition at line 123 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), processEvent(), reset(), and zeroCounters().

int HcalDigiMonitor::maxdigisizeHBHE_
private

Definition at line 126 of file HcalDigiMonitor.h.

Referenced by analyze(), HcalDigiMonitor(), and process_Digi().

int HcalDigiMonitor::maxdigisizeHF_
private

Definition at line 128 of file HcalDigiMonitor.h.

Referenced by analyze(), HcalDigiMonitor(), and process_Digi().

int HcalDigiMonitor::maxdigisizeHO_
private

Definition at line 127 of file HcalDigiMonitor.h.

Referenced by analyze(), HcalDigiMonitor(), and process_Digi().

std::vector<std::string> HcalDigiMonitor::MinBiasHLTBits_
private

Definition at line 231 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

int HcalDigiMonitor::mindigisizeHBHE_
private

Definition at line 126 of file HcalDigiMonitor.h.

Referenced by analyze(), HcalDigiMonitor(), and process_Digi().

int HcalDigiMonitor::mindigisizeHF_
private

Definition at line 128 of file HcalDigiMonitor.h.

Referenced by analyze(), HcalDigiMonitor(), and process_Digi().

int HcalDigiMonitor::mindigisizeHO_
private

Definition at line 127 of file HcalDigiMonitor.h.

Referenced by analyze(), HcalDigiMonitor(), and process_Digi().

int HcalDigiMonitor::occupancyErrorEta[85]
private

Definition at line 195 of file HcalDigiMonitor.h.

int HcalDigiMonitor::occupancyErrorEtaPhi[85][72][4]
private

Definition at line 194 of file HcalDigiMonitor.h.

int HcalDigiMonitor::occupancyErrorPhi[72]
private

Definition at line 196 of file HcalDigiMonitor.h.

int HcalDigiMonitor::occupancyEta[85]
private

Definition at line 178 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

int HcalDigiMonitor::occupancyEtaPhi[85][72][4]
private

Definition at line 177 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

int HcalDigiMonitor::occupancyPhi[72]
private

Definition at line 179 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

int HcalDigiMonitor::occupancySpigot[40][36]
private

Definition at line 181 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

int HcalDigiMonitor::occupancyVME[40][18]
private

Definition at line 180 of file HcalDigiMonitor.h.

Referenced by fill_Nevents(), process_Digi(), and zeroCounters().

bool HcalDigiMonitor::passedMinBiasHLT_
private

Methods, variables accessible only within class code.

Definition at line 99 of file HcalDigiMonitor.h.

Referenced by analyze(), and process_Digi().

std::map<HcalDetId, std::vector<double> > HcalDigiMonitor::PedestalsByCapId_
private

Definition at line 236 of file HcalDigiMonitor.h.

Referenced by bookHistograms(), and process_Digi().

double HcalDigiMonitor::pedSubtractedADC_[10]
private

Definition at line 238 of file HcalDigiMonitor.h.

Referenced by process_Digi().

MonitorElement* HcalDigiMonitor::ProblemDigisInLastNLB_HBHEHF_alarm
private

Definition at line 174 of file HcalDigiMonitor.h.

Referenced by endLuminosityBlock(), fill_Nevents(), reset(), and setup().

bool HcalDigiMonitor::setupDone_
private

Definition at line 112 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), and setup().

int HcalDigiMonitor::shapeThresh_
private

Definition at line 116 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), and setup().

int HcalDigiMonitor::shapeThreshHB_
private

Definition at line 117 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), process_Digi(), and setup().

int HcalDigiMonitor::shapeThreshHE_
private

Definition at line 118 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), process_Digi(), and setup().

int HcalDigiMonitor::shapeThreshHF_
private

Definition at line 119 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), process_Digi(), and setup().

int HcalDigiMonitor::shapeThreshHO_
private

Definition at line 120 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), process_Digi(), and setup().

bool HcalDigiMonitor::shutOffOrbitTest_
private

Definition at line 136 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor(), and process_Digi().

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

Definition at line 221 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

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

Definition at line 223 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

edm::EDGetTokenT<HFRecHitCollection> HcalDigiMonitor::tok_hfrec_
private

Definition at line 226 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

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

Definition at line 222 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

edm::EDGetTokenT<FEDRawDataCollection> HcalDigiMonitor::tok_raw_
private

Definition at line 220 of file HcalDigiMonitor.h.

Referenced by HcalDigiMonitor().

edm::EDGetTokenT<edm::TriggerResults> HcalDigiMonitor::tok_trigger_
private

Definition at line 225 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

edm::EDGetTokenT<HcalUnpackerReport> HcalDigiMonitor::tok_unpack_
private

Definition at line 224 of file HcalDigiMonitor.h.

Referenced by analyze(), and HcalDigiMonitor().

uint64_t HcalDigiMonitor::uniqcounter[85][72][4]
private

Definition at line 140 of file HcalDigiMonitor.h.

Referenced by process_Digi(), and zeroCounters().

uint64_t HcalDigiMonitor::uniqcounter2[85][72][4]
private

Definition at line 141 of file HcalDigiMonitor.h.

Referenced by processEvent(), and zeroCounters().