CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CalibTracker/SiStripAPVAnalysis/interface/TkCommonModeTopology.h

Go to the documentation of this file.
00001 #ifndef TkCommonModeTopology_h
00002 #define TkCommonModeTopology_h
00003 
00004 #include <vector>
00008 class TkCommonModeTopology{
00009  public:
00010   
00011   TkCommonModeTopology(int nstrips, int nstripsperset);
00012   
00014   void setNumberOfStrips(int in) {numberStrips = in;} 
00016   void setNumberOfStripsPerSet(int in) {numberStripsPerSet = in;}   
00018   void setNumberOfSets (int in) {numberStripsPerSet = numberStrips/in;}
00019   
00020   int numberOfStrips() const {return numberStrips;}
00021   int numberOfStripsPerSet() const {return numberStripsPerSet;}
00022 
00023   int numberOfSets() const {return numberStrips/numberStripsPerSet;}
00024 
00025   int setOfStrip(int);
00026   
00027   std::vector<int>& initialStrips(){return initStrips;}
00028   std::vector<int>& finalStrips(){return finStrips;}
00029   
00030  private:
00031   int numberStrips;
00032   int numberStripsPerSet;
00033   std::vector<int>initStrips;
00034   std::vector<int>finStrips;
00035 };
00036 
00037 #endif