CMS 3D CMS Logo

CSCBaseboard.h
Go to the documentation of this file.
1 #ifndef L1Trigger_CSCTriggerPrimitives_CSCBaseboard_h
2 #define L1Trigger_CSCTriggerPrimitives_CSCBaseboard_h
3 
12 
13 class CSCBaseboard {
14 public:
15  struct Parameters {
17 
18  edm::ParameterSet const& conf() const { return *conf_; }
19 
20  edm::ParameterSet const& commonParams() const { return commonParams_; }
21  edm::ParameterSet const& showerParams() const { return showerParams_; }
22  edm::ParameterSet const& tmbParams() const { return tmbParams_; }
23  edm::ParameterSet const& alctParams() const { return alctParams_; }
24  edm::ParameterSet const& clctParams() const { return clctParams_; }
25 
26  void chooseParams(std::string_view tmb, std::string_view alct, std::string_view clct);
27 
28  private:
30 
31  // Parameters common for all boards
33 
34  // Shower Trigger parameters:
36 
37  // Motherboard parameters:
39 
40  // ALCT Processor parameters:
42 
43  // CLCT Processor parameters:
45 
49  };
50 
53  unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned chamber, Parameters& conf);
54 
56  CSCBaseboard();
57 
59  virtual ~CSCBaseboard() = default;
60 
61  std::string getCSCName() const { return theCSCName_; }
62 
63  CSCDetId id() const { return cscId_; }
64 
65 protected:
66  const CSCChamber* cscChamber(CSCGeometry const&) const;
67 
68  void checkConfigParameters(unsigned int& var,
69  const unsigned int var_max,
70  const unsigned int var_def,
71  const std::string& var_str);
72 
74  const unsigned theEndcap;
75  const unsigned theStation;
76  const unsigned theSector;
77  const unsigned theSubsector;
78  const unsigned theTrigChamber;
79  int theRegion;
80  unsigned theRing;
81  unsigned theChamber;
82 
83  // is this an ME11 chamber?
84  bool isME11_;
85  bool isME21_;
86  bool isME31_;
87  bool isME41_;
88  bool isME12_;
89  bool isME22_;
90  bool isME32_;
91  bool isME42_;
92  bool isME13_;
93 
94  // CSCDetId for this chamber
96 
101  int infoV;
102 
103  // chamber name, e.g. ME+1/1/9
105 
109 
112 
115 
118 
124 
125  bool run3_;
126  bool runCCLUT_;
129 };
130 #endif
const unsigned theEndcap
Definition: CSCBaseboard.h:74
bool enableAlctPhase2_
Definition: CSCBaseboard.h:108
void checkConfigParameters(unsigned int &var, const unsigned int var_max, const unsigned int var_def, const std::string &var_str)
edm::ParameterSet const commonParams_
Definition: CSCBaseboard.h:32
bool runCCLUT_TMB_
Definition: CSCBaseboard.h:127
const unsigned theSector
Definition: CSCBaseboard.h:76
Parameters(edm::ParameterSet const &conf)
Definition: CSCBaseboard.cc:3
edm::ParameterSet const * conf_
Definition: CSCBaseboard.h:29
edm::ParameterSet const & showerParams() const
Definition: CSCBaseboard.h:21
edm::ParameterSet alctParams_
Definition: CSCBaseboard.h:41
std::string theCSCName_
Definition: CSCBaseboard.h:104
CSCDetId cscId_
Definition: CSCBaseboard.h:95
edm::ParameterSet const & clctParams() const
Definition: CSCBaseboard.h:24
edm::ParameterSet clctParams_
Definition: CSCBaseboard.h:44
const unsigned theTrigChamber
Definition: CSCBaseboard.h:78
std::string getCSCName() const
Definition: CSCBaseboard.h:61
bool runCCLUT_OTMB_
Definition: CSCBaseboard.h:128
edm::ParameterSet const & tmbParams() const
Definition: CSCBaseboard.h:22
const CSCChamber * cscChamber(CSCGeometry const &) const
edm::ParameterSet const & commonParams() const
Definition: CSCBaseboard.h:20
edm::ParameterSet tmbParams_
Definition: CSCBaseboard.h:38
unsigned theChamber
Definition: CSCBaseboard.h:81
CSCDetId id() const
Definition: CSCBaseboard.h:63
edm::ParameterSet const & alctParams() const
Definition: CSCBaseboard.h:23
edm::ParameterSet const showerParams_
Definition: CSCBaseboard.h:35
const unsigned theStation
Definition: CSCBaseboard.h:75
edm::ParameterSet const & conf() const
Definition: CSCBaseboard.h:18
void chooseParams(std::string_view tmb, std::string_view alct, std::string_view clct)
Definition: CSCBaseboard.cc:8
virtual ~CSCBaseboard()=default
unsigned theRing
Definition: CSCBaseboard.h:80
const unsigned theSubsector
Definition: CSCBaseboard.h:77