CMS 3D CMS Logo

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
DTConfigSectColl::CoarseSync
int CoarseSync(int istat) const
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station)
Definition: DTConfigSectColl.h:67
DTConfigSectColl::~DTConfigSectColl
~DTConfigSectColl() override
Destructor.
Definition: DTConfigSectColl.cc:48
DTConfigSectColl
Definition: DTConfigSectColl.h:37
DTConfigSectColl::m_debug
bool m_debug
Definition: DTConfigSectColl.h:92
DTConfigSectColl::NTSPSC
static const int NTSPSC
Definition: DTConfigSectColl.h:40
DTConfigSectColl::debug
bool debug() const
Return the debug flag.
Definition: DTConfigSectColl.h:55
DTConfigSectColl::setSCCarryFlag
void setSCCarryFlag(bool scecf, int istat)
Set carry in Sector Collector for station istat (1 means enabled, 0 disabled)
Definition: DTConfigSectColl.cc:54
DTConfigSectColl::setDefaults
void setDefaults(const edm::ParameterSet &ps)
Load pset values into class variables.
Definition: DTConfigSectColl.cc:73
DTConfigSectColl::m_scecf
bool m_scecf[4]
Definition: DTConfigSectColl.h:93
DTConfigSectColl::DTConfigSectColl
DTConfigSectColl()
Constructor.
Definition: DTConfigSectColl.cc:31
DTConfigSectColl::NDTSC
static const int NDTSC
Constant: maximum number of Sector Collector sorting Chip in input to Sector Collector.
Definition: DTConfigSectColl.h:43
DTConfigSectColl::setCoarseSync
void setCoarseSync(int sccsp, int istat)
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station)
Definition: DTConfigSectColl.cc:62
DTConfigSectColl::m_sccsp
int m_sccsp[5]
Definition: DTConfigSectColl.h:94
DTConfigSectColl::setDebug
void setDebug(bool debug)
Set debug flag.
Definition: DTConfigSectColl.h:77
edm::ParameterSet
Definition: ParameterSet.h:36
DTConfig.h
DTConfigSectColl::NTSTSC
static const int NTSTSC
Constants: number of TSTheta/TSPhi in input to Sector Collector.
Definition: DTConfigSectColl.h:40
Exception
Definition: hltDiff.cc:246
DTConfig
Definition: DTConfig.h:32
DTConfigSectColl::print
void print() const
Print the setup.
Definition: DTConfigSectColl.cc:110
Exception.h
ParameterSet.h
DTConfigSectColl::SCGetCarryFlag
bool SCGetCarryFlag(int istat) const
Return carry in Sector Collector for station istat (1 means enabled, 0 disabled)
Definition: DTConfigSectColl.h:58