Main Page
Namespaces
Classes
Package Documentation
CalibTracker
SiStripAPVAnalysis
src
TkCommonModeTopology.cc
Go to the documentation of this file.
1
#include "
CalibTracker/SiStripAPVAnalysis/interface/TkCommonModeTopology.h
"
2
3
int
TkCommonModeTopology::setOfStrip
(
int
in
) {
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
TkCommonModeTopology::initStrips
std::vector< int > initStrips
Definition:
TkCommonModeTopology.h:33
mps_fire.i
i
Definition:
mps_fire.py:330
TkCommonModeTopology::setOfStrip
int setOfStrip(int)
Definition:
TkCommonModeTopology.cc:3
TkCommonModeTopology::numberStrips
int numberStrips
Definition:
TkCommonModeTopology.h:31
TkCommonModeTopology::initialStrips
std::vector< int > & initialStrips()
Definition:
TkCommonModeTopology.h:27
TkCommonModeTopology::TkCommonModeTopology
TkCommonModeTopology(int nstrips, int nstripsperset)
Definition:
TkCommonModeTopology.cc:10
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
TkCommonModeTopology.h
TkCommonModeTopology::finalStrips
std::vector< int > & finalStrips()
Definition:
TkCommonModeTopology.h:28
TkCommonModeTopology::numberStripsPerSet
int numberStripsPerSet
Definition:
TkCommonModeTopology.h:32
TkCommonModeTopology::numberOfSets
int numberOfSets() const
Definition:
TkCommonModeTopology.h:23
TkCommonModeTopology::numberOfStripsPerSet
int numberOfStripsPerSet() const
Definition:
TkCommonModeTopology.h:21
TkCommonModeTopology::finStrips
std::vector< int > finStrips
Definition:
TkCommonModeTopology.h:34
Generated for CMSSW Reference Manual by
1.8.11