ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trk::GaussianTrackDensity::TrackDensityEval Struct Reference
Collaboration diagram for Trk::GaussianTrackDensity::TrackDensityEval:

Public Member Functions

 TrackDensityEval (double z_coordinate)
 
void addTrack (const TrackEntry &entry)
 
double density () const
 
double firstDerivative () const
 
double secondDerivative () const
 

Private Attributes

double m_z
 
double m_density {0}
 
double m_firstDerivative {0}
 
double m_secondDerivative {0}
 

Detailed Description

Definition at line 95 of file GaussianTrackDensity.h.

Constructor & Destructor Documentation

◆ TrackDensityEval()

Trk::GaussianTrackDensity::TrackDensityEval::TrackDensityEval ( double  z_coordinate)
inline

Definition at line 98 of file GaussianTrackDensity.h.

98 : m_z(z_coordinate){}

Member Function Documentation

◆ addTrack()

void Trk::GaussianTrackDensity::TrackDensityEval::addTrack ( const TrackEntry entry)

Definition at line 257 of file GaussianTrackDensity.cxx.

257  {
258  if (entry.lowerBound < m_z && entry.upperBound > m_z) {
259  double delta = std::exp(entry.c_0+m_z*(entry.c_1 + m_z*entry.c_2));
260  double qPrime = entry.c_1 + 2*m_z*entry.c_2;
261  double deltaPrime = delta * qPrime;
262  m_density += delta;
263  m_firstDerivative += deltaPrime;
264  m_secondDerivative += 2*entry.c_2*delta + qPrime*deltaPrime;
265  }
266  }

◆ density()

double Trk::GaussianTrackDensity::TrackDensityEval::density ( ) const
inline

Definition at line 104 of file GaussianTrackDensity.h.

104 {return m_density;}

◆ firstDerivative()

double Trk::GaussianTrackDensity::TrackDensityEval::firstDerivative ( ) const
inline

Definition at line 105 of file GaussianTrackDensity.h.

105 {return m_firstDerivative;}

◆ secondDerivative()

double Trk::GaussianTrackDensity::TrackDensityEval::secondDerivative ( ) const
inline

Definition at line 106 of file GaussianTrackDensity.h.

106 {return m_secondDerivative;}

Member Data Documentation

◆ m_density

double Trk::GaussianTrackDensity::TrackDensityEval::m_density {0}
private

Definition at line 109 of file GaussianTrackDensity.h.

◆ m_firstDerivative

double Trk::GaussianTrackDensity::TrackDensityEval::m_firstDerivative {0}
private

Definition at line 110 of file GaussianTrackDensity.h.

◆ m_secondDerivative

double Trk::GaussianTrackDensity::TrackDensityEval::m_secondDerivative {0}
private

Definition at line 111 of file GaussianTrackDensity.h.

◆ m_z

double Trk::GaussianTrackDensity::TrackDensityEval::m_z
private

Definition at line 108 of file GaussianTrackDensity.h.


The documentation for this struct was generated from the following files:
Trk::GaussianTrackDensity::TrackDensityEval::m_firstDerivative
double m_firstDerivative
Definition: GaussianTrackDensity.h:110
Trk::GaussianTrackDensity::TrackDensityEval::m_density
double m_density
Definition: GaussianTrackDensity.h:109
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
Trk::GaussianTrackDensity::TrackDensityEval::m_secondDerivative
double m_secondDerivative
Definition: GaussianTrackDensity.h:111
Trk::GaussianTrackDensity::TrackDensityEval::m_z
double m_z
Definition: GaussianTrackDensity.h:108