CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TkCommonModeTopology.cc
Go to the documentation of this file.
2 
4  for (int i = 0; i<numberOfSets(); i++){
5  if (in >=initialStrips()[i] && in <= finalStrips()[i]) return i;
6  }
7  return -1;
8 }
9 
10 TkCommonModeTopology::TkCommonModeTopology(int nstrips, int nstripsperset) : numberStrips(nstrips),
11  numberStripsPerSet(nstripsperset){
12  initStrips.clear();
13  finStrips.clear();
14  for (int i=0; i<numberOfSets(); i++){
15  initStrips.push_back(i*numberOfStripsPerSet());
16  finStrips.push_back((i+1)*numberOfStripsPerSet()-1);
17  }
18 }
19 
20 
21 
int i
Definition: DBlmapReader.cc:9
std::vector< int > initStrips
std::vector< int > & initialStrips()
TkCommonModeTopology(int nstrips, int nstripsperset)
std::vector< int > & finalStrips()
int numberOfStripsPerSet() const
std::vector< int > finStrips