CMS 3D CMS Logo

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

#include <L1CSCTriggerPrimitivesConfigProducer.h>

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

Public Member Functions

 L1CSCTriggerPrimitivesConfigProducer (const edm::ParameterSet &)
 
std::unique_ptr< CSCDBL1TPParametersproduce (const CSCDBL1TPParametersRcd &)
 
 ~L1CSCTriggerPrimitivesConfigProducer () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) override
 overrides DataProxyProvider method More...
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- 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 () noexcept(false)
 

Private Attributes

unsigned int m_alct_accel_mode
 
unsigned int m_alct_drift_delay
 
unsigned int m_alct_fifo_pretrig
 
unsigned int m_alct_fifo_tbins
 
unsigned int m_alct_l1a_window_width
 
unsigned int m_alct_nplanes_hit_accel_pattern
 
unsigned int m_alct_nplanes_hit_accel_pretrig
 
unsigned int m_alct_nplanes_hit_pattern
 
unsigned int m_alct_nplanes_hit_pretrig
 
unsigned int m_alct_trig_mode
 
unsigned int m_clct_drift_delay
 
unsigned int m_clct_fifo_pretrig
 
unsigned int m_clct_fifo_tbins
 
unsigned int m_clct_hit_persist
 
unsigned int m_clct_min_separation
 
unsigned int m_clct_nplanes_hit_pattern
 
unsigned int m_clct_nplanes_hit_pretrig
 
unsigned int m_clct_pid_thresh_pretrig
 
unsigned int m_tmb_alct_trig_enable
 
unsigned int m_tmb_clct_trig_enable
 
unsigned int m_tmb_match_trig_enable
 
unsigned int m_tmb_match_trig_window_size
 
unsigned int m_tmb_mpc_block_me1a
 
unsigned int m_tmb_tmb_l1a_window_size
 

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< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
 ESProducer (const ESProducer &)=delete
 
ESProducer const & operator= (const ESProducer &)=delete
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *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 eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override
 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

Description: Produce configuration parameters for the Level-1 CSC Trigger Primitives emulator.

Author
Slava Valuev Created: Thu Apr 12 11:26:54 CEST 2007

Definition at line 24 of file L1CSCTriggerPrimitivesConfigProducer.h.

Constructor & Destructor Documentation

L1CSCTriggerPrimitivesConfigProducer::L1CSCTriggerPrimitivesConfigProducer ( const edm::ParameterSet iConfig)

Definition at line 20 of file L1CSCTriggerPrimitivesConfigProducer.cc.

References edm::ParameterSet::getParameter(), m_alct_accel_mode, m_alct_drift_delay, m_alct_fifo_pretrig, m_alct_fifo_tbins, m_alct_l1a_window_width, m_alct_nplanes_hit_accel_pattern, m_alct_nplanes_hit_accel_pretrig, m_alct_nplanes_hit_pattern, m_alct_nplanes_hit_pretrig, m_alct_trig_mode, m_clct_drift_delay, m_clct_fifo_pretrig, m_clct_fifo_tbins, m_clct_hit_persist, m_clct_min_separation, m_clct_nplanes_hit_pattern, m_clct_nplanes_hit_pretrig, m_clct_pid_thresh_pretrig, m_tmb_alct_trig_enable, m_tmb_clct_trig_enable, m_tmb_match_trig_enable, m_tmb_match_trig_window_size, m_tmb_mpc_block_me1a, m_tmb_tmb_l1a_window_size, edm::ESProducer::setWhatProduced(), and AlCaHLTBitMon_QueryRunRegistry::string.

20  {
21  // the following line is needed to tell the framework what
22  // data is being produced
23  setWhatProduced(this);
24 
25  // Decide on which of the two sets of parameters will be used.
26  // (Temporary substitute for the IOV.)
27  std::string alctParamSet, clctParamSet, tmbParamSet;
28  alctParamSet = "alctParam";
29  clctParamSet = "clctParam";
30  tmbParamSet = "tmbParam";
31 
32  // get ALCT parameters from the config file
33  edm::ParameterSet alctParams =
34  iConfig.getParameter<edm::ParameterSet>(alctParamSet);
36  alctParams.getParameter<unsigned int>("alctFifoTbins");
38  alctParams.getParameter<unsigned int>("alctFifoPretrig");
40  alctParams.getParameter<unsigned int>("alctDriftDelay");
42  alctParams.getParameter<unsigned int>("alctNplanesHitPretrig");
44  alctParams.getParameter<unsigned int>("alctNplanesHitPattern");
46  alctParams.getParameter<unsigned int>("alctNplanesHitAccelPretrig");
48  alctParams.getParameter<unsigned int>("alctNplanesHitAccelPattern");
50  alctParams.getParameter<unsigned int>("alctTrigMode");
52  alctParams.getParameter<unsigned int>("alctAccelMode");
54  alctParams.getParameter<unsigned int>("alctL1aWindowWidth");
55 
56  // get CLCT parameters from the config file
57  edm::ParameterSet clctParams =
58  iConfig.getParameter<edm::ParameterSet>(clctParamSet);
60  clctParams.getParameter<unsigned int>("clctFifoTbins");
62  clctParams.getParameter<unsigned int>("clctFifoPretrig");
64  clctParams.getParameter<unsigned int>("clctHitPersist");
66  clctParams.getParameter<unsigned int>("clctDriftDelay");
68  clctParams.getParameter<unsigned int>("clctNplanesHitPretrig");
70  clctParams.getParameter<unsigned int>("clctNplanesHitPattern");
72  clctParams.getParameter<unsigned int>("clctPidThreshPretrig");
74  clctParams.getParameter<unsigned int>("clctMinSeparation");
75 
76  // get TMB parameters from the config file
77  edm::ParameterSet tmbParams =
78  iConfig.getParameter<edm::ParameterSet>(tmbParamSet);
80  tmbParams.getParameter<unsigned int>("tmbMpcBlockMe1a");
82  tmbParams.getParameter<unsigned int>("tmbAlctTrigEnable");
84  tmbParams.getParameter<unsigned int>("tmbClctTrigEnable");
86  tmbParams.getParameter<unsigned int>("tmbMatchTrigEnable");
88  tmbParams.getParameter<unsigned int>("tmbMatchTrigWindowSize");
90  tmbParams.getParameter<unsigned int>("tmbTmbL1aWindowSize");
91 }
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
L1CSCTriggerPrimitivesConfigProducer::~L1CSCTriggerPrimitivesConfigProducer ( )
override

Definition at line 97 of file L1CSCTriggerPrimitivesConfigProducer.cc.

97  {
98 }

Member Function Documentation

std::unique_ptr< CSCDBL1TPParameters > L1CSCTriggerPrimitivesConfigProducer::produce ( const CSCDBL1TPParametersRcd iRecord)

Definition at line 106 of file L1CSCTriggerPrimitivesConfigProducer.cc.

References m_alct_accel_mode, m_alct_drift_delay, m_alct_fifo_pretrig, m_alct_fifo_tbins, m_alct_l1a_window_width, m_alct_nplanes_hit_accel_pattern, m_alct_nplanes_hit_accel_pretrig, m_alct_nplanes_hit_pattern, m_alct_nplanes_hit_pretrig, m_alct_trig_mode, m_clct_drift_delay, m_clct_fifo_pretrig, m_clct_fifo_tbins, m_clct_hit_persist, m_clct_min_separation, m_clct_nplanes_hit_pattern, m_clct_nplanes_hit_pretrig, m_clct_pid_thresh_pretrig, m_tmb_alct_trig_enable, m_tmb_clct_trig_enable, m_tmb_match_trig_enable, m_tmb_match_trig_window_size, m_tmb_mpc_block_me1a, and m_tmb_tmb_l1a_window_size.

106  {
107  using namespace edm::es;
108  //std::shared_ptr<L1CSCTriggerPrimitivesConfigProducer> pL1CSCTPConfigProducer;
109 
110  // Create empty collection of CSCTPParameters.
111  auto pL1CSCTPParams = std::make_unique<CSCDBL1TPParameters>();
112 
113  // Set ALCT parameters.
114  pL1CSCTPParams->setAlctFifoTbins(m_alct_fifo_tbins);
115  pL1CSCTPParams->setAlctFifoPretrig(m_alct_fifo_pretrig);
116  pL1CSCTPParams->setAlctDriftDelay(m_alct_drift_delay);
117  pL1CSCTPParams->setAlctNplanesHitPretrig(m_alct_nplanes_hit_pretrig);
118  pL1CSCTPParams->setAlctNplanesHitPattern(m_alct_nplanes_hit_pattern);
119  pL1CSCTPParams->setAlctNplanesHitAccelPretrig(m_alct_nplanes_hit_accel_pretrig);
120  pL1CSCTPParams->setAlctNplanesHitAccelPattern(m_alct_nplanes_hit_accel_pattern);
121  pL1CSCTPParams->setAlctTrigMode(m_alct_trig_mode);
122  pL1CSCTPParams->setAlctAccelMode(m_alct_accel_mode);
123  pL1CSCTPParams->setAlctL1aWindowWidth(m_alct_l1a_window_width);
124 
125  // Set CLCT parameters.
126  pL1CSCTPParams->setClctFifoTbins(m_clct_fifo_tbins);
127  pL1CSCTPParams->setClctFifoPretrig(m_clct_fifo_pretrig);
128  pL1CSCTPParams->setClctHitPersist(m_clct_hit_persist);
129  pL1CSCTPParams->setClctDriftDelay(m_clct_drift_delay);
130  pL1CSCTPParams->setClctNplanesHitPretrig(m_clct_nplanes_hit_pretrig);
131  pL1CSCTPParams->setClctNplanesHitPattern(m_clct_nplanes_hit_pattern);
132  pL1CSCTPParams->setClctPidThreshPretrig(m_clct_pid_thresh_pretrig);
133  pL1CSCTPParams->setClctMinSeparation(m_clct_min_separation);
134 
135  // Set TMB parameters.
136  pL1CSCTPParams->setTmbMpcBlockMe1a(m_tmb_mpc_block_me1a);
137  pL1CSCTPParams->setTmbAlctTrigEnable(m_tmb_alct_trig_enable);
138  pL1CSCTPParams->setTmbClctTrigEnable(m_tmb_clct_trig_enable);
139  pL1CSCTPParams->setTmbMatchTrigEnable(m_tmb_match_trig_enable);
140  pL1CSCTPParams->setTmbMatchTrigWindowSize(m_tmb_match_trig_window_size);
141  pL1CSCTPParams->setTmbTmbL1aWindowSize(m_tmb_tmb_l1a_window_size);
142 
143  //return pL1CSCTPProducer;
144  return pL1CSCTPParams;
145 }

Member Data Documentation

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_accel_mode
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_drift_delay
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_fifo_pretrig
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_fifo_tbins
private

ALCT configuration parameters.

Definition at line 35 of file L1CSCTriggerPrimitivesConfigProducer.h.

Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_l1a_window_width
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_accel_pattern
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_accel_pretrig
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_pattern
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_pretrig
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_trig_mode
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_drift_delay
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_fifo_pretrig
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_fifo_tbins
private

CLCT configuration parameters.

Definition at line 42 of file L1CSCTriggerPrimitivesConfigProducer.h.

Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_hit_persist
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_min_separation
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_nplanes_hit_pattern
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_nplanes_hit_pretrig
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_pid_thresh_pretrig
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_alct_trig_enable
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_clct_trig_enable
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_match_trig_enable
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_match_trig_window_size
private
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_mpc_block_me1a
private

TMB configuration parameters.

Definition at line 49 of file L1CSCTriggerPrimitivesConfigProducer.h.

Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_tmb_l1a_window_size
private