ATLAS Offline Software
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MuonTGC_Cabling::TGCCableASDToPP Class Reference

#include <TGCCableASDToPP.h>

Inheritance diagram for MuonTGC_Cabling::TGCCableASDToPP:
Collaboration diagram for MuonTGC_Cabling::TGCCableASDToPP:

Public Types

enum  CableType {
  NoCableType =-1, InASD, ASDToPP, InPP,
  PPToSLB, InSLB, SLBToHPB, HPBToSL,
  SLBToSSW, SSWToROD, MaxCableType
}
 

Public Member Functions

 TGCCableASDToPP (const std::string &filename)
 
virtual ~TGCCableASDToPP ()
 
virtual TGCChannelIdgetChannel (const TGCChannelId *channelId, bool orChannel=false) const
 
StatusCode updateDatabase ()
 
CableType getCableType (void) const
 

Protected Member Functions

virtual TGCModuleMapgetModuleIn (const TGCModuleId *) const
 
virtual TGCModuleMapgetModuleOut (const TGCModuleId *) const
 

Private Types

using ForwardSectorDB = std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::NUM_FORWARD_SECTOR >, TGCId::MaxSideType >
 
using InnerSectorDB = std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::NUM_INNER_SECTOR >, TGCId::MaxSideType >
 
using EndcapSectorDB = std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::NUM_ENDCAP_SECTOR >, TGCId::MaxSideType >
 
using CommonDB = std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::MaxModuleType >, TGCId::MaxRegionType >
 Pointers of common databases are recorded in this array. More...
 

Private Member Functions

 TGCCableASDToPP ()
 
void initialize (const std::string &filename)
 
virtual TGCChannelIdgetChannelIn (const TGCChannelId *ppin, bool orChannel=false) const
 
virtual TGCChannelIdgetChannelOut (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)
 
TGCDatabaseASDToPPgetDatabase (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)
 

Private Attributes

ToolHandle< ITGCCablingDbToolm_tgcCablingDbTool
 
std::vector< std::string > * m_ASD2PP_DIFF_12 {nullptr}
 
ForwardSectorDB m_FWDdb {}
 
ForwardSectorDB m_FSDdb {}
 
ForwardSectorDB m_FWTdb {}
 
ForwardSectorDB m_FSTdb {}
 
InnerSectorDB m_FWIdb {}
 
InnerSectorDB m_FSIdb {}
 
EndcapSectorDB m_EWDdb {}
 
EndcapSectorDB m_ESDdb {}
 
EndcapSectorDB m_EWTdb {}
 
EndcapSectorDB m_ESTdb {}
 
InnerSectorDB m_EWIdb {}
 
InnerSectorDB m_ESIdb {}
 
CommonDB m_commonDb {nullptr}
 
CableType m_type
 

Static Private Attributes

static const int s_stripForward [] = {2,1,0,4,3,6,5,8,7}
 

Detailed Description

Definition at line 22 of file TGCCableASDToPP.h.

Member Typedef Documentation

◆ CommonDB

Pointers of common databases are recorded in this array.

Definition at line 83 of file TGCCableASDToPP.h.

◆ EndcapSectorDB

Definition at line 66 of file TGCCableASDToPP.h.

◆ ForwardSectorDB

Definition at line 64 of file TGCCableASDToPP.h.

◆ InnerSectorDB

Definition at line 65 of file TGCCableASDToPP.h.

Member Enumeration Documentation

◆ CableType

Enumerator
NoCableType 
InASD 
ASDToPP 
InPP 
PPToSLB 
InSLB 
SLBToHPB 
HPBToSL 
SLBToSSW 
SSWToROD 
MaxCableType 

Definition at line 18 of file TGCCable.h.

Constructor & Destructor Documentation

◆ TGCCableASDToPP() [1/2]

MuonTGC_Cabling::TGCCableASDToPP::TGCCableASDToPP ( const std::string &  filename)

Definition at line 17 of file TGCCableASDToPP.cxx.

17  :
19  m_tgcCablingDbTool("TGCCablingDbTool") {
21 }

◆ ~TGCCableASDToPP()

MuonTGC_Cabling::TGCCableASDToPP::~TGCCableASDToPP ( )
virtual

Definition at line 23 of file TGCCableASDToPP.cxx.

23  {
24  delete m_ASD2PP_DIFF_12;
25  m_ASD2PP_DIFF_12 = nullptr;
26 }

◆ TGCCableASDToPP() [2/2]

MuonTGC_Cabling::TGCCableASDToPP::TGCCableASDToPP ( )
inlineprivate

Definition at line 33 of file TGCCableASDToPP.h.

33 {}

Member Function Documentation

◆ getCableType()

CableType MuonTGC_Cabling::TGCCable::getCableType ( void  ) const
inlineinherited

Definition at line 30 of file TGCCable.h.

30 { return m_type; }

◆ getChannel()

TGCChannelId * MuonTGC_Cabling::TGCCableASDToPP::getChannel ( const TGCChannelId channelId,
bool  orChannel = false 
) const
virtual

Definition at line 250 of file TGCCableASDToPP.cxx.

251  {
252  if(channelId) {
253  if(channelId->getChannelIdType()==TGCChannelId::ChannelIdType::ASDOut)
254  return getChannelOut(channelId,orChannel);
255  if(channelId->getChannelIdType()==TGCChannelId::ChannelIdType::PPIn)
256  return getChannelIn(channelId,orChannel);
257  }
258  return nullptr;
259 }

◆ getChannelIn()

TGCChannelId * MuonTGC_Cabling::TGCCableASDToPP::getChannelIn ( const TGCChannelId ppin,
bool  orChannel = false 
) const
privatevirtual

Reimplemented from MuonTGC_Cabling::TGCCable.

Definition at line 261 of file TGCCableASDToPP.cxx.

262  {
263  if(orChannel) return nullptr;
264  if(ppin->isValid()==false) return nullptr;
265 
266  TGCDatabaseASDToPP* databaseP =
267  getDatabase(ppin->getSideType(),
268  ppin->getRegionType(),
269  ppin->getSector(),
270  ppin->getModuleType());
271 
272  if(databaseP==nullptr) return nullptr;
273 
274  int indexOut[TGCDatabaseASDToPP::NIndexOut] =
275  {ppin->getId(), ppin->getBlock(), ppin->getChannel()};
276  int i = databaseP->getIndexDBOut(indexOut);
277  if(i<0) return nullptr;
278 
279  // ASD2PP.db is Backward connection
280  int layer = databaseP->getEntry(i,0);
281  if(ppin->isStrip()) {
282  if(!(ppin->isBackward())) {
284  }
285  }
286  int offset = (ppin->isWire()) ? 4 : 0;
287  int channel = databaseP->getEntry(i,2+offset);
288 
289  // Endcap Triplet chamberId start from 1 in ASDOut
290  int chamber = databaseP->getEntry(i,1);
291  if(ppin->isEndcap() && ppin->isTriplet()) {
292  chamber = chamber+1;
293  }
294  TGCChannelASDOut *asdout = new TGCChannelASDOut(ppin->getSideType(),
295  ppin->getSignalType(),
296  ppin->getRegionType(),
297  ppin->getSector(),
298  layer,
299  chamber,
300  channel);
301 
302  return asdout;
303 }

◆ getChannelOut()

TGCChannelId * MuonTGC_Cabling::TGCCableASDToPP::getChannelOut ( const TGCChannelId asdout,
bool  orChannel = false 
) const
privatevirtual

Reimplemented from MuonTGC_Cabling::TGCCable.

Definition at line 305 of file TGCCableASDToPP.cxx.

306  {
307  if(orChannel) return nullptr;
308  if(asdout->isValid()==false) return nullptr;
309 
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();
317 
318  TGCDatabaseASDToPP* databaseP =
319  getDatabase(asdout->getSideType(),
320  asdout->getRegionType(),
321  asdout->getSector(),
322  asdout->getModuleType());
323 
324  if(databaseP==nullptr) return nullptr;
325 
326  TGCChannelPPIn* ppin = nullptr;
327  const int MaxEntry = databaseP->getMaxEntry();
328  for(int i=0; i<MaxEntry; i++) {
329  // ASD2PP.db is Backward connection
330  int layer = asdoutLayer;
331  if(asdoutisStrip) {
332  if(!asdoutisBackward) {
334  }
335  }
336 
337  int elecChannel = asdoutChannel;
338 
339  // Endcap Triplet chamberId start from 1 in ASDOut
340  int chamber = asdoutChamber;
341  if(asdoutisEndcap&&asdoutisTriplet)
342  chamber = chamber-1;
343  int offset = (asdout->isWire())? 4 : 0;
344  if(databaseP->getEntry(i,0)==layer&&
345  databaseP->getEntry(i,1)==chamber&&
346  databaseP->getEntry(i,2+offset)==elecChannel)
347  {
348  int id = databaseP->getEntry(i,3);
349  int block = databaseP->getEntry(i,4);
350  int channel = databaseP->getEntry(i,5);
351 
352  ppin = new TGCChannelPPIn(asdout->getSideType(),
353  asdout->getModuleType(),
354  asdout->getRegionType(),
355  asdout->getSector(),
356  id,
357  block,
358  channel);
359  break;
360  }
361  }
362  return ppin;
363 }

◆ getDatabase()

TGCDatabaseASDToPP * MuonTGC_Cabling::TGCCableASDToPP::getDatabase ( const int  side,
const int  region,
const int  sector,
const int  module 
) const
private

Definition at line 187 of file TGCCableASDToPP.cxx.

191 {
192  if(side<0 || side>=TGCId::MaxSideType) return nullptr;
193  if(sector<0) return nullptr;
194 
195  TGCDatabaseASDToPP* db=nullptr;
196  if(region==TGCId::Endcap) {
197  switch(module) {
198  case TGCId::WD :
199  if(sector<TGCId::NUM_ENDCAP_SECTOR) db = m_EWDdb[side][sector].get();
200  break;
201  case TGCId::SD :
202  if(sector<TGCId::NUM_ENDCAP_SECTOR) db = m_ESDdb[side][sector].get();
203  break;
204  case TGCId::WT :
205  if(sector<TGCId::NUM_ENDCAP_SECTOR) db = m_EWTdb[side][sector].get();
206  break;
207  case TGCId::ST :
208  if(sector<TGCId::NUM_ENDCAP_SECTOR) db = m_ESTdb[side][sector].get();
209  break;
210  case TGCId::WI :
211  if(sector<TGCId::NUM_INNER_SECTOR) db = m_EWIdb[side][sector].get();
212  break;
213  case TGCId::SI :
214  if(sector<TGCId::NUM_INNER_SECTOR) db = m_ESIdb[side][sector].get();
215  break;
216  default:
217  break;
218  }
219  } else if(region==TGCId::Forward) {
220  switch(module) {
221  case TGCId::WD :
222  if(sector<TGCId::NUM_FORWARD_SECTOR) db = m_FWDdb[side][sector].get();
223  break;
224  case TGCId::SD :
225  if(sector<TGCId::NUM_FORWARD_SECTOR) db = m_FSDdb[side][sector].get();
226  break;
227  case TGCId::WT :
228  if(sector<TGCId::NUM_FORWARD_SECTOR) db = m_FWTdb[side][sector].get();
229  break;
230  case TGCId::ST :
231  if(sector<TGCId::NUM_FORWARD_SECTOR) db = m_FSTdb[side][sector].get();
232  break;
233  case TGCId::WI :
234  if(sector<TGCId::NUM_INNER_SECTOR) db = m_FWIdb[side][sector].get();
235  break;
236  case TGCId::SI :
237  if(sector<TGCId::NUM_INNER_SECTOR) db = m_FSIdb[side][sector].get();
238  break;
239  default:
240  break;
241  }
242  }
243  return db;
244 }

◆ getModuleIn()

virtual TGCModuleMap* MuonTGC_Cabling::TGCCable::getModuleIn ( const TGCModuleId ) const
inlineprotectedvirtualinherited

◆ getModuleOut()

virtual TGCModuleMap* MuonTGC_Cabling::TGCCable::getModuleOut ( const TGCModuleId ) const
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.

131 {
132  // clear info
133  info.clear();
134 
135  std::vector<std::string>::const_iterator it = m_ASD2PP_DIFF_12->begin();
136  std::vector<std::string>::const_iterator it_e = m_ASD2PP_DIFF_12->end();
137  int size = 0;
138 
139  // search block name
140  while(it!=it_e) {
141  const std::string &buf = (*it);
142  ++it;
143  char firstl = buf.at(0);
144  if(firstl=='/'||firstl=='*') continue;
145  if(buf.compare(0,blockname.size(),blockname)==0) {
146  std::istringstream line(buf);
147  std::string temp;
148  line >> temp >> size;
149  break;
150  }
151  }
152 
153  // loop over entries of specified block
154  while(it!=it_e) {
155  const std::string &buf = (*it);
156  ++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;
163  line >> t_side;
164  line >> t_sector;
165  bool isOK = false;
166  if((t_side==side) && (t_sector==sector)) {
167  for(int i=2; i<8; i++) {
168  int temp=-1;
169  if(line >> temp) {
170  entry.push_back(temp);
171  } else {
172  break;
173  }
174  isOK = (i==7);
175  }
176  if(isOK) {
177  info.push_back(entry);
178  }
179  }
180  }
181 
182  return StatusCode::SUCCESS;
183 }

◆ initialize()

void MuonTGC_Cabling::TGCCableASDToPP::initialize ( const std::string &  filename)
private

Definition at line 29 of file TGCCableASDToPP.cxx.

29  {
30  m_commonDb[TGCId::Forward][TGCId::WD] = std::make_shared<TGCDatabaseASDToPP>(filename, "FWD");
31  m_commonDb[TGCId::Forward][TGCId::SD] = std::make_shared<TGCDatabaseASDToPP>(filename, "FSD");
32  m_commonDb[TGCId::Forward][TGCId::WT] = std::make_shared<TGCDatabaseASDToPP>(filename, "FWT");
33  m_commonDb[TGCId::Forward][TGCId::ST] = std::make_shared<TGCDatabaseASDToPP>(filename, "FST");
34 
35  m_commonDb[TGCId::Endcap][TGCId::WD] = std::make_shared<TGCDatabaseASDToPP>(filename, "EWD");
36  m_commonDb[TGCId::Endcap][TGCId::SD] = std::make_shared<TGCDatabaseASDToPP>(filename, "ESD");
37  m_commonDb[TGCId::Endcap][TGCId::WT] = std::make_shared<TGCDatabaseASDToPP>(filename, "EWT");
38  m_commonDb[TGCId::Endcap][TGCId::ST] = std::make_shared<TGCDatabaseASDToPP>(filename, "EST");
39 
40  m_commonDb[TGCId::Forward][TGCId::WI] = std::make_shared<TGCDatabaseASDToPP>(filename, "FWI");
41  m_commonDb[TGCId::Forward][TGCId::SI] = std::make_shared<TGCDatabaseASDToPP>(filename, "FSI");
42  m_commonDb[TGCId::Endcap][TGCId::WI] = std::make_shared<TGCDatabaseASDToPP>(filename, "EWI");
43  m_commonDb[TGCId::Endcap][TGCId::SI] = std::make_shared<TGCDatabaseASDToPP>(filename, "ESI");
44 
45  for(int side=0; side < TGCId::MaxSideType; side++) {
46  for(int sector=0; sector < TGCId::NUM_FORWARD_SECTOR; sector++) {
51  }
52  for(int sector=0; sector < TGCId::NUM_ENDCAP_SECTOR; sector++) {
57  }
58  for(int sector=0; sector < TGCId::NUM_INNER_SECTOR; sector++) {
63  }
64  }
65 }

◆ updateDatabase()

StatusCode MuonTGC_Cabling::TGCCableASDToPP::updateDatabase ( )

Definition at line 68 of file TGCCableASDToPP.cxx.

68  {
69  if(m_tgcCablingDbTool.retrieve().isFailure()) return StatusCode::FAILURE;
70 
71  StatusCode sc = m_tgcCablingDbTool->readASD2PP_DIFF_12FromText();
72  if(!sc.isSuccess()) {
73  return StatusCode::SUCCESS;
74  }
75 
76  std::vector<std::string> *tmp_ASD2PP_DIFF_12 = m_tgcCablingDbTool->giveASD2PP_DIFF_12();
77  if(!tmp_ASD2PP_DIFF_12) return StatusCode::FAILURE;
78 
79  delete m_ASD2PP_DIFF_12;
80  m_ASD2PP_DIFF_12 = new std::vector<std::string>;
81  // Truncation saves initialization CPU time of about 30 ms.
82  for (const std::string& s : *tmp_ASD2PP_DIFF_12) {
83  char letter = s.at(0);
84  if(letter=='/'||letter=='*') continue;
85  m_ASD2PP_DIFF_12->push_back(s);
86  }
87  delete tmp_ASD2PP_DIFF_12;
88  tmp_ASD2PP_DIFF_12 = nullptr;
89 
90  for(int side=0; side<TGCId::MaxSideType; side++) {
91  for(int sector=0; sector<TGCId::NUM_FORWARD_SECTOR; sector++) {
92  StatusCode sc = updateIndividualDatabase(side, sector, "FWD", m_FWDdb[side][sector]);
93  if(!sc.isSuccess()) return sc;
94 
95  sc = updateIndividualDatabase(side, sector, "FSD", m_FSDdb[side][sector]);
96  if(!sc.isSuccess()) return sc;
97  sc = updateIndividualDatabase(side, sector, "FWT", m_FWTdb[side][sector]);
98  if(!sc.isSuccess()) return sc;
99  sc = updateIndividualDatabase(side, sector, "FST", m_FSTdb[side][sector]);
100  if(!sc.isSuccess()) return sc;
101  }
102  for(int sector=0; sector<TGCId::NUM_ENDCAP_SECTOR; sector++) {
103  StatusCode sc = updateIndividualDatabase(side, sector, "EWD", m_EWDdb[side][sector]);
104  if(!sc.isSuccess()) return sc;
105  sc = updateIndividualDatabase(side, sector, "ESD", m_ESDdb[side][sector]);
106  if(!sc.isSuccess()) return sc;
107  sc = updateIndividualDatabase(side, sector, "EWT", m_EWTdb[side][sector]);
108  if(!sc.isSuccess()) return sc;
109  sc = updateIndividualDatabase(side, sector, "EST", m_ESTdb[side][sector]);
110  if(!sc.isSuccess()) return sc;
111  }
112  for(int sector=0; sector<TGCId::NUM_INNER_SECTOR; sector++) {
113  StatusCode sc = updateIndividualDatabase(side, sector, "EWI", m_EWIdb[side][sector]);
114  if(!sc.isSuccess()) return sc;
115  sc = updateIndividualDatabase(side, sector, "ESI", m_ESIdb[side][sector]);
116  if(!sc.isSuccess()) return sc;
117  sc = updateIndividualDatabase(side, sector, "FWI", m_FWIdb[side][sector]);
118  if(!sc.isSuccess()) return sc;
119  sc = updateIndividualDatabase(side, sector, "FSI", m_FSIdb[side][sector]);
120  if(!sc.isSuccess()) return sc;
121  }
122  }
123 
124  return StatusCode::SUCCESS;
125 }

◆ 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.

368  {
369  if (!database) return StatusCode::FAILURE;
370  std::vector<std::vector<int>> info;
372  if(!sc.isSuccess()) return sc;
373 
374  size_t info_size = info.size();
375  if(!info_size) return StatusCode::SUCCESS;
376 
377  if(database->isCommon()) {
378  database.reset(new TGCDatabaseASDToPP(*database, false)); // false means this database is not commonly used.
379  if(!database) return StatusCode::FAILURE;
380  }
381 
382  for(size_t i=0; i<info_size; i++) {
383  database->update(info[i]);
384  }
385 
386  return StatusCode::SUCCESS;
387 }

Member Data Documentation

◆ m_ASD2PP_DIFF_12

std::vector<std::string>* MuonTGC_Cabling::TGCCableASDToPP::m_ASD2PP_DIFF_12 {nullptr}
private

Definition at line 61 of file TGCCableASDToPP.h.

◆ m_commonDb

CommonDB MuonTGC_Cabling::TGCCableASDToPP::m_commonDb {nullptr}
private

Definition at line 84 of file TGCCableASDToPP.h.

◆ m_ESDdb

EndcapSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_ESDdb {}
private

Definition at line 76 of file TGCCableASDToPP.h.

◆ m_ESIdb

InnerSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_ESIdb {}
private

Definition at line 80 of file TGCCableASDToPP.h.

◆ m_ESTdb

EndcapSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_ESTdb {}
private

Definition at line 78 of file TGCCableASDToPP.h.

◆ m_EWDdb

EndcapSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_EWDdb {}
private

Definition at line 75 of file TGCCableASDToPP.h.

◆ m_EWIdb

InnerSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_EWIdb {}
private

Definition at line 79 of file TGCCableASDToPP.h.

◆ m_EWTdb

EndcapSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_EWTdb {}
private

Definition at line 77 of file TGCCableASDToPP.h.

◆ m_FSDdb

ForwardSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_FSDdb {}
private

Definition at line 69 of file TGCCableASDToPP.h.

◆ m_FSIdb

InnerSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_FSIdb {}
private

Definition at line 73 of file TGCCableASDToPP.h.

◆ m_FSTdb

ForwardSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_FSTdb {}
private

Definition at line 71 of file TGCCableASDToPP.h.

◆ m_FWDdb

ForwardSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_FWDdb {}
private

Definition at line 68 of file TGCCableASDToPP.h.

◆ m_FWIdb

InnerSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_FWIdb {}
private

Definition at line 72 of file TGCCableASDToPP.h.

◆ m_FWTdb

ForwardSectorDB MuonTGC_Cabling::TGCCableASDToPP::m_FWTdb {}
private

Definition at line 70 of file TGCCableASDToPP.h.

◆ m_tgcCablingDbTool

ToolHandle<ITGCCablingDbTool> MuonTGC_Cabling::TGCCableASDToPP::m_tgcCablingDbTool
private

Definition at line 60 of file TGCCableASDToPP.h.

◆ m_type

CableType MuonTGC_Cabling::TGCCable::m_type
privateinherited

Definition at line 43 of file TGCCable.h.

◆ s_stripForward

const int MuonTGC_Cabling::TGCCableASDToPP::s_stripForward = {2,1,0,4,3,6,5,8,7}
staticprivate

Definition at line 58 of file TGCCableASDToPP.h.


The documentation for this class was generated from the following files:
MuonTGC_Cabling::TGCCableASDToPP::m_commonDb
CommonDB m_commonDb
Definition: TGCCableASDToPP.h:84
grepfile.info
info
Definition: grepfile.py:38
MuonTGC_Cabling::TGCCableASDToPP::getChannelOut
virtual TGCChannelId * getChannelOut(const TGCChannelId *asdout, bool orChannel=false) const
Definition: TGCCableASDToPP.cxx:305
MuonTGC_Cabling::TGCCable::NoCableType
@ NoCableType
Definition: TGCCable.h:18
MuonTGC_Cabling::TGCId::SI
@ SI
Definition: TGCId.h:47
MuonTGC_Cabling::TGCCableASDToPP::getUpdateInfo
StatusCode getUpdateInfo(const int side, const int sector, const std::string &blockname, std::vector< std::vector< int > > &info)
Definition: TGCCableASDToPP.cxx:127
checkFileSG.line
line
Definition: checkFileSG.py:75
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
MuonTGC_Cabling::TGCCable::InASD
@ InASD
Definition: TGCCable.h:19
MuonTGC_Cabling::TGCDatabaseASDToPP::NIndexOut
@ NIndexOut
Definition: TGCDatabaseASDToPP.h:34
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
MuonTGC_Cabling::TGCCableASDToPP::m_FSDdb
ForwardSectorDB m_FSDdb
Definition: TGCCableASDToPP.h:69
MuonTGC_Cabling::TGCCableASDToPP::m_FSTdb
ForwardSectorDB m_FSTdb
Definition: TGCCableASDToPP.h:71
MuonTGC_Cabling::TGCCableASDToPP::m_FWDdb
ForwardSectorDB m_FWDdb
Definition: TGCCableASDToPP.h:68
calibdata.chamber
chamber
Definition: calibdata.py:32
MuonTGC_Cabling::TGCCableASDToPP::m_ASD2PP_DIFF_12
std::vector< std::string > * m_ASD2PP_DIFF_12
Definition: TGCCableASDToPP.h:61
MuonTGC_Cabling::TGCCableASDToPP::m_ESDdb
EndcapSectorDB m_ESDdb
Definition: TGCCableASDToPP.h:76
CaloCondBlobAlgs_fillNoiseFromASCII.db
db
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:43
MuonTGC_Cabling::TGCCable::PPToSLB
@ PPToSLB
Definition: TGCCable.h:19
MuonTGC_Cabling::TGCChannelId::ChannelIdType::ASDOut
@ ASDOut
skel.it
it
Definition: skel.GENtoEVGEN.py:423
MuonTGC_Cabling::TGCId::MaxSideType
@ MaxSideType
Definition: TGCId.h:46
MuonTGC_Cabling::TGCId::NUM_INNER_SECTOR
static constexpr int NUM_INNER_SECTOR
Definition: TGCId.h:42
MuonTGC_Cabling::TGCCableASDToPP::m_FSIdb
InnerSectorDB m_FSIdb
Definition: TGCCableASDToPP.h:73
MuonTGC_Cabling::TGCCableASDToPP::updateIndividualDatabase
StatusCode updateIndividualDatabase(const int side, const int sector, const std::string &blockname, std::shared_ptr< TGCDatabaseASDToPP > &database)
Definition: TGCCableASDToPP.cxx:365
MuonTGC_Cabling::TGCCable::TGCCable
TGCCable(CableType type=NoCableType)
Definition: TGCCable.h:24
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
MuonTGC_Cabling::TGCId::SD
@ SD
Definition: TGCId.h:47
TRT::Hit::side
@ side
Definition: HitInfo.h:83
MuonTGC_Cabling::TGCId::NUM_FORWARD_SECTOR
static constexpr int NUM_FORWARD_SECTOR
Definition: TGCId.h:41
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
python.PyAthena.module
module
Definition: PyAthena.py:134
MuonTGC_Cabling::TGCCable::ASDToPP
@ ASDToPP
Definition: TGCCable.h:19
MuonTGC_Cabling::TGCCable::InSLB
@ InSLB
Definition: TGCCable.h:19
lumiFormat.i
int i
Definition: lumiFormat.py:92
python.DecayParser.buf
buf
print ("=> [%s]"cmd)
Definition: DecayParser.py:27
python.subdetectors.mmg.database
database
Definition: mmg.py:6
MuonTGC_Cabling::TGCCable::MaxCableType
@ MaxCableType
Definition: TGCCable.h:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonTGC_Cabling::TGCId::WT
@ WT
Definition: TGCId.h:47
MuonTGC_Cabling::TGCCable::m_type
CableType m_type
Definition: TGCCable.h:43
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
MuonTGC_Cabling::TGCCableASDToPP::m_EWTdb
EndcapSectorDB m_EWTdb
Definition: TGCCableASDToPP.h:77
MuonTGC_Cabling::TGCCableASDToPP::getChannelIn
virtual TGCChannelId * getChannelIn(const TGCChannelId *ppin, bool orChannel=false) const
Definition: TGCCableASDToPP.cxx:261
MuonTGC_Cabling::TGCCable::SLBToSSW
@ SLBToSSW
Definition: TGCCable.h:20
MuonTGC_Cabling::TGCCableASDToPP::m_FWIdb
InnerSectorDB m_FWIdb
Definition: TGCCableASDToPP.h:72
MuonTGC_Cabling::TGCId::WD
@ WD
Definition: TGCId.h:47
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
python.egammaTruthD3PDObject.blockname
blockname
Definition: egammaTruthD3PDObject.py:64
MuonTGC_Cabling::TGCCableASDToPP::m_EWDdb
EndcapSectorDB m_EWDdb
Definition: TGCCableASDToPP.h:75
MuonTGC_Cabling::TGCId::Endcap
@ Endcap
Definition: TGCId.h:53
MuonTGC_Cabling::TGCId::WI
@ WI
Definition: TGCId.h:47
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
MuonTGC_Cabling::TGCCableASDToPP::m_tgcCablingDbTool
ToolHandle< ITGCCablingDbTool > m_tgcCablingDbTool
Definition: TGCCableASDToPP.h:60
MuonTGC_Cabling::TGCCableASDToPP::m_FWTdb
ForwardSectorDB m_FWTdb
Definition: TGCCableASDToPP.h:70
MuonTGC_Cabling::TGCCable::HPBToSL
@ HPBToSL
Definition: TGCCable.h:20
MuonTGC_Cabling::TGCCable::SSWToROD
@ SSWToROD
Definition: TGCCable.h:20
MuonTGC_Cabling::TGCId::ST
@ ST
Definition: TGCId.h:47
MuonTGC_Cabling::TGCCableASDToPP::m_ESTdb
EndcapSectorDB m_ESTdb
Definition: TGCCableASDToPP.h:78
MuonTGC_Cabling::TGCCable::SLBToHPB
@ SLBToHPB
Definition: TGCCable.h:20
MuonTGC_Cabling::TGCId::NUM_ENDCAP_SECTOR
static constexpr int NUM_ENDCAP_SECTOR
Definition: TGCId.h:40
MuonTGC_Cabling::TGCCable::InPP
@ InPP
Definition: TGCCable.h:19
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
MuonTGC_Cabling::TGCCableASDToPP::m_ESIdb
InnerSectorDB m_ESIdb
Definition: TGCCableASDToPP.h:80
MuonTGC_Cabling::TGCChannelId::ChannelIdType::PPIn
@ PPIn
MuonTGC_Cabling::TGCCableASDToPP::getDatabase
TGCDatabaseASDToPP * getDatabase(const int side, const int region, const int sector, const int module) const
Definition: TGCCableASDToPP.cxx:187
MuonTGC_Cabling::TGCId::Forward
@ Forward
Definition: TGCId.h:53
MuonTGC_Cabling::TGCCableASDToPP::s_stripForward
static const int s_stripForward[]
Definition: TGCCableASDToPP.h:58
MuonTGC_Cabling::TGCCableASDToPP::initialize
void initialize(const std::string &filename)
Definition: TGCCableASDToPP.cxx:29
MuonTGC_Cabling::TGCCableASDToPP::m_EWIdb
InnerSectorDB m_EWIdb
Definition: TGCCableASDToPP.h:79