CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiPixelDigitizerAlgorithm::Amplitude Class Reference

List of all members.

Public Member Functions

float ampl () const
 Amplitude ()
 Amplitude (float amp, const PSimHit *hitp, float frac)
const std::vector< const
PSimHit * > & 
hits ()
std::vector< float > individualampl () const
 operator float () const
void operator+= (const float &amp)
void operator+= (const Amplitude &other)
void set (const float amplitude)

Private Attributes

float _amp
std::vector< float > _frac
std::vector< const PSimHit * > _hits

Detailed Description

Internal use only.

Definition at line 176 of file SiPixelDigitizerAlgorithm.h.


Constructor & Destructor Documentation

SiPixelDigitizerAlgorithm::Amplitude::Amplitude ( ) [inline]

Definition at line 178 of file SiPixelDigitizerAlgorithm.h.

References _hits.

: _amp(0.0) { _hits.reserve(1);}
SiPixelDigitizerAlgorithm::Amplitude::Amplitude ( float  amp,
const PSimHit hitp,
float  frac 
) [inline]

Definition at line 179 of file SiPixelDigitizerAlgorithm.h.

References _frac, and _hits.

                                                           :
      _amp(amp), _hits(1, hitp), _frac(1,frac) {

    //in case of digi from noisypixels
      //the MC information are removed 
      if (_frac[0]<-0.5) {
        _frac.pop_back();
        _hits.pop_back();
     }

    }

Member Function Documentation

float SiPixelDigitizerAlgorithm::Amplitude::ampl ( ) const [inline]

Definition at line 193 of file SiPixelDigitizerAlgorithm.h.

References _amp.

{return _amp;}
const std::vector<const PSimHit*>& SiPixelDigitizerAlgorithm::Amplitude::hits ( ) [inline]

Definition at line 195 of file SiPixelDigitizerAlgorithm.h.

References _hits.

{ return _hits;}
std::vector<float> SiPixelDigitizerAlgorithm::Amplitude::individualampl ( ) const [inline]

Definition at line 194 of file SiPixelDigitizerAlgorithm.h.

References _frac.

{return _frac;}
SiPixelDigitizerAlgorithm::Amplitude::operator float ( ) const [inline]

Definition at line 192 of file SiPixelDigitizerAlgorithm.h.

References _amp.

{ return _amp;}
void SiPixelDigitizerAlgorithm::Amplitude::operator+= ( const Amplitude other) [inline]

Definition at line 197 of file SiPixelDigitizerAlgorithm.h.

References _amp, _frac, and _hits.

                                             {
      _amp += other._amp;
      //in case of contribution of noise to the digi
      //the MC information are removed 
      if (other._frac[0]>-0.5){
        _hits.insert( _hits.end(), other._hits.begin(), other._hits.end());
        _frac.insert(_frac.end(), other._frac.begin(), other._frac.end());
      }
   }
void SiPixelDigitizerAlgorithm::Amplitude::operator+= ( const float &  amp) [inline]

Definition at line 207 of file SiPixelDigitizerAlgorithm.h.

References _amp.

                                       {
      _amp += amp;
    }
void SiPixelDigitizerAlgorithm::Amplitude::set ( const float  amplitude) [inline]

Definition at line 211 of file SiPixelDigitizerAlgorithm.h.

References _amp.

                                     {  // Used to reset the amplitude
      _amp = amplitude;
    }

Member Data Documentation

Definition at line 218 of file SiPixelDigitizerAlgorithm.h.

Referenced by ampl(), operator float(), operator+=(), and set().

std::vector<float> SiPixelDigitizerAlgorithm::Amplitude::_frac [private]

Definition at line 220 of file SiPixelDigitizerAlgorithm.h.

Referenced by Amplitude(), individualampl(), and operator+=().

Definition at line 219 of file SiPixelDigitizerAlgorithm.h.

Referenced by Amplitude(), hits(), and operator+=().