CMS 3D CMS Logo

ConstantsForHardwareSystems.h
Go to the documentation of this file.
1 
2 #ifndef DataFormats_SiStripCommon_ConstantsForHardwareSystems_H
3 #define DataFormats_SiStripCommon_ConstantsForHardwareSystems_H
4 
7 
13 namespace sistrip {
14 
15  // -------------------- FED misc --------------------
16 
17  static const uint16_t FED_ADC_RANGE = 0x400; // 1024
18 
19  // -------------------- FED ids --------------------
20 
21  static const uint16_t FED_ID_MIN = static_cast<uint16_t>(FEDNumbering::MINSiStripFEDID);
22  static const uint16_t FED_ID_MAX = static_cast<uint16_t>(FEDNumbering::MAXSiStripFEDID);
23  static const uint16_t CMS_FED_ID_MAX = static_cast<uint16_t>(FEDNumbering::MAXFEDID);
24  static const uint16_t NUMBER_OF_FEDS = static_cast<uint16_t>(FED_ID_MAX - FED_ID_MIN + 1);
25 
26  // -------------------- FEDs to channels --------------------
27 
28  static const uint16_t FEDCH_PER_FEUNIT = 12;
29  static const uint16_t FEUNITS_PER_FED = 8;
30  static const uint16_t FEDCH_PER_FED = FEDCH_PER_FEUNIT * FEUNITS_PER_FED; // 96
31 
32  // -------------------- Front-end devices --------------------
33 
34  static const uint16_t APVS_PER_FEDCH = 2;
35  static const uint16_t APVS_PER_FEUNIT = APVS_PER_FEDCH * FEDCH_PER_FEUNIT; // 24
36  static const uint16_t APVS_PER_FED = APVS_PER_FEUNIT * FEUNITS_PER_FED; // 194
37 
38  static const uint16_t APVS_PER_CHAN = 2;
39  static const uint16_t CHANS_PER_LLD = 3;
40 
41  // -------------------- Detector strips --------------------
42 
43  static const uint16_t STRIPS_PER_APV = 128;
44  static const uint16_t STRIPS_PER_FEDCH = STRIPS_PER_APV * APVS_PER_FEDCH;
45  static const uint16_t STRIPS_PER_FEUNIT = STRIPS_PER_FEDCH * FEDCH_PER_FEUNIT; // 3072
46  static const uint16_t STRIPS_PER_FED = STRIPS_PER_FEUNIT * FEUNITS_PER_FED; // 24576
47 
48  // -------------------- FED buffers --------------------
49 
50  static const uint16_t DAQ_HDR_SIZE = 8;
51  static const uint16_t TRK_HDR_SIZE = 8;
52  static const uint16_t FE_HDR_SIZE = 16;
53  static const uint16_t APV_ERROR_HDR_SIZE = 24;
54  static const uint16_t FULL_DEBUG_HDR_SIZE = 8 * FE_HDR_SIZE;
55 
56  // -------------------- Control system --------------------
57 
58  //static const uint16_t FEC_CRATE_OFFSET = 1; //@@ temporary
59  //static const uint16_t FEC_RING_OFFSET = 1; //@@ temporary
60 
61  static const uint16_t FEC_RING_MIN = 1;
62  static const uint16_t FEC_RING_MAX = 8;
63 
64  static const uint16_t CCU_ADDR_MIN = 1;
65  static const uint16_t CCU_ADDR_MAX = 127;
66 
67  static const uint16_t CCU_CHAN_MIN = 16;
68  static const uint16_t CCU_CHAN_MAX = 31;
69 
70  static const uint16_t LLD_CHAN_MIN = 1;
71  static const uint16_t LLD_CHAN_MAX = 3;
72 
73  static const uint16_t APV_I2C_MIN = 32;
74  static const uint16_t APV_I2C_MAX = 37;
75 
76  // -------------------- VME crates --------------------
77 
78  static const uint16_t SLOTS_PER_CRATE = 20;
79 
80  static const uint16_t CRATE_SLOT_MIN = 2; // slot 1 is reserved for VME controller
81  static const uint16_t CRATE_SLOT_MAX = 21;
82 
83  static const uint16_t MAX_FEDS_PER_CRATE = 16;
84  static const uint16_t MAX_FECS_PER_CRATE = 20;
85 
86  static const uint16_t FED_CRATE_MIN = 1;
87  static const uint16_t FED_CRATE_MAX = 60;
88 
89  static const uint16_t FEC_CRATE_MIN = 1;
90  static const uint16_t FEC_CRATE_MAX = 4;
91 
92  // -------------------- String constants --------------------
93 
94  static const char unknownApvReadoutMode_[] = "UnknownApvReadoutMode";
95  static const char undefinedApvReadoutMode_[] = "UndefinedApvReadoutMode";
96 
97  static const char apvPeakMode_[] = "ApvPeakMode";
98  static const char apvDeconMode_[] = "ApvDeconMode";
99  static const char apvMultiMode_[] = "ApvMultiMode";
100 
101  static const char unknownFedReadoutMode_[] = "UnknownFedReadoutMode";
102  static const char undefinedFedReadoutMode_[] = "UndefinedFedReadoutMode";
103 
104  static const char fedScopeMode_[] = "FedScopeMode";
105  static const char fedVirginRaw_[] = "FedVirginRaw";
106  static const char fedProcRaw_[] = "FedProcessedRaw";
107  static const char fedZeroSuppr_[] = "FedZeroSuppressed";
108  static const char fedZeroSupprCMO_[] = "FedZeroSuppressedCMOverride";
109  static const char fedZeroSupprLite_[] = "FedZeroSupprressedLite";
110  static const char fedZeroSupprLiteCMO_[] = "FedZeroSuppressedLiteCMOverride";
111  static const char fedZeroSupprLite8TT_[] = "FedZeroSuppressedLite8TT";
112  static const char fedZeroSupprLite8TTCMO_[] = "FedZeroSuppressedLite8TTCMOverride";
113  static const char fedZeroSupprLite8TB_[] = "FedZeroSuppressedLite8TB";
114  static const char fedZeroSupprLite8TBCMO_[] = "FedZeroSuppressedLite8TBCMOverride";
115  static const char fedZeroSupprLite8BB_[] = "FedZeroSuppressedLite8BB";
116  static const char fedZeroSupprLite8BBCMO_[] = "FedZeroSuppressedLite8BBCMOverride";
117  static const char fedPreMixRaw_[] = "FedPreMixRaw";
118 
119  // -------------------- Enumerators --------------------
120 
127  };
128 
145  };
146 
152  };
153 
159  };
160 
164  REAL = 0,
165  FAKE = 1
166  };
167 
168 } // namespace sistrip
169 
170 #endif // DataFormats_SiStripCommon_ConstantsForHardwareSystems_H
Constants.h
Generic constants.
FEDNumbering.h
sistrip::fedZeroSupprLite8TBCMO_
static const char fedZeroSupprLite8TBCMO_[]
Definition: ConstantsForHardwareSystems.h:114
sistrip::FedSuperMode
FedSuperMode
Definition: ConstantsForHardwareSystems.h:161
sistrip::UNDEFINED_FED_BUFFER_FORMAT
Definition: ConstantsForHardwareSystems.h:156
sistrip::FED_CRATE_MIN
static const uint16_t FED_CRATE_MIN
Definition: ConstantsForHardwareSystems.h:86
sistrip::APV_MULTI_MODE
Definition: ConstantsForHardwareSystems.h:126
sistrip::LLD_CHAN_MIN
static const uint16_t LLD_CHAN_MIN
Definition: ConstantsForHardwareSystems.h:70
sistrip::FED_CRATE_MAX
static const uint16_t FED_CRATE_MAX
Definition: ConstantsForHardwareSystems.h:87
sistrip::apvMultiMode_
static const char apvMultiMode_[]
Definition: ConstantsForHardwareSystems.h:99
sistrip::FEC_CRATE_MIN
static const uint16_t FEC_CRATE_MIN
Definition: ConstantsForHardwareSystems.h:89
sistrip::fedZeroSuppr_
static const char fedZeroSuppr_[]
Definition: ConstantsForHardwareSystems.h:107
sistrip::APV_ERROR_FORMAT
Definition: ConstantsForHardwareSystems.h:158
sistrip::FED_PREMIX_RAW
Definition: ConstantsForHardwareSystems.h:144
sistrip::CCU_ADDR_MAX
static const uint16_t CCU_ADDR_MAX
Definition: ConstantsForHardwareSystems.h:65
sistrip::FEC_RING_MAX
static const uint16_t FEC_RING_MAX
Definition: ConstantsForHardwareSystems.h:62
sistrip::APV_I2C_MIN
static const uint16_t APV_I2C_MIN
Definition: ConstantsForHardwareSystems.h:73
sistrip::REAL
Definition: ConstantsForHardwareSystems.h:164
sistrip::fedZeroSupprLite8BB_
static const char fedZeroSupprLite8BB_[]
Definition: ConstantsForHardwareSystems.h:115
sistrip::FEC_CRATE_MAX
static const uint16_t FEC_CRATE_MAX
Definition: ConstantsForHardwareSystems.h:90
sistrip::CCU_CHAN_MIN
static const uint16_t CCU_CHAN_MIN
Definition: ConstantsForHardwareSystems.h:67
sistrip::CMS_FED_ID_MAX
static const uint16_t CMS_FED_ID_MAX
Definition: ConstantsForHardwareSystems.h:23
sistrip::STRIPS_PER_FED
static const uint16_t STRIPS_PER_FED
Definition: ConstantsForHardwareSystems.h:46
sistrip::FED_ID_MIN
static const uint16_t FED_ID_MIN
Definition: ConstantsForHardwareSystems.h:21
sistrip::SLOTS_PER_CRATE
static const uint16_t SLOTS_PER_CRATE
Definition: ConstantsForHardwareSystems.h:78
sistrip::FED_ZERO_SUPPR_LITE8_TB_CMO
Definition: ConstantsForHardwareSystems.h:141
sistrip::UNDEFINED_APV_READOUT_MODE
Definition: ConstantsForHardwareSystems.h:123
sistrip::UNKNOWN_FED_READOUT_MODE
Definition: ConstantsForHardwareSystems.h:130
sistrip::FED_ADC_RANGE
static const uint16_t FED_ADC_RANGE
Definition: ConstantsForHardwareSystems.h:17
sistrip::MAX_FECS_PER_CRATE
static const uint16_t MAX_FECS_PER_CRATE
Definition: ConstantsForHardwareSystems.h:84
sistrip::CRATE_SLOT_MAX
static const uint16_t CRATE_SLOT_MAX
Definition: ConstantsForHardwareSystems.h:81
sistrip::CCU_ADDR_MIN
static const uint16_t CCU_ADDR_MIN
Definition: ConstantsForHardwareSystems.h:64
sistrip::LLD_CHAN_MAX
static const uint16_t LLD_CHAN_MAX
Definition: ConstantsForHardwareSystems.h:71
sistrip::fedZeroSupprCMO_
static const char fedZeroSupprCMO_[]
Definition: ConstantsForHardwareSystems.h:108
sistrip::FedReadoutPath
FedReadoutPath
Definition: ConstantsForHardwareSystems.h:147
sistrip::FAKE
Definition: ConstantsForHardwareSystems.h:165
sistrip::APV_PEAK_MODE
Definition: ConstantsForHardwareSystems.h:124
sistrip::SLINK_READOUT
Definition: ConstantsForHardwareSystems.h:151
sistrip::fedProcRaw_
static const char fedProcRaw_[]
Definition: ConstantsForHardwareSystems.h:106
sistrip::fedZeroSupprLite_
static const char fedZeroSupprLite_[]
Definition: ConstantsForHardwareSystems.h:109
sistrip::FULL_DEBUG_FORMAT
Definition: ConstantsForHardwareSystems.h:157
sistrip::FEC_RING_MIN
static const uint16_t FEC_RING_MIN
Definition: ConstantsForHardwareSystems.h:61
sistrip::FED_ZERO_SUPPR_LITE8_TB
Definition: ConstantsForHardwareSystems.h:140
sistrip::FEUNITS_PER_FED
static const uint16_t FEUNITS_PER_FED
Definition: ConstantsForHardwareSystems.h:29
sistrip::FED_ZERO_SUPPR_LITE8_TT
Definition: ConstantsForHardwareSystems.h:138
sistrip::CRATE_SLOT_MIN
static const uint16_t CRATE_SLOT_MIN
Definition: ConstantsForHardwareSystems.h:80
sistrip::CHANS_PER_LLD
static const uint16_t CHANS_PER_LLD
Definition: ConstantsForHardwareSystems.h:39
sistrip::UNKNOWN_FED_READOUT_PATH
Definition: ConstantsForHardwareSystems.h:148
FEDNumbering::MAXSiStripFEDID
Definition: FEDNumbering.h:30
sistrip::FED_SCOPE_MODE
Definition: ConstantsForHardwareSystems.h:132
sistrip::FULL_DEBUG_HDR_SIZE
static const uint16_t FULL_DEBUG_HDR_SIZE
Definition: ConstantsForHardwareSystems.h:54
sistrip::undefinedFedReadoutMode_
static const char undefinedFedReadoutMode_[]
Definition: ConstantsForHardwareSystems.h:102
sistrip::FED_ZERO_SUPPR_LITE
Definition: ConstantsForHardwareSystems.h:136
sistrip::UNDEFINED_FED_SUPER_MODE
Definition: ConstantsForHardwareSystems.h:163
sistrip::UNKNOWN_FED_BUFFER_FORMAT
Definition: ConstantsForHardwareSystems.h:155
sistrip::FED_ZERO_SUPPR_LITE8_BB_CMO
Definition: ConstantsForHardwareSystems.h:143
sistrip::FED_ZERO_SUPPR
Definition: ConstantsForHardwareSystems.h:135
sistrip::STRIPS_PER_FEDCH
static const uint16_t STRIPS_PER_FEDCH
Definition: ConstantsForHardwareSystems.h:44
sistrip::fedZeroSupprLite8BBCMO_
static const char fedZeroSupprLite8BBCMO_[]
Definition: ConstantsForHardwareSystems.h:116
sistrip::UNKNOWN_APV_READOUT_MODE
Definition: ConstantsForHardwareSystems.h:122
sistrip::FED_ZERO_SUPPR_LITE8_TT_CMO
Definition: ConstantsForHardwareSystems.h:139
sistrip::MAX_FEDS_PER_CRATE
static const uint16_t MAX_FEDS_PER_CRATE
Definition: ConstantsForHardwareSystems.h:83
sistrip::APVS_PER_FED
static const uint16_t APVS_PER_FED
Definition: ConstantsForHardwareSystems.h:36
sistrip::fedZeroSupprLiteCMO_
static const char fedZeroSupprLiteCMO_[]
Definition: ConstantsForHardwareSystems.h:110
sistrip::FED_ZERO_SUPPR_LITE_CMO
Definition: ConstantsForHardwareSystems.h:137
sistrip::invalid_
static const uint16_t invalid_
Definition: Constants.h:16
sistrip::VME_READOUT
Definition: ConstantsForHardwareSystems.h:150
sistrip::fedVirginRaw_
static const char fedVirginRaw_[]
Definition: ConstantsForHardwareSystems.h:105
sistrip::unknown_
static const uint16_t unknown_
Definition: Constants.h:19
sistrip::FED_ZERO_SUPPR_LITE8_BB
Definition: ConstantsForHardwareSystems.h:142
sistrip::FED_ID_MAX
static const uint16_t FED_ID_MAX
Definition: ConstantsForHardwareSystems.h:22
sistrip::FED_VIRGIN_RAW
Definition: ConstantsForHardwareSystems.h:133
sistrip::ApvReadoutMode
ApvReadoutMode
Definition: ConstantsForHardwareSystems.h:121
sistrip::unknownFedReadoutMode_
static const char unknownFedReadoutMode_[]
Definition: ConstantsForHardwareSystems.h:101
sistrip::FedBufferFormat
FedBufferFormat
Definition: ConstantsForHardwareSystems.h:154
sistrip::APV_ERROR_HDR_SIZE
static const uint16_t APV_ERROR_HDR_SIZE
Definition: ConstantsForHardwareSystems.h:53
sistrip::fedZeroSupprLite8TB_
static const char fedZeroSupprLite8TB_[]
Definition: ConstantsForHardwareSystems.h:113
sistrip::FE_HDR_SIZE
static const uint16_t FE_HDR_SIZE
Definition: ConstantsForHardwareSystems.h:52
sistrip::fedScopeMode_
static const char fedScopeMode_[]
Definition: ConstantsForHardwareSystems.h:104
sistrip::APV_I2C_MAX
static const uint16_t APV_I2C_MAX
Definition: ConstantsForHardwareSystems.h:74
sistrip::APVS_PER_FEDCH
static const uint16_t APVS_PER_FEDCH
Definition: ConstantsForHardwareSystems.h:34
sistrip::STRIPS_PER_APV
static const uint16_t STRIPS_PER_APV
Definition: ConstantsForHardwareSystems.h:43
sistrip::UNDEFINED_FED_READOUT_MODE
Definition: ConstantsForHardwareSystems.h:131
sistrip::DAQ_HDR_SIZE
static const uint16_t DAQ_HDR_SIZE
Definition: ConstantsForHardwareSystems.h:50
sistrip::FEDCH_PER_FED
static const uint16_t FEDCH_PER_FED
Definition: ConstantsForHardwareSystems.h:30
sistrip::STRIPS_PER_FEUNIT
static const uint16_t STRIPS_PER_FEUNIT
Definition: ConstantsForHardwareSystems.h:45
sistrip::undefinedApvReadoutMode_
static const char undefinedApvReadoutMode_[]
Definition: ConstantsForHardwareSystems.h:95
sistrip::apvPeakMode_
static const char apvPeakMode_[]
Definition: ConstantsForHardwareSystems.h:97
sistrip::FEDCH_PER_FEUNIT
static const uint16_t FEDCH_PER_FEUNIT
Definition: ConstantsForHardwareSystems.h:28
sistrip::APVS_PER_FEUNIT
static const uint16_t APVS_PER_FEUNIT
Definition: ConstantsForHardwareSystems.h:35
sistrip::APV_DECON_MODE
Definition: ConstantsForHardwareSystems.h:125
sistrip::FedReadoutMode
FedReadoutMode
Definition: ConstantsForHardwareSystems.h:129
sistrip::NUMBER_OF_FEDS
static const uint16_t NUMBER_OF_FEDS
Definition: ConstantsForHardwareSystems.h:24
sistrip
sistrip classes
Definition: SiStripQualityHelpers.h:14
sistrip::apvDeconMode_
static const char apvDeconMode_[]
Definition: ConstantsForHardwareSystems.h:98
sistrip::FED_PROC_RAW
Definition: ConstantsForHardwareSystems.h:134
sistrip::fedPreMixRaw_
static const char fedPreMixRaw_[]
Definition: ConstantsForHardwareSystems.h:117
sistrip::APVS_PER_CHAN
static const uint16_t APVS_PER_CHAN
Definition: ConstantsForHardwareSystems.h:38
sistrip::fedZeroSupprLite8TTCMO_
static const char fedZeroSupprLite8TTCMO_[]
Definition: ConstantsForHardwareSystems.h:112
FEDNumbering::MAXFEDID
Definition: FEDNumbering.h:26
sistrip::UNKNOWN_FED_SUPER_MODE
Definition: ConstantsForHardwareSystems.h:162
sistrip::fedZeroSupprLite8TT_
static const char fedZeroSupprLite8TT_[]
Definition: ConstantsForHardwareSystems.h:111
sistrip::TRK_HDR_SIZE
static const uint16_t TRK_HDR_SIZE
Definition: ConstantsForHardwareSystems.h:51
FEDNumbering::MINSiStripFEDID
Definition: FEDNumbering.h:29
sistrip::CCU_CHAN_MAX
static const uint16_t CCU_CHAN_MAX
Definition: ConstantsForHardwareSystems.h:68
sistrip::unknownApvReadoutMode_
static const char unknownApvReadoutMode_[]
Definition: ConstantsForHardwareSystems.h:94
sistrip::UNDEFINED_FED_READOUT_PATH
Definition: ConstantsForHardwareSystems.h:149