CMS 3D CMS Logo

CSCDBL1TPParametersExtended.h
Go to the documentation of this file.
1 #ifndef CSCObjects_CSCDBL1TPParametersExtended_h
2 #define CSCObjects_CSCDBL1TPParametersExtended_h
3 
5 
6 #include <vector>
7 
16 union S{
17  unsigned int i;
18  bool b;
19 };
20 
22 {
23  public:
26 
27  int getValueInt(const std::string&) const;
28  bool getValueBool(const std::string&) const;
29 
30  void setValue(const std::string&, int);
31  void setValue(const std::string&, bool);
32 
33  private:
34  std::vector<int> paramsInt_;
35  std::vector<int> paramsBool_;
36 
37  const std::vector<std::string> paramNamesBool_{
38  /* ME11 ALCT Phase-1 Upgrade Parameters */
39  "me11_phase1_alctNarrowMaskForR1a",
40  "me11_phase1_alctGhostCancellationSideQuality",
41  "me11_phase1_alctUseCorrectedBx",
42 
43  /* ME11 CLCT Phase-1 Upgrade Parameters */
44  "me11_phase1_useDeadTimeZoning",
45  "me11_phase1_useDynamicStateMachineZone",
46  "me11_phase1_clctUseCorrectedBx",
47 
48  /* ME11 TMB Phase-1 Upgrade Parameters */
49  "me11_phase1_tmbReadoutEarliest2",
50  "me11_phase1_tmbDropUsedAlcts",
51  "me11_phase1_clctToAlct",
52  "me11_phase1_tmbDropUsedClcts",
53  "me11_phase1_matchEarliestAlctME11Only",
54  "me11_phase1_matchEarliestClctME11Only",
55  };
56 
57  const std::vector<std::string> paramNamesInt_{
58  /* Parameters %for 2007 version of ALCT firmware */
59  "alctFifoTbins",
60  "alctFifoPretrig",
61  "alctDriftDelay",
62  "alctNplanesHitPretrig",
63  "alctNplanesHitPattern",
64  "alctNplanesHitAccelPretrig",
65  "alctNplanesHitAccelPattern",
66  "alctTrigMode",
67  "alctAccelMode",
68  "alctL1aWindowWidth",
69  "alctEarlyTbins",
70 
71  /* Parameters for 2007 version of CLCT firmware */
72  "clctFifoTbins",
73  "clctFifoPretrig",
74  "clctHitPersist",
75  "clctDriftDelay",
76  "clctNplanesHitPretrig",
77  "clctNplanesHitPattern",
78  "clctPidThreshPretrig",
79  "clctMinSeparation",
80 
81  /* Parameters for 2007 version of TMB firmware */
82  "tmbMpcBlockMe1a",
83  "tmbAlctTrigEnable",
84  "tmbClctTrigEnable",
85  "tmbMatchTrigEnable",
86  "tmbMatchTrigWindowSize",
87  "tmbTmbL1aWindowSize",
88 
89  /* ME11 ALCT Phase-1 Upgrade Parameters */
90  "me11_phase1_alctFifoTbins",
91  "me11_phase1_alctFifoPretrig",
92  "me11_phase1_alctDriftDelay",
93  "me11_phase1_alctNplanesHitPretrig",
94  "me11_phase1_alctNplanesHitPattern",
95  "me11_phase1_alctNplanesHitAccelPretrig",
96  "me11_phase1_alctNplanesHitAccelPattern",
97  "me11_phase1_alctTrigMode",
98  "me11_phase1_alctAccelMode",
99  "me11_phase1_alctL1aWindowWidth",
100  "me11_phase1_alctEarlyTbins",
101  "me11_phase1_alctHitPersist",
102  "me11_phase1_alctGhostCancellationBxDepth",
103  "me11_phase1_alctPretrigDeadtime",
104 
105  /* ME11 CLCT Phase-1 Upgrade Parameters */
106  "me11_phase1_clctFifoTbins",
107  "me11_phase1_clctFifoPretrig",
108  "me11_phase1_clctHitPersist",
109  "me11_phase1_clctDriftDelay",
110  "me11_phase1_clctNplanesHitPretrig",
111  "me11_phase1_clctNplanesHitPattern",
112  "me11_phase1_clctPidThreshPretrig",
113  "me11_phase1_clctMinSeparation",
114  "me11_phase1_clctStartBxShift",
115  "me11_phase1_clctStateMachineZone",
116  "me11_phase1_clctPretriggerTriggerZone",
117 
118  /* ME11 TMB Phase-1 Upgrade Parameters */
119  "me11_phase1_tmbMpcBlockMe1a",
120  "me11_phase1_tmbAlctTrigEnable",
121  "me11_phase1_tmbClctTrigEnable",
122  "me11_phase1_tmbMatchTrigEnable",
123  "me11_phase1_tmbMatchTrigWindowSize",
124  "me11_phase1_tmbTmbL1aWindowSize",
125  "me11_phase1_tmbEarlyTbins",
126  "me11_phase1_tmbCrossBxAlgorithm",
127  "me11_phase1_maxME11LCTs",
128  };
129 
131 };
132 
133 #endif
bool setValue(Container &, const reco::JetBaseRef &, const JetExtendedData &)
associate jet with value. Returns false and associate nothing if jet is already associated ...
#define COND_SERIALIZABLE
Definition: Serializable.h:38
unsigned int i