CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConstantsForHardwareSystems.h
Go to the documentation of this file.
1 // Last commit: $Id: ConstantsForHardwareSystems.h,v 1.9 2010/01/27 13:21:07 bainbrid Exp $
2 
3 #ifndef DataFormats_SiStripCommon_ConstantsForHardwareSystems_H
4 #define DataFormats_SiStripCommon_ConstantsForHardwareSystems_H
5 
8 
14 namespace sistrip {
15 
16  // -------------------- FED misc --------------------
17 
18  static const uint16_t FED_ADC_RANGE = 0x400; // 1024
19 
20  // -------------------- FED ids --------------------
21 
22  static const uint16_t FED_ID_MIN = static_cast<uint16_t>( FEDNumbering::MINSiStripFEDID);
23  static const uint16_t FED_ID_MAX = static_cast<uint16_t>( FEDNumbering::MAXSiStripFEDID);
24  static const uint16_t CMS_FED_ID_MAX = static_cast<uint16_t>( FEDNumbering::MAXFEDID);
25  static const uint16_t NUMBER_OF_FEDS = static_cast<uint16_t>( FED_ID_MAX - FED_ID_MIN + 1 );
26 
27  // -------------------- FEDs to channels --------------------
28 
29  static const uint16_t FEDCH_PER_FEUNIT = 12;
30  static const uint16_t FEUNITS_PER_FED = 8;
31  static const uint16_t FEDCH_PER_FED = FEDCH_PER_FEUNIT * FEUNITS_PER_FED; // 96
32 
33  // -------------------- Front-end devices --------------------
34 
35  static const uint16_t APVS_PER_FEDCH = 2;
36  static const uint16_t APVS_PER_FEUNIT = APVS_PER_FEDCH * FEDCH_PER_FEUNIT; // 24
37  static const uint16_t APVS_PER_FED = APVS_PER_FEUNIT * FEUNITS_PER_FED; // 194
38 
39  static const uint16_t APVS_PER_CHAN = 2;
40  static const uint16_t CHANS_PER_LLD = 3;
41 
42  // -------------------- Detector strips --------------------
43 
44  static const uint16_t STRIPS_PER_APV = 128;
45  static const uint16_t STRIPS_PER_FEDCH = STRIPS_PER_APV * APVS_PER_FEDCH;
46  static const uint16_t STRIPS_PER_FEUNIT = STRIPS_PER_FEDCH * FEDCH_PER_FEUNIT; // 3072
47  static const uint16_t STRIPS_PER_FED = STRIPS_PER_FEUNIT * FEUNITS_PER_FED; // 24576
48 
49  // -------------------- FED buffers --------------------
50 
51  static const uint16_t DAQ_HDR_SIZE = 8;
52  static const uint16_t TRK_HDR_SIZE = 8;
53  static const uint16_t FE_HDR_SIZE = 16;
54  static const uint16_t APV_ERROR_HDR_SIZE = 24;
55  static const uint16_t FULL_DEBUG_HDR_SIZE = 8 * FE_HDR_SIZE;
56 
57  // -------------------- Control system --------------------
58 
59  //static const uint16_t FEC_CRATE_OFFSET = 1; //@@ temporary
60  //static const uint16_t FEC_RING_OFFSET = 1; //@@ temporary
61 
62  static const uint16_t FEC_RING_MIN = 1;
63  static const uint16_t FEC_RING_MAX = 8;
64 
65  static const uint16_t CCU_ADDR_MIN = 1;
66  static const uint16_t CCU_ADDR_MAX = 127;
67 
68  static const uint16_t CCU_CHAN_MIN = 16;
69  static const uint16_t CCU_CHAN_MAX = 31;
70 
71  static const uint16_t LLD_CHAN_MIN = 1;
72  static const uint16_t LLD_CHAN_MAX = 3;
73 
74  static const uint16_t APV_I2C_MIN = 32;
75  static const uint16_t APV_I2C_MAX = 37;
76 
77  // -------------------- VME crates --------------------
78 
79  static const uint16_t SLOTS_PER_CRATE = 20;
80 
81  static const uint16_t CRATE_SLOT_MIN = 2; // slot 1 is reserved for VME controller
82  static const uint16_t CRATE_SLOT_MAX = 21;
83 
84  static const uint16_t MAX_FEDS_PER_CRATE = 16;
85  static const uint16_t MAX_FECS_PER_CRATE = 20;
86 
87  static const uint16_t FED_CRATE_MIN = 1;
88  static const uint16_t FED_CRATE_MAX = 60;
89 
90  static const uint16_t FEC_CRATE_MIN = 1;
91  static const uint16_t FEC_CRATE_MAX = 4;
92 
93 
94  // -------------------- String constants --------------------
95 
96  static const char unknownApvReadoutMode_[] = "UnknownApvReadoutMode";
97  static const char undefinedApvReadoutMode_[] = "UndefinedApvReadoutMode";
98 
99  static const char apvPeakMode_[] = "ApvPeakMode";
100  static const char apvDeconMode_[] = "ApvDeconMode";
101  static const char apvMultiMode_[] = "ApvMultiMode";
102 
103  static const char unknownFedReadoutMode_[] = "UnknownFedReadoutMode";
104  static const char undefinedFedReadoutMode_[] = "UndefinedFedReadoutMode";
105 
106  static const char fedScopeMode_[] = "FedScopeMode";
107  static const char fedVirginRaw_[] = "FedVirginRaw";
108  static const char fedProcRaw_[] = "FedProcessedRaw";
109  static const char fedZeroSuppr_[] = "FedZeroSuppressed";
110  static const char fedZeroSupprLite_[] = "FedZeroSupprressedLite";
111 
112  // -------------------- Enumerators --------------------
113 
119  };
120 
128  };
129 
134  };
135 
140  };
141 
144  REAL = 0,
145  FAKE = 1
146  };
147 
148 }
149 
150 #endif // DataFormats_SiStripCommon_ConstantsForHardwareSystems_H
151 
152 
static const uint16_t APVS_PER_FEUNIT
static const uint16_t STRIPS_PER_FEUNIT
static const uint16_t APV_I2C_MIN
static const char apvDeconMode_[]
static const uint16_t NUMBER_OF_FEDS
static const uint16_t FED_ID_MIN
static const uint16_t FED_CRATE_MIN
static const uint16_t CCU_ADDR_MAX
static const uint16_t CCU_CHAN_MAX
static const uint16_t TRK_HDR_SIZE
static const uint16_t CCU_CHAN_MIN
static const uint16_t LLD_CHAN_MIN
static const uint16_t LLD_CHAN_MAX
static const uint16_t FED_CRATE_MAX
static const uint16_t CMS_FED_ID_MAX
static const uint16_t FEC_CRATE_MIN
static const uint16_t FED_ADC_RANGE
static const uint16_t CRATE_SLOT_MAX
static const char fedZeroSupprLite_[]
static const uint16_t FEC_RING_MAX
static const uint16_t FEC_CRATE_MAX
static const uint16_t STRIPS_PER_FED
static const uint16_t FULL_DEBUG_HDR_SIZE
static const uint16_t CCU_ADDR_MIN
static const uint16_t SLOTS_PER_CRATE
static const uint16_t MAX_FECS_PER_CRATE
static const uint16_t FEUNITS_PER_FED
static const uint16_t MAX_FEDS_PER_CRATE
static const char fedProcRaw_[]
static const uint16_t CHANS_PER_LLD
static const char fedVirginRaw_[]
static const char unknownFedReadoutMode_[]
static const char fedScopeMode_[]
static const uint16_t FEC_RING_MIN
static const char undefinedFedReadoutMode_[]
static const uint16_t CRATE_SLOT_MIN
static const uint16_t STRIPS_PER_FEDCH
static const uint16_t APVS_PER_FED
static const uint16_t FEDCH_PER_FEUNIT
static const char apvPeakMode_[]
static const uint16_t invalid_
Definition: Constants.h:17
static const uint16_t unknown_
Definition: Constants.h:20
static const uint16_t APVS_PER_CHAN
static const char undefinedApvReadoutMode_[]
static const uint16_t FE_HDR_SIZE
static const uint16_t APV_I2C_MAX
static const uint16_t FEDCH_PER_FED
static const uint16_t STRIPS_PER_APV
static const uint16_t FED_ID_MAX
static const uint16_t APV_ERROR_HDR_SIZE
static const uint16_t APVS_PER_FEDCH
static const uint16_t DAQ_HDR_SIZE
static const char unknownApvReadoutMode_[]
static const char fedZeroSuppr_[]
static const char apvMultiMode_[]