File indexing completed on 2024-04-06 12:00:06
0001 #ifndef CaloOnlineTools_HcalOnlineDb_HcalChannelIterator_h
0002 #define CaloOnlineTools_HcalOnlineDb_HcalChannelIterator_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #include <iostream>
0022 #include <string>
0023 #include <vector>
0024 #include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
0025
0026 class HcalChannelIterator {
0027 public:
0028 HcalChannelIterator();
0029 virtual ~HcalChannelIterator();
0030
0031 int clearChannelList(void);
0032 int size(void);
0033 int addListFromLmapAscii(std::string filename);
0034 int initHBEFListFromLmapAscii(void);
0035 int init(const std::vector<HcalGenericDetId>& map);
0036
0037
0038
0039
0040 int begin(void);
0041 int next(void);
0042 bool end(void);
0043 HcalGenericDetId getHcalGenericDetId(void);
0044 HcalSubdetector getHcalSubdetector(void);
0045 int getIeta(void);
0046 int getIphi(void);
0047 int getDepth(void);
0048
0049 private:
0050 std::vector<HcalGenericDetId> channel_list;
0051 std::vector<HcalGenericDetId>::const_iterator const_iterator;
0052 };
0053
0054 #endif