CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::shared_ptr
< L1TGlobalParameters
produceGtStableParameters (const L1TGlobalParametersRcd &)
 public methods More...
 
 StableParametersTrivialProducer (const edm::ParameterSet &)
 constructor More...
 
 ~StableParametersTrivialProducer ()
 destructor More...
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 

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

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey,
edm::propagate_const
< std::shared_ptr< DataProxy > > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

Definition at line 21 of file StableParametersTrivialProducer.cc.

Constructor & Destructor Documentation

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

constructor

Definition at line 109 of file StableParametersTrivialProducer.cc.

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().

110  :
111  data_(new L1TGlobalParameters()) {
112 
113  // tell the framework what data is being produced
116 
117 
118  // set the number of bx in event
119  data_.setTotalBxInEvent(parSet.getParameter<int>("TotalBxInEvent"));
120 
121  // set the number of physics trigger algorithms
122  data_.setNumberPhysTriggers(parSet.getParameter<unsigned int>("NumberPhysTriggers"));
123 
124  // set the number of L1 muons received by GT
125  data_.setNumberL1Mu(parSet.getParameter<unsigned int>("NumberL1Muon"));
126 
127  // set the number of L1 e/gamma objects received by GT
128  data_.setNumberL1EG(parSet.getParameter<unsigned int>("NumberL1EGamma"));
129 
130  // set the number of L1 central jets received by GT
131  data_.setNumberL1Jet(parSet.getParameter<unsigned int>("NumberL1Jet"));
132 
133  // set the number of L1 tau jets received by GT
134  data_.setNumberL1Tau(parSet.getParameter<unsigned int>("NumberL1Tau"));
135 
136  // hardware stuff
137 
138  // set the number of condition chips in GTL
139  data_.setNumberChips(parSet.getParameter<unsigned int>("NumberChips"));
140 
141  // set the number of pins on the GTL condition chips
142  data_.setPinsOnChip(parSet.getParameter<unsigned int>("PinsOnChip"));
143 
144  // set the correspondence "condition chip - GTL algorithm word"
145  // in the hardware
146  data_.setOrderOfChip(parSet.getParameter<std::vector<int> >("OrderOfChip"));
147 
148 }
T getParameter(std::string const &) const
void setNumberL1Tau(const unsigned int &)
void setNumberL1Jet(const unsigned int &)
void setNumberChips(const unsigned int &)
void setOrderOfChip(const std::vector< int > &)
std::shared_ptr< L1TGlobalParameters > produceGtStableParameters(const L1TGlobalParametersRcd &)
public methods
void setNumberL1EG(const unsigned int &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
void setTotalBxInEvent(const int &)
void setNumberL1Mu(const unsigned int &)
void setPinsOnChip(const unsigned int &)
void setNumberPhysTriggers(const unsigned int &)
StableParametersTrivialProducer::~StableParametersTrivialProducer ( )

destructor

Definition at line 151 of file StableParametersTrivialProducer.cc.

151  {
152 
153  // empty
154 
155 }

Member Function Documentation

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

Definition at line 50 of file StableParametersTrivialProducer.cc.

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

50  {
52 
53  // TotalBxInEvent = cms.int32(5),
54  desc.add<int> ("TotalBxInEvent", 5)->setComment("stage2");
55 
56  //NumberPhysTriggers = cms.uint32(512)
57  desc.add<unsigned int> ("NumberPhysTriggers", 512)->setComment("Number of physics trigger algorithms");
58 
59  //NumberL1Muon = cms.uint32(12)
60  desc.add<unsigned int> ("NumberL1Muon", 12)->setComment("Number of L2 Muons");
61 
62  //NumberL1EGamma = cms.uint32(12),
63  desc.add<unsigned int> ("NumberL1EGamma", 12)->setComment("Number of L1 e/gamma objects");
64 
65  //NumberL1Jet = cms.uint32(12),
66  desc.add<unsigned int> ("NumberL1Jet", 12)->setComment("Number of L1 jets");
67 
68  //NumberL1Tau = cms.uint32(8),
69  desc.add<unsigned int> ("NumberL1Tau", 8)->setComment("Number of L1 taus");
70 
71  //NumberChips = cms.uint32(1),
72  desc.add<unsigned int> ("NumberChips", 5)->setComment("Number of chips in Menu");
73 
74  //PinsOnChip = cms.uint32(512),
75  desc.add<unsigned int> ("PinsOnChip", 512)->setComment("Number of pins on the GTL condition chips");
76 
77  //OrderOfChip = cms.vint32(1),
78  vector<int> tmp = {1};
79  desc.add<vector<int> > ("OrderOfChip", tmp)->setComment("Chip order");
80 
81 
82  //
83  // Deprecated Parameters: These can be removed once the HLT inteface is updated, or HLT takes these conditions from Offline DB.
84  //
85 
86  desc.add<unsigned int> ("NumberL1IsoEG", 0)->setComment("Deprecated...");
87  desc.add<unsigned int> ("NumberL1JetCounts", 0)->setComment("Deprecated...");
88  desc.add<int> ("UnitLength", 0)->setComment("Deprecated...");
89  desc.add<unsigned int> ("NumberL1ForJet", 0)->setComment("Deprecated...");
90  desc.add<unsigned int> ("IfCaloEtaNumberBits", 0)->setComment("Deprecated...");
91  desc.add<unsigned int> ("IfMuEtaNumberBits", 0)->setComment("Deprecated...");
92  desc.add<unsigned int> ("NumberL1TauJet", 0)->setComment("Deprecated...");
93  desc.add<unsigned int> ("NumberL1Mu", 0)->setComment("Deprecated...");
94  desc.add<unsigned int> ("NumberConditionChips", 0)->setComment("Deprecated...");
95  desc.add<int> ("NumberPsbBoards", 0)->setComment("Deprecated...");
96  desc.add<unsigned int> ("NumberL1CenJet", 0)->setComment("Deprecated...");
97  desc.add<unsigned int> ("PinsOnConditionChip", 0)->setComment("Deprecated...");
98  desc.add<unsigned int> ("NumberL1NoIsoEG", 0)->setComment("Deprecated...");
99  desc.add<unsigned int> ("NumberTechnicalTriggers", 0)->setComment("Deprecated...");
100  desc.add<unsigned int> ("NumberPhysTriggersExtended", 0)->setComment("Deprecated...");
101  desc.add<int> ("WordLength", 0)->setComment("Deprecated...");
102  vector<int> tmp2 = {1};
103  desc.add<vector<int> > ("OrderConditionChip", tmp2)->setComment("Deprecated...");
104 
105  descriptions.add("StableParametersTrivialProducer", desc);
106 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
std::shared_ptr< L1TGlobalParameters > StableParametersTrivialProducer::produceGtStableParameters ( const L1TGlobalParametersRcd iRecord)

public methods

L1 GT parameters

Definition at line 160 of file StableParametersTrivialProducer.cc.

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

Referenced by StableParametersTrivialProducer().

160  {
161 
162  auto pL1uGtStableParameters = std::shared_ptr<L1TGlobalParameters>(data_.getWriteInstance());
163 
164  return pL1uGtStableParameters;
165 
166 }
L1TGlobalParameters * getWriteInstance()

Member Data Documentation

l1t::GlobalParamsHelper StableParametersTrivialProducer::data_
private