CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTConfigSectColl.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
12 //
13 //--------------------------------------------------
14 #ifndef DT_CONFIG_SECTCOLL_H
15 #define DT_CONFIG_SECTCOLL_H
16 
17 //---------------
18 // C++ Headers --
19 //---------------
20 #include <iostream>
21 
22 //----------------------
23 // Base Class Headers --
24 //----------------------
25 
26 //------------------------------------
27 // Collaborating Class Declarations --
28 //------------------------------------
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
37 class DTConfigSectColl : public DTConfig {
38 public:
40  static const int NTSTSC = 3, NTSPSC = 5;
41 
43  static const int NDTSC = 4;
44 
47 
50 
52  ~DTConfigSectColl() override;
53 
55  inline bool debug() const { return m_debug; }
56 
58  inline bool SCGetCarryFlag(int istat) const {
59  if (istat < 1 || istat > 4) {
60  throw cms::Exception("DTTPG") << "DTConfigSectColl::SCGetCarryFlag: station number out of range: istat=" << istat
61  << std::endl;
62  }
63  return m_scecf[istat - 1];
64  }
65 
67  inline int CoarseSync(int istat) const {
68  if (istat < 1 || istat > 5) {
69  throw cms::Exception("DTTPG") << "DTConfigSectColl::CoarseSync: station number out of range: istat=" << istat
70  << std::endl;
71  }
72  return m_sccsp[istat - 1];
73  }
74 
75  // Set Methods
77  inline void setDebug(bool debug) { m_debug = debug; }
78 
80  void setSCCarryFlag(bool scecf, int istat);
81 
83  void setCoarseSync(int sccsp, int istat);
84 
86  void print() const;
87 
88 private:
90  void setDefaults(const edm::ParameterSet& ps);
91 
92  bool m_debug;
93  bool m_scecf[4];
94  int m_sccsp[5];
95 };
96 
97 #endif
void setSCCarryFlag(bool scecf, int istat)
Set carry in Sector Collector for station istat (1 means enabled, 0 disabled)
void print() const
Print the setup.
~DTConfigSectColl() override
Destructor.
void setDebug(bool debug)
Set debug flag.
static const int NTSPSC
bool debug() const
Return the debug flag.
bool SCGetCarryFlag(int istat) const
Return carry in Sector Collector for station istat (1 means enabled, 0 disabled)
int CoarseSync(int istat) const
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station) ...
DTConfigSectColl()
Constructor.
static const int NDTSC
Constant: maximum number of Sector Collector sorting Chip in input to Sector Collector.
void setCoarseSync(int sccsp, int istat)
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station) ...
static const int NTSTSC
Constants: number of TSTheta/TSPhi in input to Sector Collector.
void setDefaults(const edm::ParameterSet &ps)
Load pset values into class variables.