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 #include "boost/cstdint.hpp"
33 
34 // ---------------------
35 // -- Class Interface --
36 // ---------------------
37 
38 class DTConfigSectColl : public DTConfig {
39 
40  public:
41 
43  static const int NTSTSC=3, NTSPSC=5;
44 
46  static const int NDTSC=4;
47 
50 
53 
56 
58  inline bool debug() const { return m_debug; }
59 
61  inline bool SCGetCarryFlag(int istat) const {
62  if (istat<1 || istat>4){
63  throw cms::Exception("DTTPG") << "DTConfigSectColl::SCGetCarryFlag: station number out of range: istat=" << istat << std::endl;
64  }
65  return m_scecf[istat-1];
66  }
67 
69  inline int CoarseSync(int istat) const {
70 
71  if (istat<1 || istat>5){
72  throw cms::Exception("DTTPG") << "DTConfigSectColl::CoarseSync: station number out of range: istat="
73  << istat << std::endl;
74  }
75  return m_sccsp[istat-1];
76 
77  }
78 
79  // Set Methods
81  inline void setDebug(bool debug) { m_debug=debug; }
82 
84  void setSCCarryFlag(bool scecf,int istat);
85 
87  void setCoarseSync(int sccsp, int istat);
88 
90  void print() const ;
91 
92  private:
93 
95  void setDefaults(const edm::ParameterSet& ps);
96 
97  bool m_debug;
98  bool m_scecf[4];
99  int m_sccsp[5];
100 
101 };
102 
103 #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.
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()
Destructor.
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.