CMS 3D CMS Logo

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])
6  return i;
7  }
8  return -1;
9 }
10 
11 TkCommonModeTopology::TkCommonModeTopology(int nstrips, int nstripsperset)
12  : numberStrips(nstrips), numberStripsPerSet(nstripsperset) {
13  initStrips.clear();
14  finStrips.clear();
15  for (int i = 0; i < numberOfSets(); i++) {
16  initStrips.push_back(i * numberOfStripsPerSet());
17  finStrips.push_back((i + 1) * numberOfStripsPerSet() - 1);
18  }
19 }
TkCommonModeTopology::initialStrips
std::vector< int > & initialStrips()
Definition: TkCommonModeTopology.h:26
mps_fire.i
i
Definition: mps_fire.py:355
TkCommonModeTopology::initStrips
std::vector< int > initStrips
Definition: TkCommonModeTopology.h:32
TkCommonModeTopology::setOfStrip
int setOfStrip(int)
Definition: TkCommonModeTopology.cc:3
TkCommonModeTopology::TkCommonModeTopology
TkCommonModeTopology(int nstrips, int nstripsperset)
Definition: TkCommonModeTopology.cc:11
TkCommonModeTopology::finalStrips
std::vector< int > & finalStrips()
Definition: TkCommonModeTopology.h:27
TkCommonModeTopology::numberOfSets
int numberOfSets() const
Definition: TkCommonModeTopology.h:22
recoMuon::in
Definition: RecoMuonEnumerators.h:6
TkCommonModeTopology::numberOfStripsPerSet
int numberOfStripsPerSet() const
Definition: TkCommonModeTopology.h:20
TkCommonModeTopology::finStrips
std::vector< int > finStrips
Definition: TkCommonModeTopology.h:33
TkCommonModeTopology.h