CMS 3D CMS Logo

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

#include <PedestalTask.h>

Inheritance diagram for PedestalTask:
hcaldqm::DQTask DQMEDAnalyzer hcaldqm::DQModule edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

virtual void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
 PedestalTask (edm::ParameterSet const &)
 
virtual ~PedestalTask ()
 
- Public Member Functions inherited from hcaldqm::DQTask
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQTask (edm::ParameterSet const &)
 
virtual ~DQTask ()
 
- 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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule ()
 

Public Attributes

tuple pedestalTask
 

Protected Types

enum  PedestalFlag { fMsn = 0, fBadM = 1, fBadR = 2, nPedestalFlag =3 }
 

Protected Member Functions

virtual void _dump ()
 
virtual bool _isApplicable (edm::Event const &)
 
virtual void _process (edm::Event const &, edm::EventSetup const &)
 
virtual void _resetMonitors (UpdateFreq)
 
- Protected Member Functions inherited from hcaldqm::DQTask
virtual int _getCalibType (edm::Event const &)
 
- 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

ContainerProf2D _cMean1LS_depth
 
ContainerProf2D _cMean1LS_FEDuTCA
 
ContainerProf2D _cMean1LS_FEDVME
 
Container1D _cMean1LS_Subdet
 
Container2D _cMeanBad1LS_depth
 
Container2D _cMeanBad1LS_FEDuTCA
 
Container2D _cMeanBad1LS_FEDVME
 
Container2D _cMeanBadTotal_depth
 
Container2D _cMeanBadTotal_FEDuTCA
 
Container2D _cMeanBadTotal_FEDVME
 
ContainerProf2D _cMeanDBRef1LS_depth
 
ContainerProf2D _cMeanDBRef1LS_FEDuTCA
 
ContainerProf2D _cMeanDBRef1LS_FEDVME
 
Container1D _cMeanDBRef1LS_Subdet
 
ContainerProf2D _cMeanDBRefTotal_depth
 
ContainerProf2D _cMeanDBRefTotal_FEDuTCA
 
ContainerProf2D _cMeanDBRefTotal_FEDVME
 
Container1D _cMeanDBRefTotal_Subdet
 
ContainerProf2D _cMeanTotal_depth
 
ContainerProf2D _cMeanTotal_FEDuTCA
 
ContainerProf2D _cMeanTotal_FEDVME
 
Container1D _cMeanTotal_Subdet
 
Container2D _cMissing1LS_depth
 
Container2D _cMissing1LS_FEDuTCA
 
Container2D _cMissing1LS_FEDVME
 
Container2D _cMissingTotal_depth
 
Container2D _cMissingTotal_FEDuTCA
 
Container2D _cMissingTotal_FEDVME
 
Container1D _cMissingvsLS_Subdet
 
Container1D _cNBadMeanvsLS_Subdet
 
Container1D _cNBadRMSvsLS_Subdet
 
Container1D _cOccupancyvsLS_Subdet
 
ContainerProf2D _cRMS1LS_depth
 
ContainerProf2D _cRMS1LS_FEDuTCA
 
ContainerProf2D _cRMS1LS_FEDVME
 
Container1D _cRMS1LS_Subdet
 
Container2D _cRMSBad1LS_depth
 
Container2D _cRMSBad1LS_FEDuTCA
 
Container2D _cRMSBad1LS_FEDVME
 
Container2D _cRMSBadTotal_depth
 
Container2D _cRMSBadTotal_FEDuTCA
 
Container2D _cRMSBadTotal_FEDVME
 
ContainerProf2D _cRMSDBRef1LS_depth
 
ContainerProf2D _cRMSDBRef1LS_FEDuTCA
 
ContainerProf2D _cRMSDBRef1LS_FEDVME
 
Container1D _cRMSDBRef1LS_Subdet
 
ContainerProf2D _cRMSDBRefTotal_depth
 
ContainerProf2D _cRMSDBRefTotal_FEDuTCA
 
ContainerProf2D _cRMSDBRefTotal_FEDVME
 
Container1D _cRMSDBRefTotal_Subdet
 
ContainerProf2D _cRMSTotal_depth
 
ContainerProf2D _cRMSTotal_FEDuTCA
 
ContainerProf2D _cRMSTotal_FEDVME
 
Container1D _cRMSTotal_Subdet
 
ContainerSingle2D _cSummaryvsLS
 
Container2D _cSummaryvsLS_FED
 
electronicsmap::ElectronicsMap _ehashmap
 
HcalElectronicsMap const * _emap
 
HashFilter _filter_C36
 
HashFilter _filter_uTCA
 
HashFilter _filter_VME
 
edm::InputTag _tagHBHE
 
edm::InputTag _tagHF
 
edm::InputTag _tagHO
 
edm::InputTag _tagTrigger
 
double _thresh_badm
 
double _thresh_badr
 
double _thresh_mean
 
double _thresh_rms
 
edm::EDGetTokenT
< HBHEDigiCollection
_tokHBHE
 
edm::EDGetTokenT
< HFDigiCollection
_tokHF
 
edm::EDGetTokenT
< HODigiCollection
_tokHO
 
edm::EDGetTokenT
< HcalTBTriggerData
_tokTrigger
 
std::vector< flag::Flag_vflags
 
std::vector< uint32_t > _vhashFEDs
 
ContainerXXX< int > _xNBadMean1LS
 
ContainerXXX< int > _xNBadRMS1LS
 
ContainerXXX< int > _xNChs
 
ContainerXXX< int > _xNMsn1LS
 
ContainerXXX< int > _xPedEntries1LS
 
ContainerXXX< int > _xPedEntriesTotal
 
ContainerXXX< double > _xPedRefMean
 
ContainerXXX< double > _xPedRefRMS
 
ContainerXXX< double > _xPedSum1LS
 
ContainerXXX< double > _xPedSum21LS
 
ContainerXXX< double > _xPedSum2Total
 
ContainerXXX< double > _xPedSumTotal
 
- Protected Attributes inherited from hcaldqm::DQTask
ContainerI _cEvsPerLS
 
ContainerI _cEvsTotal
 
ContainerS _cProcessingTypeName
 
ContainerS _cRunKeyName
 
ContainerI _cRunKeyVal
 
int _procLSs
 
edm::InputTag _tagRaw
 
edm::EDGetTokenT
< FEDRawDataCollection
_tokRaw
 
std::vector< uint32_t > _vcdaqEids
 
ContainerXXX< uint32_t > _xQuality
 
- Protected Attributes inherited from hcaldqm::DQModule
int _currentLS
 
int _debug
 
int _evsPerLS
 
int _evsTotal
 
Logger _logger
 
int _maxLS
 
ModuleType _mtype
 
std::string _name
 
ProcessingType _ptype
 
std::string _runkeyName
 
int _runkeyVal
 
std::string _subsystem
 

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
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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)
 

Detailed Description

Definition at line 23 of file PedestalTask.h.

Member Enumeration Documentation

Enumerator
fMsn 
fBadM 
fBadR 
nPedestalFlag 

Definition at line 54 of file PedestalTask.h.

Constructor & Destructor Documentation

PedestalTask::PedestalTask ( edm::ParameterSet const &  ps)

Definition at line 5 of file PedestalTask.cc.

References _tagHBHE, _tagHF, _tagHO, _tagTrigger, _thresh_badm, _thresh_badr, _thresh_mean, _thresh_rms, _tokHBHE, _tokHF, _tokHO, _tokTrigger, _vflags, fBadM, fBadR, fMsn, edm::ParameterSet::getUntrackedParameter(), HLT_25ns10e33_v2_cff::InputTag, and nPedestalFlag.

5  :
6  DQTask(ps)
7 {
8  // tags
9  _tagHBHE = ps.getUntrackedParameter<edm::InputTag>("tagHBHE",
10  edm::InputTag("hcalDigis"));
11  _tagHO = ps.getUntrackedParameter<edm::InputTag>("tagHO",
12  edm::InputTag("hcalDigis"));
13  _tagHF = ps.getUntrackedParameter<edm::InputTag>("tagHF",
14  edm::InputTag("hcalDigis"));
15  _tagTrigger = ps.getUntrackedParameter<edm::InputTag>("tagTrigger",
16  edm::InputTag("tbunpacker"));
17  _tokHBHE = consumes<HBHEDigiCollection>(_tagHBHE);
18  _tokHO = consumes<HODigiCollection>(_tagHO);
19  _tokHF = consumes<HFDigiCollection>(_tagHF);
20  _tokTrigger = consumes<HcalTBTriggerData>(_tagTrigger);
21 
22  _vflags.resize(nPedestalFlag);
23  _vflags[fMsn]=flag::Flag("Msn");
24  _vflags[fBadM]=flag::Flag("BadM");
25  _vflags[fBadR]=flag::Flag("BadR");
26 
27  _thresh_mean = ps.getUntrackedParameter<double>("thresh_mean",
28  0.25);
29  _thresh_rms = ps.getUntrackedParameter<double>("thresh_mean",
30  0.25);
31  _thresh_badm = ps.getUntrackedParameter<double>("thresh_badm", 0.1);
32  _thresh_badr = ps.getUntrackedParameter<double>("thresh_badr", 0.1);
33 }
edm::InputTag _tagHF
Definition: PedestalTask.h:46
double _thresh_badm
Definition: PedestalTask.h:70
double _thresh_badr
Definition: PedestalTask.h:70
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:7
edm::InputTag _tagHBHE
Definition: PedestalTask.h:44
edm::InputTag _tagHO
Definition: PedestalTask.h:45
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: PedestalTask.h:51
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: PedestalTask.h:50
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
Definition: PedestalTask.h:48
edm::InputTag _tagTrigger
Definition: PedestalTask.h:47
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: PedestalTask.h:49
double _thresh_mean
Definition: PedestalTask.h:70
std::vector< flag::Flag > _vflags
Definition: PedestalTask.h:53
double _thresh_rms
Definition: PedestalTask.h:70
virtual PedestalTask::~PedestalTask ( )
inlinevirtual

Definition at line 27 of file PedestalTask.h.

28  {}

Member Function Documentation

void PedestalTask::_dump ( )
protectedvirtual

Definition at line 443 of file PedestalTask.cc.

References _cMean1LS_depth, _cMean1LS_FEDuTCA, _cMean1LS_FEDVME, _cMean1LS_Subdet, _cMeanBad1LS_depth, _cMeanBad1LS_FEDuTCA, _cMeanBad1LS_FEDVME, _cMeanBadTotal_depth, _cMeanBadTotal_FEDuTCA, _cMeanBadTotal_FEDVME, _cMeanDBRef1LS_depth, _cMeanDBRef1LS_FEDuTCA, _cMeanDBRef1LS_FEDVME, _cMeanDBRef1LS_Subdet, _cMeanDBRefTotal_depth, _cMeanDBRefTotal_FEDuTCA, _cMeanDBRefTotal_FEDVME, _cMeanDBRefTotal_Subdet, _cMeanTotal_depth, _cMeanTotal_FEDuTCA, _cMeanTotal_FEDVME, _cMeanTotal_Subdet, _cMissing1LS_depth, _cMissing1LS_FEDuTCA, _cMissing1LS_FEDVME, _cMissingTotal_depth, _cMissingTotal_FEDuTCA, _cMissingTotal_FEDVME, _cMissingvsLS_Subdet, _cNBadMeanvsLS_Subdet, _cNBadRMSvsLS_Subdet, _cOccupancyvsLS_Subdet, _cRMS1LS_depth, _cRMS1LS_FEDuTCA, _cRMS1LS_FEDVME, _cRMS1LS_Subdet, _cRMSBad1LS_depth, _cRMSBad1LS_FEDuTCA, _cRMSBad1LS_FEDVME, _cRMSBadTotal_depth, _cRMSBadTotal_FEDuTCA, _cRMSBadTotal_FEDVME, _cRMSDBRef1LS_depth, _cRMSDBRef1LS_FEDuTCA, _cRMSDBRef1LS_FEDVME, _cRMSDBRef1LS_Subdet, _cRMSDBRefTotal_depth, _cRMSDBRefTotal_FEDuTCA, _cRMSDBRefTotal_FEDVME, _cRMSDBRefTotal_Subdet, _cRMSTotal_depth, _cRMSTotal_FEDuTCA, _cRMSTotal_FEDVME, _cRMSTotal_Subdet, _cSummaryvsLS, _cSummaryvsLS_FED, hcaldqm::DQModule::_currentLS, _ehashmap, _emap, _filter_C36, hcaldqm::flag::Flag::_state, _thresh_badm, _thresh_badr, _thresh_mean, _thresh_rms, hcaldqm::DQTask::_vcdaqEids, _vflags, _vhashFEDs, _xNBadMean1LS, _xNBadRMS1LS, _xNChs, _xNMsn1LS, _xPedEntries1LS, _xPedEntriesTotal, _xPedRefMean, _xPedRefRMS, _xPedSum1LS, _xPedSum21LS, _xPedSum2Total, _xPedSumTotal, HcalElectronicsMap::allPrecisionId(), hcaldqm::flag::fBAD, fBadM, fBadR, hcaldqm::flag::fGOOD, hcaldqm::Container2D::fill(), hcaldqm::Container1D::fill(), hcaldqm::filter::HashFilter::filter(), spr::find(), fMsn, hcaldqm::flag::fNCDAQ, hcaldqm::ContainerXXX< STDTYPE >::get(), hcaldqm::utilities::isFEDHBHE(), hcaldqm::utilities::isFEDHF(), hcaldqm::utilities::isFEDHO(), hcaldqm::electronicsmap::ElectronicsMap::lookup(), hcaldqm::ContainerXXX< STDTYPE >::reset(), hcaldqm::flag::Flag::reset(), hcaldqm::Container1D::reset(), hcaldqm::Container2D::setBinContent(), hcaldqm::ContainerSingle2D::setBinContent(), and mathSSE::sqrt().

Referenced by endLuminosityBlock().

444 {
445  // reset what's needed
446 
447  // Mean/RMS actual values
456 
465 
466 
467  // DB Conditions Comparison
472 
477 
482 
487 
488  // missing channels
492 
493 // _cMissingTotal_depth.reset();
494 // _cMeanBadTotal_depth.reset();
495 // _cRMSBadTotal_depth.reset();
496 
497  // Missing or Bad
504 
511 
512  // reset some XXX containers
513  _xNChs.reset();
514  _xNMsn1LS.reset();
516 
517  // - ITERATE OVER ALL TEH CHANNELS
518  // - FIND THE ONES THAT ARE MISSING
519  // - FIND THE ONES WITH BAD PEDESTAL MEANs
520  // - FIND THE ONES WITH BAD PEDESTAL RMSs
521  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
522  for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
523  it!=dids.end(); ++it)
524  {
525  if (!it->isHcalDetId())
526  continue;
528  if (_filter_C36.filter(eid))
529  continue;
530 
531  HcalDetId did = HcalDetId(it->rawId());
532  double sum1LS = _xPedSum1LS.get(did);
533  double refm = _xPedRefMean.get(did);
534  double sum21LS = _xPedSum21LS.get(did);
535  double refr = _xPedRefRMS.get(did);
536  double n1LS = _xPedEntries1LS.get(did);
537 
538  double sumTotal = _xPedSumTotal.get(did);
539  double sum2Total = _xPedSum2Total.get(did);
540  double nTotal = _xPedEntriesTotal.get(did);
541 
542  _xNChs.get(eid)++;
543  // IF A CHANNEL IS MISSING FOR THIS LS
544  if (n1LS==0)
545  {
548  eid.isVMEid()?_cMissing1LS_FEDVME.fill(eid):
550  _xNMsn1LS.get(eid)++;
551  // ALSO CHECK
552  // IF A CHANNEL HAS BEEN MISSING FOR ALL LSs SO FAR
553  if (nTotal==0)
554  {
556  eid.isVMEid()?_cMissingTotal_FEDVME.fill(eid):
558  }
559  continue;
560  }
561 
562  // if not missing, fill the occupancy...
564 
565  // compute the means and diffs for this LS
566  sum1LS/=n1LS; double rms1LS = sqrt(sum21LS/n1LS-sum1LS*sum1LS);
567  double diffm1LS = sum1LS-refm;
568  double diffr1LS = rms1LS - refr;
569 
570  // compute the means and diffs for the whole Run
571  sumTotal/=nTotal;
572  double rmsTotal = sqrt(sum2Total/nTotal-sumTotal*sumTotal);
573  double diffmTotal = sumTotal-refm;
574  double diffrTotal = rmsTotal - refr;
575 
576  // FILL ACTUAL MEANs AND RMSs FOR THIS LS
577  _cMean1LS_Subdet.fill(did, sum1LS);
578  _cMean1LS_depth.fill(did, sum1LS);
579  _cRMS1LS_Subdet.fill(did, rms1LS);
580  _cRMS1LS_depth.fill(did, rms1LS);
581 
582  // FILL THE DIFFERENCES FOR THIS LS
583  _cMeanDBRef1LS_Subdet.fill(did, diffm1LS);
584  _cMeanDBRef1LS_depth.fill(did, diffm1LS);
585  _cRMSDBRef1LS_Subdet.fill(did, diffr1LS);
586  _cRMSDBRef1LS_depth.fill(did, diffr1LS);
587 
588  // FILL ACTUAL MEANs AND RMSs FOR THE WHOLE RUN
589  _cMeanTotal_Subdet.fill(did, sumTotal);
590  _cMeanTotal_depth.fill(did, sumTotal);
591  _cRMSTotal_Subdet.fill(did, rmsTotal);
592  _cRMSTotal_depth.fill(did, rmsTotal);
593 
594  // FILL THE DIFFERENCES FOR THE WHOLE RUN
595  _cMeanDBRefTotal_Subdet.fill(did, diffmTotal);
596  _cMeanDBRefTotal_depth.fill(did, diffmTotal);
597  _cRMSDBRefTotal_Subdet.fill(did, diffrTotal);
598  _cRMSDBRefTotal_depth.fill(did, diffrTotal);
599 
600  // FOR THIS LS
601  if (eid.isVMEid())
602  {
603  _cMean1LS_FEDVME.fill(eid, sum1LS);
604  _cRMS1LS_FEDVME.fill(eid, rms1LS);
605  _cMeanDBRef1LS_FEDVME.fill(eid, diffm1LS);
606  _cRMSDBRef1LS_FEDVME.fill(eid, diffr1LS);
607  }
608  else
609  {
610  _cMean1LS_FEDuTCA.fill(eid, sum1LS);
611  _cRMS1LS_FEDuTCA.fill(eid, rms1LS);
612  _cMeanDBRef1LS_FEDuTCA.fill(eid, diffm1LS);
613  _cRMSDBRef1LS_FEDuTCA.fill(eid, diffr1LS);
614  }
615 
616  // FOR THE WHOLE RUN
617  if (eid.isVMEid())
618  {
619  _cMeanTotal_FEDVME.fill(eid, sumTotal);
620  _cRMSTotal_FEDVME.fill(eid, rmsTotal);
621  _cMeanDBRefTotal_FEDVME.fill(eid, diffmTotal);
622  _cRMSDBRefTotal_FEDVME.fill(eid, diffrTotal);
623  }
624  else
625  {
626  _cMeanTotal_FEDuTCA.fill(eid, sumTotal);
627  _cRMSTotal_FEDuTCA.fill(eid, rmsTotal);
628  _cMeanDBRefTotal_FEDuTCA.fill(eid, diffmTotal);
629  _cRMSDBRefTotal_FEDuTCA.fill(eid, diffrTotal);
630  }
631 
632  // FOR THE CURRENT LS COMPARE MEANS AND RMSS
633  if (fabs(diffm1LS)>_thresh_mean)
634  {
637  if (eid.isVMEid())
639  else
641  _xNBadMean1LS.get(eid)++;
642  }
643  if (fabs(diffr1LS)>_thresh_rms)
644  {
645  _cRMSBad1LS_depth.fill(did);
647  if (eid.isVMEid())
649  else
651  _xNBadRMS1LS.get(eid)++;
652  }
653 
654  // FOR THIS RUN
655  if (fabs(diffmTotal)>_thresh_mean)
656  {
658  if (eid.isVMEid())
660  else
662  }
663  if (fabs(diffrTotal)>_thresh_rms)
664  {
666  if (eid.isVMEid())
668  else
670  }
671 
672  }
673 
674  // SET THE FLAGS FOR THIS LS
675  for (std::vector<uint32_t>::const_iterator it=_vhashFEDs.begin();
676  it!=_vhashFEDs.end(); ++it)
677  {
678  flag::Flag fSum("PED");
680 
681  std::vector<uint32_t>::const_iterator jt=
682  std::find(_vcdaqEids.begin(), _vcdaqEids.end(), (*it));
683  if (jt==_vcdaqEids.end())
684  {
685  // not @cDAQ
686  for (uint32_t iflag=0; iflag<_vflags.size(); iflag++)
687  _cSummaryvsLS_FED.setBinContent(eid, _currentLS, int(iflag),
688  int(flag::fNCDAQ));
690  continue;
691  }
692 
693  // @cDAQ
694  if (utilities::isFEDHBHE(eid) || utilities::isFEDHO(eid) ||
695  utilities::isFEDHF(eid))
696  {
697  double frbadm = _xNBadMean1LS.get(eid)/_xNChs.get(eid);
698  double frbadr = _xNBadRMS1LS.get(eid)/_xNChs.get(eid);
699 
700  if (_xNMsn1LS.get(eid)>0)
701  _vflags[fMsn]._state = flag::fBAD;
702  else
703  _vflags[fMsn]._state = flag::fGOOD;
704  if (frbadm>=_thresh_badm)
705  _vflags[fBadM]._state = flag::fBAD;
706  else
707  _vflags[fBadM]._state = flag::fGOOD;
708  if (frbadr>=_thresh_badr)
709  _vflags[fBadR]._state = flag::fBAD;
710  else
711  _vflags[fBadR]._state = flag::fGOOD;
712  }
713 
714  int iflag=0;
715  for (std::vector<flag::Flag>::iterator ft=_vflags.begin();
716  ft!=_vflags.end(); ++ft)
717  {
719  int(ft->_state));
720  fSum+=(*ft);
721  iflag++;
722  ft->reset();
723  }
724  _cSummaryvsLS.setBinContent(eid, _currentLS, fSum._state);
725  }
726 
727  // reset the pedestal containers instead of writting reset... func
729 
730 }
ContainerProf2D _cMeanTotal_FEDuTCA
Definition: PedestalTask.h:107
ContainerProf2D _cRMSDBRefTotal_depth
Definition: PedestalTask.h:124
ContainerProf2D _cRMS1LS_FEDuTCA
Definition: PedestalTask.h:102
Container1D _cMeanTotal_Subdet
Definition: PedestalTask.h:91
ContainerProf2D _cRMS1LS_FEDVME
Definition: PedestalTask.h:101
ContainerProf2D _cRMSDBRefTotal_FEDVME
Definition: PedestalTask.h:127
double _thresh_badm
Definition: PedestalTask.h:70
virtual void setBinContent(HcalDetId const &, int)
Definition: Container2D.cc:235
Container2D _cMeanBad1LS_FEDuTCA
Definition: PedestalTask.h:150
Container2D _cRMSBadTotal_FEDVME
Definition: PedestalTask.h:156
double _thresh_badr
Definition: PedestalTask.h:70
Container2D _cMeanBadTotal_depth
Definition: PedestalTask.h:152
ContainerXXX< double > _xPedSum2Total
Definition: PedestalTask.h:80
Container2D _cSummaryvsLS_FED
Definition: PedestalTask.h:160
ContainerProf2D _cMean1LS_depth
Definition: PedestalTask.h:97
Container2D _cMeanBadTotal_FEDVME
Definition: PedestalTask.h:154
ContainerProf2D _cMean1LS_FEDVME
Definition: PedestalTask.h:99
ContainerProf2D _cMeanDBRef1LS_depth
Definition: PedestalTask.h:116
ContainerProf2D _cRMSTotal_depth
Definition: PedestalTask.h:105
ContainerProf2D _cMeanTotal_depth
Definition: PedestalTask.h:104
ContainerXXX< double > _xPedRefRMS
Definition: PedestalTask.h:88
Container1D _cRMSDBRef1LS_Subdet
Definition: PedestalTask.h:113
ContainerProf2D _cMeanDBRefTotal_FEDVME
Definition: PedestalTask.h:125
virtual void reset()
Definition: ContainerXXX.h:342
ContainerProf2D _cMeanDBRef1LS_FEDuTCA
Definition: PedestalTask.h:119
std::vector< uint32_t > _vhashFEDs
Definition: PedestalTask.h:73
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
ContainerProf2D _cRMSDBRefTotal_FEDuTCA
Definition: PedestalTask.h:128
Container1D _cNBadRMSvsLS_Subdet
Definition: PedestalTask.h:134
ContainerXXX< int > _xNBadRMS1LS
Definition: PedestalTask.h:84
ContainerProf2D _cMean1LS_FEDuTCA
Definition: PedestalTask.h:100
ContainerXXX< int > _xNBadMean1LS
Definition: PedestalTask.h:84
Container2D _cRMSBad1LS_FEDuTCA
Definition: PedestalTask.h:148
Container2D _cMissing1LS_FEDVME
Definition: PedestalTask.h:138
virtual void fill(HcalDetId const &)
Definition: Container2D.cc:59
ContainerProf2D _cRMSTotal_FEDuTCA
Definition: PedestalTask.h:109
ContainerSingle2D _cSummaryvsLS
Definition: PedestalTask.h:161
virtual void fill(uint32_t)
Definition: Container1D.cc:82
ContainerProf2D _cRMSDBRef1LS_depth
Definition: PedestalTask.h:117
Container1D _cMeanDBRef1LS_Subdet
Definition: PedestalTask.h:112
virtual void reset()
Definition: Container1D.cc:65
ContainerProf2D _cMeanDBRefTotal_FEDuTCA
Definition: PedestalTask.h:126
Container1D _cRMSDBRefTotal_Subdet
Definition: PedestalTask.h:115
electronicsmap::ElectronicsMap _ehashmap
Definition: PedestalTask.h:64
Container2D _cMissing1LS_FEDuTCA
Definition: PedestalTask.h:139
ContainerXXX< double > _xPedSumTotal
Definition: PedestalTask.h:79
virtual void setBinContent(int, int, int)
Container1D _cNBadMeanvsLS_Subdet
Definition: PedestalTask.h:133
Container2D _cRMSBadTotal_FEDuTCA
Definition: PedestalTask.h:155
T sqrt(T t)
Definition: SSEVec.h:18
ContainerXXX< double > _xPedRefMean
Definition: PedestalTask.h:87
HcalElectronicsMap const * _emap
Definition: PedestalTask.h:63
ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:78
Container2D _cMissingTotal_FEDuTCA
Definition: PedestalTask.h:142
Container2D _cMeanBad1LS_FEDVME
Definition: PedestalTask.h:147
std::vector< HcalGenericDetId > allPrecisionId() const
Container2D _cMissingTotal_depth
Definition: PedestalTask.h:140
ContainerProf2D _cRMSDBRef1LS_FEDVME
Definition: PedestalTask.h:120
ContainerProf2D _cRMS1LS_depth
Definition: PedestalTask.h:98
ContainerXXX< int > _xNMsn1LS
Definition: PedestalTask.h:83
bool isFEDHBHE(HcalElectronicsId const &)
Definition: Utilities.cc:124
Container2D _cMeanBad1LS_depth
Definition: PedestalTask.h:145
Container2D _cRMSBad1LS_FEDVME
Definition: PedestalTask.h:149
ContainerProf2D _cRMSDBRef1LS_FEDuTCA
Definition: PedestalTask.h:121
ContainerProf2D _cMeanDBRefTotal_depth
Definition: PedestalTask.h:123
Container2D _cMeanBadTotal_FEDuTCA
Definition: PedestalTask.h:157
Container1D _cMeanDBRefTotal_Subdet
Definition: PedestalTask.h:114
double _thresh_mean
Definition: PedestalTask.h:70
Container1D _cRMS1LS_Subdet
Definition: PedestalTask.h:94
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:243
std::vector< flag::Flag > _vflags
Definition: PedestalTask.h:53
Container1D _cRMSTotal_Subdet
Definition: PedestalTask.h:92
Container1D _cMissingvsLS_Subdet
Definition: PedestalTask.h:131
virtual bool filter(HcalDetId const &) const
Definition: HashFilter.cc:36
ContainerXXX< int > _xPedEntriesTotal
Definition: PedestalTask.h:81
ContainerProf2D _cMeanTotal_FEDVME
Definition: PedestalTask.h:106
ContainerXXX< int > _xNChs
Definition: PedestalTask.h:82
bool isFEDHO(HcalElectronicsId const &)
Definition: Utilities.cc:171
std::vector< uint32_t > _vcdaqEids
Definition: DQTask.h:65
Container2D _cMissingTotal_FEDVME
Definition: PedestalTask.h:141
Container1D _cMean1LS_Subdet
Definition: PedestalTask.h:93
HashFilter _filter_C36
Definition: PedestalTask.h:67
ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:76
ContainerProf2D _cRMSTotal_FEDVME
Definition: PedestalTask.h:108
Container1D _cOccupancyvsLS_Subdet
Definition: PedestalTask.h:132
Readout chain identification for Hcal.
Container2D _cMissing1LS_depth
Definition: PedestalTask.h:137
ContainerProf2D _cMeanDBRef1LS_FEDVME
Definition: PedestalTask.h:118
Container2D _cRMSBadTotal_depth
Definition: PedestalTask.h:153
bool isFEDHF(HcalElectronicsId const &)
Definition: Utilities.cc:146
double _thresh_rms
Definition: PedestalTask.h:70
Container2D _cRMSBad1LS_depth
Definition: PedestalTask.h:146
ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:77
bool PedestalTask::_isApplicable ( edm::Event const &  e)
protectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 813 of file PedestalTask.cc.

References hcaldqm::DQTask::_getCalibType(), hcaldqm::DQModule::_logger, hcaldqm::DQModule::_ptype, _tagTrigger, _tokTrigger, Logger::dqmthrow(), hcaldqm::fOnline, edm::Event::getByToken(), hc_Pedestal, edm::InputTag::instance(), and edm::InputTag::label().

814 {
815  if (_ptype==fOnline)
816  {
817  // online-global
818  return this->_getCalibType(e)==hc_Pedestal;
819  }
820  else
821  {
822  // local
824  if (!e.getByToken(_tokTrigger, ctrigger))
825  _logger.dqmthrow("Collection HcalTBTriggerData isn't available"
826  + _tagTrigger.label() + " " + _tagTrigger.instance());
827  return ctrigger->wasSpillIgnorantPedestalTrigger();
828  }
829 
830  return false;
831 }
virtual int _getCalibType(edm::Event const &)
Definition: DQTask.cc:174
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: PedestalTask.h:51
ProcessingType _ptype
Definition: DQModule.h:59
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
Logger _logger
Definition: DQModule.h:70
edm::InputTag _tagTrigger
Definition: PedestalTask.h:47
std::string const & label() const
Definition: InputTag.h:36
std::string const & instance() const
Definition: InputTag.h:37
void PedestalTask::_process ( edm::Event const &  e,
edm::EventSetup const &  es 
)
protectedvirtual

Implements hcaldqm::DQTask.

Definition at line 740 of file PedestalTask.cc.

References hcaldqm::DQModule::_logger, _tagHBHE, _tagHF, _tagHO, _tokHBHE, _tokHF, _tokHO, _xPedEntries1LS, _xPedEntriesTotal, _xPedSum1LS, _xPedSum21LS, _xPedSum2Total, _xPedSumTotal, hcaldqm::constants::CAPS_NUM, Logger::dqmthrow(), hcaldqm::ContainerXXX< STDTYPE >::get(), edm::Event::getByToken(), i, HFDataFrame::id(), HBHEDataFrame::id(), HODataFrame::id(), edm::InputTag::instance(), edm::InputTag::label(), HBHEDataFrame::size(), HFDataFrame::size(), and HODataFrame::size().

742 {
746 
747  if (!e.getByToken(_tokHBHE, chbhe))
748  _logger.dqmthrow("Collection HBHEDigiCollection isn't available"
749  + _tagHBHE.label() + " " + _tagHBHE.instance());
750  if (!e.getByToken(_tokHO, cho))
751  _logger.dqmthrow("Collection HODigiCollection isn't available"
752  + _tagHO.label() + " " + _tagHO.instance());
753  if (!e.getByToken(_tokHF, chf))
754  _logger.dqmthrow("Collection HFDigiCollection isn't available"
755  + _tagHF.label() + " " + _tagHF.instance());
756 
757  for (HBHEDigiCollection::const_iterator it=chbhe->begin();
758  it!=chbhe->end(); ++it)
759  {
760  const HBHEDataFrame digi = (const HBHEDataFrame)(*it);
761  HcalDetId did = digi.id();
762  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
764  for (int i=0; i<digiSizeToUse; i++)
765  {
766  _xPedSum1LS.get(did)+=it->sample(i).adc();
767  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
768  _xPedEntries1LS.get(did)++;
769 
770  _xPedSumTotal.get(did)+=it->sample(i).adc();
771  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
772  _xPedEntriesTotal.get(did)++;
773  }
774  }
775  for (HODigiCollection::const_iterator it=cho->begin();
776  it!=cho->end(); ++it)
777  {
778  const HODataFrame digi = (const HODataFrame)(*it);
779  HcalDetId did = digi.id();
780  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
782  for (int i=0; i<digiSizeToUse; i++)
783  {
784  _xPedSum1LS.get(did)+=it->sample(i).adc();
785  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
786  _xPedEntries1LS.get(did)++;
787 
788  _xPedSumTotal.get(did)+=it->sample(i).adc();
789  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
790  _xPedEntriesTotal.get(did)++;
791  }
792  }
793  for (HFDigiCollection::const_iterator it=chf->begin();
794  it!=chf->end(); ++it)
795  {
796  const HFDataFrame digi = (const HFDataFrame)(*it);
797  HcalDetId did = digi.id();
798  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
800  for (int i=0; i<digiSizeToUse; i++)
801  {
802  _xPedSum1LS.get(did)+=it->sample(i).adc();
803  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
804  _xPedEntries1LS.get(did)++;
805 
806  _xPedSumTotal.get(did)+=it->sample(i).adc();
807  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
808  _xPedEntriesTotal.get(did)++;
809  }
810  }
811 }
edm::InputTag _tagHF
Definition: PedestalTask.h:46
int i
Definition: DBlmapReader.cc:9
ContainerXXX< double > _xPedSum2Total
Definition: PedestalTask.h:80
int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:26
edm::InputTag _tagHBHE
Definition: PedestalTask.h:44
std::vector< HBHEDataFrame >::const_iterator const_iterator
edm::InputTag _tagHO
Definition: PedestalTask.h:45
const HcalDetId & id() const
Definition: HODataFrame.h:23
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: PedestalTask.h:50
int const CAPS_NUM
Definition: Constants.h:175
ContainerXXX< double > _xPedSumTotal
Definition: PedestalTask.h:79
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:78
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
Definition: PedestalTask.h:48
Logger _logger
Definition: DQModule.h:70
int size() const
total number of samples in the digi
Definition: HFDataFrame.h:26
std::string const & label() const
Definition: InputTag.h:36
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: PedestalTask.h:49
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:243
ContainerXXX< int > _xPedEntriesTotal
Definition: PedestalTask.h:81
const HcalDetId & id() const
Definition: HBHEDataFrame.h:22
const HcalDetId & id() const
Definition: HFDataFrame.h:22
ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:76
std::string const & instance() const
Definition: InputTag.h:37
ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:77
void PedestalTask::_resetMonitors ( UpdateFreq  uf)
protectedvirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 422 of file PedestalTask.cc.

References _xPedEntries1LS, _xPedSum1LS, _xPedSum21LS, hcaldqm::f50LS, and hcaldqm::ContainerXXX< STDTYPE >::reset().

423 {
424  DQTask::_resetMonitors(uf);
425 
426  switch(uf)
427  {
428  case hcaldqm::f50LS:
429  // reset the containers for Sums, SumSqr, #Entries
430  _xPedSum1LS.reset();
433  break;
434  default:
435  break;
436  }
437 }
virtual void reset()
Definition: ContainerXXX.h:342
ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:78
ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:76
ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:77
void PedestalTask::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 35 of file PedestalTask.cc.

References _cMean1LS_depth, _cMean1LS_FEDuTCA, _cMean1LS_FEDVME, _cMean1LS_Subdet, _cMeanBad1LS_depth, _cMeanBad1LS_FEDuTCA, _cMeanBad1LS_FEDVME, _cMeanBadTotal_depth, _cMeanBadTotal_FEDuTCA, _cMeanBadTotal_FEDVME, _cMeanDBRef1LS_depth, _cMeanDBRef1LS_FEDuTCA, _cMeanDBRef1LS_FEDVME, _cMeanDBRef1LS_Subdet, _cMeanDBRefTotal_depth, _cMeanDBRefTotal_FEDuTCA, _cMeanDBRefTotal_FEDVME, _cMeanDBRefTotal_Subdet, _cMeanTotal_depth, _cMeanTotal_FEDuTCA, _cMeanTotal_FEDVME, _cMeanTotal_Subdet, _cMissing1LS_depth, _cMissing1LS_FEDuTCA, _cMissing1LS_FEDVME, _cMissingTotal_depth, _cMissingTotal_FEDuTCA, _cMissingTotal_FEDVME, _cMissingvsLS_Subdet, _cNBadMeanvsLS_Subdet, _cNBadRMSvsLS_Subdet, _cOccupancyvsLS_Subdet, _cRMS1LS_depth, _cRMS1LS_FEDuTCA, _cRMS1LS_FEDVME, _cRMS1LS_Subdet, _cRMSBad1LS_depth, _cRMSBad1LS_FEDuTCA, _cRMSBad1LS_FEDVME, _cRMSBadTotal_depth, _cRMSBadTotal_FEDuTCA, _cRMSBadTotal_FEDVME, _cRMSDBRef1LS_depth, _cRMSDBRef1LS_FEDuTCA, _cRMSDBRef1LS_FEDVME, _cRMSDBRef1LS_Subdet, _cRMSDBRefTotal_depth, _cRMSDBRefTotal_FEDuTCA, _cRMSDBRefTotal_FEDVME, _cRMSDBRefTotal_Subdet, _cRMSTotal_depth, _cRMSTotal_FEDuTCA, _cRMSTotal_FEDVME, _cRMSTotal_Subdet, _cSummaryvsLS, _cSummaryvsLS_FED, _ehashmap, _emap, _filter_C36, _filter_uTCA, _filter_VME, hcaldqm::DQModule::_maxLS, hcaldqm::DQModule::_name, hcaldqm::DQModule::_ptype, hcaldqm::DQModule::_subsystem, _vflags, _vhashFEDs, _xNBadMean1LS, _xNBadRMS1LS, _xNChs, _xNMsn1LS, _xPedEntries1LS, _xPedEntriesTotal, _xPedRefMean, _xPedRefRMS, _xPedSum1LS, _xPedSum21LS, _xPedSum2Total, _xPedSumTotal, HcalElectronicsMap::allPrecisionId(), hcaldqm::ContainerXXX< STDTYPE >::book(), hcaldqm::ContainerProf2D::book(), hcaldqm::ContainerSingle2D::book(), hcaldqm::Container2D::book(), hcaldqm::Container1D::book(), bookHistograms(), hcaldqm::constants::CRATE_uTCA_MIN, hcaldqm::constants::CRATE_VME_MIN, hcaldqm::quantity::fADC_15, hcaldqm::quantity::fADC_5, hcaldqm::quantity::fAroundZero, hcaldqm::quantity::fCrate, hcaldqm::electronicsmap::fD2EHashMap, hcaldqm::hashfunctions::fDChannel, hcaldqm::quantity::fdepth, hcaldqm::utilities::fed2crate(), hcaldqm::constants::FED_VME_MIN, hcaldqm::hashfunctions::fElectronics, hcaldqm::quantity::fFED, hcaldqm::quantity::fFiberuTCAFiberCh, hcaldqm::quantity::fFiberVMEFiberCh, hcaldqm::filter::fFilter, hcaldqm::constants::FIBER_uTCA_MIN1, hcaldqm::constants::FIBER_VME_MIN, hcaldqm::constants::FIBERCH_MIN, hcaldqm::quantity::fieta, hcaldqm::filter::HashFilter::filter(), hcaldqm::quantity::fiphi, hcaldqm::fLocal, hcaldqm::quantity::fN, hcaldqm::quantity::fSlotuTCA, hcaldqm::quantity::fSpigot, hcaldqm::quantity::fState, hcaldqm::quantity::fSubdet, edm::EventSetup::get(), hcaldqm::utilities::getFEDList(), hcaldqm::utilities::getFEDuTCAList(), hcaldqm::utilities::getFEDVMEList(), i, hcaldqm::ContainerProf2D::initialize(), hcaldqm::Container2D::initialize(), hcaldqm::ContainerXXX< STDTYPE >::initialize(), hcaldqm::ContainerSingle2D::initialize(), hcaldqm::filter::HashFilter::initialize(), hcaldqm::electronicsmap::ElectronicsMap::initialize(), hcaldqm::Container1D::initialize(), hcaldqm::electronicsmap::ElectronicsMap::lookup(), edm::RunAuxiliary::run(), edm::Run::runAuxiliary(), hcaldqm::ContainerXXX< STDTYPE >::set(), hcaldqm::constants::SLOT_uTCA_MIN, and hcaldqm::constants::SPIGOT_MIN.

37 {
38  if (_ptype==fLocal)
39  if (r.runAuxiliary().run()==1)
40  return;
41  DQTask::bookHistograms(ib, r, es);
42 
44  es.get<HcalDbRecord>().get(dbs);
45  _emap = dbs->getHcalMapping();
46  std::vector<int> vFEDs = utilities::getFEDList(_emap);
47  std::vector<int> vFEDsVME = utilities::getFEDVMEList(_emap);
48  std::vector<int> vFEDsuTCA = utilities::getFEDuTCAList(_emap);
49  std::vector<uint32_t> vhashVME;
50  std::vector<uint32_t> vhashuTCA;
51  std::vector<uint32_t> vhashC36;
52  vhashVME.push_back(HcalElectronicsId(constants::FIBERCH_MIN,
54  vhashuTCA.push_back(HcalElectronicsId(CRATE_uTCA_MIN, SLOT_uTCA_MIN,
55  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
56  vhashC36.push_back(HcalElectronicsId(36, SLOT_uTCA_MIN,
57  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
59  vhashVME);
61  vhashuTCA);
63  vhashC36);
64 
65  for (std::vector<int>::const_iterator it=vFEDsVME.begin();
66  it!=vFEDsVME.end(); ++it)
68  FIBER_VME_MIN, SPIGOT_MIN, (*it)-FED_VME_MIN).rawId());
69  for (std::vector<int>::const_iterator it=vFEDsuTCA.begin();
70  it!=vFEDsuTCA.end(); ++it)
71  _vhashFEDs.push_back(HcalElectronicsId(
73  FIBERCH_MIN, false).rawId());
74 
75  // Containers XXX
82 
85 
90 
91  // Containers
122 
153 
184 
215 
216  _cMissingvsLS_Subdet.initialize(_name, "MissingvsLS",
220  _cOccupancyvsLS_Subdet.initialize(_name, "OccupancyvsLS",
224  _cNBadMeanvsLS_Subdet.initialize(_name, "NBadMeanvsLS",
228  _cNBadRMSvsLS_Subdet.initialize(_name, "NBadRMSvsLS",
232 
269 
306 
307  _cSummaryvsLS_FED.initialize(_name, "SummaryvsLS",
312  _cSummaryvsLS.initialize(_name, "SummaryvsLS",
314  new quantity::FEDQuantity(vFEDs),
316 
317  // book plots
329 
341 
356 
371 
378 
379  // book compact containers
386 
389 
390  _xNChs.book(_emap);
394 
396 
397  // load conditions pedestals
398  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
399  for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
400  it!=dids.end(); ++it)
401  {
402  // skip if calib or whatever
403  if (!it->isHcalDetId())
404  continue;
405  // skip Crate 36
407  continue;
408  HcalDetId did = HcalDetId(it->rawId());
409 
410  HcalPedestal const* peds = dbs->getPedestal(did);
411  float const *means = peds->getValues();
412  float const *rmss = peds->getWidths();
413  double msum=0; double rsum=0;
414  for (uint32_t i=0; i<4; i++)
415  {msum+=means[i]; rsum+=rmss[i];}
416  msum/=4; rsum/=4;
417  _xPedRefMean.set(did, msum);
418  _xPedRefRMS.set(did, rsum);
419  }
420 }
ContainerProf2D _cMeanTotal_FEDuTCA
Definition: PedestalTask.h:107
ContainerProf2D _cRMSDBRefTotal_depth
Definition: PedestalTask.h:124
ContainerProf2D _cRMS1LS_FEDuTCA
Definition: PedestalTask.h:102
Container1D _cMeanTotal_Subdet
Definition: PedestalTask.h:91
ContainerProf2D _cRMS1LS_FEDVME
Definition: PedestalTask.h:101
int i
Definition: DBlmapReader.cc:9
ContainerProf2D _cRMSDBRefTotal_FEDVME
Definition: PedestalTask.h:127
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:40
Container2D _cMeanBad1LS_FEDuTCA
Definition: PedestalTask.h:150
int const CRATE_VME_MIN
Definition: Constants.h:60
Container2D _cRMSBadTotal_FEDVME
Definition: PedestalTask.h:156
uint16_t fed2crate(int fed)
Definition: Utilities.cc:12
Container2D _cMeanBadTotal_depth
Definition: PedestalTask.h:152
ContainerXXX< double > _xPedSum2Total
Definition: PedestalTask.h:80
Container2D _cSummaryvsLS_FED
Definition: PedestalTask.h:160
ContainerProf2D _cMean1LS_depth
Definition: PedestalTask.h:97
Container2D _cMeanBadTotal_FEDVME
Definition: PedestalTask.h:154
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
HashFilter _filter_VME
Definition: PedestalTask.h:66
ContainerProf2D _cMean1LS_FEDVME
Definition: PedestalTask.h:99
HashFilter _filter_uTCA
Definition: PedestalTask.h:65
ContainerProf2D _cMeanDBRef1LS_depth
Definition: PedestalTask.h:116
ContainerProf2D _cRMSTotal_depth
Definition: PedestalTask.h:105
ContainerProf2D _cMeanTotal_depth
Definition: PedestalTask.h:104
int const SPIGOT_MIN
Definition: Constants.h:85
ContainerXXX< double > _xPedRefRMS
Definition: PedestalTask.h:88
Container1D _cRMSDBRef1LS_Subdet
Definition: PedestalTask.h:113
ContainerProf2D _cMeanDBRefTotal_FEDVME
Definition: PedestalTask.h:125
ContainerProf2D _cMeanDBRef1LS_FEDuTCA
Definition: PedestalTask.h:119
std::vector< uint32_t > _vhashFEDs
Definition: PedestalTask.h:73
int const FIBER_VME_MIN
Definition: Constants.h:90
ContainerProf2D _cRMSDBRefTotal_FEDuTCA
Definition: PedestalTask.h:128
Container1D _cNBadRMSvsLS_Subdet
Definition: PedestalTask.h:134
void bookHistograms(fwlite::EventContainer &eventCont)
ContainerXXX< int > _xNBadRMS1LS
Definition: PedestalTask.h:84
ContainerProf2D _cMean1LS_FEDuTCA
Definition: PedestalTask.h:100
int const FIBERCH_MIN
Definition: Constants.h:100
ContainerXXX< int > _xNBadMean1LS
Definition: PedestalTask.h:84
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
Definition: Utilities.cc:71
Container2D _cRMSBad1LS_FEDuTCA
Definition: PedestalTask.h:148
Container2D _cMissing1LS_FEDVME
Definition: PedestalTask.h:138
ContainerProf2D _cRMSTotal_FEDuTCA
Definition: PedestalTask.h:109
ContainerSingle2D _cSummaryvsLS
Definition: PedestalTask.h:161
ProcessingType _ptype
Definition: DQModule.h:59
ContainerProf2D _cRMSDBRef1LS_depth
Definition: PedestalTask.h:117
Container1D _cMeanDBRef1LS_Subdet
Definition: PedestalTask.h:112
ContainerProf2D _cMeanDBRefTotal_FEDuTCA
Definition: PedestalTask.h:126
Container1D _cRMSDBRefTotal_Subdet
Definition: PedestalTask.h:115
electronicsmap::ElectronicsMap _ehashmap
Definition: PedestalTask.h:64
Container2D _cMissing1LS_FEDuTCA
Definition: PedestalTask.h:139
ContainerXXX< double > _xPedSumTotal
Definition: PedestalTask.h:79
Container1D _cNBadMeanvsLS_Subdet
Definition: PedestalTask.h:133
int const FED_VME_MIN
Definition: Constants.h:47
Container2D _cRMSBadTotal_FEDuTCA
Definition: PedestalTask.h:155
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fEnergy), int debug=0)
ContainerXXX< double > _xPedRefMean
Definition: PedestalTask.h:87
HcalElectronicsMap const * _emap
Definition: PedestalTask.h:63
ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:78
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:32
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
Container2D _cMissingTotal_FEDuTCA
Definition: PedestalTask.h:142
Container2D _cMeanBad1LS_FEDVME
Definition: PedestalTask.h:147
std::vector< HcalGenericDetId > allPrecisionId() const
std::string _name
Definition: DQModule.h:57
Container2D _cMissingTotal_depth
Definition: PedestalTask.h:140
int const CRATE_uTCA_MIN
Definition: Constants.h:65
ContainerProf2D _cRMSDBRef1LS_FEDVME
Definition: PedestalTask.h:120
ContainerProf2D _cRMS1LS_depth
Definition: PedestalTask.h:98
ContainerXXX< int > _xNMsn1LS
Definition: PedestalTask.h:83
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container2D.cc:895
virtual void book(HcalElectronicsMap const *)
Definition: ContainerXXX.h:93
Container2D _cMeanBad1LS_depth
Definition: PedestalTask.h:145
virtual void initialize(std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:957
Container2D _cRMSBad1LS_FEDVME
Definition: PedestalTask.h:149
ContainerProf2D _cRMSDBRef1LS_FEDuTCA
Definition: PedestalTask.h:121
ContainerProf2D _cMeanDBRefTotal_depth
Definition: PedestalTask.h:123
Container2D _cMeanBadTotal_FEDuTCA
Definition: PedestalTask.h:157
Container1D _cMeanDBRefTotal_Subdet
Definition: PedestalTask.h:114
Container1D _cRMS1LS_Subdet
Definition: PedestalTask.h:94
std::vector< int > getFEDList(HcalElectronicsMap const *)
Definition: Utilities.cc:47
std::vector< flag::Flag > _vflags
Definition: PedestalTask.h:53
Container1D _cRMSTotal_Subdet
Definition: PedestalTask.h:92
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
Definition: Utilities.cc:97
Container1D _cMissingvsLS_Subdet
Definition: PedestalTask.h:131
virtual bool filter(HcalDetId const &) const
Definition: HashFilter.cc:36
ContainerXXX< int > _xPedEntriesTotal
Definition: PedestalTask.h:81
std::string _subsystem
Definition: DQModule.h:64
ContainerProf2D _cMeanTotal_FEDVME
Definition: PedestalTask.h:106
ContainerXXX< int > _xNChs
Definition: PedestalTask.h:82
Container2D _cMissingTotal_FEDVME
Definition: PedestalTask.h:141
Container1D _cMean1LS_Subdet
Definition: PedestalTask.h:93
virtual void initialize(hashfunctions::HashType, int debug=0)
Definition: ContainerXXX.h:85
virtual void initialize(FilterType ftype, HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:26
HashFilter _filter_C36
Definition: PedestalTask.h:67
ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:76
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
ContainerProf2D _cRMSTotal_FEDVME
Definition: PedestalTask.h:108
Container1D _cOccupancyvsLS_Subdet
Definition: PedestalTask.h:132
Readout chain identification for Hcal.
Container2D _cMissing1LS_depth
Definition: PedestalTask.h:137
ContainerProf2D _cMeanDBRef1LS_FEDVME
Definition: PedestalTask.h:118
Container2D _cRMSBadTotal_depth
Definition: PedestalTask.h:153
virtual void set(HcalDetId const &, STDTYPE)
Definition: ContainerXXX.h:223
Container2D _cRMSBad1LS_depth
Definition: PedestalTask.h:146
int const SLOT_uTCA_MIN
Definition: Constants.h:72
ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:77
void PedestalTask::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
virtual

Reimplemented from hcaldqm::DQTask.

Definition at line 732 of file PedestalTask.cc.

References _dump(), hcaldqm::DQModule::_ptype, and hcaldqm::fLocal.

734 {
735  if (_ptype==fLocal)
736  return;
737  this->_dump();
738 }
ProcessingType _ptype
Definition: DQModule.h:59
virtual void _dump()
void PedestalTask::endRun ( edm::Run const &  r,
edm::EventSetup const &   
)
virtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 439 of file PedestalTask.cc.

441 {}

Member Data Documentation

ContainerProf2D PedestalTask::_cMean1LS_depth
protected

Definition at line 97 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMean1LS_FEDuTCA
protected

Definition at line 100 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMean1LS_FEDVME
protected

Definition at line 99 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cMean1LS_Subdet
protected

Definition at line 93 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMeanBad1LS_depth
protected

Definition at line 145 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMeanBad1LS_FEDuTCA
protected

Definition at line 150 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMeanBad1LS_FEDVME
protected

Definition at line 147 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMeanBadTotal_depth
protected

Definition at line 152 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMeanBadTotal_FEDuTCA
protected

Definition at line 157 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMeanBadTotal_FEDVME
protected

Definition at line 154 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMeanDBRef1LS_depth
protected

Definition at line 116 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMeanDBRef1LS_FEDuTCA
protected

Definition at line 119 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMeanDBRef1LS_FEDVME
protected

Definition at line 118 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cMeanDBRef1LS_Subdet
protected

Definition at line 112 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMeanDBRefTotal_depth
protected

Definition at line 123 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMeanDBRefTotal_FEDuTCA
protected

Definition at line 126 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMeanDBRefTotal_FEDVME
protected

Definition at line 125 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cMeanDBRefTotal_Subdet
protected

Definition at line 114 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMeanTotal_depth
protected

Definition at line 104 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMeanTotal_FEDuTCA
protected

Definition at line 107 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cMeanTotal_FEDVME
protected

Definition at line 106 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cMeanTotal_Subdet
protected

Definition at line 91 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMissing1LS_depth
protected

Definition at line 137 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMissing1LS_FEDuTCA
protected

Definition at line 139 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMissing1LS_FEDVME
protected

Definition at line 138 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMissingTotal_depth
protected

Definition at line 140 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMissingTotal_FEDuTCA
protected

Definition at line 142 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cMissingTotal_FEDVME
protected

Definition at line 141 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cMissingvsLS_Subdet
protected

Definition at line 131 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cNBadMeanvsLS_Subdet
protected

Definition at line 133 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cNBadRMSvsLS_Subdet
protected

Definition at line 134 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cOccupancyvsLS_Subdet
protected

Definition at line 132 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMS1LS_depth
protected

Definition at line 98 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMS1LS_FEDuTCA
protected

Definition at line 102 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMS1LS_FEDVME
protected

Definition at line 101 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cRMS1LS_Subdet
protected

Definition at line 94 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cRMSBad1LS_depth
protected

Definition at line 146 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cRMSBad1LS_FEDuTCA
protected

Definition at line 148 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cRMSBad1LS_FEDVME
protected

Definition at line 149 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cRMSBadTotal_depth
protected

Definition at line 153 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cRMSBadTotal_FEDuTCA
protected

Definition at line 155 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cRMSBadTotal_FEDVME
protected

Definition at line 156 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMSDBRef1LS_depth
protected

Definition at line 117 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMSDBRef1LS_FEDuTCA
protected

Definition at line 121 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMSDBRef1LS_FEDVME
protected

Definition at line 120 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cRMSDBRef1LS_Subdet
protected

Definition at line 113 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMSDBRefTotal_depth
protected

Definition at line 124 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMSDBRefTotal_FEDuTCA
protected

Definition at line 128 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMSDBRefTotal_FEDVME
protected

Definition at line 127 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cRMSDBRefTotal_Subdet
protected

Definition at line 115 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMSTotal_depth
protected

Definition at line 105 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMSTotal_FEDuTCA
protected

Definition at line 109 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerProf2D PedestalTask::_cRMSTotal_FEDVME
protected

Definition at line 108 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container1D PedestalTask::_cRMSTotal_Subdet
protected

Definition at line 92 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerSingle2D PedestalTask::_cSummaryvsLS
protected

Definition at line 161 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

Container2D PedestalTask::_cSummaryvsLS_FED
protected

Definition at line 160 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

electronicsmap::ElectronicsMap PedestalTask::_ehashmap
protected

Definition at line 64 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

HcalElectronicsMap const* PedestalTask::_emap
protected

Definition at line 63 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

HashFilter PedestalTask::_filter_C36
protected

Definition at line 67 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

HashFilter PedestalTask::_filter_uTCA
protected

Definition at line 65 of file PedestalTask.h.

Referenced by bookHistograms().

HashFilter PedestalTask::_filter_VME
protected

Definition at line 66 of file PedestalTask.h.

Referenced by bookHistograms().

edm::InputTag PedestalTask::_tagHBHE
protected

Definition at line 44 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::InputTag PedestalTask::_tagHF
protected

Definition at line 46 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::InputTag PedestalTask::_tagHO
protected

Definition at line 45 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::InputTag PedestalTask::_tagTrigger
protected

Definition at line 47 of file PedestalTask.h.

Referenced by _isApplicable(), and PedestalTask().

double PedestalTask::_thresh_badm
protected

Definition at line 70 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

double PedestalTask::_thresh_badr
protected

Definition at line 70 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

double PedestalTask::_thresh_mean
protected

Definition at line 70 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

double PedestalTask::_thresh_rms
protected

Definition at line 70 of file PedestalTask.h.

Referenced by _dump(), and PedestalTask().

edm::EDGetTokenT<HBHEDigiCollection> PedestalTask::_tokHBHE
protected

Definition at line 48 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::EDGetTokenT<HFDigiCollection> PedestalTask::_tokHF
protected

Definition at line 50 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::EDGetTokenT<HODigiCollection> PedestalTask::_tokHO
protected

Definition at line 49 of file PedestalTask.h.

Referenced by _process(), and PedestalTask().

edm::EDGetTokenT<HcalTBTriggerData> PedestalTask::_tokTrigger
protected

Definition at line 51 of file PedestalTask.h.

Referenced by _isApplicable(), and PedestalTask().

std::vector<flag::Flag> PedestalTask::_vflags
protected

Definition at line 53 of file PedestalTask.h.

Referenced by _dump(), bookHistograms(), and PedestalTask().

std::vector<uint32_t> PedestalTask::_vhashFEDs
protected

Definition at line 73 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerXXX<int> PedestalTask::_xNBadMean1LS
protected

Definition at line 84 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerXXX<int> PedestalTask::_xNBadRMS1LS
protected

Definition at line 84 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerXXX<int> PedestalTask::_xNChs
protected

Definition at line 82 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerXXX<int> PedestalTask::_xNMsn1LS
protected

Definition at line 83 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerXXX<int> PedestalTask::_xPedEntries1LS
protected

Definition at line 78 of file PedestalTask.h.

Referenced by _dump(), _process(), _resetMonitors(), and bookHistograms().

ContainerXXX<int> PedestalTask::_xPedEntriesTotal
protected

Definition at line 81 of file PedestalTask.h.

Referenced by _dump(), _process(), and bookHistograms().

ContainerXXX<double> PedestalTask::_xPedRefMean
protected

Definition at line 87 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerXXX<double> PedestalTask::_xPedRefRMS
protected

Definition at line 88 of file PedestalTask.h.

Referenced by _dump(), and bookHistograms().

ContainerXXX<double> PedestalTask::_xPedSum1LS
protected

Definition at line 76 of file PedestalTask.h.

Referenced by _dump(), _process(), _resetMonitors(), and bookHistograms().

ContainerXXX<double> PedestalTask::_xPedSum21LS
protected

Definition at line 77 of file PedestalTask.h.

Referenced by _dump(), _process(), _resetMonitors(), and bookHistograms().

ContainerXXX<double> PedestalTask::_xPedSum2Total
protected

Definition at line 80 of file PedestalTask.h.

Referenced by _dump(), _process(), and bookHistograms().

ContainerXXX<double> PedestalTask::_xPedSumTotal
protected

Definition at line 79 of file PedestalTask.h.

Referenced by _dump(), _process(), and bookHistograms().

tuple PedestalTask.pedestalTask
Initial value:
1 = cms.EDAnalyzer(
2  "PedestalTask",
3 
4  # standard parameters
5  name = cms.untracked.string("PedestalTask"),
6  debug = cms.untracked.int32(0),
7  runkeyVal = cms.untracked.int32(0),
8  runkeyName = cms.untracked.string("pp_run"),
9  ptype = cms.untracked.int32(0),
10  mtype = cms.untracked.bool(True),
11  subsystem = cms.untracked.string('HcalCalib'),
12 
13  # tags
14  tagHBHE = cms.untracked.InputTag("hcalDigis"),
15  tagHO = cms.untracked.InputTag("hcalDigis"),
16  tagHF = cms.untracked.InputTag("hcalDigis"),
17  tagRaw = cms.untracked.InputTag('hltHcalCalibrationRaw'),
18 
19  thresh_mean = cms.untracked.double(0.25),
20  thresh_rms = cms.untracked.double(0.25),
21  thresh_badm = cms.untracked.double(0.1),
22  thresh_badr = cms.untracked.double(0.1)
23 )

Definition at line 3 of file PedestalTask.py.