Public Member Functions | |
float | ampl () const |
Amplitude (float amp, const PSimHit *hitp, float frac) | |
Amplitude () | |
const std::vector< const PSimHit * > & | hits () |
std::vector< float > | individualampl () const |
operator float () const | |
void | operator+= (const float &) |
void | operator+= (const Amplitude &other) |
void | set (const float amplitude) |
Private Attributes | |
float | _amp |
std::vector< float > | _frac |
std::vector< const PSimHit * > | _hits |
Definition at line 163 of file SiPixelDigitizerAlgorithm.h.
SiPixelDigitizerAlgorithm::Amplitude::Amplitude | ( | ) | [inline] |
SiPixelDigitizerAlgorithm::Amplitude::Amplitude | ( | float | amp, | |
const PSimHit * | hitp, | |||
float | frac | |||
) | [inline] |
float SiPixelDigitizerAlgorithm::Amplitude::ampl | ( | ) | const [inline] |
const std::vector<const PSimHit*>& SiPixelDigitizerAlgorithm::Amplitude::hits | ( | ) | [inline] |
Definition at line 180 of file SiPixelDigitizerAlgorithm.h.
References _hits.
00180 { return _hits;}
std::vector<float> SiPixelDigitizerAlgorithm::Amplitude::individualampl | ( | ) | const [inline] |
SiPixelDigitizerAlgorithm::Amplitude::operator float | ( | ) | const [inline] |
void SiPixelDigitizerAlgorithm::Amplitude::operator+= | ( | const float & | amp | ) | [inline] |
Definition at line 192 of file SiPixelDigitizerAlgorithm.h.
References _amp.
00192 { 00193 _amp += amp; 00194 }
Definition at line 182 of file SiPixelDigitizerAlgorithm.h.
References _amp, _frac, and _hits.
00182 { 00183 _amp += other._amp; 00184 //in case of contribution of noise to the digi 00185 //the MC information are removed 00186 if (other._frac[0]>-0.5){ 00187 _hits.insert( _hits.end(), other._hits.begin(), other._hits.end()); 00188 _frac.insert(_frac.end(), other._frac.begin(), other._frac.end()); 00189 } 00190 }
void SiPixelDigitizerAlgorithm::Amplitude::set | ( | const float | amplitude | ) | [inline] |
Definition at line 196 of file SiPixelDigitizerAlgorithm.h.
References _amp.
00196 { // Used to reset the amplitude 00197 _amp = amplitude; 00198 }
float SiPixelDigitizerAlgorithm::Amplitude::_amp [private] |
Definition at line 203 of file SiPixelDigitizerAlgorithm.h.
Referenced by ampl(), operator float(), operator+=(), and set().
std::vector<float> SiPixelDigitizerAlgorithm::Amplitude::_frac [private] |
Definition at line 205 of file SiPixelDigitizerAlgorithm.h.
Referenced by Amplitude(), individualampl(), and operator+=().
std::vector<const PSimHit*> SiPixelDigitizerAlgorithm::Amplitude::_hits [private] |
Definition at line 204 of file SiPixelDigitizerAlgorithm.h.
Referenced by Amplitude(), hits(), and operator+=().