#include <TGCCableASDToPP.h>
|
enum | CableType {
NoCableType =-1,
InASD,
ASDToPP,
InPP,
PPToSLB,
InSLB,
SLBToHPB,
HPBToSL,
SLBToSSW,
SSWToROD,
MaxCableType
} |
|
|
| TGCCableASDToPP () |
|
void | initialize (const std::string &filename) |
|
virtual TGCChannelId * | getChannelIn (const TGCChannelId *ppin, bool orChannel=false) const |
|
virtual TGCChannelId * | getChannelOut (const TGCChannelId *asdout, bool orChannel=false) const |
|
StatusCode | getUpdateInfo (const int side, const int sector, const std::string &blockname, std::vector< std::vector< int > > &info) |
|
TGCDatabaseASDToPP * | getDatabase (const int side, const int region, const int sector, const int module) const |
|
StatusCode | updateIndividualDatabase (const int side, const int sector, const std::string &blockname, std::shared_ptr< TGCDatabaseASDToPP > &database) |
|
Definition at line 22 of file TGCCableASDToPP.h.
◆ CommonDB
Pointers of common databases are recorded in this array.
Definition at line 83 of file TGCCableASDToPP.h.
◆ EndcapSectorDB
◆ ForwardSectorDB
◆ InnerSectorDB
◆ CableType
Enumerator |
---|
NoCableType | |
InASD | |
ASDToPP | |
InPP | |
PPToSLB | |
InSLB | |
SLBToHPB | |
HPBToSL | |
SLBToSSW | |
SSWToROD | |
MaxCableType | |
Definition at line 18 of file TGCCable.h.
◆ TGCCableASDToPP() [1/2]
MuonTGC_Cabling::TGCCableASDToPP::TGCCableASDToPP |
( |
const std::string & |
filename | ) |
|
◆ ~TGCCableASDToPP()
MuonTGC_Cabling::TGCCableASDToPP::~TGCCableASDToPP |
( |
| ) |
|
|
virtual |
◆ TGCCableASDToPP() [2/2]
MuonTGC_Cabling::TGCCableASDToPP::TGCCableASDToPP |
( |
| ) |
|
|
inlineprivate |
◆ getCableType()
CableType MuonTGC_Cabling::TGCCable::getCableType |
( |
void |
| ) |
const |
|
inlineinherited |
◆ getChannel()
◆ getChannelIn()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 261 of file TGCCableASDToPP.cxx.
263 if(orChannel)
return nullptr;
264 if(ppin->isValid()==
false)
return nullptr;
266 TGCDatabaseASDToPP* databaseP =
268 ppin->getRegionType(),
270 ppin->getModuleType());
272 if(databaseP==
nullptr)
return nullptr;
275 {ppin->getId(), ppin->getBlock(), ppin->getChannel()};
276 int i = databaseP->getIndexDBOut(indexOut);
277 if(
i<0)
return nullptr;
280 int layer = databaseP->getEntry(
i,0);
281 if(ppin->isStrip()) {
282 if(!(ppin->isBackward())) {
286 int offset = (ppin->isWire()) ? 4 : 0;
290 int chamber = databaseP->getEntry(
i,1);
291 if(ppin->isEndcap() && ppin->isTriplet()) {
294 TGCChannelASDOut *asdout =
new TGCChannelASDOut(ppin->getSideType(),
295 ppin->getSignalType(),
296 ppin->getRegionType(),
◆ getChannelOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 305 of file TGCCableASDToPP.cxx.
307 if(orChannel)
return nullptr;
308 if(asdout->isValid()==
false)
return nullptr;
310 const bool asdoutisStrip = asdout->isStrip();
311 const bool asdoutisBackward = asdout->isBackward();
312 const bool asdoutisEndcap = asdout->isEndcap();
313 const bool asdoutisTriplet = asdout->isTriplet();
314 const int asdoutLayer = asdout->getLayer();
315 const int asdoutChamber = asdout->getChamber();
316 const int asdoutChannel = asdout->getChannel();
318 TGCDatabaseASDToPP* databaseP =
320 asdout->getRegionType(),
322 asdout->getModuleType());
324 if(databaseP==
nullptr)
return nullptr;
326 TGCChannelPPIn* ppin =
nullptr;
327 const int MaxEntry = databaseP->getMaxEntry();
328 for(
int i=0;
i<MaxEntry;
i++) {
330 int layer = asdoutLayer;
332 if(!asdoutisBackward) {
337 int elecChannel = asdoutChannel;
341 if(asdoutisEndcap&&asdoutisTriplet)
343 int offset = (asdout->isWire())? 4 : 0;
344 if(databaseP->getEntry(
i,0)==
layer&&
346 databaseP->getEntry(
i,2+
offset)==elecChannel)
348 int id = databaseP->getEntry(
i,3);
349 int block = databaseP->getEntry(
i,4);
350 int channel = databaseP->getEntry(
i,5);
352 ppin =
new TGCChannelPPIn(asdout->getSideType(),
353 asdout->getModuleType(),
354 asdout->getRegionType(),
◆ getDatabase()
Definition at line 187 of file TGCCableASDToPP.cxx.
193 if(sector<0)
return nullptr;
195 TGCDatabaseASDToPP*
db=
nullptr;
◆ getModuleIn()
|
inlineprotectedvirtualinherited |
◆ getModuleOut()
|
inlineprotectedvirtualinherited |
◆ getUpdateInfo()
StatusCode MuonTGC_Cabling::TGCCableASDToPP::getUpdateInfo |
( |
const int |
side, |
|
|
const int |
sector, |
|
|
const std::string & |
blockname, |
|
|
std::vector< std::vector< int > > & |
info |
|
) |
| |
|
private |
Definition at line 127 of file TGCCableASDToPP.cxx.
141 const std::string &
buf = (*it);
143 char firstl =
buf.at(0);
144 if(firstl==
'/'||firstl==
'*')
continue;
146 std::istringstream
line(buf);
155 const std::string &
buf = (*it);
157 char firstl =
buf.at(0);
158 if(firstl==
'/'||firstl==
'*')
continue;
159 if(firstl==
'E'||firstl==
'F')
break;
160 std::istringstream
line(buf);
161 std::vector<int>
entry;
162 int t_side, t_sector;
166 if((t_side==
side) && (t_sector==sector)) {
167 for(
int i=2;
i<8;
i++) {
170 entry.push_back(temp);
182 return StatusCode::SUCCESS;
◆ initialize()
void MuonTGC_Cabling::TGCCableASDToPP::initialize |
( |
const std::string & |
filename | ) |
|
|
private |
◆ updateDatabase()
StatusCode MuonTGC_Cabling::TGCCableASDToPP::updateDatabase |
( |
| ) |
|
Definition at line 68 of file TGCCableASDToPP.cxx.
73 return StatusCode::SUCCESS;
76 std::vector<std::string> *tmp_ASD2PP_DIFF_12 =
m_tgcCablingDbTool->giveASD2PP_DIFF_12();
77 if(!tmp_ASD2PP_DIFF_12)
return StatusCode::FAILURE;
82 for (
const std::string&
s : *tmp_ASD2PP_DIFF_12) {
83 char letter =
s.at(0);
84 if(letter==
'/'||letter==
'*')
continue;
87 delete tmp_ASD2PP_DIFF_12;
88 tmp_ASD2PP_DIFF_12 =
nullptr;
93 if(!
sc.isSuccess())
return sc;
96 if(!
sc.isSuccess())
return sc;
98 if(!
sc.isSuccess())
return sc;
100 if(!
sc.isSuccess())
return sc;
104 if(!
sc.isSuccess())
return sc;
106 if(!
sc.isSuccess())
return sc;
108 if(!
sc.isSuccess())
return sc;
110 if(!
sc.isSuccess())
return sc;
114 if(!
sc.isSuccess())
return sc;
116 if(!
sc.isSuccess())
return sc;
118 if(!
sc.isSuccess())
return sc;
120 if(!
sc.isSuccess())
return sc;
124 return StatusCode::SUCCESS;
◆ updateIndividualDatabase()
StatusCode MuonTGC_Cabling::TGCCableASDToPP::updateIndividualDatabase |
( |
const int |
side, |
|
|
const int |
sector, |
|
|
const std::string & |
blockname, |
|
|
std::shared_ptr< TGCDatabaseASDToPP > & |
database |
|
) |
| |
|
private |
Definition at line 365 of file TGCCableASDToPP.cxx.
369 if (!
database)
return StatusCode::FAILURE;
370 std::vector<std::vector<int>>
info;
372 if(!
sc.isSuccess())
return sc;
374 size_t info_size =
info.size();
375 if(!info_size)
return StatusCode::SUCCESS;
379 if(!
database)
return StatusCode::FAILURE;
382 for(
size_t i=0;
i<info_size;
i++) {
386 return StatusCode::SUCCESS;
◆ m_ASD2PP_DIFF_12
std::vector<std::string>* MuonTGC_Cabling::TGCCableASDToPP::m_ASD2PP_DIFF_12 {nullptr} |
|
private |
◆ m_commonDb
CommonDB MuonTGC_Cabling::TGCCableASDToPP::m_commonDb {{{nullptr}}} |
|
private |
◆ m_ESDdb
◆ m_ESIdb
◆ m_ESTdb
◆ m_EWDdb
◆ m_EWIdb
◆ m_EWTdb
◆ m_FSDdb
◆ m_FSIdb
◆ m_FSTdb
◆ m_FWDdb
◆ m_FWIdb
◆ m_FWTdb
◆ m_tgcCablingDbTool
◆ m_type
◆ s_stripForward
const int MuonTGC_Cabling::TGCCableASDToPP::s_stripForward = {2,1,0,4,3,6,5,8,7} |
|
staticprivate |
The documentation for this class was generated from the following files: