Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:15:06

0001 #ifndef CaloOnlineTools_HcalOnlineDb_HcalChannelIterator_h
0002 #define CaloOnlineTools_HcalOnlineDb_HcalChannelIterator_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     HcalOnlineDb
0006 // Class  :     HcalChannelIterator
0007 //
0008 /**\class HcalChannelIterator HcalChannelIterator.h CaloOnlineTools/HcalOnlineDb/interface/HcalChannelIterator.h
0009 
0010  Description: Iterators over HCAL channels using various sources
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Gena Kukartsev
0018 //         Created:  Fri Jul 10 16:59:15 CEST 2009
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   //_____iterator methods __________________________
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