CMS 3D CMS Logo

SiPixelDigitizerAlgorithm::Amplitude Class Reference

Internal use only. More...

List of all members.

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 &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 163 of file SiPixelDigitizerAlgorithm.h.


Constructor & Destructor Documentation

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

Definition at line 165 of file SiPixelDigitizerAlgorithm.h.

References _hits.

00165 : _amp(0.0) { _hits.reserve(1);}

SiPixelDigitizerAlgorithm::Amplitude::Amplitude ( float  amp,
const PSimHit hitp,
float  frac 
) [inline]

Definition at line 166 of file SiPixelDigitizerAlgorithm.h.

References _frac, and _hits.

00166                                                            :
00167     _amp(amp), _hits(1, hitp), _frac(1,frac) {
00168      //in case of digi from noisypixels
00169       //the MC information are removed 
00170       if (_frac[0]<-0.5) {
00171         _frac.pop_back();
00172         _hits.pop_back();
00173      }
00174     }


Member Function Documentation

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

Definition at line 178 of file SiPixelDigitizerAlgorithm.h.

References _amp.

00178 {return _amp;}

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]

Definition at line 179 of file SiPixelDigitizerAlgorithm.h.

References _frac.

00179 {return _frac;}

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

Definition at line 177 of file SiPixelDigitizerAlgorithm.h.

References _amp.

00177 { return _amp;}

void SiPixelDigitizerAlgorithm::Amplitude::operator+= ( const float &  amp  )  [inline]

Definition at line 192 of file SiPixelDigitizerAlgorithm.h.

References _amp.

00192                                        {
00193       _amp += amp;
00194     }

void SiPixelDigitizerAlgorithm::Amplitude::operator+= ( const Amplitude other  )  [inline]

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     }


Member Data Documentation

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+=().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:31:54 2009 for CMSSW by  doxygen 1.5.4