CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
UMNioTask Class Reference

#include <UMNioTask.h>

Inheritance diagram for UMNioTask:
hcaldqm::DQTask DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > > hcaldqm::DQModule edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmEndRun (edm::Run const &r, edm::EventSetup const &) override
 
std::shared_ptr< hcaldqm::CacheglobalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const override
 
void globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 UMNioTask (edm::ParameterSet const &)
 
 ~UMNioTask () override
 
- Public Member Functions inherited from hcaldqm::DQTask
void analyze (edm::Event const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
 DQTask (edm::ParameterSet const &)
 
std::shared_ptr< hcaldqm::CacheglobalBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) const override
 
void globalEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 ~DQTask () override
 
- Public Member Functions inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMOneEDAnalyzer ()
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule () noexcept(false)
 

Public Attributes

 debug
 
 mtype
 
 name
 
 ptype
 
 runkeyName
 
 runkeyVal
 
 subsystem
 
 tagRaw
 
 taguMN
 
 umnioTask
 

Protected Member Functions

void _process (edm::Event const &, edm::EventSetup const &) override
 
int getOrbitGapIndex (uint8_t eventType, uint32_t laserType)
 
- Protected Member Functions inherited from hcaldqm::DQTask
virtual int _getCalibType (edm::Event const &)
 
virtual bool _isApplicable (edm::Event const &)
 
virtual void _resetMonitors (UpdateFreq)
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Protected Attributes

hcaldqm::ContainerSingle2D _cEventType
 
hcaldqm::ContainerSingle2D _cTotalCharge
 
hcaldqm::ContainerSingleProf2D _cTotalChargeProfile
 
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
 
std::vector< uint32_t > _eventtypes
 
hcaldqm::filter::HashFilter _filter_uTCA
 
hcaldqm::filter::HashFilter _filter_VME
 
edm::ESGetToken< HcalDbService, HcalDbRecordhcalDbServiceToken_
 
double lowHBHE_
 
double lowHF_
 
double lowHO_
 
edm::InputTag tagHBHE_
 
edm::InputTag tagHF_
 
edm::InputTag tagHO_
 
edm::InputTag taguMN_
 
edm::EDGetTokenT< QIE11DigiCollectiontokHBHE_
 
edm::EDGetTokenT< QIE10DigiCollectiontokHF_
 
edm::EDGetTokenT< HODigiCollectiontokHO_
 
edm::EDGetTokenT< HcalUMNioDigitokuMN_
 
- Protected Attributes inherited from hcaldqm::DQTask
ContainerI _cEvsPerLS
 
ContainerI _cEvsTotal
 
ContainerS _cProcessingTypeName
 
ContainerS _cRunKeyName
 
ContainerI _cRunKeyVal
 
edm::ESHandle< HcalDbService_dbService
 
HcalElectronicsMap const * _emap = nullptr
 
int _procLSs
 
edm::InputTag _tagRaw
 
edm::EDGetTokenT< FEDRawDataCollection_tokRaw
 
std::vector< uint32_t > _vcdaqEids
 
ContainerXXX< uint32_t > _xQuality
 
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcdhcalChannelQualityToken_
 
edm::ESGetToken< HcalDbService, HcalDbRecordhcalDbServiceToken_
 
edm::ESGetToken< RunInfo, RunInfoRcdrunInfoToken_
 
- Protected Attributes inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
edm::EDPutTokenT< DQMTokenrunToken_
 
- 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 DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from hcaldqm::DQTask
static void fillPSetDescription (edm::ParameterSetDescription &des)
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from hcaldqm::DQModule
static void fillPSetDescription (edm::ParameterSetDescription &desc)
 

Detailed Description

Definition at line 23 of file UMNioTask.h.

Constructor & Destructor Documentation

◆ UMNioTask()

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

Definition at line 6 of file UMNioTask.cc.

References _eventtypes, edm::ParameterSet::getUntrackedParameter(), ProducerED_cfi::InputTag, lowHBHE_, lowHF_, lowHO_, hcaldqm::constants::nOrbitGapType, tagHBHE_, tagHF_, tagHO_, taguMN_, hcaldqm::constants::tNull, tokHBHE_, tokHF_, tokHO_, and tokuMN_.

7  : DQTask(ps), hcalDbServiceToken_(esConsumes<HcalDbService, HcalDbRecord, edm::Transition::BeginRun>()) {
8  tagHBHE_ = ps.getUntrackedParameter<edm::InputTag>("tagHBHE", edm::InputTag("hcalDigis"));
9  tagHO_ = ps.getUntrackedParameter<edm::InputTag>("tagHO", edm::InputTag("hcalDigis"));
10  tagHF_ = ps.getUntrackedParameter<edm::InputTag>("tagHF", edm::InputTag("hcalDigis"));
11  taguMN_ = ps.getUntrackedParameter<edm::InputTag>("taguMN", edm::InputTag("hcalDigis"));
12 
13  tokHBHE_ = consumes<QIE11DigiCollection>(tagHBHE_);
14  tokHO_ = consumes<HODigiCollection>(tagHO_);
15  tokHF_ = consumes<QIE10DigiCollection>(tagHF_);
16  tokuMN_ = consumes<HcalUMNioDigi>(taguMN_);
17 
18  lowHBHE_ = ps.getUntrackedParameter<double>("lowHBHE", 20);
19  lowHO_ = ps.getUntrackedParameter<double>("lowHO", 20);
20  lowHF_ = ps.getUntrackedParameter<double>("lowHF", 20);
21 
22  // push all the event types to monitor - whole range basically
23  // This corresponds to all enum values in hcaldqm::constants::OrbitGapType
24  for (uint32_t type = constants::tNull; type < constants::nOrbitGapType; type++) {
25  _eventtypes.push_back(type);
26  }
27 }
std::vector< uint32_t > _eventtypes
Definition: UMNioTask.h:46
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:8
edm::EDGetTokenT< HODigiCollection > tokHO_
Definition: UMNioTask.h:54
edm::EDGetTokenT< HcalUMNioDigi > tokuMN_
Definition: UMNioTask.h:56
edm::InputTag tagHBHE_
Definition: UMNioTask.h:50
double lowHO_
Definition: UMNioTask.h:60
double lowHF_
Definition: UMNioTask.h:60
edm::InputTag taguMN_
Definition: UMNioTask.h:49
double lowHBHE_
Definition: UMNioTask.h:60
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: UMNioTask.h:57
edm::EDGetTokenT< QIE10DigiCollection > tokHF_
Definition: UMNioTask.h:55
edm::EDGetTokenT< QIE11DigiCollection > tokHBHE_
Definition: UMNioTask.h:53
edm::InputTag tagHF_
Definition: UMNioTask.h:52
edm::InputTag tagHO_
Definition: UMNioTask.h:51

◆ ~UMNioTask()

UMNioTask::~UMNioTask ( )
inlineoverride

Definition at line 26 of file UMNioTask.h.

26 {}

Member Function Documentation

◆ _process()

void UMNioTask::_process ( edm::Event const &  e,
edm::EventSetup const &  es 
)
overrideprotectedvirtual

Implements hcaldqm::DQTask.

Definition at line 106 of file UMNioTask.cc.

References _cEventType, _cTotalCharge, _cTotalChargeProfile, hcaldqm::DQModule::_currentLS, hcaldqm::DQTask::_dbService, hcaldqm::DQTask::_xQuality, callgraph::cs, QIE11DataFrame::detid(), QIE10DataFrame::detid(), MillePedeFileConverter_cfg::e, hcalcalib_dqm_sourceclient-live_cfg::eventType, hcaldqm::ContainerXXX< STDTYPE >::exists(), hcaldqm::ContainerSingleProf2D::fill(), hcaldqm::ContainerSingle2D::fill(), hcaldqm::ContainerXXX< STDTYPE >::get(), getOrbitGapIndex(), HcalBarrel, HcalChannelStatus::HcalCellDead, HcalChannelStatus::HcalCellMask, HcalEndcap, HcalForward, HcalOuter, HODataFrame::id(), hcalcalib_dqm_sourceclient-live_cfg::laserType, DetId::rawId(), hcaldqm::ContainerXXX< STDTYPE >::reset(), QIE11DataFrame::samples(), QIE10DataFrame::samples(), HODataFrame::size(), HcalDetId::subdet(), hcaldqm::utilities::sumQ(), tokHBHE_, tokHF_, tokHO_, and tokuMN_.

106  {
107  auto lumiCache = luminosityBlockCache(e.getLuminosityBlock().index());
108  _currentLS = lumiCache->currentLS;
109  _xQuality.reset();
110  _xQuality = lumiCache->xQuality;
111 
112  auto const cumn = e.getHandle(tokuMN_);
113  if (not(cumn.isValid())) {
114  edm::LogWarning("UMNioTask") << "HcalUMNioDigi isn't available, calling return";
115  return;
116  }
117 
118  uint8_t eventType = cumn->eventType();
119  uint32_t laserType = cumn->valueUserWord(0);
121 
122  // Compute the Total Charge in the Detector...
123  auto const chbhe = e.getHandle(tokHBHE_);
124  if (chbhe.isValid()) {
125  for (QIE11DigiCollection::const_iterator it = chbhe->begin(); it != chbhe->end(); ++it) {
126  const QIE11DataFrame digi = static_cast<const QIE11DataFrame>(*it);
127  HcalDetId const& did = digi.detid();
128  if ((did.subdet() != HcalBarrel) && (did.subdet() != HcalEndcap))
129  continue;
130  if (_xQuality.exists(did)) {
131  HcalChannelStatus cs(did.rawId(), _xQuality.get(did));
133  continue;
134  }
135  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<QIE11DataFrame>(_dbService, did, digi);
136  double sumQ = hcaldqm::utilities::sumQDB<QIE11DataFrame>(_dbService, digi_fC, did, digi, 0, digi.samples() - 1);
139  }
140  }
141  auto const cho = e.getHandle(tokHO_);
142  if (cho.isValid()) {
143  for (HODigiCollection::const_iterator it = cho->begin(); it != cho->end(); ++it) {
144  const HODataFrame digi = (const HODataFrame)(*it);
145  HcalDetId did = digi.id();
146  if (did.subdet() != HcalOuter)
147  continue;
148  if (_xQuality.exists(did)) {
149  HcalChannelStatus cs(did.rawId(), _xQuality.get(did));
151  continue;
152  }
153  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<HODataFrame>(_dbService, did, digi);
154  double sumQ = hcaldqm::utilities::sumQDB<HODataFrame>(_dbService, digi_fC, did, digi, 0, digi.size() - 1);
157  }
158  }
159  auto const chf = e.getHandle(tokHF_);
160  if (chf.isValid()) {
161  for (QIE10DigiCollection::const_iterator it = chf->begin(); it != chf->end(); ++it) {
162  const QIE10DataFrame digi = static_cast<const QIE10DataFrame>(*it);
163  HcalDetId did = digi.detid();
164  if (did.subdet() != HcalForward)
165  continue;
166  if (_xQuality.exists(did)) {
167  HcalChannelStatus cs(did.rawId(), _xQuality.get(did));
169  continue;
170  }
171  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<QIE10DataFrame>(_dbService, did, digi);
172  double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(_dbService, digi_fC, did, digi, 0, digi.samples() - 1);
175  }
176  }
177 }
constexpr DetId detid() const
Get the detector id.
virtual bool exists(HcalDetId const &)
Definition: ContainerXXX.h:212
edm::EDGetTokenT< HODigiCollection > tokHO_
Definition: UMNioTask.h:54
edm::EDGetTokenT< HcalUMNioDigi > tokuMN_
Definition: UMNioTask.h:56
std::vector< T >::const_iterator const_iterator
hcaldqm::ContainerSingleProf2D _cTotalChargeProfile
Definition: UMNioTask.h:70
virtual void reset()
Definition: ContainerXXX.h:292
constexpr DetId detid() const
Get the detector id.
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
ContainerXXX< uint32_t > _xQuality
Definition: DQTask.h:66
int getOrbitGapIndex(uint8_t eventType, uint32_t laserType)
Definition: UMNioTask.cc:62
constexpr int samples() const
total number of samples in the digi
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
edm::EDGetTokenT< QIE10DigiCollection > tokHF_
Definition: UMNioTask.h:55
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
constexpr int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
edm::EDGetTokenT< QIE11DigiCollection > tokHBHE_
Definition: UMNioTask.h:53
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:197
edm::ESHandle< HcalDbService > _dbService
Definition: DQTask.h:80
hcaldqm::ContainerSingle2D _cTotalCharge
Definition: UMNioTask.h:69
virtual void fill(int, int)
Log< level::Warning, false > LogWarning
hcaldqm::ContainerSingle2D _cEventType
Definition: UMNioTask.h:68
constexpr int samples() const
total number of samples in the digi
constexpr HcalDetId const & id() const
Definition: HODataFrame.h:23
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
Definition: Utilities.h:127

◆ bookHistograms()

void UMNioTask::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  r,
edm::EventSetup const &  es 
)
overridevirtual

Reimplemented from hcaldqm::DQTask.

Definition at line 29 of file UMNioTask.cc.

References _cEventType, _cTotalCharge, _cTotalChargeProfile, hcaldqm::DQTask::_emap, _eventtypes, hcaldqm::DQModule::_maxLS, hcaldqm::DQModule::_name, hcaldqm::DQModule::_ptype, hcaldqm::DQModule::_subsystem, hcaldqm::ContainerSingleProf2D::book(), hcaldqm::ContainerSingle2D::book(), bookHistograms(), hcaldqm::quantity::ffC_10000, hcaldqm::fLocal, hcaldqm::quantity::fN, hcaldqm::quantity::fSubdetPM, edm::EventSetup::getHandle(), HcalDbService::getHcalMapping(), hcalDbServiceToken_, cuy::ib, hcaldqm::ContainerSingleProf2D::initialize(), and hcaldqm::ContainerSingle2D::initialize().

29  {
30  if (_ptype == fLocal)
31  if (r.runAuxiliary().run() == 1)
32  return;
33 
35 
36  edm::ESHandle<HcalDbService> dbService = es.getHandle(hcalDbServiceToken_);
37  _emap = dbService->getHcalMapping();
38 
40  "EventType",
44  0);
46  "TotalCharge",
50  0);
52  "TotalChargeProfile",
56  0);
60 }
std::vector< uint32_t > _eventtypes
Definition: UMNioTask.h:46
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
const HcalElectronicsMap * getHcalMapping() const
hcaldqm::ContainerSingleProf2D _cTotalChargeProfile
Definition: UMNioTask.h:70
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
ProcessingType _ptype
Definition: DQModule.h:44
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: UMNioTask.h:57
std::string _name
Definition: DQModule.h:42
HcalElectronicsMap const * _emap
Definition: DQTask.h:81
void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0) override
std::string _subsystem
Definition: DQModule.h:49
hcaldqm::ContainerSingle2D _cTotalCharge
Definition: UMNioTask.h:69
void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::ContainerSingle2D _cEventType
Definition: UMNioTask.h:68
ib
Definition: cuy.py:661

◆ dqmEndRun()

void UMNioTask::dqmEndRun ( edm::Run const &  r,
edm::EventSetup const &   
)
inlineoverridevirtual

Reimplemented from DQMOneEDAnalyzer< edm::LuminosityBlockCache< hcaldqm::Cache > >.

Definition at line 29 of file UMNioTask.h.

References hcaldqm::DQModule::_ptype, and hcaldqm::fLocal.

29  {
30  if (_ptype == hcaldqm::fLocal) {
31  if (r.runAuxiliary().run() == 1)
32  return;
33  }
34  }
ProcessingType _ptype
Definition: DQModule.h:44

◆ getOrbitGapIndex()

int UMNioTask::getOrbitGapIndex ( uint8_t  eventType,
uint32_t  laserType 
)
protected

Definition at line 62 of file UMNioTask.cc.

References _eventtypes, hcalcalib_dqm_sourceclient-live_cfg::eventType, hcaldqm::constants::EVENTTYPE_HFRADDAM, hcaldqm::constants::EVENTTYPE_LASER, hcaldqm::constants::EVENTTYPE_LED, hcaldqm::constants::EVENTTYPE_PEDESTAL, hcaldqm::constants::EVENTTYPE_PHYSICS, spr::find(), hcalcalib_dqm_sourceclient-live_cfg::laserType, hcaldqm::constants::tHBHEHPD, hcaldqm::constants::tHBMMega, hcaldqm::constants::tHBPMega, hcaldqm::constants::tHEMMega, hcaldqm::constants::tHEPMega, hcaldqm::constants::tHF, hcaldqm::constants::tHFRaddam, hcaldqm::constants::tHO, hcaldqm::constants::tLED, hcaldqm::constants::tMegatile, hcaldqm::constants::tPedestal, hcaldqm::constants::tPhysics, hcaldqm::constants::tSafe, hcaldqm::constants::tSiPMPMT, and hcaldqm::constants::tUnknown.

Referenced by _process().

62  {
63  constants::OrbitGapType orbitGapType;
65  orbitGapType = tPhysics;
67  orbitGapType = tPedestal;
68  } else if (eventType == constants::EVENTTYPE_LED) {
69  orbitGapType = tLED;
71  orbitGapType = tHFRaddam;
72  } else if (eventType == constants::EVENTTYPE_LASER) {
73  switch (laserType) {
74  //case tNull : return "Null";
75  //case tHFRaddam : return "HFRaddam";
76  case 3:
77  return tHBHEHPD;
78  case 4:
79  return tHO;
80  case 5:
81  return tHF;
82  //case tZDC : return "ZDC";
83  case 7:
84  return tHEPMega;
85  case 8:
86  return tHEMMega;
87  case 9:
88  return tHBPMega;
89  case 10:
90  return tHBMMega;
91  //case tCRF : return "CRF";
92  //case tCalib : return "Calib";
93  case 14:
94  return tSafe;
95  case 23:
96  return tSiPMPMT;
97  case 24:
98  return tMegatile;
99  default:
100  return tUnknown;
101  }
102  }
103  return (int)(std::find(_eventtypes.begin(), _eventtypes.end(), orbitGapType) - _eventtypes.begin());
104 }
std::vector< uint32_t > _eventtypes
Definition: UMNioTask.h:46
uint8_t const EVENTTYPE_PHYSICS
Definition: Constants.h:292
uint8_t const EVENTTYPE_HFRADDAM
Definition: Constants.h:294
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
uint8_t const EVENTTYPE_LED
Definition: Constants.h:296
uint8_t const EVENTTYPE_LASER
Definition: Constants.h:295
uint8_t const EVENTTYPE_PEDESTAL
Definition: Constants.h:293

◆ globalBeginLuminosityBlock()

std::shared_ptr< hcaldqm::Cache > UMNioTask::globalBeginLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
) const
override

Definition at line 179 of file UMNioTask.cc.

180  {
181  return DQTask::globalBeginLuminosityBlock(lb, es);
182 }

◆ globalEndLuminosityBlock()

void UMNioTask::globalEndLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
override

Definition at line 184 of file UMNioTask.cc.

184  {
185  DQTask::globalEndLuminosityBlock(lb, es);
186 }

Member Data Documentation

◆ _cEventType

hcaldqm::ContainerSingle2D UMNioTask::_cEventType
protected

Definition at line 68 of file UMNioTask.h.

Referenced by _process(), and bookHistograms().

◆ _cTotalCharge

hcaldqm::ContainerSingle2D UMNioTask::_cTotalCharge
protected

Definition at line 69 of file UMNioTask.h.

Referenced by _process(), and bookHistograms().

◆ _cTotalChargeProfile

hcaldqm::ContainerSingleProf2D UMNioTask::_cTotalChargeProfile
protected

Definition at line 70 of file UMNioTask.h.

Referenced by _process(), and bookHistograms().

◆ _ehashmap

hcaldqm::electronicsmap::ElectronicsMap UMNioTask::_ehashmap
protected

Definition at line 63 of file UMNioTask.h.

◆ _eventtypes

std::vector<uint32_t> UMNioTask::_eventtypes
protected

Definition at line 46 of file UMNioTask.h.

Referenced by bookHistograms(), getOrbitGapIndex(), and UMNioTask().

◆ _filter_uTCA

hcaldqm::filter::HashFilter UMNioTask::_filter_uTCA
protected

Definition at line 64 of file UMNioTask.h.

◆ _filter_VME

hcaldqm::filter::HashFilter UMNioTask::_filter_VME
protected

Definition at line 65 of file UMNioTask.h.

◆ debug

UMNioTask.debug

◆ hcalDbServiceToken_

edm::ESGetToken<HcalDbService, HcalDbRecord> UMNioTask::hcalDbServiceToken_
protected

Definition at line 57 of file UMNioTask.h.

Referenced by bookHistograms().

◆ lowHBHE_

double UMNioTask::lowHBHE_
protected

Definition at line 60 of file UMNioTask.h.

Referenced by UMNioTask().

◆ lowHF_

double UMNioTask::lowHF_
protected

Definition at line 60 of file UMNioTask.h.

Referenced by UMNioTask().

◆ lowHO_

double UMNioTask::lowHO_
protected

Definition at line 60 of file UMNioTask.h.

Referenced by UMNioTask().

◆ mtype

UMNioTask.mtype

Definition at line 13 of file UMNioTask.py.

◆ name

UMNioTask.name

Definition at line 8 of file UMNioTask.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__(), FWLite.ElectronMVAID.__call__(), dirstructure.Directory.__create_pie_image(), DisplayManager.DisplayManager.__del__(), dqm_interfaces.DirID.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), dirstructure.Comparison.__make_image(), core.autovars.NTupleVariable.__repr__(), core.autovars.NTupleObjectType.__repr__(), core.autovars.NTupleObject.__repr__(), core.autovars.NTupleCollection.__repr__(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.Service.__setattr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), FWLite.WorkingPoints._reformat_cut_definitions(), core.autovars.NTupleObjectType.addSubObjects(), core.autovars.NTupleObjectType.addVariables(), core.autovars.NTupleObjectType.allVars(), dataset.CMSDataset.buildListOfFiles(), dataset.LocalDataset.buildListOfFiles(), dataset.CMSDataset.buildListOfFilesDBS(), dirstructure.Directory.calcStats(), validation.Sample.digest(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), DisplayManager.DisplayManager.Draw(), TreeCrawler.Package.dump(), core.autovars.NTupleVariable.fillBranch(), core.autovars.NTupleObject.fillBranches(), core.autovars.NTupleCollection.fillBranchesScalar(), core.autovars.NTupleCollection.fillBranchesVector(), core.autovars.NTupleCollection.get_cpp_declaration(), core.autovars.NTupleCollection.get_cpp_wrapper_class(), core.autovars.NTupleCollection.get_py_wrapper_class(), utils.StatisticalTest.get_status(), production_tasks.Task.getname(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase.initialize(), personalPlayback.Applet.log(), core.autovars.NTupleVariable.makeBranch(), core.autovars.NTupleObject.makeBranches(), core.autovars.NTupleCollection.makeBranchesScalar(), core.autovars.NTupleCollection.makeBranchesVector(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), production_tasks.MonitorJobs.run(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), counter.Counter.write(), and average.Average.write().

◆ ptype

UMNioTask.ptype

Definition at line 12 of file UMNioTask.py.

◆ runkeyName

UMNioTask.runkeyName

Definition at line 11 of file UMNioTask.py.

◆ runkeyVal

UMNioTask.runkeyVal

Definition at line 10 of file UMNioTask.py.

◆ subsystem

UMNioTask.subsystem

Definition at line 14 of file UMNioTask.py.

◆ tagHBHE_

edm::InputTag UMNioTask::tagHBHE_
protected

Definition at line 50 of file UMNioTask.h.

Referenced by UMNioTask().

◆ tagHF_

edm::InputTag UMNioTask::tagHF_
protected

Definition at line 52 of file UMNioTask.h.

Referenced by UMNioTask().

◆ tagHO_

edm::InputTag UMNioTask::tagHO_
protected

Definition at line 51 of file UMNioTask.h.

Referenced by UMNioTask().

◆ tagRaw

UMNioTask.tagRaw

Definition at line 18 of file UMNioTask.py.

◆ taguMN

UMNioTask.taguMN

Definition at line 17 of file UMNioTask.py.

◆ taguMN_

edm::InputTag UMNioTask::taguMN_
protected

Definition at line 49 of file UMNioTask.h.

Referenced by UMNioTask().

◆ tokHBHE_

edm::EDGetTokenT<QIE11DigiCollection> UMNioTask::tokHBHE_
protected

Definition at line 53 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

◆ tokHF_

edm::EDGetTokenT<QIE10DigiCollection> UMNioTask::tokHF_
protected

Definition at line 55 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

◆ tokHO_

edm::EDGetTokenT<HODigiCollection> UMNioTask::tokHO_
protected

Definition at line 54 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

◆ tokuMN_

edm::EDGetTokenT<HcalUMNioDigi> UMNioTask::tokuMN_
protected

Definition at line 56 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

◆ umnioTask

UMNioTask.umnioTask

Definition at line 4 of file UMNioTask.py.