#include <L1TriggerConfig/L1CSCTPConfigProducers/src/L1CSCTriggerPrimitivesConfigProducer.h>
Public Member Functions | |
L1CSCTriggerPrimitivesConfigProducer (const edm::ParameterSet &) | |
std::auto_ptr< CSCL1TPParameters > | produce (const CSCL1TPParametersRcd &) |
~L1CSCTriggerPrimitivesConfigProducer () | |
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 |
ALCT configuration parameters. | |
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 |
CLCT configuration parameters. | |
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 |
Definition at line 26 of file L1CSCTriggerPrimitivesConfigProducer.h.
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, and edm::ESProducer::setWhatProduced().
00020 { 00021 // the following line is needed to tell the framework what 00022 // data is being produced 00023 setWhatProduced(this); 00024 00025 // Decide on which of the two sets of parameters will be used. 00026 // (Temporary substitute for the IOV.) 00027 std::string alctParamSet, clctParamSet; 00028 bool isMTCC = iConfig.getParameter<bool>("isMTCC"); 00029 bool isTMB07 = iConfig.getParameter<bool>("isTMB07"); 00030 if (isMTCC) { 00031 alctParamSet = "alctParamMTCC2"; 00032 clctParamSet = "clctParamMTCC2"; 00033 } 00034 else if (isTMB07) { 00035 alctParamSet = "alctParamMTCC2"; 00036 clctParamSet = "clctParam"; 00037 } 00038 else { 00039 alctParamSet = "alctParam"; 00040 clctParamSet = "clctParam"; 00041 } 00042 00043 // get ALCT parameters from the config file 00044 edm::ParameterSet alctParams = 00045 iConfig.getParameter<edm::ParameterSet>(alctParamSet); 00046 m_alct_fifo_tbins = 00047 alctParams.getParameter<unsigned int>("alctFifoTbins"); 00048 m_alct_fifo_pretrig = 00049 alctParams.getParameter<unsigned int>("alctFifoPretrig"); 00050 m_alct_drift_delay = 00051 alctParams.getParameter<unsigned int>("alctDriftDelay"); 00052 m_alct_nplanes_hit_pretrig = 00053 alctParams.getParameter<unsigned int>("alctNplanesHitPretrig"); 00054 m_alct_nplanes_hit_pattern = 00055 alctParams.getParameter<unsigned int>("alctNplanesHitPattern"); 00056 m_alct_nplanes_hit_accel_pretrig = 00057 alctParams.getParameter<unsigned int>("alctNplanesHitAccelPretrig"); 00058 m_alct_nplanes_hit_accel_pattern = 00059 alctParams.getParameter<unsigned int>("alctNplanesHitAccelPattern"); 00060 m_alct_trig_mode = 00061 alctParams.getParameter<unsigned int>("alctTrigMode"); 00062 m_alct_accel_mode = 00063 alctParams.getParameter<unsigned int>("alctAccelMode"); 00064 m_alct_l1a_window_width = 00065 alctParams.getParameter<unsigned int>("alctL1aWindowWidth"); 00066 00067 // get CLCT parameters from the config file 00068 edm::ParameterSet clctParams = 00069 iConfig.getParameter<edm::ParameterSet>(clctParamSet); 00070 m_clct_fifo_tbins = 00071 clctParams.getParameter<unsigned int>("clctFifoTbins"); 00072 m_clct_fifo_pretrig = 00073 clctParams.getParameter<unsigned int>("clctFifoPretrig"); 00074 m_clct_hit_persist = 00075 clctParams.getParameter<unsigned int>("clctHitPersist"); 00076 m_clct_drift_delay = 00077 clctParams.getParameter<unsigned int>("clctDriftDelay"); 00078 m_clct_nplanes_hit_pretrig = 00079 clctParams.getParameter<unsigned int>("clctNplanesHitPretrig"); 00080 m_clct_nplanes_hit_pattern = 00081 clctParams.getParameter<unsigned int>("clctNplanesHitPattern"); 00082 m_clct_pid_thresh_pretrig = 00083 clctParams.getParameter<unsigned int>("clctPidThreshPretrig"); 00084 m_clct_min_separation = 00085 clctParams.getParameter<unsigned int>("clctMinSeparation"); 00086 }
L1CSCTriggerPrimitivesConfigProducer::~L1CSCTriggerPrimitivesConfigProducer | ( | ) |
std::auto_ptr< CSCL1TPParameters > L1CSCTriggerPrimitivesConfigProducer::produce | ( | const CSCL1TPParametersRcd & | iRecord | ) |
Definition at line 101 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, and m_clct_pid_thresh_pretrig.
00101 { 00102 using namespace edm::es; 00103 //boost::shared_ptr<L1CSCTriggerPrimitivesConfigProducer> pL1CSCTPConfigProducer; 00104 00105 // Create empty collection of CSCTPParameters. 00106 std::auto_ptr<CSCL1TPParameters> pL1CSCTPParams(new CSCL1TPParameters); 00107 00108 // Set ALCT parameters. 00109 pL1CSCTPParams->setAlctFifoTbins(m_alct_fifo_tbins); 00110 pL1CSCTPParams->setAlctFifoPretrig(m_alct_fifo_pretrig); 00111 pL1CSCTPParams->setAlctDriftDelay(m_alct_drift_delay); 00112 pL1CSCTPParams->setAlctNplanesHitPretrig(m_alct_nplanes_hit_pretrig); 00113 pL1CSCTPParams->setAlctNplanesHitPattern(m_alct_nplanes_hit_pattern); 00114 pL1CSCTPParams->setAlctNplanesHitAccelPretrig(m_alct_nplanes_hit_accel_pretrig); 00115 pL1CSCTPParams->setAlctNplanesHitAccelPattern(m_alct_nplanes_hit_accel_pattern); 00116 pL1CSCTPParams->setAlctTrigMode(m_alct_trig_mode); 00117 pL1CSCTPParams->setAlctAccelMode(m_alct_accel_mode); 00118 pL1CSCTPParams->setAlctL1aWindowWidth(m_alct_l1a_window_width); 00119 00120 // Set CLCT parameters. 00121 pL1CSCTPParams->setClctFifoTbins(m_clct_fifo_tbins); 00122 pL1CSCTPParams->setClctFifoPretrig(m_clct_fifo_pretrig); 00123 pL1CSCTPParams->setClctHitPersist(m_clct_hit_persist); 00124 pL1CSCTPParams->setClctDriftDelay(m_clct_drift_delay); 00125 pL1CSCTPParams->setClctNplanesHitPretrig(m_clct_nplanes_hit_pretrig); 00126 pL1CSCTPParams->setClctNplanesHitPattern(m_clct_nplanes_hit_pattern); 00127 pL1CSCTPParams->setClctPidThreshPretrig(m_clct_pid_thresh_pretrig); 00128 pL1CSCTPParams->setClctMinSeparation(m_clct_min_separation); 00129 00130 //return pL1CSCTPProducer; 00131 return pL1CSCTPParams; 00132 }
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_accel_mode [private] |
Definition at line 41 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_drift_delay [private] |
Definition at line 38 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_fifo_pretrig [private] |
Definition at line 37 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
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] |
Definition at line 41 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_accel_pattern [private] |
Definition at line 40 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_accel_pretrig [private] |
Definition at line 39 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_pattern [private] |
Definition at line 40 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_nplanes_hit_pretrig [private] |
Definition at line 39 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_alct_trig_mode [private] |
Definition at line 41 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_drift_delay [private] |
Definition at line 45 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_fifo_pretrig [private] |
Definition at line 44 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
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] |
Definition at line 45 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_min_separation [private] |
Definition at line 48 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_nplanes_hit_pattern [private] |
Definition at line 46 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_nplanes_hit_pretrig [private] |
Definition at line 46 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().
unsigned int L1CSCTriggerPrimitivesConfigProducer::m_clct_pid_thresh_pretrig [private] |
Definition at line 47 of file L1CSCTriggerPrimitivesConfigProducer.h.
Referenced by L1CSCTriggerPrimitivesConfigProducer(), and produce().