Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::Digitization::GaussTrunc Struct Reference

#include <acts/blob/sPHENIX/Examples/Algorithms/Digitization/include/ActsExamples/Digitization/Smearers.hpp>

Public Member Functions

 GaussTrunc (double sigma_, const std::pair< double, double > &range_)
 Construct with a.
 
 range (range_)
 
Acts::Result< std::pair
< double, double > > 
operator() (double value, RandomEngine &rnd) const
 

Public Attributes

double sigma
 
std::pair< double, doublerange
 

Detailed Description

Gaussian smearing of a single parameter with truncation.

In case a hit is smeared outside the range, a DigitizationError indicating the truncation

Definition at line 70 of file Smearers.hpp.

View newest version in sPHENIX GitHub at line 70 of file Smearers.hpp

Constructor & Destructor Documentation

ActsExamples::Digitization::GaussTrunc::GaussTrunc ( double  sigma_,
const std::pair< double, double > &  range_ 
)
inline

Construct with a.

Parameters
sigmastandard deviation and
range

Definition at line 76 of file Smearers.hpp.

View newest version in sPHENIX GitHub at line 76 of file Smearers.hpp

Member Function Documentation

Acts::Result<std::pair<double, double> > ActsExamples::Digitization::GaussTrunc::operator() ( double  value,
RandomEngine rnd 
) const
inline

Call operator for the SmearFunction caller interface.

Parameters
valueparameter to be smeared
rndrandom generator to be used for the call
Returns
a Result that is ok() when inside range, other DigitizationError

Definition at line 85 of file Smearers.hpp.

View newest version in sPHENIX GitHub at line 85 of file Smearers.hpp

References dist(), range, and sigma.

+ Here is the call graph for this function:

ActsExamples::Digitization::GaussTrunc::range ( range_  )
inline

Definition at line 77 of file Smearers.hpp.

View newest version in sPHENIX GitHub at line 77 of file Smearers.hpp

Member Data Documentation

std::pair<double, double> ActsExamples::Digitization::GaussTrunc::range
Initial value:
= {std::numeric_limits<double>::lowest(),
std::numeric_limits<double>::max()}

Definition at line 72 of file Smearers.hpp.

View newest version in sPHENIX GitHub at line 72 of file Smearers.hpp

Referenced by operator()().

double ActsExamples::Digitization::GaussTrunc::sigma

Definition at line 71 of file Smearers.hpp.

View newest version in sPHENIX GitHub at line 71 of file Smearers.hpp

Referenced by operator()().


The documentation for this struct was generated from the following file: