#include <ChamberLocationSpec.h>
Public Member Functions | |
std::string | chamberLocationName () const |
std::string | print (int depth=0) const |
debug printout | |
Public Attributes | |
char | barrelOrEndcap |
int | diskOrWheel |
char | febZOrnt |
char | febZRadOrnt |
int | layer |
int | sector |
char | subsector |
Definition at line 9 of file ChamberLocationSpec.h.
std::string ChamberLocationSpec::chamberLocationName | ( | ) | const |
Definition at line 25 of file ChamberLocationSpec.cc.
References barrelOrEndcap, diskOrWheel, layer, prof2calltree::prefix, sector, AlCaHLTBitMon_QueryRunRegistry::string, and subsector.
Referenced by RPCReadOutMapping::getLBforChamber(), DBSpecToDetUnit::operator()(), and print().
{ std::ostringstream ocln; std::string cln; if (barrelOrEndcap == 1) { std::string layerVal[6]={"RB1in","RB1out","RB2in","RB2out","RB3","RB4"}; std::string prefix="W"; if (diskOrWheel > 0) prefix="W+"; std::string subsVal[5]={"--","-","","+","++"}; ocln << prefix<<diskOrWheel<<"/"<<layerVal[layer-1]<<"/"<<sector<<subsVal[subsector+2]; } else { std::string prefix="RE"; if (diskOrWheel > 0) prefix="RE+"; ocln << prefix<<diskOrWheel<<"/"<<layer<<"/"<<sector; } cln=ocln.str(); return cln; }
std::string ChamberLocationSpec::print | ( | int | depth = 0 | ) | const |
debug printout
Definition at line 4 of file ChamberLocationSpec.cc.
References barrelOrEndcap, chamberLocationName(), diskOrWheel, febZOrnt, febZRadOrnt, layer, sector, AlCaHLTBitMon_QueryRunRegistry::string, and subsector.
Referenced by FebConnectorSpec::print().
{ std::ostringstream str; std::string subsVal[5]={"--","-","0","+","++"}; // -2,-1,0,1,2 std::string febZVal[3]={"-z","+z"}; // 0,1 std::string febZRVal[3]={"N/A","IN","OUT"}; // 0,1,2 std::string boeVal[2]={"Endcap","Barrel"}; // 0,1 if (depth >=0) { str << " ChamberLocationSpec: " << std::endl << " --->DiskOrWheel: " << diskOrWheel << " Layer: " << layer << " Sector: " << sector << " Subsector: " << subsVal[subsector+2] << " ChamberLocationName: " << chamberLocationName() << " FebZOrnt: " << febZVal[int(febZOrnt)] << " FebZRadOrnt: " << febZRVal[int(febZRadOrnt)] << " BarrelOrEndcap: " << boeVal[int(barrelOrEndcap)]; } return str.str(); }
Definition at line 16 of file ChamberLocationSpec.h.
Referenced by chamberLocationName(), DBSpecToDetUnit::operator()(), and print().
Definition at line 10 of file ChamberLocationSpec.h.
Referenced by chamberLocationName(), DBSpecToDetUnit::operator()(), and print().
Definition at line 14 of file ChamberLocationSpec.h.
Referenced by print().
Definition at line 15 of file ChamberLocationSpec.h.
Referenced by print().
Definition at line 11 of file ChamberLocationSpec.h.
Referenced by chamberLocationName(), DBSpecToDetUnit::operator()(), and print().
Definition at line 12 of file ChamberLocationSpec.h.
Referenced by chamberLocationName(), DBSpecToDetUnit::operator()(), and print().
Definition at line 13 of file ChamberLocationSpec.h.
Referenced by chamberLocationName(), DBSpecToDetUnit::operator()(), and print().