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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
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 wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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)
 

Detailed Description

Definition at line 9 of file HcalLutGenerator.h.

Constructor & Destructor Documentation

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

Definition at line 18 of file HcalLutGenerator.cc.

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

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 }
T getParameter(std::string const &) const
uint32_t _status_word_to_mask
std::string _lin_file
HcalLutGenerator::~HcalLutGenerator ( )
override

Definition at line 24 of file HcalLutGenerator.cc.

24 {}

Member Function Documentation

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

Definition at line 26 of file HcalLutGenerator.cc.

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

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 }
int createLutXmlFiles_HBEFFromCoder_HOFromAscii_ZDC(std::string _tag, const HcalTPGCoder &_coder, const CaloTPGTranscoderULUT &_transcoder, std::string _lin_file, bool split_by_crate=true)
Various manipulations with trigger Lookup Tables.
uint32_t _status_word_to_mask
std::string _lin_file
T get() const
Definition: EventSetup.h:73
T const * product() const
Definition: ESHandle.h:86
void swap(ESHandleBase &iOther)
Definition: ESHandle.h:52
void HcalLutGenerator::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 49 of file HcalLutGenerator.cc.

Referenced by o2olib.O2ORunMgr::executeJob().

49 {}

Member Data Documentation

std::string HcalLutGenerator::_lin_file
private

Definition at line 18 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

uint32_t HcalLutGenerator::_status_word_to_mask
private

Definition at line 19 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().

std::string HcalLutGenerator::_tag
private

Definition at line 17 of file HcalLutGenerator.h.

Referenced by analyze(), and HcalLutGenerator().