28 #ifndef APRIL_PFO_CREATION_ALGORITHM_H
29 #define APRIL_PFO_CREATION_ALGORITHM_H
31 #include "Pandora/Algorithm.h"
33 #include "Api/PandoraContentApi.h"
35 namespace april_content
47 class Factory :
public pandora::AlgorithmFactory
50 pandora::Algorithm *CreateAlgorithm()
const;
59 typedef PandoraContentApi::ParticleFlowObject::Parameters PfoParameters;
61 pandora::StatusCode Run();
62 pandora::StatusCode ReadSettings(
const pandora::TiXmlHandle xmlHandle);
77 pandora::StatusCode
PopulateTrackBasedPfo(
const pandora::Track *
const pTrack, PfoParameters &pfoParameters,
const bool readSiblingInfo =
true)
const;
126 const pandora::CartesianVector
GetEnergyWeightedCentroid(
const pandora::Cluster *
const pCluster,
const unsigned int innerPseudoLayer,
127 const unsigned int outerPseudoLayer)
const;
141 inline pandora::Algorithm *PfoCreationAlgorithm::Factory::CreateAlgorithm()
const
148 #endif // #ifndef APRIL_PFO_CREATION_ALGORITHM_H
PfoCreationAlgorithm class.
Definition: PfoCreationAlgorithm.h:41
unsigned int m_minHitsInCluster
Min number of calo hits for neutral cluster to be added to pfos.
Definition: PfoCreationAlgorithm.h:134
pandora::StatusCode SetSiblingTrackBasedPfoParameters(const pandora::Track *const pTrack, PfoParameters &pfoParameters) const
Set the parameters for a track-based pfo, where pfo target consists of two or more sibling tracks...
Definition: PfoCreationAlgorithm.cc:148
bool m_allowSingleLayerClusters
Whether to allow neutral clusters spanning only a single pseudolayer.
Definition: PfoCreationAlgorithm.h:135
float m_minClusterElectromagneticEnergy
Min electromagnetic energy for neutral (photon) clusters to be added to pfos.
Definition: PfoCreationAlgorithm.h:133
unsigned int m_photonPositionAlgorithm
Identifies the algorithm used to calculate photon pfo position vectors.
Definition: PfoCreationAlgorithm.h:136
PfoCreationAlgorithm()
Default constructor.
Definition: PfoCreationAlgorithm.cc:20
bool m_shouldCreateTrackBasedPfos
Whether to create track-based (charged) pfos.
Definition: PfoCreationAlgorithm.h:130
pandora::StatusCode PopulateTrackBasedPfo(const pandora::Track *const pTrack, PfoParameters &pfoParameters, const bool readSiblingInfo=true) const
Add relevant tracks and clusters to a track-based pfo.
Definition: PfoCreationAlgorithm.cc:82
pandora::StatusCode CreateNeutralPfos() const
Create particle flow objects corresponding to neutral particles, These pfos consist only of clusters ...
Definition: PfoCreationAlgorithm.cc:230
pandora::StatusCode SetDaughterTrackBasedPfoParameters(const pandora::Track *const pTrack, PfoParameters &pfoParameters) const
Set the parameters for a track-based pfo, where the pfo target has one or more daughter tracks...
Definition: PfoCreationAlgorithm.cc:185
Factory class for instantiating algorithm.
Definition: PfoCreationAlgorithm.h:47
const pandora::CartesianVector GetEnergyWeightedCentroid(const pandora::Cluster *const pCluster, const unsigned int innerPseudoLayer, const unsigned int outerPseudoLayer) const
Get the energy-weighted centroid for a specified cluster, calculated over a particular pseudo layer r...
Definition: PfoCreationAlgorithm.cc:301
bool m_shouldCreateNeutralPfos
Whether to create neutral pfos.
Definition: PfoCreationAlgorithm.h:131
pandora::StatusCode SetSimpleTrackBasedPfoParameters(const pandora::Track *const pTrack, PfoParameters &pfoParameters) const
Set the parameters for a simple track-based pfo, where the track has no associations with other track...
Definition: PfoCreationAlgorithm.cc:217
pandora::StatusCode CreateTrackBasedPfos() const
Create particle flow objects starting from tracks in the main tracker. The pfos will account for asso...
Definition: PfoCreationAlgorithm.cc:55
std::string m_outputPfoListName
The output pfo list name.
Definition: PfoCreationAlgorithm.h:129
pandora::StatusCode SetTrackBasedPfoParameters(const pandora::Track *const pTrack, PfoParameters &pfoParameters) const
Set the basic parameters for a track-based pfo.
Definition: PfoCreationAlgorithm.cc:124
float m_minClusterHadronicEnergy
Min hadronic energy for neutral (non-photon) clusters to be added to pfos.
Definition: PfoCreationAlgorithm.h:132