CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 
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
 
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)
 
 ~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
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > 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
 
bool registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Public Member Functions inherited from hcaldqm::DQModule
 DQModule (edm::ParameterSet const &)
 
virtual ~DQModule () noexcept(false)
 

Public Attributes

tuple 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
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 ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
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
 
double _lowHBHE
 
double _lowHF
 
double _lowHO
 
edm::InputTag _tagHBHE
 
edm::InputTag _tagHF
 
edm::InputTag _tagHO
 
edm::InputTag _taguMN
 
edm::EDGetTokenT
< HBHEDigiCollection
_tokHBHE
 
edm::EDGetTokenT
< HFDigiCollection
_tokHF
 
edm::EDGetTokenT
< HODigiCollection
_tokHO
 
edm::EDGetTokenT< HcalUMNioDigi_tokuMN
 
edm::ESGetToken< HcalDbService,
HcalDbRecord
hcalDbServiceToken_
 
- 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,
HcalChannelQualityRcd
hcalChannelQualityToken_
 
edm::ESGetToken< HcalDbService,
HcalDbRecord
hcalDbServiceToken_
 
edm::ESGetToken< RunInfo,
RunInfoRcd
runInfoToken_
 
- 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
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 ( edm::ParameterSet const &  ps)

Definition at line 6 of file UMNioTask.cc.

References _eventtypes, _lowHBHE, _lowHF, _lowHO, _tagHBHE, _tagHF, _tagHO, _taguMN, _tokHBHE, _tokHF, _tokHO, _tokuMN, edm::ParameterSet::getUntrackedParameter(), HLT_FULL_cff::InputTag, hcaldqm::constants::nOrbitGapType, and hcaldqm::constants::tNull.

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<HBHEDigiCollection>(_tagHBHE);
14  _tokHO = consumes<HODigiCollection>(_tagHO);
15  _tokHF = consumes<HFDigiCollection>(_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 }
edm::InputTag _tagHBHE
Definition: UMNioTask.h:48
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: UMNioTask.h:53
std::vector< uint32_t > _eventtypes
Definition: UMNioTask.h:44
DQTask(edm::ParameterSet const &)
Definition: DQTask.cc:8
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: UMNioTask.h:52
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: UMNioTask.h:54
edm::InputTag _tagHF
Definition: UMNioTask.h:50
double _lowHO
Definition: UMNioTask.h:58
edm::InputTag _taguMN
Definition: UMNioTask.h:47
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: UMNioTask.h:55
edm::InputTag _tagHO
Definition: UMNioTask.h:49
double _lowHBHE
Definition: UMNioTask.h:58
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
Definition: UMNioTask.h:51
double _lowHF
Definition: UMNioTask.h:58
UMNioTask::~UMNioTask ( )
inlineoverride

Definition at line 26 of file UMNioTask.h.

26 {}

Member Function Documentation

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

Implements hcaldqm::DQTask.

Definition at line 97 of file UMNioTask.cc.

References _cEventType, _cTotalCharge, _cTotalChargeProfile, hcaldqm::DQModule::_currentLS, hcaldqm::DQModule::_logger, _tagHBHE, _tagHF, _tagHO, _tokHBHE, _tokHF, _tokHO, _tokuMN, Logger::dqmthrow(), hcalcalib_dqm_sourceclient-live_cfg::eventType, hcaldqm::ContainerSingleProf2D::fill(), hcaldqm::ContainerSingle2D::fill(), edm::Event::getByToken(), getOrbitGapIndex(), edm::InputTag::instance(), edm::InputTag::label(), hcalcalib_dqm_sourceclient-live_cfg::laserType, and hcaldqm::utilities::sumQ().

97  {
99  if (!e.getByToken(_tokuMN, cumn))
100  return;
101 
102  uint8_t eventType = cumn->eventType();
103  uint32_t laserType = cumn->valueUserWord(0);
104  _cEventType.fill(_currentLS, getOrbitGapIndex(eventType, laserType));
105 
106  // Compute the Total Charge in the Detector...
110 
111  if (!e.getByToken(_tokHBHE, chbhe))
112  _logger.dqmthrow("Collection HBHEDigiCollection isn't available " + _tagHBHE.label() + " " + _tagHBHE.instance());
113  if (!e.getByToken(_tokHO, cho))
114  _logger.dqmthrow("Collection HODigiCollection isn't available " + _tagHO.label() + " " + _tagHO.instance());
115  if (!e.getByToken(_tokHF, chf))
116  _logger.dqmthrow("Collection HFDigiCollection isn't available " + _tagHF.label() + " " + _tagHF.instance());
117 
118  for (HBHEDigiCollection::const_iterator it = chbhe->begin(); it != chbhe->end(); ++it) {
119  double sumQ = hcaldqm::utilities::sumQ<HBHEDataFrame>(*it, 2.5, 0, it->size() - 1);
120  _cTotalCharge.fill(it->id(), _currentLS, sumQ);
122  }
123  for (HODigiCollection::const_iterator it = cho->begin(); it != cho->end(); ++it) {
124  double sumQ = hcaldqm::utilities::sumQ<HODataFrame>(*it, 8.5, 0, it->size() - 1);
125  _cTotalCharge.fill(it->id(), _currentLS, sumQ);
127  }
128  for (HFDigiCollection::const_iterator it = chf->begin(); it != chf->end(); ++it) {
129  double sumQ = hcaldqm::utilities::sumQ<HFDataFrame>(*it, 2.5, 0, it->size() - 1);
130  _cTotalCharge.fill(it->id(), _currentLS, sumQ);
132  }
133 }
edm::InputTag _tagHBHE
Definition: UMNioTask.h:48
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: UMNioTask.h:53
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: UMNioTask.h:52
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: UMNioTask.h:54
std::vector< T >::const_iterator const_iterator
edm::InputTag _tagHF
Definition: UMNioTask.h:50
hcaldqm::ContainerSingleProf2D _cTotalChargeProfile
Definition: UMNioTask.h:68
void dqmthrow(std::string const &msg) const
Definition: Logger.h:12
Logger _logger
Definition: DQModule.h:55
int getOrbitGapIndex(uint8_t eventType, uint32_t laserType)
Definition: UMNioTask.cc:62
edm::InputTag _tagHO
Definition: UMNioTask.h:49
std::string const & label() const
Definition: InputTag.h:36
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
Definition: UMNioTask.h:51
hcaldqm::ContainerSingle2D _cTotalCharge
Definition: UMNioTask.h:67
virtual void fill(int, int)
hcaldqm::ContainerSingle2D _cEventType
Definition: UMNioTask.h:66
std::string const & instance() const
Definition: InputTag.h:37
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
Definition: Utilities.h:127
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(), hcalDbServiceToken_, hcaldqm::ContainerSingleProf2D::initialize(), hcaldqm::ContainerSingle2D::initialize(), edm::RunAuxiliary::run(), and edm::Run::runAuxiliary().

29  {
30  if (_ptype == fLocal)
31  if (r.runAuxiliary().run() == 1)
32  return;
33 
34  DQTask::bookHistograms(ib, r, es);
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:44
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
hcaldqm::ContainerSingleProf2D _cTotalChargeProfile
Definition: UMNioTask.h:68
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:55
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:67
void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::ContainerSingle2D _cEventType
Definition: UMNioTask.h:66
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, hcaldqm::fLocal, edm::RunAuxiliary::run(), and edm::Run::runAuxiliary().

29  {
30  if (_ptype == hcaldqm::fLocal) {
31  if (r.runAuxiliary().run() == 1)
32  return;
33  }
34  }
ProcessingType _ptype
Definition: DQModule.h:44
int UMNioTask::getOrbitGapIndex ( uint8_t  eventType,
uint32_t  laserType 
)
protected

Definition at line 62 of file UMNioTask.cc.

References _eventtypes, hcaldqm::constants::EVENTTYPE_LASER, hcaldqm::constants::EVENTTYPE_LED, hcaldqm::constants::EVENTTYPE_PEDESTAL, spr::find(), hcaldqm::constants::tHBHEHPD, hcaldqm::constants::tHBMMega, hcaldqm::constants::tHBPMega, hcaldqm::constants::tHEMMega, hcaldqm::constants::tHEPMega, hcaldqm::constants::tHF, hcaldqm::constants::tHO, hcaldqm::constants::tLED, hcaldqm::constants::tPedestal, and hcaldqm::constants::tUnknown.

Referenced by _process().

62  {
63  constants::OrbitGapType orbitGapType;
65  orbitGapType = tPedestal;
66  } else if (eventType == constants::EVENTTYPE_LED) {
67  orbitGapType = tLED;
68  } else if (eventType == constants::EVENTTYPE_LASER) {
69  switch (laserType) {
70  //case tNull : return "Null";
71  //case tHFRaddam : return "HFRaddam";
72  case 3:
73  return tHBHEHPD;
74  case 4:
75  return tHO;
76  case 5:
77  return tHF;
78  //case tZDC : return "ZDC";
79  case 7:
80  return tHEPMega;
81  case 8:
82  return tHEMMega;
83  case 9:
84  return tHBPMega;
85  case 10:
86  return tHBMMega;
87  //case tCRF : return "CRF";
88  //case tCalib : return "Calib";
89  //case tSafe : return "Safe";
90  default:
91  return tUnknown;
92  }
93  }
94  return (int)(std::find(_eventtypes.begin(), _eventtypes.end(), orbitGapType) - _eventtypes.begin());
95 }
std::vector< uint32_t > _eventtypes
Definition: UMNioTask.h:44
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:294
uint8_t const EVENTTYPE_LASER
Definition: Constants.h:293
uint8_t const EVENTTYPE_PEDESTAL
Definition: Constants.h:292
void UMNioTask::globalEndLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
override

Definition at line 134 of file UMNioTask.cc.

134  {
135  DQTask::globalEndLuminosityBlock(lb, es);
136 }

Member Data Documentation

hcaldqm::ContainerSingle2D UMNioTask::_cEventType
protected

Definition at line 66 of file UMNioTask.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingle2D UMNioTask::_cTotalCharge
protected

Definition at line 67 of file UMNioTask.h.

Referenced by _process(), and bookHistograms().

hcaldqm::ContainerSingleProf2D UMNioTask::_cTotalChargeProfile
protected

Definition at line 68 of file UMNioTask.h.

Referenced by _process(), and bookHistograms().

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

Definition at line 61 of file UMNioTask.h.

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

Definition at line 44 of file UMNioTask.h.

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

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

Definition at line 62 of file UMNioTask.h.

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

Definition at line 63 of file UMNioTask.h.

double UMNioTask::_lowHBHE
protected

Definition at line 58 of file UMNioTask.h.

Referenced by UMNioTask().

double UMNioTask::_lowHF
protected

Definition at line 58 of file UMNioTask.h.

Referenced by UMNioTask().

double UMNioTask::_lowHO
protected

Definition at line 58 of file UMNioTask.h.

Referenced by UMNioTask().

edm::InputTag UMNioTask::_tagHBHE
protected

Definition at line 48 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

edm::InputTag UMNioTask::_tagHF
protected

Definition at line 50 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

edm::InputTag UMNioTask::_tagHO
protected

Definition at line 49 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

edm::InputTag UMNioTask::_taguMN
protected

Definition at line 47 of file UMNioTask.h.

Referenced by UMNioTask().

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

Definition at line 51 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

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

Definition at line 53 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

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

Definition at line 52 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

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

Definition at line 54 of file UMNioTask.h.

Referenced by _process(), and UMNioTask().

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

Definition at line 55 of file UMNioTask.h.

Referenced by bookHistograms().

tuple UMNioTask.umnioTask
Initial value:
2  "UMNioTask",
3 
4  # standard parameters
5  name = cms.untracked.string("UMNioTask"),
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  taguMN = cms.untracked.InputTag("hcalDigis"),
15  tagRaw = cms.untracked.InputTag('hltHcalCalibrationRaw')
16 )

Definition at line 4 of file UMNioTask.py.