6 #ifndef SOURCECARDROUTING_H
7 #define SOURCECARDROUTING_H
33 unsigned short sfp[2][4];
39 void EMUtoSFP(
unsigned short (&eIsoRank)[4],
40 unsigned short (&eIsoCardId)[4],
41 unsigned short (&eIsoRegionId)[4],
42 unsigned short (&eNonIsoRank)[4],
43 unsigned short (&eNonIsoCardId)[4],
44 unsigned short (&eNonIsoRegionId)[4],
45 unsigned short (&MIPbits)[7][2],
46 unsigned short (&Qbits)[7][2],
47 unsigned short (&SFP)[2][4] )
const;
52 void SFPtoEMU(
unsigned short (&eIsoRank)[4],
53 unsigned short (&eIsoCardId)[4],
54 unsigned short (&eIsoRegionId)[4],
55 unsigned short (&eNonIsoRank)[4],
56 unsigned short (&eNonIsoCardId)[4],
57 unsigned short (&eNonIsoRegionId)[4],
58 unsigned short (&MIPbits)[7][2],
59 unsigned short (&Qbits)[7][2],
60 unsigned short (&SFP)[2][4] )
const;
67 unsigned short (&RCof)[7][2],
68 unsigned short (&RCtau)[7][2],
69 unsigned short (&HF)[4][2],
70 unsigned short (&HFQ)[4][2],
71 unsigned short (&SFP)[2][4] )
const;
77 unsigned short (&RCof)[7][2],
78 unsigned short (&RCtau)[7][2],
79 unsigned short (&HF)[4][2],
80 unsigned short (&HFQ)[4][2],
81 unsigned short (&SFP)[2][4] )
const;
86 unsigned short (&RCof)[7][2],
87 unsigned short (&RCtau)[7][2],
88 unsigned short (&SFP)[2][4] )
const;
93 unsigned short (&RCof)[7][2],
94 unsigned short (&RCtau)[7][2],
95 unsigned short (&SFP)[2][4] )
const;
100 unsigned short (&RCof)[7][2],
101 unsigned short (&RCtau)[7][2],
102 unsigned short (&sisterRC)[7][2],
103 unsigned short (&sisterRCof)[7][2],
104 unsigned short (&sisterRCtau)[7][2],
105 unsigned short (&SFP)[2][4] )
const;
110 unsigned short (&RCof)[7][2],
111 unsigned short (&RCtau)[7][2],
112 unsigned short (&sisterRC)[7][2],
113 unsigned short (&sisterRCof)[7][2],
114 unsigned short (&sisterRCtau)[7][2],
115 unsigned short (&SFP)[2][4] )
const;
123 unsigned short (&SFP)[2][4],
124 unsigned long (&VHDCI)[2][2] )
const;
130 unsigned short (&SFP)[2][4],
131 unsigned long (&VHDCI)[2][2] )
const;
139 void EMUtoVHDCI(
unsigned short (&eIsoRank)[4],
140 unsigned short (&eIsoCardId)[4],
141 unsigned short (&eIsoRegionId)[4],
142 unsigned short (&eNonIsoRank)[4],
143 unsigned short (&eNonIsoCardId)[4],
144 unsigned short (&eNonIsoRegionId)[4],
145 unsigned short (&MIPbits)[7][2],
146 unsigned short (&Qbits)[7][2],
147 unsigned long (&VHDCI)[2][2] )
const;
153 void VHDCItoEMU(
unsigned short (&eIsoRank)[4],
154 unsigned short (&eIsoCardId)[4],
155 unsigned short (&eIsoRegionId)[4],
156 unsigned short (&eNonIsoRank)[4],
157 unsigned short (&eNonIsoCardId)[4],
158 unsigned short (&eNonIsoRegionId)[4],
159 unsigned short (&MIPbits)[7][2],
160 unsigned short (&Qbits)[7][2],
161 unsigned long (&VHDCI)[2][2] )
const;
171 unsigned short (&RCof)[7][2],
172 unsigned short (&RCtau)[7][2],
173 unsigned short (&HF)[4][2],
174 unsigned short (&HFQ)[4][2],
175 unsigned long (&VHDCI)[2][2] )
const;
181 unsigned short (&RCof)[7][2],
182 unsigned short (&RCtau)[7][2],
183 unsigned short (&HF)[4][2],
184 unsigned short (&HFQ)[4][2],
185 unsigned long (&VHDCI)[2][2] )
const;
190 unsigned short (&RCof)[7][2],
191 unsigned short (&RCtau)[7][2],
192 unsigned long (&VHDCI)[2][2])
const;
197 unsigned short (&RCof)[7][2],
198 unsigned short (&RCtau)[7][2],
199 unsigned long (&VHDCI)[2][2] )
const;
204 unsigned short (&RCof)[7][2],
205 unsigned short (&RCtau)[7][2],
206 unsigned short (&sisterRC)[7][2],
207 unsigned short (&sisterRCof)[7][2],
208 unsigned short (&sisterRCtau)[7][2],
209 unsigned long (&VHDCI)[2][2] )
const;
214 unsigned short (&RCof)[7][2],
215 unsigned short (&RCtau)[7][2],
216 unsigned short (&sisterRC)[7][2],
217 unsigned short (&sisterRCof)[7][2],
218 unsigned short (&sisterRCtau)[7][2],
219 unsigned long (&VHDCI)[2][2] )
const;
227 unsigned short &eventNumber,
228 unsigned short (&eIsoRank)[4],
229 unsigned short (&eIsoCardId)[4],
230 unsigned short (&eIsoRegionId)[4],
231 unsigned short (&eNonIsoRank)[4],
232 unsigned short (&eNonIsoCardId)[4],
233 unsigned short (&eNonIsoRegionId)[4],
234 unsigned short (&MIPbits)[7][2],
235 unsigned short (&Qbits)[7][2],
236 std::string &dataString )
const;
241 unsigned short &eventNumber,
242 unsigned short (&RC)[7][2],
243 unsigned short (&RCof)[7][2],
244 unsigned short (&RCtau)[7][2],
245 unsigned short (&HF)[4][2],
246 unsigned short (&HFQ)[4][2],
247 std::string &dataString )
const;
251 unsigned short &eventNumber,
252 unsigned short (&RC)[7][2],
253 unsigned short (&RCof)[7][2],
254 unsigned short (&RCtau)[7][2],
255 std::string &dataString )
const;
259 unsigned short &eventNumber,
260 unsigned short (&RC)[7][2],
261 unsigned short (&RCof)[7][2],
262 unsigned short (&RCtau)[7][2],
263 unsigned short (&sisterRC)[7][2],
264 unsigned short (&sisterRCof)[7][2],
265 unsigned short (&sisterRCtau)[7][2],
266 std::string &dataString )
const;
272 unsigned short &eventNumber,
274 unsigned short (&SFP)[2][4],
275 std::string &dataString )
const;
281 unsigned short &eventNumber,
282 std::string &dataString,
283 unsigned long (&VHDCI)[2][2] )
const;
288 unsigned short &eventNumber,
289 std::string &dataString,
290 unsigned long (&VHDCI)[2][2] )
const;
296 int &RCTCrateNumber )
const;
300 int &RCTCrateNumber )
const;
306 #endif //~SOURCECARDMANAGER_H
unsigned short eIsoCardId[4]
void SFPtoRC56HF(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&HF)[4][2], unsigned short(&HFQ)[4][2], unsigned short(&SFP)[2][4]) const
void RC012toSTRING(unsigned short &logicalCardID, unsigned short &eventNumber, unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], std::string &dataString) const
void SFPtoRC012(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&SFP)[2][4]) const
unsigned short eIsoRank[4]
void VHDCItoEMU(unsigned short(&eIsoRank)[4], unsigned short(&eIsoCardId)[4], unsigned short(&eIsoRegionId)[4], unsigned short(&eNonIsoRank)[4], unsigned short(&eNonIsoCardId)[4], unsigned short(&eNonIsoRegionId)[4], unsigned short(&MIPbits)[7][2], unsigned short(&Qbits)[7][2], unsigned long(&VHDCI)[2][2]) const
void SFPtoSTRING(unsigned short &logicalCardID, unsigned short &eventNumber, int RoutingMode, unsigned short(&SFP)[2][4], std::string &dataString) const
void SFPtoEMU(unsigned short(&eIsoRank)[4], unsigned short(&eIsoCardId)[4], unsigned short(&eIsoRegionId)[4], unsigned short(&eNonIsoRank)[4], unsigned short(&eNonIsoCardId)[4], unsigned short(&eNonIsoRegionId)[4], unsigned short(&MIPbits)[7][2], unsigned short(&Qbits)[7][2], unsigned short(&SFP)[2][4]) const
void VHDCItoRC012(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned long(&VHDCI)[2][2]) const
Struct of all data needed for running the emulator to SFP (sourcecard optical output) conversion...
void SFPtoRC234(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&sisterRC)[7][2], unsigned short(&sisterRCof)[7][2], unsigned short(&sisterRCtau)[7][2], unsigned short(&SFP)[2][4]) const
void RC234toSTRING(unsigned short &logicalCardID, unsigned short &eventNumber, unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&sisterRC)[7][2], unsigned short(&sisterRCof)[7][2], unsigned short(&sisterRCtau)[7][2], std::string &dataString) const
void RoutingModetoLogicalCardID(unsigned short &logicalCardID, int &RoutingMode, int &RCTCrateNumber) const
void RC234toSFP(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&sisterRC)[7][2], unsigned short(&sisterRCof)[7][2], unsigned short(&sisterRCtau)[7][2], unsigned short(&SFP)[2][4]) const
void EMUtoSFP(unsigned short(&eIsoRank)[4], unsigned short(&eIsoCardId)[4], unsigned short(&eIsoRegionId)[4], unsigned short(&eNonIsoRank)[4], unsigned short(&eNonIsoCardId)[4], unsigned short(&eNonIsoRegionId)[4], unsigned short(&MIPbits)[7][2], unsigned short(&Qbits)[7][2], unsigned short(&SFP)[2][4]) const
void EMUtoVHDCI(unsigned short(&eIsoRank)[4], unsigned short(&eIsoCardId)[4], unsigned short(&eIsoRegionId)[4], unsigned short(&eNonIsoRank)[4], unsigned short(&eNonIsoCardId)[4], unsigned short(&eNonIsoRegionId)[4], unsigned short(&MIPbits)[7][2], unsigned short(&Qbits)[7][2], unsigned long(&VHDCI)[2][2]) const
void VHDCItoSTRING(unsigned short &logicalCardID, unsigned short &eventNumber, std::string &dataString, unsigned long(&VHDCI)[2][2]) const
void EMUtoSTRING(unsigned short &logicalCardID, unsigned short &eventNumber, unsigned short(&eIsoRank)[4], unsigned short(&eIsoCardId)[4], unsigned short(&eIsoRegionId)[4], unsigned short(&eNonIsoRank)[4], unsigned short(&eNonIsoCardId)[4], unsigned short(&eNonIsoRegionId)[4], unsigned short(&MIPbits)[7][2], unsigned short(&Qbits)[7][2], std::string &dataString) const
void VHDCItoRC56HF(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&HF)[4][2], unsigned short(&HFQ)[4][2], unsigned long(&VHDCI)[2][2]) const
void RC56HFtoVHDCI(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&HF)[4][2], unsigned short(&HFQ)[4][2], unsigned long(&VHDCI)[2][2]) const
unsigned short eNonIsoRank[4]
unsigned short eIsoRegionId[4]
void SFPtoVHDCI(int RoutingMode, unsigned short(&SFP)[2][4], unsigned long(&VHDCI)[2][2]) const
void RC56HFtoSTRING(unsigned short &logicalCardID, unsigned short &eventNumber, unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&HF)[4][2], unsigned short(&HFQ)[4][2], std::string &dataString) const
unsigned short eNonIsoCardId[4]
void VHDCItoRC234(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&sisterRC)[7][2], unsigned short(&sisterRCof)[7][2], unsigned short(&sisterRCtau)[7][2], unsigned long(&VHDCI)[2][2]) const
unsigned short qBits[7][2]
void VHDCItoSFP(int RoutingMode, unsigned short(&SFP)[2][4], unsigned long(&VHDCI)[2][2]) const
unsigned short mipBits[7][2]
void STRINGtoVHDCI(unsigned short &logicalCardID, unsigned short &eventNumber, std::string &dataString, unsigned long(&VHDCI)[2][2]) const
void RC012toSFP(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&SFP)[2][4]) const
unsigned short eNonIsoRegionId[4]
void RC012toVHDCI(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned long(&VHDCI)[2][2]) const
void RC234toVHDCI(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&sisterRC)[7][2], unsigned short(&sisterRCof)[7][2], unsigned short(&sisterRCtau)[7][2], unsigned long(&VHDCI)[2][2]) const
void LogicalCardIDtoRoutingMode(unsigned short &logicalCardID, int &RoutingMode, int &RCTCrateNumber) const
void RC56HFtoSFP(unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&HF)[4][2], unsigned short(&HFQ)[4][2], unsigned short(&SFP)[2][4]) const