CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
StableParametersTrivialProducer Class Reference
Inheritance diagram for StableParametersTrivialProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

std::unique_ptr< L1TGlobalParametersproduceGtStableParameters (const L1TGlobalParametersRcd &)
 public methods More...
 
 StableParametersTrivialProducer (const edm::ParameterSet &)
 constructor More...
 
 ~StableParametersTrivialProducer () override
 destructor More...
 
- 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)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Private Attributes

l1t::GlobalParamsHelper data_
 

Additional Inherited Members

- 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

Definition at line 19 of file StableParametersTrivialProducer.cc.

Constructor & Destructor Documentation

◆ StableParametersTrivialProducer()

StableParametersTrivialProducer::StableParametersTrivialProducer ( const edm::ParameterSet parSet)

constructor

Definition at line 99 of file StableParametersTrivialProducer.cc.

100  : data_(new L1TGlobalParameters()) {
101  // tell the framework what data is being produced
103 
104  // set the number of bx in event
105  data_.setTotalBxInEvent(parSet.getParameter<int>("TotalBxInEvent"));
106 
107  // set the number of physics trigger algorithms
108  data_.setNumberPhysTriggers(parSet.getParameter<unsigned int>("NumberPhysTriggers"));
109 
110  // set the number of L1 muons received by GT
111  data_.setNumberL1Mu(parSet.getParameter<unsigned int>("NumberL1Muon"));
112 
113  // set the number of L1 e/gamma objects received by GT
114  data_.setNumberL1EG(parSet.getParameter<unsigned int>("NumberL1EGamma"));
115 
116  // set the number of L1 central jets received by GT
117  data_.setNumberL1Jet(parSet.getParameter<unsigned int>("NumberL1Jet"));
118 
119  // set the number of L1 tau jets received by GT
120  data_.setNumberL1Tau(parSet.getParameter<unsigned int>("NumberL1Tau"));
121 
122  // hardware stuff
123 
124  // set the number of condition chips in GTL
125  data_.setNumberChips(parSet.getParameter<unsigned int>("NumberChips"));
126 
127  // set the number of pins on the GTL condition chips
128  data_.setPinsOnChip(parSet.getParameter<unsigned int>("PinsOnChip"));
129 
130  // set the correspondence "condition chip - GTL algorithm word"
131  // in the hardware
132  data_.setOrderOfChip(parSet.getParameter<std::vector<int> >("OrderOfChip"));
133 }

References data_, edm::ParameterSet::getParameter(), produceGtStableParameters(), l1t::GlobalParamsHelper::setNumberChips(), l1t::GlobalParamsHelper::setNumberL1EG(), l1t::GlobalParamsHelper::setNumberL1Jet(), l1t::GlobalParamsHelper::setNumberL1Mu(), l1t::GlobalParamsHelper::setNumberL1Tau(), l1t::GlobalParamsHelper::setNumberPhysTriggers(), l1t::GlobalParamsHelper::setOrderOfChip(), l1t::GlobalParamsHelper::setPinsOnChip(), l1t::GlobalParamsHelper::setTotalBxInEvent(), and edm::ESProducer::setWhatProduced().

◆ ~StableParametersTrivialProducer()

StableParametersTrivialProducer::~StableParametersTrivialProducer ( )
override

destructor

Definition at line 136 of file StableParametersTrivialProducer.cc.

136  {
137  // empty
138 }

Member Function Documentation

◆ fillDescriptions()

void StableParametersTrivialProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 42 of file StableParametersTrivialProducer.cc.

42  {
44 
45  // TotalBxInEvent = cms.int32(5),
46  desc.add<int>("TotalBxInEvent", 5)->setComment("stage2");
47 
48  //NumberPhysTriggers = cms.uint32(512)
49  desc.add<unsigned int>("NumberPhysTriggers", 512)->setComment("Number of physics trigger algorithms");
50 
51  //NumberL1Muon = cms.uint32(12)
52  desc.add<unsigned int>("NumberL1Muon", 12)->setComment("Number of L2 Muons");
53 
54  //NumberL1EGamma = cms.uint32(12),
55  desc.add<unsigned int>("NumberL1EGamma", 12)->setComment("Number of L1 e/gamma objects");
56 
57  //NumberL1Jet = cms.uint32(12),
58  desc.add<unsigned int>("NumberL1Jet", 12)->setComment("Number of L1 jets");
59 
60  //NumberL1Tau = cms.uint32(8),
61  desc.add<unsigned int>("NumberL1Tau", 8)->setComment("Number of L1 taus");
62 
63  //NumberChips = cms.uint32(1),
64  desc.add<unsigned int>("NumberChips", 5)->setComment("Number of chips in Menu");
65 
66  //PinsOnChip = cms.uint32(512),
67  desc.add<unsigned int>("PinsOnChip", 512)->setComment("Number of pins on the GTL condition chips");
68 
69  //OrderOfChip = cms.vint32(1),
70  vector<int> tmp = {1};
71  desc.add<vector<int> >("OrderOfChip", tmp)->setComment("Chip order");
72 
73  //
74  // Deprecated Parameters: These can be removed once the HLT inteface is updated, or HLT takes these conditions from Offline DB.
75  //
76 
77  desc.add<unsigned int>("NumberL1IsoEG", 0)->setComment("Deprecated...");
78  desc.add<unsigned int>("NumberL1JetCounts", 0)->setComment("Deprecated...");
79  desc.add<int>("UnitLength", 0)->setComment("Deprecated...");
80  desc.add<unsigned int>("NumberL1ForJet", 0)->setComment("Deprecated...");
81  desc.add<unsigned int>("IfCaloEtaNumberBits", 0)->setComment("Deprecated...");
82  desc.add<unsigned int>("IfMuEtaNumberBits", 0)->setComment("Deprecated...");
83  desc.add<unsigned int>("NumberL1TauJet", 0)->setComment("Deprecated...");
84  desc.add<unsigned int>("NumberL1Mu", 0)->setComment("Deprecated...");
85  desc.add<unsigned int>("NumberConditionChips", 0)->setComment("Deprecated...");
86  desc.add<int>("NumberPsbBoards", 0)->setComment("Deprecated...");
87  desc.add<unsigned int>("NumberL1CenJet", 0)->setComment("Deprecated...");
88  desc.add<unsigned int>("PinsOnConditionChip", 0)->setComment("Deprecated...");
89  desc.add<unsigned int>("NumberL1NoIsoEG", 0)->setComment("Deprecated...");
90  desc.add<unsigned int>("NumberTechnicalTriggers", 0)->setComment("Deprecated...");
91  desc.add<unsigned int>("NumberPhysTriggersExtended", 0)->setComment("Deprecated...");
92  desc.add<int>("WordLength", 0)->setComment("Deprecated...");
93  vector<int> tmp2 = {1};
94  desc.add<vector<int> >("OrderConditionChip", tmp2)->setComment("Deprecated...");
95 
96  descriptions.add("StableParametersTrivialProducer", desc);
97 }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and createJobs::tmp.

◆ produceGtStableParameters()

std::unique_ptr< L1TGlobalParameters > StableParametersTrivialProducer::produceGtStableParameters ( const L1TGlobalParametersRcd iRecord)

public methods

L1 GT parameters

Definition at line 143 of file StableParametersTrivialProducer.cc.

144  {
145  // Return copy so that we don't give away our owned pointer to framework
146  return std::make_unique<L1TGlobalParameters>(*data_.getWriteInstance());
147 }

References data_, and l1t::GlobalParamsHelper::getWriteInstance().

Referenced by StableParametersTrivialProducer().

Member Data Documentation

◆ data_

l1t::GlobalParamsHelper StableParametersTrivialProducer::data_
private
l1t::GlobalParamsHelper::setNumberPhysTriggers
void setNumberPhysTriggers(const unsigned int &)
Definition: GlobalParamsHelper.cc:46
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
l1t::GlobalParamsHelper::setNumberL1Jet
void setNumberL1Jet(const unsigned int &)
Definition: GlobalParamsHelper.cc:64
l1t::GlobalParamsHelper::getWriteInstance
L1TGlobalParameters * getWriteInstance()
Definition: GlobalParamsHelper.h:100
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
l1t::GlobalParamsHelper::setOrderOfChip
void setOrderOfChip(const std::vector< int > &)
Definition: GlobalParamsHelper.cc:91
L1TGlobalParameters
Definition: L1TGlobalParameters.h:7
StableParametersTrivialProducer::data_
l1t::GlobalParamsHelper data_
Definition: StableParametersTrivialProducer.cc:35
l1t::GlobalParamsHelper::setNumberL1Mu
void setNumberL1Mu(const unsigned int &)
Definition: GlobalParamsHelper.cc:52
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
l1t::GlobalParamsHelper::setNumberL1EG
void setNumberL1EG(const unsigned int &)
Definition: GlobalParamsHelper.cc:58
StableParametersTrivialProducer::produceGtStableParameters
std::unique_ptr< L1TGlobalParameters > produceGtStableParameters(const L1TGlobalParametersRcd &)
public methods
Definition: StableParametersTrivialProducer.cc:143
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
l1t::GlobalParamsHelper::setTotalBxInEvent
void setTotalBxInEvent(const int &)
Definition: GlobalParamsHelper.cc:40
l1t::GlobalParamsHelper::setPinsOnChip
void setPinsOnChip(const unsigned int &)
Definition: GlobalParamsHelper.cc:84
l1t::GlobalParamsHelper::setNumberChips
void setNumberChips(const unsigned int &)
Definition: GlobalParamsHelper.cc:78
l1t::GlobalParamsHelper::setNumberL1Tau
void setNumberL1Tau(const unsigned int &)
Definition: GlobalParamsHelper.cc:70