CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::auto_ptr
< CSCDBL1TPParameters
produce (const CSCDBL1TPParametersRcd &)
 
 ~L1CSCTriggerPrimitivesConfigProducer ()
 
- 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 ()
 

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, boost::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

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

Author
Slava Valuev Created: Thu Apr 12 11:26:54 CEST 2007
Id:
L1CSCTriggerPrimitivesConfigProducer.h,v 1.6 2008/07/30 08:28:05 slava Exp

Definition at line 26 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, and edm::ESProducer::setWhatProduced().

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  bool isMTCC = iConfig.getParameter<bool>("isMTCC");
29  bool isTMB07 = iConfig.getParameter<bool>("isTMB07");
30  if (isMTCC) {
31  alctParamSet = "alctParamMTCC2";
32  clctParamSet = "clctParamMTCC2";
33  }
34  else if (isTMB07) {
35  alctParamSet = "alctParamMTCC2";
36  clctParamSet = "clctParam";
37  }
38  else {
39  alctParamSet = "alctParam";
40  clctParamSet = "clctParam";
41  }
42  tmbParamSet = "tmbParam";
43 
44  // get ALCT parameters from the config file
45  edm::ParameterSet alctParams =
46  iConfig.getParameter<edm::ParameterSet>(alctParamSet);
48  alctParams.getParameter<unsigned int>("alctFifoTbins");
50  alctParams.getParameter<unsigned int>("alctFifoPretrig");
52  alctParams.getParameter<unsigned int>("alctDriftDelay");
54  alctParams.getParameter<unsigned int>("alctNplanesHitPretrig");
56  alctParams.getParameter<unsigned int>("alctNplanesHitPattern");
58  alctParams.getParameter<unsigned int>("alctNplanesHitAccelPretrig");
60  alctParams.getParameter<unsigned int>("alctNplanesHitAccelPattern");
62  alctParams.getParameter<unsigned int>("alctTrigMode");
64  alctParams.getParameter<unsigned int>("alctAccelMode");
66  alctParams.getParameter<unsigned int>("alctL1aWindowWidth");
67 
68  // get CLCT parameters from the config file
69  edm::ParameterSet clctParams =
70  iConfig.getParameter<edm::ParameterSet>(clctParamSet);
72  clctParams.getParameter<unsigned int>("clctFifoTbins");
74  clctParams.getParameter<unsigned int>("clctFifoPretrig");
76  clctParams.getParameter<unsigned int>("clctHitPersist");
78  clctParams.getParameter<unsigned int>("clctDriftDelay");
80  clctParams.getParameter<unsigned int>("clctNplanesHitPretrig");
82  clctParams.getParameter<unsigned int>("clctNplanesHitPattern");
84  clctParams.getParameter<unsigned int>("clctPidThreshPretrig");
86  clctParams.getParameter<unsigned int>("clctMinSeparation");
87 
88  // get TMB parameters from the config file
89  edm::ParameterSet tmbParams =
90  iConfig.getParameter<edm::ParameterSet>(tmbParamSet);
92  tmbParams.getParameter<unsigned int>("tmbMpcBlockMe1a");
94  tmbParams.getParameter<unsigned int>("tmbAlctTrigEnable");
96  tmbParams.getParameter<unsigned int>("tmbClctTrigEnable");
98  tmbParams.getParameter<unsigned int>("tmbMatchTrigEnable");
100  tmbParams.getParameter<unsigned int>("tmbMatchTrigWindowSize");
102  tmbParams.getParameter<unsigned int>("tmbTmbL1aWindowSize");
103 }
T getParameter(std::string const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
L1CSCTriggerPrimitivesConfigProducer::~L1CSCTriggerPrimitivesConfigProducer ( )

Definition at line 109 of file L1CSCTriggerPrimitivesConfigProducer.cc.

109  {
110 }

Member Function Documentation

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

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

118  {
119  using namespace edm::es;
120  //boost::shared_ptr<L1CSCTriggerPrimitivesConfigProducer> pL1CSCTPConfigProducer;
121 
122  // Create empty collection of CSCTPParameters.
123  std::auto_ptr<CSCDBL1TPParameters> pL1CSCTPParams(new CSCDBL1TPParameters);
124 
125  // Set ALCT parameters.
126  pL1CSCTPParams->setAlctFifoTbins(m_alct_fifo_tbins);
127  pL1CSCTPParams->setAlctFifoPretrig(m_alct_fifo_pretrig);
128  pL1CSCTPParams->setAlctDriftDelay(m_alct_drift_delay);
129  pL1CSCTPParams->setAlctNplanesHitPretrig(m_alct_nplanes_hit_pretrig);
130  pL1CSCTPParams->setAlctNplanesHitPattern(m_alct_nplanes_hit_pattern);
131  pL1CSCTPParams->setAlctNplanesHitAccelPretrig(m_alct_nplanes_hit_accel_pretrig);
132  pL1CSCTPParams->setAlctNplanesHitAccelPattern(m_alct_nplanes_hit_accel_pattern);
133  pL1CSCTPParams->setAlctTrigMode(m_alct_trig_mode);
134  pL1CSCTPParams->setAlctAccelMode(m_alct_accel_mode);
135  pL1CSCTPParams->setAlctL1aWindowWidth(m_alct_l1a_window_width);
136 
137  // Set CLCT parameters.
138  pL1CSCTPParams->setClctFifoTbins(m_clct_fifo_tbins);
139  pL1CSCTPParams->setClctFifoPretrig(m_clct_fifo_pretrig);
140  pL1CSCTPParams->setClctHitPersist(m_clct_hit_persist);
141  pL1CSCTPParams->setClctDriftDelay(m_clct_drift_delay);
142  pL1CSCTPParams->setClctNplanesHitPretrig(m_clct_nplanes_hit_pretrig);
143  pL1CSCTPParams->setClctNplanesHitPattern(m_clct_nplanes_hit_pattern);
144  pL1CSCTPParams->setClctPidThreshPretrig(m_clct_pid_thresh_pretrig);
145  pL1CSCTPParams->setClctMinSeparation(m_clct_min_separation);
146 
147  // Set TMB parameters.
148  pL1CSCTPParams->setTmbMpcBlockMe1a(m_tmb_mpc_block_me1a);
149  pL1CSCTPParams->setTmbAlctTrigEnable(m_tmb_alct_trig_enable);
150  pL1CSCTPParams->setTmbClctTrigEnable(m_tmb_clct_trig_enable);
151  pL1CSCTPParams->setTmbMatchTrigEnable(m_tmb_match_trig_enable);
152  pL1CSCTPParams->setTmbMatchTrigWindowSize(m_tmb_match_trig_window_size);
153  pL1CSCTPParams->setTmbTmbL1aWindowSize(m_tmb_tmb_l1a_window_size);
154 
155  //return pL1CSCTPProducer;
156  return pL1CSCTPParams;
157 }

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 37 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 44 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 51 of file L1CSCTriggerPrimitivesConfigProducer.h.

Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().

unsigned int L1CSCTriggerPrimitivesConfigProducer::m_tmb_tmb_l1a_window_size
private