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 ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
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

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

- 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 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={})
 
void usesResources (std::vector< std::string > const &)
 
- 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: 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::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
34  m_alct_fifo_tbins = alctParams.getParameter<unsigned int>("alctFifoTbins");
35  m_alct_fifo_pretrig = alctParams.getParameter<unsigned int>("alctFifoPretrig");
36  m_alct_drift_delay = alctParams.getParameter<unsigned int>("alctDriftDelay");
37  m_alct_nplanes_hit_pretrig = alctParams.getParameter<unsigned int>("alctNplanesHitPretrig");
38  m_alct_nplanes_hit_pattern = alctParams.getParameter<unsigned int>("alctNplanesHitPattern");
39  m_alct_nplanes_hit_accel_pretrig = alctParams.getParameter<unsigned int>("alctNplanesHitAccelPretrig");
40  m_alct_nplanes_hit_accel_pattern = alctParams.getParameter<unsigned int>("alctNplanesHitAccelPattern");
41  m_alct_trig_mode = alctParams.getParameter<unsigned int>("alctTrigMode");
42  m_alct_accel_mode = alctParams.getParameter<unsigned int>("alctAccelMode");
43  m_alct_l1a_window_width = alctParams.getParameter<unsigned int>("alctL1aWindowWidth");
44 
45  // get CLCT parameters from the config file
47  m_clct_fifo_tbins = clctParams.getParameter<unsigned int>("clctFifoTbins");
48  m_clct_fifo_pretrig = clctParams.getParameter<unsigned int>("clctFifoPretrig");
49  m_clct_hit_persist = clctParams.getParameter<unsigned int>("clctHitPersist");
50  m_clct_drift_delay = clctParams.getParameter<unsigned int>("clctDriftDelay");
51  m_clct_nplanes_hit_pretrig = clctParams.getParameter<unsigned int>("clctNplanesHitPretrig");
52  m_clct_nplanes_hit_pattern = clctParams.getParameter<unsigned int>("clctNplanesHitPattern");
53  m_clct_pid_thresh_pretrig = clctParams.getParameter<unsigned int>("clctPidThreshPretrig");
54  m_clct_min_separation = clctParams.getParameter<unsigned int>("clctMinSeparation");
55 
56  // get TMB parameters from the config file
58  m_tmb_mpc_block_me1a = tmbParams.getParameter<unsigned int>("tmbMpcBlockMe1a");
59  m_tmb_alct_trig_enable = tmbParams.getParameter<unsigned int>("tmbAlctTrigEnable");
60  m_tmb_clct_trig_enable = tmbParams.getParameter<unsigned int>("tmbClctTrigEnable");
61  m_tmb_match_trig_enable = tmbParams.getParameter<unsigned int>("tmbMatchTrigEnable");
62  m_tmb_match_trig_window_size = tmbParams.getParameter<unsigned int>("tmbMatchTrigWindowSize");
63  m_tmb_tmb_l1a_window_size = tmbParams.getParameter<unsigned int>("tmbTmbL1aWindowSize");
64 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

◆ ~L1CSCTriggerPrimitivesConfigProducer()

L1CSCTriggerPrimitivesConfigProducer::~L1CSCTriggerPrimitivesConfigProducer ( )
override

Definition at line 70 of file L1CSCTriggerPrimitivesConfigProducer.cc.

70 {}

Member Function Documentation

◆ produce()

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

Definition at line 77 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.

78  {
79  using namespace edm::es;
80  //std::shared_ptr<L1CSCTriggerPrimitivesConfigProducer> pL1CSCTPConfigProducer;
81 
82  // Create empty collection of CSCTPParameters.
83  auto pL1CSCTPParams = std::make_unique<CSCDBL1TPParameters>();
84 
85  // Set ALCT parameters.
86  pL1CSCTPParams->setAlctFifoTbins(m_alct_fifo_tbins);
87  pL1CSCTPParams->setAlctFifoPretrig(m_alct_fifo_pretrig);
88  pL1CSCTPParams->setAlctDriftDelay(m_alct_drift_delay);
89  pL1CSCTPParams->setAlctNplanesHitPretrig(m_alct_nplanes_hit_pretrig);
90  pL1CSCTPParams->setAlctNplanesHitPattern(m_alct_nplanes_hit_pattern);
91  pL1CSCTPParams->setAlctNplanesHitAccelPretrig(m_alct_nplanes_hit_accel_pretrig);
92  pL1CSCTPParams->setAlctNplanesHitAccelPattern(m_alct_nplanes_hit_accel_pattern);
93  pL1CSCTPParams->setAlctTrigMode(m_alct_trig_mode);
94  pL1CSCTPParams->setAlctAccelMode(m_alct_accel_mode);
95  pL1CSCTPParams->setAlctL1aWindowWidth(m_alct_l1a_window_width);
96 
97  // Set CLCT parameters.
98  pL1CSCTPParams->setClctFifoTbins(m_clct_fifo_tbins);
99  pL1CSCTPParams->setClctFifoPretrig(m_clct_fifo_pretrig);
100  pL1CSCTPParams->setClctHitPersist(m_clct_hit_persist);
101  pL1CSCTPParams->setClctDriftDelay(m_clct_drift_delay);
102  pL1CSCTPParams->setClctNplanesHitPretrig(m_clct_nplanes_hit_pretrig);
103  pL1CSCTPParams->setClctNplanesHitPattern(m_clct_nplanes_hit_pattern);
104  pL1CSCTPParams->setClctPidThreshPretrig(m_clct_pid_thresh_pretrig);
105  pL1CSCTPParams->setClctMinSeparation(m_clct_min_separation);
106 
107  // Set TMB parameters.
108  pL1CSCTPParams->setTmbMpcBlockMe1a(m_tmb_mpc_block_me1a);
109  pL1CSCTPParams->setTmbAlctTrigEnable(m_tmb_alct_trig_enable);
110  pL1CSCTPParams->setTmbClctTrigEnable(m_tmb_clct_trig_enable);
111  pL1CSCTPParams->setTmbMatchTrigEnable(m_tmb_match_trig_enable);
112  pL1CSCTPParams->setTmbMatchTrigWindowSize(m_tmb_match_trig_window_size);
113  pL1CSCTPParams->setTmbTmbL1aWindowSize(m_tmb_tmb_l1a_window_size);
114 
115  //return pL1CSCTPProducer;
116  return pL1CSCTPParams;
117 }

Member Data Documentation

◆ m_alct_accel_mode

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_accel_mode
private

◆ m_alct_drift_delay

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_drift_delay
private

◆ m_alct_fifo_pretrig

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_fifo_pretrig
private

◆ m_alct_fifo_tbins

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_fifo_tbins
private

ALCT configuration parameters.

Definition at line 35 of file L1CSCTriggerPrimitivesConfigProducer.h.

Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().

◆ m_alct_l1a_window_width

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_l1a_window_width
private

◆ m_alct_nplanes_hit_accel_pattern

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_accel_pattern
private

◆ m_alct_nplanes_hit_accel_pretrig

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_accel_pretrig
private

◆ m_alct_nplanes_hit_pattern

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_pattern
private

◆ m_alct_nplanes_hit_pretrig

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_pretrig
private

◆ m_alct_trig_mode

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_trig_mode
private

◆ m_clct_drift_delay

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_drift_delay
private

◆ m_clct_fifo_pretrig

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_fifo_pretrig
private

◆ m_clct_fifo_tbins

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_fifo_tbins
private

CLCT configuration parameters.

Definition at line 42 of file L1CSCTriggerPrimitivesConfigProducer.h.

Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().

◆ m_clct_hit_persist

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_hit_persist
private

◆ m_clct_min_separation

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_min_separation
private

◆ m_clct_nplanes_hit_pattern

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_nplanes_hit_pattern
private

◆ m_clct_nplanes_hit_pretrig

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_nplanes_hit_pretrig
private

◆ m_clct_pid_thresh_pretrig

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_pid_thresh_pretrig
private

◆ m_tmb_alct_trig_enable

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_alct_trig_enable
private

◆ m_tmb_clct_trig_enable

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_clct_trig_enable
private

◆ m_tmb_match_trig_enable

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_match_trig_enable
private

◆ m_tmb_match_trig_window_size

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_match_trig_window_size
private

◆ m_tmb_mpc_block_me1a

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

◆ m_tmb_tmb_l1a_window_size

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_tmb_l1a_window_size
private