ATLAS Offline Software
Loading...
Searching...
No Matches
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>
7void 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}
This file defines a class to map FEB IDs and channel ids.
std::vector< FEBId > FEBIdVector
void dump(std::ostream &o, const LArOnlineID *onlineID=NULL) const
ChannelMap m_febIdVecs
File map from existing ChannelMap - e.g. on read back.
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
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...
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
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...