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::vector< ModuleDescription const * > &modules, 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
 
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
 

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 9 of file HcalLutGenerator.h.

Constructor & Destructor Documentation

◆ HcalLutGenerator()

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

Definition at line 18 of file HcalLutGenerator.cc.

18  {
19  _tag = iConfig.getParameter<std::string>("tag");
20  _lin_file = iConfig.getParameter<std::string>("HO_master_file");
21  _status_word_to_mask = iConfig.getParameter<uint32_t>("status_word_to_mask");
22 }

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

◆ ~HcalLutGenerator()

HcalLutGenerator::~HcalLutGenerator ( )
override

Definition at line 24 of file HcalLutGenerator.cc.

24 {}

Member Function Documentation

◆ analyze()

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

Implements edm::EDAnalyzer.

Definition at line 26 of file HcalLutGenerator.cc.

26  {
27  edm::ESHandle<HcalTPGCoder> inputCoder;
28  iSetup.get<HcalTPGRecord>().get(inputCoder);
29 
31  iSetup.get<CaloTPGRecord>().get(outTranscoder);
32 
34  transcoder.swap(outTranscoder);
35 
37  iSetup.get<HcalDbRecord>().get(hcalcond);
38 
40  iSetup.get<HcalChannelQualityRcd>().get("withTopo", hCQ);
41  const HcalChannelQuality* _cq = &(*hCQ);
42 
43  HcalLutManager manager(hcalcond.product(), _cq, _status_word_to_mask);
44  bool split_by_crate = true;
45 
46  manager.createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(_tag, *inputCoder, *transcoder, _lin_file, split_by_crate);
47 }

References _lin_file, _status_word_to_mask, _tag, HcalLutManager::createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(), edm::EventSetup::get(), get, edm::ESHandle< T >::product(), and edm::ESHandleBase::swap().

◆ endJob()

void HcalLutGenerator::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 49 of file HcalLutGenerator.cc.

49 {}

Referenced by o2olib.O2ORunMgr::executeJob().

Member Data Documentation

◆ _lin_file

std::string HcalLutGenerator::_lin_file
private

Definition at line 18 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

◆ _status_word_to_mask

uint32_t HcalLutGenerator::_status_word_to_mask
private

Definition at line 19 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

◆ _tag

std::string HcalLutGenerator::_tag
private

Definition at line 17 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HcalLutManager::createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC
int createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(std::string _tag, const HcalTPGCoder &_coder, const CaloTPGTranscoderULUT &_transcoder, std::string _lin_file, bool split_by_crate=true)
Definition: HcalLutManager.cc:1672
HcalChannelQualityRcd
Definition: HcalChannelQualityRcd.h:8
HcalTPGRecord
Definition: HcalTPGRecord.h:25
HcalChannelQuality
Definition: HcalChannelQuality.h:17
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
edm::ESHandle
Definition: DTSurvey.h:22
HcalLutGenerator::_tag
std::string _tag
Definition: HcalLutGenerator.h:17
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CaloTPGRecord
Definition: CaloTPGRecord.h:26
HcalLutGenerator::_lin_file
std::string _lin_file
Definition: HcalLutGenerator.h:18
get
#define get
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:19
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::ESHandleBase::swap
void swap(ESHandleBase &iOther)
Definition: ESHandle.h:52
HcalDbRecord
Definition: HcalDbRecord.h:30