ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
ISF::MaterialPathInfo Struct Reference

#include <ParticleUserInformation.h>

Collaboration diagram for ISF::MaterialPathInfo:

Public Member Functions

 MaterialPathInfo (int proc, float pathLimit, float pathCurrent)
 
void updatePath (float d)
 collected material update More...
 
bool operator== (const MaterialPathInfo &rhs) const
 comparison More...
 

Public Attributes

float dMax
 
float dCollected
 
int process
 

Detailed Description

Definition at line 27 of file ParticleUserInformation.h.

Constructor & Destructor Documentation

◆ MaterialPathInfo()

ISF::MaterialPathInfo::MaterialPathInfo ( int  proc,
float  pathLimit,
float  pathCurrent 
)
inline

Definition at line 33 of file ParticleUserInformation.h.

33  :
34  dMax(pathLimit), dCollected(pathCurrent), process(proc)
35  {}

Member Function Documentation

◆ operator==()

bool ISF::MaterialPathInfo::operator== ( const MaterialPathInfo rhs) const
inline

comparison

Definition at line 42 of file ParticleUserInformation.h.

42  {
43  float epsilon = 1e-6;
44  bool pass = true;
45  pass &= std::fabs(dMax-rhs.dMax) < epsilon;
46  pass &= std::fabs(dCollected-rhs.dCollected) < epsilon;
47  pass &= process == rhs.process;
48  return pass;
49  }

◆ updatePath()

void ISF::MaterialPathInfo::updatePath ( float  d)
inline

collected material update

Definition at line 39 of file ParticleUserInformation.h.

39 { dCollected += d; }

Member Data Documentation

◆ dCollected

float ISF::MaterialPathInfo::dCollected

Definition at line 30 of file ParticleUserInformation.h.

◆ dMax

float ISF::MaterialPathInfo::dMax

Definition at line 29 of file ParticleUserInformation.h.

◆ process

int ISF::MaterialPathInfo::process

Definition at line 31 of file ParticleUserInformation.h.


The documentation for this struct was generated from the following file:
hist_file_dump.d
d
Definition: hist_file_dump.py:137
ISF::MaterialPathInfo::dMax
float dMax
Definition: ParticleUserInformation.h:29
ISF::MaterialPathInfo::dCollected
float dCollected
Definition: ParticleUserInformation.h:30
mc.proc
proc
Definition: mc.PhPy8EG_A14NNPDF23_gg4l_example.py:22
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
ISF::MaterialPathInfo::process
int process
Definition: ParticleUserInformation.h:31