31 int _current_size =
size();
35 std::cout <<
"Unable to open file with the logical map: " <<
filename << std::endl;
37 std::cout <<
"File with the logical map opened successfully: " <<
filename << std::endl;
39 while (getline(inFile, _row)) {
41 int _num, _side, _eta, _phi, _dphi, _depth;
45 const char* _format =
"%d %d %d %d %d %d %s";
46 _read = sscanf(_row.c_str(), _format, &_num, &_side, &_eta, &_phi, &_dphi, &_depth, subdetbuf);
53 if (subdet.find(
"HB") != std::string::npos)
55 else if (subdet.find(
"HE") != std::string::npos)
57 else if (subdet.find(
"HO") != std::string::npos)
59 else if (subdet.find(
"HF") != std::string::npos)
64 HcalDetId _detid(_det, _side * _eta, _phi, _depth);
72 std::cout <<
"Logical map file: " <<
lines.getCount() <<
" lines read" << std::endl;
73 std::cout <<
"Logical map file: " <<
size() - _current_size <<
" lines added to the list" << std::endl;
int initHBEFListFromLmapAscii(void)
std::vector< HcalGenericDetId > channel_list
constexpr HcalSubdetector subdet() const
get the subdetector
int addListFromLmapAscii(std::string filename)
int init(const std::vector< HcalGenericDetId > &map)
constexpr int ieta() const
get the cell ieta
HcalGenericDetId getHcalGenericDetId(void)
virtual ~HcalChannelIterator()
constexpr int iphi() const
get the cell iphi
std::vector< HcalGenericDetId >::const_iterator const_iterator
int clearChannelList(void)
HcalSubdetector getHcalSubdetector(void)
constexpr int depth() const
get the tower depth