#include <CondFormats/RPCObjects/interface/RPCEMap.h>
Public Member Functions | |
RPCReadOutMapping * | convert () const |
RPCEMap (const std::string &version="") | |
virtual | ~RPCEMap () |
Public Attributes | |
std::vector< dccItem > | theDccs |
std::vector< febItem > | theFebs |
std::vector< lbItem > | theLBs |
std::vector< linkItem > | theLinks |
std::vector< stripItem > | theStrips |
std::vector< tbItem > | theTBs |
std::string | theVersion |
Classes | |
struct | dccItem |
struct | febItem |
struct | lbItem |
struct | linkItem |
struct | stripItem |
struct | tbItem |
Definition at line 11 of file RPCEMap.h.
RPCEMap::RPCEMap | ( | const std::string & | version = "" |
) | [inline] |
RPCReadOutMapping* RPCEMap::convert | ( | ) | const [inline] |
Definition at line 69 of file RPCEMap.h.
References TriggerBoardSpec::add(), LinkBoardSpec::add(), LinkConnSpec::add(), FebConnectorSpec::add(), DccSpec::add(), RPCReadOutMapping::add(), strip(), theDccs, theFebs, theLBs, theLinks, theStrips, theTBs, and theVersion.
Referenced by LinkDataXMLWriter::analyze(), popcon::RPCEMapSourceHandler::Compare2EMaps(), RPCVHDLConeMaker::initRPCLinks(), and RPCVHDLConeMaker::writeConesDef().
00069 { 00070 RPCReadOutMapping* cabling = new RPCReadOutMapping(theVersion); 00071 int lastTB=0; 00072 int lastLink=0; 00073 int lastLB=0; 00074 int lastFeb=0; 00075 int lastStrip=0; 00076 for (unsigned int idcc=0; idcc<theDccs.size(); idcc++) { 00077 DccSpec dcc(theDccs[idcc].theId); 00078 for (int itb=lastTB; itb<lastTB+theDccs[idcc].nTBs; itb++) { 00079 TriggerBoardSpec tb(theTBs[itb].theNum); 00080 for (int ilink=lastLink; ilink<lastLink+theTBs[itb].nLinks; ilink++) { 00081 LinkConnSpec lc(theLinks[ilink].theTriggerBoardInputNumber); 00082 for (int ilb=lastLB; ilb<lastLB+theLinks[ilink].nLBs; ilb++) { 00083 LinkBoardSpec lb(theLBs[ilb].theMaster,theLBs[ilb].theLinkBoardNumInLink); 00084 for (int ifeb=lastFeb; ifeb<lastFeb+theLBs[ilb].nFebs; ifeb++) { 00085 ChamberLocationSpec chamber={theFebs[ifeb].diskOrWheel,theFebs[ifeb].layer,theFebs[ifeb].sector,theFebs[ifeb].subsector,theFebs[ifeb].chamberLocationName,theFebs[ifeb].febZOrnt,theFebs[ifeb].febZRadOrnt, theFebs[ifeb].barrelOrEndcap}; 00086 FebLocationSpec afeb={theFebs[ifeb].cmsEtaPartition,theFebs[ifeb].positionInCmsEtaPartition,theFebs[ifeb].localEtaPartition,theFebs[ifeb].positionInLocalEtaPartition}; 00087 FebConnectorSpec febConnector(theFebs[ifeb].theLinkBoardInputNum,chamber,afeb); 00088 for (int istrip=lastStrip; istrip<lastStrip+theFebs[ifeb].nStrips; istrip++) { 00089 ChamberStripSpec strip={theStrips[istrip].cablePinNumber,theStrips[istrip].chamberStripNumber,theStrips[istrip].cmsStripNumber}; 00090 febConnector.add(strip); 00091 } 00092 lb.add(febConnector); 00093 lastStrip+=theFebs[ifeb].nStrips; 00094 } 00095 lc.add(lb); 00096 lastFeb+=theLBs[ilb].nFebs; 00097 } 00098 tb.add(lc); 00099 lastLB+=theLinks[ilink].nLBs; 00100 } 00101 dcc.add(tb); 00102 lastLink+=theTBs[itb].nLinks; 00103 } 00104 cabling->add(dcc); 00105 lastTB+=theDccs[idcc].nTBs; 00106 } 00107 return cabling; 00108 };
std::vector<dccItem> RPCEMap::theDccs |
Definition at line 62 of file RPCEMap.h.
Referenced by convert(), popcon::RPCEMapSourceHandler::readEMap0(), and popcon::RPCEMapSourceHandler::readEMap1().
std::vector<febItem> RPCEMap::theFebs |
Definition at line 66 of file RPCEMap.h.
Referenced by convert(), popcon::RPCEMapSourceHandler::readEMap0(), and popcon::RPCEMapSourceHandler::readEMap1().
std::vector<lbItem> RPCEMap::theLBs |
Definition at line 65 of file RPCEMap.h.
Referenced by convert(), popcon::RPCEMapSourceHandler::readEMap0(), and popcon::RPCEMapSourceHandler::readEMap1().
std::vector<linkItem> RPCEMap::theLinks |
Definition at line 64 of file RPCEMap.h.
Referenced by convert(), popcon::RPCEMapSourceHandler::readEMap0(), and popcon::RPCEMapSourceHandler::readEMap1().
std::vector<stripItem> RPCEMap::theStrips |
Definition at line 67 of file RPCEMap.h.
Referenced by convert(), popcon::RPCEMapSourceHandler::readEMap0(), and popcon::RPCEMapSourceHandler::readEMap1().
std::vector<tbItem> RPCEMap::theTBs |
Definition at line 63 of file RPCEMap.h.
Referenced by convert(), popcon::RPCEMapSourceHandler::readEMap0(), and popcon::RPCEMapSourceHandler::readEMap1().
std::string RPCEMap::theVersion |