Private Member Functions | List of all members
lar_content::CheatingClusterCharacterisationAlgorithm Class Reference

CheatingClusterCharacterisationAlgorithm class. More...

#include <CheatingClusterCharacterisationAlgorithm.h>

Inheritance diagram for lar_content::CheatingClusterCharacterisationAlgorithm:
lar_content::ClusterCharacterisationBaseAlgorithm

Private Member Functions

bool IsClearTrack (const pandora::Cluster *const pCluster) const
 Whether cluster is identified as a clear track. More...
 

Additional Inherited Members

- Public Member Functions inherited from lar_content::ClusterCharacterisationBaseAlgorithm
 ClusterCharacterisationBaseAlgorithm ()
 Default constructor. More...
 
 ~ClusterCharacterisationBaseAlgorithm ()
 Destructor. More...
 
- Protected Member Functions inherited from lar_content::ClusterCharacterisationBaseAlgorithm
pandora::StatusCode Run ()
 
pandora::StatusCode ReadSettings (const pandora::TiXmlHandle xmlHandle)
 
- Protected Attributes inherited from lar_content::ClusterCharacterisationBaseAlgorithm
pandora::StringVector m_inputClusterListNames
 The names of the input cluster lists. More...
 
bool m_zeroMode
 Whether to zero all existing cluster particle id, overrides all other parameters. More...
 
bool m_overwriteExistingId
 Whether to consider any clusters that already have an assigned particle id. More...
 
bool m_useUnavailableClusters
 Whether to consider clusters that are already constituents of a pfo. More...
 

Detailed Description

CheatingClusterCharacterisationAlgorithm class.

Definition at line 19 of file CheatingClusterCharacterisationAlgorithm.h.

Member Function Documentation

bool lar_content::CheatingClusterCharacterisationAlgorithm::IsClearTrack ( const pandora::Cluster *const  pCluster) const
privatevirtual

Whether cluster is identified as a clear track.

Parameters
pClusteraddress of the relevant cluster
Returns
boolean

Implements lar_content::ClusterCharacterisationBaseAlgorithm.

Definition at line 20 of file CheatingClusterCharacterisationAlgorithm.cc.

21 {
22  try
23  {
24  // ATTN Slightly curious definition of a clear track, but this is most-likely what is needed for shower-growing
25  const MCParticle *const pMCParticle(MCParticleHelper::GetMainMCParticle(pCluster));
26 
27  if ((PHOTON != pMCParticle->GetParticleId()) && (E_MINUS != std::abs(pMCParticle->GetParticleId())))
28  return true;
29  }
30  catch (const StatusCodeException &)
31  {
32  }
33 
34  return false;
35 }
T abs(T value)

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