CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/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