CMS 3D CMS Logo

RPCEMap Class Reference

#include <CondFormats/RPCObjects/interface/RPCEMap.h>

List of all members.

Public Member Functions

RPCReadOutMappingconvert () const
 RPCEMap (const std::string &version="")
virtual ~RPCEMap ()

Public Attributes

std::vector< dccItemtheDccs
std::vector< febItemtheFebs
std::vector< lbItemtheLBs
std::vector< linkItemtheLinks
std::vector< stripItemtheStrips
std::vector< tbItemtheTBs
std::string theVersion

Classes

struct  dccItem
struct  febItem
struct  lbItem
struct  linkItem
struct  stripItem
struct  tbItem


Detailed Description

Definition at line 11 of file RPCEMap.h.


Constructor & Destructor Documentation

RPCEMap::RPCEMap ( const std::string &  version = ""  )  [inline]

Definition at line 14 of file RPCEMap.h.

00015   : theVersion(version) { }

virtual RPCEMap::~RPCEMap (  )  [inline, virtual]

Definition at line 17 of file RPCEMap.h.

00017 {}


Member Function Documentation

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 };


Member Data Documentation

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

Definition at line 19 of file RPCEMap.h.

Referenced by LinkDataXMLWriter::analyze(), and convert().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:30:59 2009 for CMSSW by  doxygen 1.5.4