#include <SourceCardRouting.h>
Classes | |
struct | EmuToSfpData |
Struct of all data needed for running the emulator to SFP (sourcecard optical output) conversion. More... | |
Public Member Functions | |
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 | 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 | 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 | LogicalCardIDtoRoutingMode (unsigned short &logicalCardID, int &RoutingMode, int &RCTCrateNumber) const |
void | RC012toSFP (unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][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 | RC012toVHDCI (unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned long(&VHDCI)[2][2]) 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 | 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 | 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 | 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 |
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 |
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 |
void | RoutingModetoLogicalCardID (unsigned short &logicalCardID, int &RoutingMode, int &RCTCrateNumber) 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 | SFPtoRC012 (unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned short(&SFP)[2][4]) 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 | 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 | SFPtoSTRING (unsigned short &logicalCardID, unsigned short &eventNumber, int RoutingMode, unsigned short(&SFP)[2][4], std::string &dataString) const |
void | SFPtoVHDCI (int RoutingMode, unsigned short(&SFP)[2][4], unsigned long(&VHDCI)[2][2]) const |
SourceCardRouting () | |
void | STRINGtoVHDCI (unsigned short &logicalCardID, unsigned short &eventNumber, std::string &dataString, unsigned long(&VHDCI)[2][2]) const |
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 | VHDCItoRC012 (unsigned short(&RC)[7][2], unsigned short(&RCof)[7][2], unsigned short(&RCtau)[7][2], unsigned long(&VHDCI)[2][2]) const |
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 |
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 | VHDCItoSFP (int RoutingMode, unsigned short(&SFP)[2][4], unsigned long(&VHDCI)[2][2]) const |
void | VHDCItoSTRING (unsigned short &logicalCardID, unsigned short &eventNumber, std::string &dataString, unsigned long(&VHDCI)[2][2]) const |
~SourceCardRouting () | |
Definition at line 13 of file SourceCardRouting.h.
SourceCardRouting::SourceCardRouting | ( | ) |
Definition at line 17 of file SourceCardRouting.cc.
SourceCardRouting::~SourceCardRouting | ( | ) |
Definition at line 21 of file SourceCardRouting.cc.
void SourceCardRouting::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 |
Definition at line 30 of file SourceCardRouting.cc.
Referenced by GctFormatTranslateMCLegacy::writeRctEmCandBlocks().
void SourceCardRouting::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 |
Definition at line 612 of file SourceCardRouting.cc.
Referenced by RctDigiToSourceCardText::analyze().
void SourceCardRouting::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 |
Definition at line 465 of file SourceCardRouting.cc.
void SourceCardRouting::LogicalCardIDtoRoutingMode | ( | unsigned short & | logicalCardID, |
int & | RoutingMode, | ||
int & | RCTCrateNumber | ||
) | const |
Definition at line 754 of file SourceCardRouting.cc.
Referenced by SourceCardTextToRctDigi::produce().
void SourceCardRouting::RC012toSFP | ( | unsigned short(&) | RC[7][2], |
unsigned short(&) | RCof[7][2], | ||
unsigned short(&) | RCtau[7][2], | ||
unsigned short(&) | SFP[2][4] | ||
) | const |
Definition at line 190 of file SourceCardRouting.cc.
void SourceCardRouting::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 |
Definition at line 654 of file SourceCardRouting.cc.
Referenced by RctDigiToSourceCardText::analyze().
void SourceCardRouting::RC012toVHDCI | ( | unsigned short(&) | RC[7][2], |
unsigned short(&) | RCof[7][2], | ||
unsigned short(&) | RCtau[7][2], | ||
unsigned long(&) | VHDCI[2][2] | ||
) | const |
Definition at line 546 of file SourceCardRouting.cc.
void SourceCardRouting::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 |
Definition at line 242 of file SourceCardRouting.cc.
void SourceCardRouting::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 |
Definition at line 671 of file SourceCardRouting.cc.
Referenced by RctDigiToSourceCardText::analyze().
void SourceCardRouting::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 |
Definition at line 575 of file SourceCardRouting.cc.
void SourceCardRouting::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 |
Definition at line 118 of file SourceCardRouting.cc.
References HF.
void SourceCardRouting::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 |
Definition at line 635 of file SourceCardRouting.cc.
References HF.
Referenced by RctDigiToSourceCardText::analyze().
void SourceCardRouting::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 |
Definition at line 511 of file SourceCardRouting.cc.
References HF.
void SourceCardRouting::RoutingModetoLogicalCardID | ( | unsigned short & | logicalCardID, |
int & | RoutingMode, | ||
int & | RCTCrateNumber | ||
) | const |
Definition at line 766 of file SourceCardRouting.cc.
Referenced by RctDigiToSourceCardText::analyze().
void SourceCardRouting::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 |
Definition at line 63 of file SourceCardRouting.cc.
Referenced by GctFormatTranslateV35::blockToRctEmCand(), GctFormatTranslateV38::blockToRctEmCand(), and GctFormatTranslateMCLegacy::blockToRctEmCand().
void SourceCardRouting::SFPtoRC012 | ( | unsigned short(&) | RC[7][2], |
unsigned short(&) | RCof[7][2], | ||
unsigned short(&) | RCtau[7][2], | ||
unsigned short(&) | SFP[2][4] | ||
) | const |
Definition at line 213 of file SourceCardRouting.cc.
void SourceCardRouting::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 |
Definition at line 268 of file SourceCardRouting.cc.
void SourceCardRouting::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 SourceCardRouting::SFPtoSTRING | ( | unsigned short & | logicalCardID, |
unsigned short & | eventNumber, | ||
int | RoutingMode, | ||
unsigned short(&) | SFP[2][4], | ||
std::string & | dataString | ||
) | const |
Definition at line 691 of file SourceCardRouting.cc.
void SourceCardRouting::SFPtoVHDCI | ( | int | RoutingMode, |
unsigned short(&) | SFP[2][4], | ||
unsigned long(&) | VHDCI[2][2] | ||
) | const |
Definition at line 326 of file SourceCardRouting.cc.
void SourceCardRouting::STRINGtoVHDCI | ( | unsigned short & | logicalCardID, |
unsigned short & | eventNumber, | ||
std::string & | dataString, | ||
unsigned long(&) | VHDCI[2][2] | ||
) | const |
Definition at line 707 of file SourceCardRouting.cc.
References groupFilesInBlocks::temp.
Referenced by SourceCardTextToRctDigi::produce().
void SourceCardRouting::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 |
Definition at line 486 of file SourceCardRouting.cc.
Referenced by SourceCardTextToRctDigi::produce().
void SourceCardRouting::VHDCItoRC012 | ( | unsigned short(&) | RC[7][2], |
unsigned short(&) | RCof[7][2], | ||
unsigned short(&) | RCtau[7][2], | ||
unsigned long(&) | VHDCI[2][2] | ||
) | const |
Definition at line 560 of file SourceCardRouting.cc.
Referenced by SourceCardTextToRctDigi::produce().
void SourceCardRouting::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 |
Definition at line 593 of file SourceCardRouting.cc.
Referenced by SourceCardTextToRctDigi::produce().
void SourceCardRouting::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 |
Definition at line 529 of file SourceCardRouting.cc.
References HF.
Referenced by SourceCardTextToRctDigi::produce().
void SourceCardRouting::VHDCItoSFP | ( | int | RoutingMode, |
unsigned short(&) | SFP[2][4], | ||
unsigned long(&) | VHDCI[2][2] | ||
) | const |
Definition at line 385 of file SourceCardRouting.cc.
void SourceCardRouting::VHDCItoSTRING | ( | unsigned short & | logicalCardID, |
unsigned short & | eventNumber, | ||
std::string & | dataString, | ||
unsigned long(&) | VHDCI[2][2] | ||
) | const |