00001 #ifndef TkCommonMode_H 00002 #define TkCommonMode_H 00003 00004 #include "CalibTracker/SiStripAPVAnalysis/interface/ApvAnalysis.h" 00005 #include "CalibTracker/SiStripAPVAnalysis/interface/TkCommonModeTopology.h" 00006 00007 #include <vector> 00013 class TkCommonMode { 00014 public: 00015 virtual ~TkCommonMode(){} 00016 00017 virtual TkCommonModeTopology& topology() {return *myTkCommonModeTopology;} 00018 virtual void setTopology(TkCommonModeTopology* in) {myTkCommonModeTopology = in;} 00019 00021 void setCommonMode(const std::vector<float>& in) {theCommonMode = in;} 00023 std::vector<float> returnAsVector() const {return theCommonMode;} 00025 std::vector<float> toVector() const; // This return a full vector, with duplicates... 00026 private: 00027 TkCommonModeTopology* myTkCommonModeTopology; 00028 std::vector<float> theCommonMode; 00029 }; 00030 00031 #endif