CMS 3D CMS Logo

HcalChannelIterator.h
Go to the documentation of this file.
1 #ifndef CaloOnlineTools_HcalOnlineDb_HcalChannelIterator_h
2 #define CaloOnlineTools_HcalOnlineDb_HcalChannelIterator_h
3 // -*- C++ -*-
4 //
5 // Package: HcalOnlineDb
6 // Class : HcalChannelIterator
7 //
16 //
17 // Original Author: Gena Kukartsev
18 // Created: Fri Jul 10 16:59:15 CEST 2009
19 //
20 
21 #include <iostream>
22 #include <string>
23 #include <vector>
25 
26 
28 {
29 
30  public:
32  virtual ~HcalChannelIterator();
33 
34  int clearChannelList(void);
35  int size(void);
37  int initHBEFListFromLmapAscii(void);
38  int init(const std::vector<HcalGenericDetId>& map);
39 
40  //
41  //_____iterator methods __________________________
42  //
43  int begin(void);
44  int next(void);
45  bool end(void);
48  int getIeta(void);
49  int getIphi(void);
50  int getDepth(void);
51 
52  private:
53 
54  std::vector<HcalGenericDetId> channel_list;
55  std::vector<HcalGenericDetId>::const_iterator const_iterator;
56 
57 };
58 
59 
60 #endif
std::vector< HcalGenericDetId > channel_list
int addListFromLmapAscii(std::string filename)
int init(const std::vector< HcalGenericDetId > &map)
HcalSubdetector
Definition: HcalAssistant.h:31
HcalGenericDetId getHcalGenericDetId(void)
std::vector< HcalGenericDetId >::const_iterator const_iterator
HcalSubdetector getHcalSubdetector(void)