ATLAS Offline Software
LArCondFEBIdChanMap.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <iomanip>
7 void LArCondFEBIdChanMap::dump(std::ostream& out, const LArOnlineID* onlineID) const {
8 
9  //FEBIdMap::const_iterator itmap->
10  //ChannelMap::const_iterator itmap=m_febIdVecs->begin();
11  //ChannelMap::const_iterator itmap_e=m_febIdVecs->end();
12  for (unsigned int iCoolChannel=0;iCoolChannel<m_febIdVecs.size();iCoolChannel++) {
13  out << "Cool Channel #:" << std::setw(3) << iCoolChannel << " FEB id:" << std::endl;
14  const FEBIdVector& febIdVec=m_febIdVecs[iCoolChannel];
15  FEBIdVector::const_iterator it=febIdVec.begin();
16  FEBIdVector::const_iterator it_e=febIdVec.end();
17  for (;it!=it_e;++it) {
18  out << " " << (*it) << "(0x" << std::hex << *it << std::dec << ")";
19  if (onlineID) {
20  const HWIdentifier hwid((*it));
21  int barrel_ec = onlineID->barrel_ec(hwid);
22  std::string bc;
23  if (barrel_ec==0)
24  bc="Barrel";
25  else if (barrel_ec==1)
26  bc="Endcap";
27  else
28  bc="unknown";
29 
30  int pos_neg = onlineID->pos_neg(hwid);
31  std::string pn;
32  if (pos_neg==0)
33  pn="C-Side";
34  else if (pos_neg==1)
35  pn="A-Side";
36  else
37  pn="unknown";
38  int FT = onlineID->feedthrough(hwid);
39  int slot = onlineID->slot(hwid);
40  out << " (" << bc << "/" << pn << "/FT=" << FT << "/Slot=" << slot << ")";
41  }
42  out << std::endl;
43  }
44  out << std::endl;
45  }
46  out.flush();
47 }
LArCondFEBIdChanMap.h
This file defines a class to map FEB IDs and channel ids.
skel.it
it
Definition: skel.GENtoEVGEN.py:396
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
LArOnlineID_Base::slot
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
Definition: LArOnlineID_Base.cxx:1957
HWIdentifier
Definition: HWIdentifier.h:13
LArOnlineID_Base::barrel_ec
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
Definition: LArOnlineID_Base.cxx:1938
python.ZdcRecConfig.pn
pn
Definition: ZdcRecConfig.py:524
LArOnlineID_Base::pos_neg
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
Definition: LArOnlineID_Base.cxx:1950
LArOnlineID
Definition: LArOnlineID.h:20
LArCondFEBIdChanMap::dump
void dump(std::ostream &o, const LArOnlineID *onlineID=NULL) const
Definition: LArCondFEBIdChanMap.cxx:7
LArCondFEBIdChanMap::FEBIdVector
std::vector< FEBId > FEBIdVector
Definition: LArCondFEBIdChanMap.h:54
LArNewCalib_Delay_OFC_Cali.FT
FT
Definition: LArNewCalib_Delay_OFC_Cali.py:124
LArOnlineID_Base::feedthrough
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
Definition: LArOnlineID_Base.cxx:1944
LArCondFEBIdChanMap::m_febIdVecs
ChannelMap m_febIdVecs
File map from existing ChannelMap - e.g. on read back.
Definition: LArCondFEBIdChanMap.h:152