#include <CalibTracker/SiStripAPVAnalysis/interface/TkCommonModeTopology.h>
Public Member Functions | |
std::vector< int > & | finalStrips () |
std::vector< int > & | initialStrips () |
int | numberOfSets () const |
int | numberOfStrips () const |
int | numberOfStripsPerSet () const |
void | setNumberOfSets (int in) |
Set number of independent groups of strips in APV for CM. | |
void | setNumberOfStrips (int in) |
Set number of strips in an APV = 128. | |
void | setNumberOfStripsPerSet (int in) |
Set number of strips in each group for which CM is to be found. | |
int | setOfStrip (int) |
TkCommonModeTopology (int nstrips, int nstripsperset) | |
Private Attributes | |
std::vector< int > | finStrips |
std::vector< int > | initStrips |
int | numberStrips |
int | numberStripsPerSet |
...
Definition at line 8 of file TkCommonModeTopology.h.
Definition at line 10 of file TkCommonModeTopology.cc.
References finStrips, i, initStrips, numberOfSets(), and numberOfStripsPerSet().
00010 : 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 }
std::vector<int>& TkCommonModeTopology::finalStrips | ( | ) | [inline] |
Definition at line 28 of file TkCommonModeTopology.h.
References finStrips.
Referenced by TT6CommonModeCalculator::calculateCommonMode(), and setOfStrip().
00028 {return finStrips;}
std::vector<int>& TkCommonModeTopology::initialStrips | ( | ) | [inline] |
Definition at line 27 of file TkCommonModeTopology.h.
References initStrips.
Referenced by TT6CommonModeCalculator::calculateCommonMode(), and setOfStrip().
00027 {return initStrips;}
int TkCommonModeTopology::numberOfSets | ( | ) | const [inline] |
Definition at line 23 of file TkCommonModeTopology.h.
References numberStrips, and numberStripsPerSet.
Referenced by TT6CommonModeCalculator::calculateCommonMode(), setOfStrip(), and TkCommonModeTopology().
00023 {return numberStrips/numberStripsPerSet;}
int TkCommonModeTopology::numberOfStrips | ( | ) | const [inline] |
Definition at line 20 of file TkCommonModeTopology.h.
References numberStrips.
Referenced by TkCommonMode::toVector().
00020 {return numberStrips;}
int TkCommonModeTopology::numberOfStripsPerSet | ( | ) | const [inline] |
Definition at line 21 of file TkCommonModeTopology.h.
References numberStripsPerSet.
Referenced by TkCommonModeTopology().
00021 {return numberStripsPerSet;}
Set number of independent groups of strips in APV for CM.
Definition at line 18 of file TkCommonModeTopology.h.
References numberStrips, and numberStripsPerSet.
00018 {numberStripsPerSet = numberStrips/in;}
Set number of strips in an APV = 128.
Definition at line 14 of file TkCommonModeTopology.h.
References numberStrips.
00014 {numberStrips = in;}
Set number of strips in each group for which CM is to be found.
Definition at line 16 of file TkCommonModeTopology.h.
References numberStripsPerSet.
00016 {numberStripsPerSet = in;}
Definition at line 3 of file TkCommonModeTopology.cc.
References finalStrips(), i, initialStrips(), and numberOfSets().
Referenced by TT6CommonModeCalculator::doIt(), MedianCommonModeCalculator::doIt(), and TkCommonMode::toVector().
00003 { 00004 for (int i = 0; i<numberOfSets(); i++){ 00005 if (in >=initialStrips()[i] && in <= finalStrips()[i]) return i; 00006 } 00007 return -1; 00008 }
std::vector<int> TkCommonModeTopology::finStrips [private] |
Definition at line 34 of file TkCommonModeTopology.h.
Referenced by finalStrips(), and TkCommonModeTopology().
std::vector<int> TkCommonModeTopology::initStrips [private] |
Definition at line 33 of file TkCommonModeTopology.h.
Referenced by initialStrips(), and TkCommonModeTopology().
int TkCommonModeTopology::numberStrips [private] |
Definition at line 31 of file TkCommonModeTopology.h.
Referenced by numberOfSets(), numberOfStrips(), setNumberOfSets(), and setNumberOfStrips().
int TkCommonModeTopology::numberStripsPerSet [private] |
Definition at line 32 of file TkCommonModeTopology.h.
Referenced by numberOfSets(), numberOfStripsPerSet(), setNumberOfSets(), and setNumberOfStripsPerSet().