Public Member Functions | |
float | ampl () const |
Amplitude () | |
Amplitude (float amp, float frac) | |
Amplitude (float amp, const PSimHit *hitp, float frac) | |
const EncodedEventId & | eventId () const |
const std::shared_ptr < SimHitInfoForLinks > & | hitInfo () const |
std::vector< float > | individualampl () const |
operator float () const | |
void | operator+= (const float &) |
void | operator+= (const Amplitude &other) |
void | set (const float amplitude) |
const std::vector< unsigned int > & | trackIds () const |
Private Attributes | |
float | _amp |
std::vector< float > | _frac |
std::shared_ptr < SimHitInfoForLinks > | _hitInfo |
Definition at line 82 of file SiPixelDigitizerAlgorithm.h.
SiPixelDigitizerAlgorithm::Amplitude::Amplitude | ( | ) | [inline] |
Definition at line 84 of file SiPixelDigitizerAlgorithm.h.
: _amp(0.0) {}
SiPixelDigitizerAlgorithm::Amplitude::Amplitude | ( | float | amp, |
float | frac | ||
) | [inline] |
SiPixelDigitizerAlgorithm::Amplitude::Amplitude | ( | float | amp, |
const PSimHit * | hitp, | ||
float | frac | ||
) | [inline] |
Definition at line 94 of file SiPixelDigitizerAlgorithm.h.
float SiPixelDigitizerAlgorithm::Amplitude::ampl | ( | ) | const [inline] |
const EncodedEventId& SiPixelDigitizerAlgorithm::Amplitude::eventId | ( | ) | const [inline] |
Definition at line 131 of file SiPixelDigitizerAlgorithm.h.
References _hitInfo.
{ return _hitInfo->eventId_; }
const std::shared_ptr<SimHitInfoForLinks>& SiPixelDigitizerAlgorithm::Amplitude::hitInfo | ( | ) | const [inline] |
std::vector<float> SiPixelDigitizerAlgorithm::Amplitude::individualampl | ( | ) | const [inline] |
SiPixelDigitizerAlgorithm::Amplitude::operator float | ( | ) | const [inline] |
void SiPixelDigitizerAlgorithm::Amplitude::operator+= | ( | const float & | amp | ) | [inline] |
void SiPixelDigitizerAlgorithm::Amplitude::operator+= | ( | const Amplitude & | other | ) | [inline] |
Definition at line 114 of file SiPixelDigitizerAlgorithm.h.
References _amp, _frac, _hitInfo, and trackIds().
{ _amp += other._amp; //in case of contribution of noise to the digi //the MC information are removed if (other._frac[0]>-0.5){ if(other._hitInfo) { std::vector<unsigned int>& otherTrackIds = other._hitInfo->trackIds_; if(_hitInfo) { std::vector<unsigned int>& trackIds = _hitInfo->trackIds_; trackIds.insert(trackIds.end(), otherTrackIds.begin(), otherTrackIds.end()); } else { _hitInfo.reset(new SimHitInfoForLinks(*other._hitInfo)); } } _frac.insert(_frac.end(), other._frac.begin(), other._frac.end()); } }
void SiPixelDigitizerAlgorithm::Amplitude::set | ( | const float | amplitude | ) | [inline] |
Definition at line 138 of file SiPixelDigitizerAlgorithm.h.
References _amp.
{ // Used to reset the amplitude _amp = amplitude; }
const std::vector<unsigned int>& SiPixelDigitizerAlgorithm::Amplitude::trackIds | ( | ) | const [inline] |
Definition at line 109 of file SiPixelDigitizerAlgorithm.h.
References _hitInfo.
Referenced by operator+=().
{ return _hitInfo->trackIds_; }
float SiPixelDigitizerAlgorithm::Amplitude::_amp [private] |
Definition at line 145 of file SiPixelDigitizerAlgorithm.h.
Referenced by ampl(), operator float(), operator+=(), and set().
std::vector<float> SiPixelDigitizerAlgorithm::Amplitude::_frac [private] |
Definition at line 146 of file SiPixelDigitizerAlgorithm.h.
Referenced by Amplitude(), individualampl(), and operator+=().
std::shared_ptr<SimHitInfoForLinks> SiPixelDigitizerAlgorithm::Amplitude::_hitInfo [private] |
Definition at line 147 of file SiPixelDigitizerAlgorithm.h.
Referenced by Amplitude(), eventId(), hitInfo(), operator+=(), and trackIds().