6 #ifndef SOURCECARDROUTING_H 7 #define SOURCECARDROUTING_H 32 unsigned short sfp[2][4];
43 unsigned short (&MIPbits)[7][2],
unsigned short (&Qbits)[7][2],
44 unsigned short (&SFP)[2][4])
const;
54 unsigned short (&MIPbits)[7][2],
unsigned short (&Qbits)[7][2],
55 unsigned short (&SFP)[2][4])
const;
61 void RC56HFtoSFP(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
62 unsigned short (&RCtau)[7][2],
unsigned short (&
HF)[4][2],
63 unsigned short (&HFQ)[4][2],
64 unsigned short (&SFP)[2][4])
const;
69 void SFPtoRC56HF(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
70 unsigned short (&RCtau)[7][2],
unsigned short (&
HF)[4][2],
71 unsigned short (&HFQ)[4][2],
72 unsigned short (&SFP)[2][4])
const;
76 void RC012toSFP(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
77 unsigned short (&RCtau)[7][2],
78 unsigned short (&SFP)[2][4])
const;
82 void SFPtoRC012(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
83 unsigned short (&RCtau)[7][2],
84 unsigned short (&SFP)[2][4])
const;
88 void RC234toSFP(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
89 unsigned short (&RCtau)[7][2],
90 unsigned short (&sisterRC)[7][2],
91 unsigned short (&sisterRCof)[7][2],
92 unsigned short (&sisterRCtau)[7][2],
93 unsigned short (&SFP)[2][4])
const;
97 void SFPtoRC234(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
98 unsigned short (&RCtau)[7][2],
99 unsigned short (&sisterRC)[7][2],
100 unsigned short (&sisterRCof)[7][2],
101 unsigned short (&sisterRCtau)[7][2],
102 unsigned short (&SFP)[2][4])
const;
109 void SFPtoVHDCI(
int RoutingMode,
unsigned short (&SFP)[2][4],
110 unsigned long (&VHDCI)[2][2])
const;
114 void VHDCItoSFP(
int RoutingMode,
unsigned short (&SFP)[2][4],
115 unsigned long (&VHDCI)[2][2])
const;
127 unsigned short (&MIPbits)[7][2],
unsigned short (&Qbits)[7][2],
128 unsigned long (&VHDCI)[2][2])
const;
137 unsigned short (&MIPbits)[7][2],
unsigned short (&Qbits)[7][2],
138 unsigned long (&VHDCI)[2][2])
const;
145 void RC56HFtoVHDCI(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
146 unsigned short (&RCtau)[7][2],
unsigned short (&
HF)[4][2],
147 unsigned short (&HFQ)[4][2],
148 unsigned long (&VHDCI)[2][2])
const;
153 void VHDCItoRC56HF(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
154 unsigned short (&RCtau)[7][2],
unsigned short (&
HF)[4][2],
155 unsigned short (&HFQ)[4][2],
156 unsigned long (&VHDCI)[2][2])
const;
160 void RC012toVHDCI(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
161 unsigned short (&RCtau)[7][2],
162 unsigned long (&VHDCI)[2][2])
const;
166 void VHDCItoRC012(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
167 unsigned short (&RCtau)[7][2],
168 unsigned long (&VHDCI)[2][2])
const;
172 void RC234toVHDCI(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
173 unsigned short (&RCtau)[7][2],
174 unsigned short (&sisterRC)[7][2],
175 unsigned short (&sisterRCof)[7][2],
176 unsigned short (&sisterRCtau)[7][2],
177 unsigned long (&VHDCI)[2][2])
const;
181 void VHDCItoRC234(
unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
182 unsigned short (&RCtau)[7][2],
183 unsigned short (&sisterRC)[7][2],
184 unsigned short (&sisterRCof)[7][2],
185 unsigned short (&sisterRCtau)[7][2],
186 unsigned long (&VHDCI)[2][2])
const;
194 unsigned short &logicalCardID,
unsigned short &eventNumber,
198 unsigned short (&MIPbits)[7][2],
unsigned short (&Qbits)[7][2],
204 unsigned short &eventNumber,
unsigned short (&RC)[7][2],
205 unsigned short (&RCof)[7][2],
206 unsigned short (&RCtau)[7][2],
unsigned short (&
HF)[4][2],
207 unsigned short (&HFQ)[4][2],
211 void RC012toSTRING(
unsigned short &logicalCardID,
unsigned short &eventNumber,
212 unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
213 unsigned short (&RCtau)[7][2],
217 void RC234toSTRING(
unsigned short &logicalCardID,
unsigned short &eventNumber,
218 unsigned short (&RC)[7][2],
unsigned short (&RCof)[7][2],
219 unsigned short (&RCtau)[7][2],
220 unsigned short (&sisterRC)[7][2],
221 unsigned short (&sisterRCof)[7][2],
222 unsigned short (&sisterRCtau)[7][2],
228 void SFPtoSTRING(
unsigned short &logicalCardID,
unsigned short &eventNumber,
229 int RoutingMode,
unsigned short (&SFP)[2][4],
235 void STRINGtoVHDCI(
unsigned short &logicalCardID,
unsigned short &eventNumber,
237 unsigned long (&VHDCI)[2][2])
const;
240 void VHDCItoSTRING(
unsigned short &logicalCardID,
unsigned short &eventNumber,
242 unsigned long (&VHDCI)[2][2])
const;
247 int &RoutingMode,
int &RCTCrateNumber)
const;
250 int &RoutingMode,
int &RCTCrateNumber)
const;
254 #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
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