File indexing completed on 2024-09-07 04:36:00
0001 #ifndef DPGAnalysis_SiStripTools_APVCyclePhaseCollection_h
0002 #define DPGAnalysis_SiStripTools_APVCyclePhaseCollection_h
0003
0004 #include <string>
0005 #include <map>
0006 #include <vector>
0007
0008 class APVCyclePhaseCollection {
0009 public:
0010 APVCyclePhaseCollection() : _apvmap() {}
0011 ~APVCyclePhaseCollection() {}
0012
0013 const std::map<std::string, int>& get() const { return _apvmap; };
0014
0015 std::map<std::string, int>& get() { return _apvmap; };
0016
0017 const int getPhase(const std::string partition) const;
0018
0019 const std::vector<int> getPhases(const std::string partition) const;
0020
0021 enum { nopartition = -91, multiphase = -92, empty = -98, invalid = -99 };
0022
0023 private:
0024 std::map<std::string, int> _apvmap;
0025 };
0026
0027 #endif