ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trk::ClusterSplitProbabilityContainer::ProbabilityInfo Struct Reference

#include <ClusterSplitProbabilityContainer.h>

Inheritance diagram for Trk::ClusterSplitProbabilityContainer::ProbabilityInfo:
Collaboration diagram for Trk::ClusterSplitProbabilityContainer::ProbabilityInfo:

Public Member Functions

 ProbabilityInfo (float prob1, float prob2)
 
float splitProbability1 () const
 
float splitProbability2 () const
 
bool isTooBigToBeSplit () const
 
bool isSplit () const
 
void setSplit (bool split)
 
void updateSplitProbabilities (float prob1, float prob2)
 

Private Attributes

bool m_isSplit = false
 

Detailed Description

Definition at line 22 of file ClusterSplitProbabilityContainer.h.

Constructor & Destructor Documentation

◆ ProbabilityInfo()

Trk::ClusterSplitProbabilityContainer::ProbabilityInfo::ProbabilityInfo ( float  prob1,
float  prob2 
)
inline

Definition at line 23 of file ClusterSplitProbabilityContainer.h.

23 : std::pair<float,float>(prob1,prob2) {}

Member Function Documentation

◆ isSplit()

bool Trk::ClusterSplitProbabilityContainer::ProbabilityInfo::isSplit ( ) const
inline

Definition at line 27 of file ClusterSplitProbabilityContainer.h.

27 { return m_isSplit;}

◆ isTooBigToBeSplit()

bool Trk::ClusterSplitProbabilityContainer::ProbabilityInfo::isTooBigToBeSplit ( ) const
inline

Definition at line 26 of file ClusterSplitProbabilityContainer.h.

26 { return first<0; }

◆ setSplit()

void Trk::ClusterSplitProbabilityContainer::ProbabilityInfo::setSplit ( bool  split)
inline

Definition at line 28 of file ClusterSplitProbabilityContainer.h.

28 { m_isSplit=split;}

◆ splitProbability1()

float Trk::ClusterSplitProbabilityContainer::ProbabilityInfo::splitProbability1 ( ) const
inline

Definition at line 24 of file ClusterSplitProbabilityContainer.h.

24 { return isTooBigToBeSplit() ? 0.f : this->first; }

◆ splitProbability2()

float Trk::ClusterSplitProbabilityContainer::ProbabilityInfo::splitProbability2 ( ) const
inline

Definition at line 25 of file ClusterSplitProbabilityContainer.h.

25 { return isTooBigToBeSplit() ? 0.f : this->second; }

◆ updateSplitProbabilities()

void Trk::ClusterSplitProbabilityContainer::ProbabilityInfo::updateSplitProbabilities ( float  prob1,
float  prob2 
)
inline

Definition at line 29 of file ClusterSplitProbabilityContainer.h.

29 { this->first=prob1; this->second=prob2; m_isSplit=false;}

Member Data Documentation

◆ m_isSplit

bool Trk::ClusterSplitProbabilityContainer::ProbabilityInfo::m_isSplit = false
private

Definition at line 31 of file ClusterSplitProbabilityContainer.h.


The documentation for this struct was generated from the following file:
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
Trk::ClusterSplitProbabilityContainer::ProbabilityInfo::m_isSplit
bool m_isSplit
Definition: ClusterSplitProbabilityContainer.h:31
Trk::ClusterSplitProbabilityContainer::ProbabilityInfo::isTooBigToBeSplit
bool isTooBigToBeSplit() const
Definition: ClusterSplitProbabilityContainer.h:26
DeMoScan.first
bool first
Definition: DeMoScan.py:536
Trk::split
@ split
Definition: LayerMaterialProperties.h:38