CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalLutGenerator Class Reference

#include <HcalLutGenerator.h>

Inheritance diagram for HcalLutGenerator:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void endJob () override
 
 HcalLutGenerator (const edm::ParameterSet &)
 
 ~HcalLutGenerator () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
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)
 

Private Attributes

std::string _lin_file
 
uint32_t _status_word_to_mask
 
std::string _tag
 
edm::ESGetToken< HcalDbService, HcalDbRecordtok_dbservice_
 
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcdtok_hcalChStatus_
 
edm::ESGetToken< HcalTPGCoder, HcalTPGRecordtok_inCoder_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 15 of file HcalLutGenerator.h.

Constructor & Destructor Documentation

◆ HcalLutGenerator()

HcalLutGenerator::HcalLutGenerator ( const edm::ParameterSet iConfig)
explicit

Definition at line 16 of file HcalLutGenerator.cc.

16  {
17  _tag = iConfig.getParameter<std::string>("tag");
18  _lin_file = iConfig.getParameter<std::string>("HO_master_file");
19  _status_word_to_mask = iConfig.getParameter<uint32_t>("status_word_to_mask");
20  tok_inCoder_ = esConsumes<HcalTPGCoder, HcalTPGRecord>();
21  tok_dbservice_ = esConsumes<HcalDbService, HcalDbRecord>();
22  tok_hcalChStatus_ = esConsumes<HcalChannelQuality, HcalChannelQualityRcd>(edm::ESInputTag("", "withTopo"));
23 }

References _lin_file, _status_word_to_mask, _tag, edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, tok_dbservice_, tok_hcalChStatus_, and tok_inCoder_.

◆ ~HcalLutGenerator()

HcalLutGenerator::~HcalLutGenerator ( )
override

Definition at line 25 of file HcalLutGenerator.cc.

25 {}

Member Function Documentation

◆ analyze()

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

Implements edm::EDAnalyzer.

Definition at line 27 of file HcalLutGenerator.cc.

27  {
28  const HcalTPGCoder* inputCoder = &iSetup.getData(tok_inCoder_);
29  const HcalDbService* hcalcond = &iSetup.getData(tok_dbservice_);
30  const HcalChannelQuality* _cq = &iSetup.getData(tok_hcalChStatus_);
31 
33  iSetup.get<CaloTPGRecord>().get(outTranscoder);
34 
36  transcoder.swap(outTranscoder);
37 
38  HcalLutManager manager(hcalcond, _cq, _status_word_to_mask);
39  bool split_by_crate = true;
40 
41  manager.createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(_tag, *inputCoder, *transcoder, _lin_file, split_by_crate);
42 }

References _lin_file, _status_word_to_mask, _tag, HcalLutManager::createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(), edm::EventSetup::get(), get, edm::EventSetup::getData(), edm::ESHandleBase::swap(), tok_dbservice_, tok_hcalChStatus_, and tok_inCoder_.

◆ endJob()

void HcalLutGenerator::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 44 of file HcalLutGenerator.cc.

44 {}

Referenced by o2olib.O2ORunMgr::executeJob().

Member Data Documentation

◆ _lin_file

std::string HcalLutGenerator::_lin_file
private

Definition at line 24 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

◆ _status_word_to_mask

uint32_t HcalLutGenerator::_status_word_to_mask
private

Definition at line 25 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

◆ _tag

std::string HcalLutGenerator::_tag
private

Definition at line 23 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

◆ tok_dbservice_

edm::ESGetToken<HcalDbService, HcalDbRecord> HcalLutGenerator::tok_dbservice_
private

Definition at line 27 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

◆ tok_hcalChStatus_

edm::ESGetToken<HcalChannelQuality, HcalChannelQualityRcd> HcalLutGenerator::tok_hcalChStatus_
private

Definition at line 28 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

◆ tok_inCoder_

edm::ESGetToken<HcalTPGCoder, HcalTPGRecord> HcalLutGenerator::tok_inCoder_
private

Definition at line 26 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

edm::ESInputTag
Definition: ESInputTag.h:87
HcalLutGenerator::tok_dbservice_
edm::ESGetToken< HcalDbService, HcalDbRecord > tok_dbservice_
Definition: HcalLutGenerator.h:27
HcalChannelQuality
Definition: HcalChannelQuality.h:17
HcalTPGCoder
Definition: HcalTPGCoder.h:26
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
edm::ESHandle
Definition: DTSurvey.h:22
HcalLutGenerator::_tag
std::string _tag
Definition: HcalLutGenerator.h:23
CaloTPGRecord
Definition: CaloTPGRecord.h:26
HcalLutGenerator::_lin_file
std::string _lin_file
Definition: HcalLutGenerator.h:24
get
#define get
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
HcalDbService
Definition: HcalDbService.h:23
HcalLutManager
Various manipulations with trigger Lookup Tables.
Definition: HcalLutManager.h:39
HcalLutGenerator::_status_word_to_mask
uint32_t _status_word_to_mask
Definition: HcalLutGenerator.h:25
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HcalLutGenerator::tok_hcalChStatus_
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > tok_hcalChStatus_
Definition: HcalLutGenerator.h:28
edm::ESHandleBase::swap
void swap(ESHandleBase &iOther)
Definition: ESHandle.h:52
HcalLutGenerator::tok_inCoder_
edm::ESGetToken< HcalTPGCoder, HcalTPGRecord > tok_inCoder_
Definition: HcalLutGenerator.h:26