Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:59

0001 #ifndef CSCObjects_CSCL1TPParameters_h
0002 #define CSCObjects_CSCL1TPParameters_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 /** \class CSCL1TPParameters
0007  *  \author Slava Valuev
0008  *
0009  * Description: Configuration parameters needed for the Level-1 CSC Trigger
0010  *              Primitives emulator.  Expected to be stored in and retrieved
0011  *              from the conditions database.
0012  */
0013 
0014 class CSCL1TPParameters {
0015 public:
0016   CSCL1TPParameters();
0017   ~CSCL1TPParameters();
0018 
0019   /** returns ALCT fifo_tbins */
0020   inline unsigned int alctFifoTbins() const { return m_alct_fifo_tbins; }
0021 
0022   /** returns ALCT fifo_pretrig */
0023   inline unsigned int alctFifoPretrig() const { return m_alct_fifo_pretrig; }
0024 
0025   /** returns ALCT drift_delay */
0026   inline unsigned int alctDriftDelay() const { return m_alct_drift_delay; }
0027 
0028   /** returns ALCT nplanes_hit_pretrig */
0029   inline unsigned int alctNplanesHitPretrig() const { return m_alct_nplanes_hit_pretrig; }
0030 
0031   /** returns ALCT nplanes_hit_pattern */
0032   inline unsigned int alctNplanesHitPattern() const { return m_alct_nplanes_hit_pattern; }
0033 
0034   /** returns ALCT nplanes_hit_accel_pretrig */
0035   inline unsigned int alctNplanesHitAccelPretrig() const { return m_alct_nplanes_hit_accel_pretrig; }
0036 
0037   /** returns ALCT nplanes_hit_accel_pattern */
0038   inline unsigned int alctNplanesHitAccelPattern() const { return m_alct_nplanes_hit_accel_pattern; }
0039 
0040   /** returns ALCT trig_mode */
0041   inline unsigned int alctTrigMode() const { return m_alct_trig_mode; }
0042 
0043   /** returns ALCT accel_mode */
0044   inline unsigned int alctAccelMode() const { return m_alct_accel_mode; }
0045 
0046   /** returns ALCT l1a_window_width */
0047   inline unsigned int alctL1aWindowWidth() const { return m_alct_l1a_window_width; }
0048 
0049   /** returns CLCT fifo_tbins */
0050   inline unsigned int clctFifoTbins() const { return m_clct_fifo_tbins; }
0051 
0052   /** returns CLCT fifo_pretrig */
0053   inline unsigned int clctFifoPretrig() const { return m_clct_fifo_pretrig; }
0054 
0055   /** returns CLCT hit_persist */
0056   inline unsigned int clctHitPersist() const { return m_clct_hit_persist; }
0057 
0058   /** returns CLCT drift_delay */
0059   inline unsigned int clctDriftDelay() const { return m_clct_drift_delay; }
0060 
0061   /** returns CLCT nplanes_hit_pretrig */
0062   inline unsigned int clctNplanesHitPretrig() const { return m_clct_nplanes_hit_pretrig; }
0063 
0064   /** returns CLCT nplanes_hit_pattern */
0065   inline unsigned int clctNplanesHitPattern() const { return m_clct_nplanes_hit_pattern; }
0066 
0067   /** returns CLCT pid_thresh_pretrig */
0068   inline unsigned int clctPidThreshPretrig() const { return m_clct_pid_thresh_pretrig; }
0069 
0070   /** returns CLCT min_separation */
0071   inline unsigned int clctMinSeparation() const { return m_clct_min_separation; }
0072 
0073   /** sets ALCT fifo_tbins */
0074   void setAlctFifoTbins(const unsigned int theValue) { m_alct_fifo_tbins = theValue; }
0075 
0076   /** sets ALCT fifo_pretrig */
0077   void setAlctFifoPretrig(const unsigned int theValue) { m_alct_fifo_pretrig = theValue; }
0078 
0079   /** sets ALCT drift_delay */
0080   void setAlctDriftDelay(const unsigned int theValue) { m_alct_drift_delay = theValue; }
0081 
0082   /** sets ALCT nplanes_hit_pretrig */
0083   void setAlctNplanesHitPretrig(const unsigned int theValue) { m_alct_nplanes_hit_pretrig = theValue; }
0084 
0085   /** sets ALCT nplanes_hit_pattern */
0086   void setAlctNplanesHitPattern(const unsigned int theValue) { m_alct_nplanes_hit_pattern = theValue; }
0087 
0088   /** sets ALCT nplanes_hit_accel_pretrig */
0089   void setAlctNplanesHitAccelPretrig(const unsigned int theValue) { m_alct_nplanes_hit_accel_pretrig = theValue; }
0090 
0091   /** sets ALCT nplanes_hit_accel_pattern */
0092   void setAlctNplanesHitAccelPattern(const unsigned int theValue) { m_alct_nplanes_hit_accel_pattern = theValue; }
0093 
0094   /** sets ALCT trig_mode */
0095   void setAlctTrigMode(const unsigned int theValue) { m_alct_trig_mode = theValue; }
0096 
0097   /** sets ALCT accel_mode */
0098   void setAlctAccelMode(const unsigned int theValue) { m_alct_accel_mode = theValue; }
0099 
0100   /** sets ALCT l1a_window_width */
0101   void setAlctL1aWindowWidth(const unsigned int theValue) { m_alct_l1a_window_width = theValue; }
0102 
0103   /** sets CLCT fifo_tbins */
0104   void setClctFifoTbins(const unsigned int theValue) { m_clct_fifo_tbins = theValue; }
0105 
0106   /** sets CLCT fifo_pretrig */
0107   void setClctFifoPretrig(const unsigned int theValue) { m_clct_fifo_pretrig = theValue; }
0108 
0109   /** sets CLCT hit_persist */
0110   void setClctHitPersist(const unsigned int theValue) { m_clct_hit_persist = theValue; }
0111 
0112   /** sets CLCT drift_delay */
0113   void setClctDriftDelay(const unsigned int theValue) { m_clct_drift_delay = theValue; }
0114 
0115   /** sets CLCT nplanes_hit_pretrig */
0116   void setClctNplanesHitPretrig(const unsigned int theValue) { m_clct_nplanes_hit_pretrig = theValue; }
0117 
0118   /** sets CLCT nplanes_hit_pattern */
0119   void setClctNplanesHitPattern(const unsigned int theValue) { m_clct_nplanes_hit_pattern = theValue; }
0120 
0121   /** sets CLCT pid_thresh_pretrig */
0122   void setClctPidThreshPretrig(const unsigned int theValue) { m_clct_pid_thresh_pretrig = theValue; }
0123 
0124   /** sets CLCT min_separation */
0125   void setClctMinSeparation(const unsigned int theValue) { m_clct_min_separation = theValue; }
0126 
0127 private:
0128   /** ALCT configuration parameters. */
0129   unsigned int m_alct_fifo_tbins, m_alct_fifo_pretrig;
0130   unsigned int m_alct_drift_delay;
0131   unsigned int m_alct_nplanes_hit_pretrig, m_alct_nplanes_hit_accel_pretrig;
0132   unsigned int m_alct_nplanes_hit_pattern, m_alct_nplanes_hit_accel_pattern;
0133   unsigned int m_alct_trig_mode, m_alct_accel_mode, m_alct_l1a_window_width;
0134 
0135   /** CLCT configuration parameters. */
0136   unsigned int m_clct_fifo_tbins, m_clct_fifo_pretrig;
0137   unsigned int m_clct_hit_persist, m_clct_drift_delay;
0138   unsigned int m_clct_nplanes_hit_pretrig, m_clct_nplanes_hit_pattern;
0139   unsigned int m_clct_pid_thresh_pretrig;
0140   unsigned int m_clct_min_separation;
0141 
0142   COND_SERIALIZABLE;
0143 };
0144 
0145 #endif