Public Member Functions | Public Attributes | List of all members
lar_content::LArHierarchyHelper::FoldingParameters Class Reference

FoldingParameters class. More...

#include <LArHierarchyHelper.h>

Public Member Functions

 FoldingParameters ()
 Default constructor. More...
 
 FoldingParameters (const bool foldDynamic, const float cosAngleTolerance=0.9962f)
 Constructor. More...
 
 FoldingParameters (const int foldingTier)
 Constructor. More...
 

Public Attributes

bool m_foldToLeadingShowers
 Whether or not to fold shower children to the leading shower particle. More...
 
bool m_foldToTier
 Whether or not to apply folding based on particle tier. More...
 
bool m_foldDynamic
 Whether or not to use process and topological information to make folding decisions. More...
 
float m_cosAngleTolerance
 Cosine of the maximum angle at which topologies can be considered continuous. More...
 
int m_tier
 If folding to a tier, the tier to be combined with its child particles. More...
 

Detailed Description

FoldingParameters class.

Definition at line 30 of file LArHierarchyHelper.h.

Constructor & Destructor Documentation

lar_content::LArHierarchyHelper::FoldingParameters::FoldingParameters ( )

Default constructor.

Definition at line 21 of file LArHierarchyHelper.cc.

21  :
23  m_foldToTier{false},
24  m_foldDynamic{false},
25  m_cosAngleTolerance{0.9962f},
26  m_tier{1}
27 {
28 }
bool m_foldToTier
Whether or not to apply folding based on particle tier.
int m_tier
If folding to a tier, the tier to be combined with its child particles.
float m_cosAngleTolerance
Cosine of the maximum angle at which topologies can be considered continuous.
bool m_foldDynamic
Whether or not to use process and topological information to make folding decisions.
bool m_foldToLeadingShowers
Whether or not to fold shower children to the leading shower particle.
lar_content::LArHierarchyHelper::FoldingParameters::FoldingParameters ( const bool  foldDynamic,
const float  cosAngleTolerance = 0.9962f 
)

Constructor.

Parameters
foldDynamicWhether or not to apply dynamic folding to the hierarchy

Definition at line 32 of file LArHierarchyHelper.cc.

32  :
34  m_foldToTier{false},
35  m_foldDynamic{foldDynamic},
36  m_cosAngleTolerance{cosAngleTolerance},
37  m_tier{1}
38 {
39 }
bool m_foldToTier
Whether or not to apply folding based on particle tier.
int m_tier
If folding to a tier, the tier to be combined with its child particles.
float m_cosAngleTolerance
Cosine of the maximum angle at which topologies can be considered continuous.
bool m_foldDynamic
Whether or not to use process and topological information to make folding decisions.
bool m_foldToLeadingShowers
Whether or not to fold shower children to the leading shower particle.
lar_content::LArHierarchyHelper::FoldingParameters::FoldingParameters ( const int  foldingTier)

Constructor.

If folding back to tier 2, any MC particle/PFO ("particles") at tier 1 will be allocated their own node. At tier 2, the particles will be allocated as the main particle for a node and all of their children will also be incorprated into the node

Parameters
foldingTierThe tier at which level child particles should be folded back (> 0)

Definition at line 43 of file LArHierarchyHelper.cc.

43  :
45  m_foldToTier{true},
46  m_foldDynamic{false},
47  m_cosAngleTolerance{0.9962f},
48  m_tier{foldingTier}
49 {
50  if (m_tier < 1)
51  {
52  std::cout << "LArHierarchyHelper: Error - attempting to fold to non-positive tier" << std::endl;
53  throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
54  }
55 }
bool m_foldToTier
Whether or not to apply folding based on particle tier.
int m_tier
If folding to a tier, the tier to be combined with its child particles.
float m_cosAngleTolerance
Cosine of the maximum angle at which topologies can be considered continuous.
bool m_foldDynamic
Whether or not to use process and topological information to make folding decisions.
bool m_foldToLeadingShowers
Whether or not to fold shower children to the leading shower particle.
QTextStream & endl(QTextStream &s)

Member Data Documentation

float lar_content::LArHierarchyHelper::FoldingParameters::m_cosAngleTolerance

Cosine of the maximum angle at which topologies can be considered continuous.

Definition at line 58 of file LArHierarchyHelper.h.

bool lar_content::LArHierarchyHelper::FoldingParameters::m_foldDynamic

Whether or not to use process and topological information to make folding decisions.

Definition at line 57 of file LArHierarchyHelper.h.

bool lar_content::LArHierarchyHelper::FoldingParameters::m_foldToLeadingShowers

Whether or not to fold shower children to the leading shower particle.

Definition at line 55 of file LArHierarchyHelper.h.

bool lar_content::LArHierarchyHelper::FoldingParameters::m_foldToTier

Whether or not to apply folding based on particle tier.

Definition at line 56 of file LArHierarchyHelper.h.

int lar_content::LArHierarchyHelper::FoldingParameters::m_tier

If folding to a tier, the tier to be combined with its child particles.

Definition at line 59 of file LArHierarchyHelper.h.


The documentation for this class was generated from the following files: