CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/DPGAnalysis/SiStripTools/interface/APVCyclePhaseCollection.h

Go to the documentation of this file.
00001 #ifndef DPGAnalysis_SiStripTools_APVCyclePhaseCollection_h
00002 #define DPGAnalysis_SiStripTools_APVCyclePhaseCollection_h
00003 
00004 #include <string>
00005 #include <map>
00006 #include <vector>
00007 
00008 
00009 class APVCyclePhaseCollection {
00010 
00011  public:
00012   APVCyclePhaseCollection(): _apvmap() { };
00013   ~APVCyclePhaseCollection() { };
00014 
00015   const std::map<std::string,int>& get() const { return _apvmap; };
00016 
00017   std::map<std::string,int>& get() { return _apvmap; };
00018 
00019   const int getPhase(const std::string partition) const;
00020 
00021   const std::vector<int> getPhases(const std::string partition) const;
00022 
00023   enum{nopartition=-91,multiphase=-92,invalid=-99};
00024 
00025  private:
00026 
00027 
00028   std::map<std::string,int> _apvmap;
00029 
00030 };
00031 
00032 #endif // DPGAnalysis_SiStripTools_APVCyclePhaseCollection_h