CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/CalibTracker/SiStripAPVAnalysis/src/TkCommonModeTopology.cc

Go to the documentation of this file.
00001 #include "CalibTracker/SiStripAPVAnalysis/interface/TkCommonModeTopology.h"
00002 
00003 int TkCommonModeTopology::setOfStrip(int in) {
00004   for (int i = 0; i<numberOfSets(); i++){
00005     if (in >=initialStrips()[i] && in <= finalStrips()[i]) return i;
00006   }
00007   return -1;
00008 }
00009 
00010 TkCommonModeTopology::TkCommonModeTopology(int nstrips, int nstripsperset) : numberStrips(nstrips), 
00011   numberStripsPerSet(nstripsperset){
00012   initStrips.clear();
00013   finStrips.clear();
00014   for (int i=0; i<numberOfSets(); i++){
00015     initStrips.push_back(i*numberOfStripsPerSet());
00016     finStrips.push_back((i+1)*numberOfStripsPerSet()-1);
00017   }
00018 }
00019 
00020 
00021