CMS 3D CMS Logo

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

#include <L1TriggerConfig/L1ScalesProducers/interface/L1ScalesTrivialProducer.h>

Inheritance diagram for L1ScalesTrivialProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 L1ScalesTrivialProducer (const edm::ParameterSet &)
 
std::unique_ptr< L1CaloEtScaleproduceEmScale (const L1EmEtScaleRcd &)
 
std::unique_ptr< L1CaloEtScaleproduceHfRingScale (const L1HfRingEtScaleRcd &)
 
std::unique_ptr< L1CaloEtScaleproduceHtMissScale (const L1HtMissScaleRcd &)
 
std::unique_ptr< L1CaloEtScaleproduceJetScale (const L1JetEtScaleRcd &)
 
 ~L1ScalesTrivialProducer () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
template<typename Record >
void updateFromMayConsumes (unsigned int iIndex, const Record &iRecord)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Private Attributes

double m_emEtScaleInputLsb
 
std::vector< double > m_emEtThresholds
 
std::vector< double > m_hfRingThresholds
 
std::vector< double > m_htMissThresholds
 
double m_jetEtScaleInputLsb
 
std::vector< double > m_jetEtThresholds
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Description: A Producer for the L1 scales available via EventSetup

Implementation: <Notes on="" implementation>="">

Definition at line 42 of file L1ScalesTrivialProducer.h.

Constructor & Destructor Documentation

◆ L1ScalesTrivialProducer()

L1ScalesTrivialProducer::L1ScalesTrivialProducer ( const edm::ParameterSet ps)

Definition at line 14 of file L1ScalesTrivialProducer.cc.

14  {
15  //the following line is needed to tell the framework what
16  // data is being produced
21 
22  //now do what ever other initialization is needed
23 
24  // get numbers from the config file - all units are GeV
25  m_emEtScaleInputLsb = ps.getParameter<double>("L1CaloEmEtScaleLSB");
26  m_emEtThresholds = ps.getParameter<std::vector<double> >("L1CaloEmThresholds");
27 
28  m_jetEtScaleInputLsb = ps.getParameter<double>("L1CaloRegionEtScaleLSB");
29  m_jetEtThresholds = ps.getParameter<std::vector<double> >("L1CaloJetThresholds");
30 
31  m_htMissThresholds = ps.getParameter<std::vector<double> >("L1HtMissThresholds");
32  m_hfRingThresholds = ps.getParameter<std::vector<double> >("L1HfRingThresholds");
33 }

References edm::ParameterSet::getParameter(), m_emEtScaleInputLsb, m_emEtThresholds, m_hfRingThresholds, m_htMissThresholds, m_jetEtScaleInputLsb, m_jetEtThresholds, produceEmScale(), produceHfRingScale(), produceHtMissScale(), produceJetScale(), and edm::ESProducer::setWhatProduced().

◆ ~L1ScalesTrivialProducer()

L1ScalesTrivialProducer::~L1ScalesTrivialProducer ( )
override

Definition at line 35 of file L1ScalesTrivialProducer.cc.

35  {
36  // do anything here that needs to be done at destruction time
37  // (e.g. close files, deallocate resources etc.)
38 }

Member Function Documentation

◆ produceEmScale()

std::unique_ptr< L1CaloEtScale > L1ScalesTrivialProducer::produceEmScale ( const L1EmEtScaleRcd iRecord)

Definition at line 45 of file L1ScalesTrivialProducer.cc.

45  {
46  return std::make_unique<L1CaloEtScale>(m_emEtScaleInputLsb, m_emEtThresholds);
47 }

References m_emEtScaleInputLsb, and m_emEtThresholds.

Referenced by L1ScalesTrivialProducer().

◆ produceHfRingScale()

std::unique_ptr< L1CaloEtScale > L1ScalesTrivialProducer::produceHfRingScale ( const L1HfRingEtScaleRcd iRecord)

Definition at line 57 of file L1ScalesTrivialProducer.cc.

57  {
58  return std::make_unique<L1CaloEtScale>(0xff, 0x7, m_jetEtScaleInputLsb, m_hfRingThresholds);
59 }

References m_hfRingThresholds, and m_jetEtScaleInputLsb.

Referenced by L1ScalesTrivialProducer().

◆ produceHtMissScale()

std::unique_ptr< L1CaloEtScale > L1ScalesTrivialProducer::produceHtMissScale ( const L1HtMissScaleRcd iRecord)

Definition at line 53 of file L1ScalesTrivialProducer.cc.

53  {
54  return std::make_unique<L1CaloEtScale>(0, 0x7f, m_jetEtScaleInputLsb, m_htMissThresholds);
55 }

References m_htMissThresholds, and m_jetEtScaleInputLsb.

Referenced by L1ScalesTrivialProducer().

◆ produceJetScale()

std::unique_ptr< L1CaloEtScale > L1ScalesTrivialProducer::produceJetScale ( const L1JetEtScaleRcd iRecord)

Definition at line 49 of file L1ScalesTrivialProducer.cc.

49  {
50  return std::make_unique<L1CaloEtScale>(m_jetEtScaleInputLsb, m_jetEtThresholds);
51 }

References m_jetEtScaleInputLsb, and m_jetEtThresholds.

Referenced by L1ScalesTrivialProducer().

Member Data Documentation

◆ m_emEtScaleInputLsb

double L1ScalesTrivialProducer::m_emEtScaleInputLsb
private

Definition at line 55 of file L1ScalesTrivialProducer.h.

Referenced by L1ScalesTrivialProducer(), and produceEmScale().

◆ m_emEtThresholds

std::vector<double> L1ScalesTrivialProducer::m_emEtThresholds
private

Definition at line 56 of file L1ScalesTrivialProducer.h.

Referenced by L1ScalesTrivialProducer(), and produceEmScale().

◆ m_hfRingThresholds

std::vector<double> L1ScalesTrivialProducer::m_hfRingThresholds
private

Definition at line 62 of file L1ScalesTrivialProducer.h.

Referenced by L1ScalesTrivialProducer(), and produceHfRingScale().

◆ m_htMissThresholds

std::vector<double> L1ScalesTrivialProducer::m_htMissThresholds
private

Definition at line 61 of file L1ScalesTrivialProducer.h.

Referenced by L1ScalesTrivialProducer(), and produceHtMissScale().

◆ m_jetEtScaleInputLsb

double L1ScalesTrivialProducer::m_jetEtScaleInputLsb
private

◆ m_jetEtThresholds

std::vector<double> L1ScalesTrivialProducer::m_jetEtThresholds
private

Definition at line 59 of file L1ScalesTrivialProducer.h.

Referenced by L1ScalesTrivialProducer(), and produceJetScale().

L1ScalesTrivialProducer::m_emEtThresholds
std::vector< double > m_emEtThresholds
Definition: L1ScalesTrivialProducer.h:56
L1ScalesTrivialProducer::produceEmScale
std::unique_ptr< L1CaloEtScale > produceEmScale(const L1EmEtScaleRcd &)
Definition: L1ScalesTrivialProducer.cc:45
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
L1ScalesTrivialProducer::m_hfRingThresholds
std::vector< double > m_hfRingThresholds
Definition: L1ScalesTrivialProducer.h:62
L1ScalesTrivialProducer::m_jetEtThresholds
std::vector< double > m_jetEtThresholds
Definition: L1ScalesTrivialProducer.h:59
L1ScalesTrivialProducer::m_jetEtScaleInputLsb
double m_jetEtScaleInputLsb
Definition: L1ScalesTrivialProducer.h:58
L1ScalesTrivialProducer::produceJetScale
std::unique_ptr< L1CaloEtScale > produceJetScale(const L1JetEtScaleRcd &)
Definition: L1ScalesTrivialProducer.cc:49
L1ScalesTrivialProducer::m_emEtScaleInputLsb
double m_emEtScaleInputLsb
Definition: L1ScalesTrivialProducer.h:55
L1ScalesTrivialProducer::m_htMissThresholds
std::vector< double > m_htMissThresholds
Definition: L1ScalesTrivialProducer.h:61
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
L1ScalesTrivialProducer::produceHtMissScale
std::unique_ptr< L1CaloEtScale > produceHtMissScale(const L1HtMissScaleRcd &)
Definition: L1ScalesTrivialProducer.cc:53
L1ScalesTrivialProducer::produceHfRingScale
std::unique_ptr< L1CaloEtScale > produceHfRingScale(const L1HfRingEtScaleRcd &)
Definition: L1ScalesTrivialProducer.cc:57