#include <DTReadOutMapping.h>
Public Types | |
typedef std::vector < DTReadOutGeometryLink > ::const_iterator | const_iterator |
Access methods to the connections. | |
Public Member Functions | |
const_iterator | begin () const |
void | cacheMap () const |
read and store full content | |
void | clear () |
clear map | |
DTReadOutMapping (const std::string &cell_map_version, const std::string &rob_map_version) | |
DTReadOutMapping () | |
const_iterator | end () const |
int | geometryToReadOut (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, int &dduId, int &rosId, int &robId, int &tdcId, int &channelId) const |
int | geometryToReadOut (const DTWireId &wireId, int &dduId, int &rosId, int &robId, int &tdcId, int &channelId) const |
int | insertReadOutGeometryLink (int dduId, int rosId, int robId, int tdcId, int channelId, int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) |
insert connection | |
const std::string & | mapCellTdc () const |
access parent maps identifiers | |
std::string & | mapCellTdc () |
std::string | mapNameGR () const |
std::string | mapNameRG () const |
const std::string & | mapRobRos () const |
std::string & | mapRobRos () |
int | readOutToGeometry (int dduId, int rosId, int robId, int tdcId, int channelId, DTWireId &wireId) const |
transform identifiers | |
int | readOutToGeometry (int dduId, int rosId, int robId, int tdcId, int channelId, int &wheelId, int &stationId, int §orId, int &slId, int &layerId, int &cellId) const |
~DTReadOutMapping () | |
Public Attributes | |
std::string | cellMapVersion |
DTBufferTree< int, int > * | grBuf |
DTBufferTree< int, std::vector < int > * > * | grDDU |
DTBufferTree< int, std::vector < int > * > * | grROB |
DTBufferTree< int, std::vector < int > * > * | grROS |
DTBufferTree< int, int > * | mType |
std::vector < DTReadOutGeometryLink > | readOutChannelDriftTubeMap |
DTBufferTree< int, int > * | rgBuf |
DTBufferTree< int, int > * | rgDDU |
DTBufferTree< int, int > * | rgROB |
DTBufferTree< int, int > * | rgROS |
std::string | robMapVersion |
Description: Class to map read-out channels to physical drift tubes
Definition at line 57 of file DTReadOutMapping.h.
typedef std::vector<DTReadOutGeometryLink>::const_iterator DTReadOutMapping::const_iterator |
Access methods to the connections.
Definition at line 136 of file DTReadOutMapping.h.
DTReadOutMapping::DTReadOutMapping | ( | ) |
Constructor
Definition at line 35 of file DTReadOutMapping.cc.
References grBuf, grDDU, grROB, grROS, mType, readOutChannelDriftTubeMap, rgBuf, rgDDU, rgROB, and rgROS.
: cellMapVersion( " " ), robMapVersion( " " ) { readOutChannelDriftTubeMap.reserve( 2000 ); mType = rgBuf = rgROB = rgROS = rgDDU = grBuf = 0; grROB = grROS = grDDU = 0; }
DTReadOutMapping::DTReadOutMapping | ( | const std::string & | cell_map_version, |
const std::string & | rob_map_version | ||
) |
Definition at line 44 of file DTReadOutMapping.cc.
References grBuf, grDDU, grROB, grROS, mType, readOutChannelDriftTubeMap, rgBuf, rgDDU, rgROB, and rgROS.
: cellMapVersion( cell_map_version ), robMapVersion( rob_map_version ) { readOutChannelDriftTubeMap.reserve( 2000 ); mType = rgBuf = rgROB = rgROS = rgDDU = grBuf = 0; grROB = grROS = grDDU = 0; }
DTReadOutMapping::~DTReadOutMapping | ( | ) |
Destructor
Definition at line 71 of file DTReadOutMapping.cc.
References DTBufferTree< Key, Content >::contList(), grBuf, grDDU, grROB, grROS, mType, rgBuf, rgDDU, rgROB, and rgROS.
{ delete mType; delete rgBuf; delete rgROB; delete rgROS; delete rgDDU; delete grBuf; if ( grROB != 0 ) { std::vector<std::vector<int>*> gr_list = grROB->contList(); std::vector<std::vector<int>*>::const_iterator gr_iter = gr_list.begin(); std::vector<std::vector<int>*>::const_iterator gr_iend = gr_list.end(); while ( gr_iter != gr_iend ) delete *gr_iter++; } if ( grROS != 0 ) { std::vector<std::vector<int>*> gr_list = grROS->contList(); std::vector<std::vector<int>*>::const_iterator gr_iter = gr_list.begin(); std::vector<std::vector<int>*>::const_iterator gr_iend = gr_list.end(); while ( gr_iter != gr_iend ) delete *gr_iter++; } if ( grDDU != 0 ) { std::vector<std::vector<int>*> gr_list = grDDU->contList(); std::vector<std::vector<int>*>::const_iterator gr_iter = gr_list.begin(); std::vector<std::vector<int>*>::const_iterator gr_iend = gr_list.end(); while ( gr_iter != gr_iend ) delete *gr_iter++; } delete grROB; delete grROS; delete grDDU; }
DTReadOutMapping::const_iterator DTReadOutMapping::begin | ( | void | ) | const |
Definition at line 489 of file DTReadOutMapping.cc.
References readOutChannelDriftTubeMap.
{ return readOutChannelDriftTubeMap.begin(); }
void DTReadOutMapping::cacheMap | ( | ) | const |
read and store full content
Definition at line 513 of file DTReadOutMapping.cc.
References DTReadOutGeometryLink::cellId, DTReadOutGeometryLink::channelId, DTReadOutGeometryLink::dduId, DTBufferTree< Key, Content >::find(), grBuf, grDDU, grROB, grROS, DTBufferTree< Key, Content >::insert(), combine::key, DTReadOutGeometryLink::layerId, link(), mType, readOutChannelDriftTubeMap, rgBuf, rgDDU, rgROB, rgROS, DTReadOutGeometryLink::robId, DTReadOutGeometryLink::rosId, DTReadOutGeometryLink::sectorId, DTBufferTree< Key, Content >::setDefault(), DTReadOutGeometryLink::stationId, and DTReadOutGeometryLink::wheelId.
Referenced by geometryToReadOut(), and readOutToGeometry().
{ DTBufferTree<int,int>** pmType; pmType = const_cast<DTBufferTree<int,int>**>( &mType ); *pmType = new DTBufferTree<int,int>; mType->insert( 0, 0 ); DTBufferTree<int,int>** prgBuf; prgBuf = const_cast<DTBufferTree<int,int>**>( &rgBuf ); *prgBuf = new DTBufferTree<int,int>; DTBufferTree<int,int>** pgrBuf; pgrBuf = const_cast<DTBufferTree<int,int>**>( &grBuf ); *pgrBuf = new DTBufferTree<int,int>; DTBufferTree<int,int>** prgROB; prgROB = const_cast<DTBufferTree<int,int>**>( &rgROB ); *prgROB = new DTBufferTree<int,int>; DTBufferTree<int,int>** prgROS; prgROS = const_cast<DTBufferTree<int,int>**>( &rgROS ); *prgROS = new DTBufferTree<int,int>; DTBufferTree<int,int>** prgDDU; prgDDU = const_cast<DTBufferTree<int,int>**>( &rgDDU ); *prgDDU = new DTBufferTree<int,int>; rgROB->setDefault( 0 ); rgROS->setDefault( 0 ); rgDDU->setDefault( 0 ); DTBufferTree<int,std::vector<int>*>** pgrROB; pgrROB = const_cast<DTBufferTree<int,std::vector<int>*>**>( &grROB ); *pgrROB = new DTBufferTree<int,std::vector<int>*>; DTBufferTree<int,std::vector<int>*>** pgrROS; pgrROS = const_cast<DTBufferTree<int,std::vector<int>*>**>( &grROS ); *pgrROS = new DTBufferTree<int,std::vector<int>*>; DTBufferTree<int,std::vector<int>*>** pgrDDU; pgrDDU = const_cast<DTBufferTree<int,std::vector<int>*>**>( &grDDU ); *pgrDDU = new DTBufferTree<int,std::vector<int>*>; grROB->setDefault( 0 ); grROS->setDefault( 0 ); grDDU->setDefault( 0 ); int entryNum = 0; int entryMax = readOutChannelDriftTubeMap.size(); std::vector<int> cellKey; cellKey.reserve(6); std::vector<int> chanKey; chanKey.reserve(5); int defaultValue = 0; int key; int val; int rosMapKey = 0; int robMapKey = 0; std::map<int,std::vector<int>*> dduEntries; for ( entryNum = 0; entryNum < entryMax; entryNum++ ) { const DTReadOutGeometryLink& link( readOutChannelDriftTubeMap[entryNum] ); key = link.dduId; val = link.stationId; if ( key > 0x3fffffff ) { if ( link. tdcId > 0x3fffffff ) { mType->insert( 0, defaultValue = link. tdcId ); rosMapKey = key; } else { mType->insert( 0, defaultValue = link.wheelId ); robMapKey = key; } } if ( defaultValue == 0 ) { chanKey.clear(); chanKey.push_back( link. dduId ); chanKey.push_back( link. rosId ); chanKey.push_back( link. robId ); chanKey.push_back( link. tdcId ); chanKey.push_back( link.channelId ); rgBuf->insert( chanKey.begin(), chanKey.end(), entryNum ); cellKey.clear(); cellKey.push_back( link. wheelId ); cellKey.push_back( link.stationId ); cellKey.push_back( link. sectorId ); cellKey.push_back( link. slId ); cellKey.push_back( link. layerId ); cellKey.push_back( link. cellId ); grBuf->insert( cellKey.begin(), cellKey.end(), entryNum ); } if ( key == robMapKey ) { chanKey.clear(); chanKey.push_back( link. rosId ); chanKey.push_back( link. tdcId ); chanKey.push_back( link.channelId ); rgROB->insert( chanKey.begin(), chanKey.end(), entryNum ); cellKey.clear(); cellKey.push_back( link. cellId ); cellKey.push_back( link.layerId ); cellKey.push_back( link. slId ); std::vector<int>* robMLgr; grROB->find( cellKey.begin(), cellKey.end(), robMLgr ); if ( robMLgr == 0 ) grROB->insert( cellKey.begin(), cellKey.end(), robMLgr = new std::vector<int> ); robMLgr->push_back( entryNum ); } if ( key == rosMapKey ) { chanKey.clear(); chanKey.push_back( link.rosId ); chanKey.push_back( link.robId ); rgROS->insert( chanKey.begin(), chanKey.end(), entryNum ); cellKey.clear(); cellKey.push_back( link. cellId ); cellKey.push_back( link.stationId ); std::vector<int>* rosMLgr; grROS->find( cellKey.begin(), cellKey.end(), rosMLgr ); if ( rosMLgr == 0 ) grROS->insert( cellKey.begin(), cellKey.end(), rosMLgr = new std::vector<int> ); rosMLgr->push_back( entryNum ); } if ( ( key < 0x3fffffff ) && ( val > 0x3fffffff ) ) { chanKey.clear(); chanKey.push_back( link.dduId ); chanKey.push_back( link.rosId ); rgDDU->insert( chanKey.begin(), chanKey.end(), entryNum ); int mapId = link.cellId; std::vector<int>* dduMLgr; std::map<int,std::vector<int>*>::const_iterator dduEntIter = dduEntries.find( mapId ); if ( dduEntIter == dduEntries.end() ) dduEntries.insert( std::pair<int,std::vector<int>*>( mapId, dduMLgr = new std::vector<int> ) ); else dduMLgr = dduEntIter->second; dduMLgr->push_back( entryNum ); } } if ( defaultValue != 0 ) { for ( entryNum = 0; entryNum < entryMax; entryNum++ ) { const DTReadOutGeometryLink& link( readOutChannelDriftTubeMap[entryNum] ); key = link.dduId; if ( key != rosMapKey ) continue; int mapId = link. rosId; int whchkId = link. wheelId; int secchkId = link.sectorId; std::vector<int>* dduMLgr; std::map<int,std::vector<int>*>::const_iterator dduEntIter = dduEntries.find( mapId ); if ( dduEntIter != dduEntries.end() ) dduMLgr = dduEntIter->second; else continue; std::vector<int>::const_iterator dduIter = dduMLgr->begin(); std::vector<int>::const_iterator dduIend = dduMLgr->end(); while( dduIter != dduIend ) { int ientry = *dduIter++; const DTReadOutGeometryLink& lros( readOutChannelDriftTubeMap[ientry] ); int wheelId = whchkId; int sectorId = secchkId; if ( wheelId == defaultValue ) wheelId = lros. wheelId; if ( sectorId == defaultValue ) sectorId = lros.sectorId; cellKey.clear(); cellKey.push_back( mapId ); cellKey.push_back( wheelId ); cellKey.push_back( sectorId ); std::vector<int>* dduMLgr = 0; grDDU->find( cellKey.begin(), cellKey.end(), dduMLgr ); if ( dduMLgr == 0 ) grDDU->insert( cellKey.begin(), cellKey.end(), dduMLgr = new std::vector<int> ); dduMLgr->push_back( ientry ); } } std::map<int,std::vector<int>*>::const_iterator dduEntIter = dduEntries.begin(); std::map<int,std::vector<int>*>::const_iterator dduEntIend = dduEntries.end(); while ( dduEntIter != dduEntIend ) { const std::pair<int,std::vector<int>*>& dduEntry = *dduEntIter++; delete dduEntry.second; } delete rgBuf; delete grBuf; *prgBuf = new DTBufferTree<int,int>; *pgrBuf = new DTBufferTree<int,int>; } return; }
void DTReadOutMapping::clear | ( | void | ) |
clear map
Definition at line 415 of file DTReadOutMapping.cc.
References grBuf, mType, readOutChannelDriftTubeMap, and rgBuf.
DTReadOutMapping::const_iterator DTReadOutMapping::end | ( | void | ) | const |
Definition at line 494 of file DTReadOutMapping.cc.
References readOutChannelDriftTubeMap.
{ return readOutChannelDriftTubeMap.end(); }
int DTReadOutMapping::geometryToReadOut | ( | const DTWireId & | wireId, |
int & | dduId, | ||
int & | rosId, | ||
int & | robId, | ||
int & | tdcId, | ||
int & | channelId | ||
) | const |
Definition at line 236 of file DTReadOutMapping.cc.
References geometryToReadOut(), DTLayerId::layer(), DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superLayer(), DTChamberId::wheel(), and DTWireId::wire().
{ return geometryToReadOut( wireId.wheel(), wireId.station(), wireId.sector(), wireId.superLayer(), wireId.layer(), wireId.wire(), dduId, rosId, robId, tdcId, channelId); }
int DTReadOutMapping::geometryToReadOut | ( | int | wheelId, |
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
int | layerId, | ||
int | cellId, | ||
int & | dduId, | ||
int & | rosId, | ||
int & | robId, | ||
int & | tdcId, | ||
int & | channelId | ||
) | const |
Definition at line 256 of file DTReadOutMapping.cc.
References cacheMap(), DTReadOutGeometryLink::channelId, DTReadOutGeometryLink::dduId, DTBufferTree< Key, Content >::find(), grBuf, grDDU, grROB, grROS, link(), mType, readOutChannelDriftTubeMap, DTReadOutGeometryLink::robId, DTReadOutGeometryLink::rosId, DTReadOutGeometryLink::sectorId, and DTReadOutGeometryLink::wheelId.
Referenced by geometryToReadOut().
{ dduId = rosId = robId = tdcId = channelId = 0; if ( ( mType == 0 ) || ( grBuf == 0 ) || ( grROB == 0 ) || ( grROS == 0 ) || ( grDDU == 0 ) ) cacheMap(); int defaultValue; mType->find( 0, defaultValue ); if ( defaultValue ) { int loop1 = 0; int loop2 = 0; int loop3 = 0; int loop0 = 0; int searchStatus; int mapId = 0; std::vector<int>* robMLgr; std::vector<int>* rosMLgr; std::vector<int>* dduMLgr; std::vector<int> cellKey; cellKey.reserve(6); cellKey.push_back( cellId ); cellKey.push_back( layerId ); cellKey.push_back( slId ); std::vector<int> stdcKey = cellKey; searchStatus = grROB->find( cellKey.begin(), cellKey.end(), robMLgr ); if ( searchStatus ) return searchStatus; if ( !( robMLgr->size() ) ) return 1; std::vector<int>::const_iterator tdc_iter = robMLgr->begin(); std::vector<int>::const_iterator tdc_iend = robMLgr->end(); while( tdc_iter != tdc_iend ) { loop1++; const DTReadOutGeometryLink& ltdc( readOutChannelDriftTubeMap[*tdc_iter++] ); channelId = ltdc.channelId; tdcId = ltdc. tdcId; mapId = ltdc.rosId; cellKey.clear(); cellKey.push_back( mapId ); cellKey.push_back( stationId ); std::vector<int> srosKey = cellKey; searchStatus = grROS->find( cellKey.begin(), cellKey.end(), rosMLgr ); if ( searchStatus ) continue; if ( !( rosMLgr->size() ) ) continue; std::vector<int>::const_iterator ros_iter = rosMLgr->begin(); std::vector<int>::const_iterator ros_iend = rosMLgr->end(); while( ros_iter != ros_iend ) { loop2++; const DTReadOutGeometryLink& lros( readOutChannelDriftTubeMap[*ros_iter++] ); int secCk = lros.sectorId; int wheCk = lros. wheelId; if ( ( secCk != defaultValue ) && ( secCk != sectorId ) ) continue; if ( ( wheCk != defaultValue ) && ( wheCk != wheelId ) ) continue; robId = lros.robId; mapId = lros.rosId; cellKey.clear(); cellKey.push_back( mapId ); cellKey.push_back( wheelId ); cellKey.push_back( sectorId ); std::vector<int> sdduKey = cellKey; searchStatus = grDDU->find( cellKey.begin(), cellKey.end(), dduMLgr ); if ( searchStatus ) continue; if ( !( dduMLgr->size() ) ) continue; if ( searchStatus ) return searchStatus; if ( !( dduMLgr->size() ) ) return 1; loop0++; std::vector<int>::const_iterator ddu_iter = dduMLgr->begin(); std::vector<int>::const_iterator ddu_iend = dduMLgr->end(); while( ddu_iter != ddu_iend ) { loop3++; const DTReadOutGeometryLink& lddu( readOutChannelDriftTubeMap[*ddu_iter++] ); mapId = lros.rosId; if ( ( ( sectorId == secCk ) || ( sectorId == lddu.sectorId ) ) && ( ( wheelId == wheCk ) || ( wheelId == lddu.wheelId ) ) ) { rosId = lddu.rosId; dduId = lddu.dduId; return 0; } } } } return 1; } std::vector<int> cellKey; cellKey.reserve(6); cellKey.push_back( wheelId ); cellKey.push_back( stationId ); cellKey.push_back( sectorId ); cellKey.push_back( slId ); cellKey.push_back( layerId ); cellKey.push_back( cellId ); int ientry; int searchStatus = grBuf->find( cellKey.begin(), cellKey.end(), ientry ); if ( !searchStatus ) { const DTReadOutGeometryLink& link( readOutChannelDriftTubeMap[ientry] ); dduId = link. dduId; rosId = link. rosId; robId = link. robId; tdcId = link. tdcId; channelId = link.channelId; } return searchStatus; }
int DTReadOutMapping::insertReadOutGeometryLink | ( | int | dduId, |
int | rosId, | ||
int | robId, | ||
int | tdcId, | ||
int | channelId, | ||
int | wheelId, | ||
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
int | layerId, | ||
int | cellId | ||
) |
insert connection
Definition at line 425 of file DTReadOutMapping.cc.
References DTReadOutGeometryLink::channelId, grBuf, DTBufferTree< Key, Content >::insert(), link(), readOutChannelDriftTubeMap, rgBuf, and DTReadOutGeometryLink::stationId.
Referenced by DTReadOutMappingHandler::getNewObjects().
{ DTReadOutGeometryLink link; link. dduId = dduId; link. rosId = rosId; link. robId = robId; link. tdcId = tdcId; link.channelId = channelId; link. wheelId = wheelId; link.stationId = stationId; link. sectorId = sectorId; link. slId = slId; link. layerId = layerId; link. cellId = cellId; int ientry = readOutChannelDriftTubeMap.size(); readOutChannelDriftTubeMap.push_back( link ); if ( rgBuf == 0 ) { DTBufferTree<int,int>** prgBuf; prgBuf = const_cast<DTBufferTree<int,int>**>( &rgBuf ); *prgBuf = new DTBufferTree<int,int>; } if ( grBuf == 0 ) { DTBufferTree<int,int>** pgrBuf; pgrBuf = const_cast<DTBufferTree<int,int>**>( &grBuf ); *pgrBuf = new DTBufferTree<int,int>; } std::vector<int> cellKey; cellKey.reserve(6); cellKey.push_back( wheelId ); cellKey.push_back( stationId ); cellKey.push_back( sectorId ); cellKey.push_back( slId ); cellKey.push_back( layerId ); cellKey.push_back( cellId ); int grStatus = grBuf->insert( cellKey.begin(), cellKey.end(), ientry ); std::vector<int> chanKey; chanKey.reserve(5); chanKey.push_back( dduId ); chanKey.push_back( rosId ); chanKey.push_back( robId ); chanKey.push_back( tdcId ); chanKey.push_back( channelId ); int rgStatus = rgBuf->insert( chanKey.begin(), chanKey.end(), ientry ); if ( grStatus || rgStatus ) return 1; else return 0; }
const std::string & DTReadOutMapping::mapCellTdc | ( | ) | const |
access parent maps identifiers
Definition at line 394 of file DTReadOutMapping.cc.
References cellMapVersion.
{ return cellMapVersion; }
std::string & DTReadOutMapping::mapCellTdc | ( | ) |
Definition at line 399 of file DTReadOutMapping.cc.
References cellMapVersion.
{ return cellMapVersion; }
std::string DTReadOutMapping::mapNameGR | ( | ) | const |
Definition at line 499 of file DTReadOutMapping.cc.
References cellMapVersion, AlCaRecoCosmics_cfg::name, and robMapVersion.
{ std::stringstream name; name << cellMapVersion << "_" << robMapVersion << "_map_GR" << this; return name.str(); }
std::string DTReadOutMapping::mapNameRG | ( | ) | const |
Definition at line 506 of file DTReadOutMapping.cc.
References cellMapVersion, AlCaRecoCosmics_cfg::name, and robMapVersion.
{ std::stringstream name; name << cellMapVersion << "_" << robMapVersion << "_map_RG" << this; return name.str(); }
std::string & DTReadOutMapping::mapRobRos | ( | ) |
Definition at line 410 of file DTReadOutMapping.cc.
References robMapVersion.
{ return robMapVersion; }
const std::string & DTReadOutMapping::mapRobRos | ( | ) | const |
Definition at line 405 of file DTReadOutMapping.cc.
References robMapVersion.
{ return robMapVersion; }
int DTReadOutMapping::readOutToGeometry | ( | int | dduId, |
int | rosId, | ||
int | robId, | ||
int | tdcId, | ||
int | channelId, | ||
int & | wheelId, | ||
int & | stationId, | ||
int & | sectorId, | ||
int & | slId, | ||
int & | layerId, | ||
int & | cellId | ||
) | const |
Definition at line 144 of file DTReadOutMapping.cc.
References cacheMap(), DTBufferTree< Key, Content >::find(), link(), mType, readOutChannelDriftTubeMap, rgBuf, rgDDU, rgROB, rgROS, and DTReadOutGeometryLink::stationId.
{ wheelId = stationId = sectorId = slId = layerId = cellId = 0; if ( ( mType == 0 ) || ( rgBuf == 0 ) || ( rgROB == 0 ) || ( rgROS == 0 ) || ( rgDDU == 0 ) ) cacheMap(); int defaultValue; mType->find( 0, defaultValue ); if ( defaultValue ) { int searchStatus; int ientry; std::vector<int> dduKey; dduKey.reserve( 5 ); dduKey.push_back( dduId ); dduKey.push_back( rosId ); searchStatus = rgDDU->find( dduKey.begin(), dduKey.end(), ientry ); if ( searchStatus ) return searchStatus; const DTReadOutGeometryLink& lros( readOutChannelDriftTubeMap[ientry] ); wheelId = lros. wheelId; sectorId = lros. sectorId; std::vector<int> rosKey; rosKey.reserve( 5 ); rosKey.push_back( lros. cellId ); rosKey.push_back( robId ); searchStatus = rgROS->find( rosKey.begin(), rosKey.end(), ientry ); if ( searchStatus ) return searchStatus; const DTReadOutGeometryLink& lrob( readOutChannelDriftTubeMap[ientry] ); if ( lrob. wheelId != defaultValue ) wheelId = lrob. wheelId; stationId = lrob.stationId; if ( lrob. sectorId != defaultValue ) sectorId = lrob. sectorId; std::vector<int> robKey; robKey.reserve( 5 ); robKey.push_back( lrob. cellId ); robKey.push_back( tdcId ); robKey.push_back( channelId ); searchStatus = rgROB->find( robKey.begin(), robKey.end(), ientry ); if ( searchStatus ) return searchStatus; const DTReadOutGeometryLink& ltdc( readOutChannelDriftTubeMap[ientry] ); slId = ltdc. slId; layerId = ltdc. layerId; cellId = ltdc. cellId; return 0; } std::vector<int> chanKey; chanKey.reserve(5); chanKey.push_back( dduId ); chanKey.push_back( rosId ); chanKey.push_back( robId ); chanKey.push_back( tdcId ); chanKey.push_back( channelId ); int ientry; int searchStatus = rgBuf->find( chanKey.begin(), chanKey.end(), ientry ); if ( !searchStatus ) { const DTReadOutGeometryLink& link( readOutChannelDriftTubeMap[ientry] ); wheelId = link. wheelId; stationId = link.stationId; sectorId = link. sectorId; slId = link. slId; layerId = link. layerId; cellId = link. cellId; } return searchStatus; }
int DTReadOutMapping::readOutToGeometry | ( | int | dduId, |
int | rosId, | ||
int | robId, | ||
int | tdcId, | ||
int | channelId, | ||
DTWireId & | wireId | ||
) | const |
transform identifiers
Operations
Definition at line 112 of file DTReadOutMapping.cc.
References ntuplemaker::status.
{ int wheelId; int stationId; int sectorId; int slId; int layerId; int cellId; int status = readOutToGeometry( dduId, rosId, robId, tdcId, channelId, wheelId, stationId, sectorId, slId, layerId, cellId ); wireId = DTWireId( wheelId, stationId, sectorId, slId, layerId, cellId ); return status; }
std::string DTReadOutMapping::cellMapVersion |
Definition at line 143 of file DTReadOutMapping.h.
Referenced by mapCellTdc(), mapNameGR(), and mapNameRG().
DTBufferTree<int,int>* DTReadOutMapping::grBuf |
Definition at line 153 of file DTReadOutMapping.h.
Referenced by cacheMap(), clear(), DTReadOutMapping(), geometryToReadOut(), insertReadOutGeometryLink(), and ~DTReadOutMapping().
DTBufferTree<int, std::vector<int>*>* DTReadOutMapping::grDDU |
Definition at line 159 of file DTReadOutMapping.h.
Referenced by cacheMap(), DTReadOutMapping(), geometryToReadOut(), and ~DTReadOutMapping().
DTBufferTree<int, std::vector<int>*>* DTReadOutMapping::grROB |
Definition at line 155 of file DTReadOutMapping.h.
Referenced by cacheMap(), DTReadOutMapping(), geometryToReadOut(), and ~DTReadOutMapping().
DTBufferTree<int, std::vector<int>*>* DTReadOutMapping::grROS |
Definition at line 157 of file DTReadOutMapping.h.
Referenced by cacheMap(), DTReadOutMapping(), geometryToReadOut(), and ~DTReadOutMapping().
DTBufferTree<int,int>* DTReadOutMapping::mType |
Definition at line 148 of file DTReadOutMapping.h.
Referenced by cacheMap(), clear(), DTReadOutMapping(), geometryToReadOut(), readOutToGeometry(), and ~DTReadOutMapping().
Definition at line 146 of file DTReadOutMapping.h.
Referenced by begin(), cacheMap(), clear(), DTReadOutMapping(), end(), geometryToReadOut(), insertReadOutGeometryLink(), and readOutToGeometry().
DTBufferTree<int,int>* DTReadOutMapping::rgBuf |
Definition at line 149 of file DTReadOutMapping.h.
Referenced by cacheMap(), clear(), DTReadOutMapping(), insertReadOutGeometryLink(), readOutToGeometry(), and ~DTReadOutMapping().
DTBufferTree<int,int>* DTReadOutMapping::rgDDU |
Definition at line 152 of file DTReadOutMapping.h.
Referenced by cacheMap(), DTReadOutMapping(), readOutToGeometry(), and ~DTReadOutMapping().
DTBufferTree<int,int>* DTReadOutMapping::rgROB |
Definition at line 150 of file DTReadOutMapping.h.
Referenced by cacheMap(), DTReadOutMapping(), readOutToGeometry(), and ~DTReadOutMapping().
DTBufferTree<int,int>* DTReadOutMapping::rgROS |
Definition at line 151 of file DTReadOutMapping.h.
Referenced by cacheMap(), DTReadOutMapping(), readOutToGeometry(), and ~DTReadOutMapping().
std::string DTReadOutMapping::robMapVersion |
Definition at line 144 of file DTReadOutMapping.h.
Referenced by mapNameGR(), mapNameRG(), and mapRobRos().