AmbiguousRegionFeatureTool to calculate variables related to the shower region.
More...
#include "ConnectionPathwayFeatureTool.h"
|
| AmbiguousRegionFeatureTool () |
| Default constructor.
|
|
void | Run (LArMvaHelper::MvaFeatureVector &featureVector, const pandora::Algorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pShowerPfo, const pandora::CartesianVector &nuVertex3D, const ProtoShowerMatch &protoShowerMatch, const pandora::CartesianPointVector &showerStarts3D) |
|
void | Run (LArMvaHelper::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, const pandora::Algorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pShowerPfo, const pandora::CartesianVector &nuVertex3D, const ProtoShowerMatch &protoShowerMatch, const pandora::CartesianPointVector &showerStarts3D) |
|
virtual void | Run (MvaTypes::MvaFeatureVector &featureVector, Ts... args)=0 |
| Run the algorithm tool.
|
|
virtual void | Run (MvaTypes::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, Ts...) |
|
const std::string & | GetType () const |
| Get the type.
|
|
const std::string & | GetInstanceName () const |
| Get the instance name.
|
|
const Pandora & | GetPandora () const |
| Get the associated pandora instance.
|
|
|
virtual StatusCode | Initialize () |
| Perform any operations that must occur after reading settings, but before running the process.
|
|
virtual StatusCode | Reset () |
| Perform any operations when pandora is reset, typically at the end of each event.
|
|
StatusCode | RegisterDetails (const Pandora *const pPandora, const std::string &type, const std::string &instanceName) |
| Register i) the pandora instance that will run the process and ii) the process type.
|
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
| Read the algorithm settings.
|
|
void | CalculateNAmbiguousViews (const ProtoShowerMatch &protoShowerMatch, float &nAmbiguousViews) |
| Count the number of views with ambiguous hits.
|
|
bool | GetViewAmbiguousHitVariables (const pandora::Algorithm *const pAlgorithm, const ProtoShowerMatch &protoShowerMatch, const pandora::HitType hitType, const pandora::CartesianVector &nuVertex3D, float &unaccountedHitEnergy) |
| Calculate the ambiguous region variables for the input view.
|
|
void | BuildAmbiguousSpines (const pandora::Algorithm *const pAlgorithm, const pandora::HitType hitType, const ProtoShower &protoShower, const pandora::CartesianVector &nuVertex2D, std::map< int, pandora::CaloHitList > &ambiguousHitSpines, pandora::CaloHitList &hitsToExcludeInEnergyCalcs) |
| Determine the spine hits of the particles with which the ambiguous hits are shared.
|
|
pandora::StatusCode | GetHitListOfType (const pandora::Algorithm *const pAlgorithm, const pandora::HitType hitType, const pandora::CaloHitList *&pCaloHitList) const |
| Obtain the event hit list of a given view.
|
|
pandora::CaloHitList | FindAmbiguousContinuousSpine (const pandora::CaloHitList &caloHitList, const pandora::CaloHitList &ambiguousHitList, const pandora::CartesianVector &nuVertex2D) |
| Determine a continuous pathway of an ambigous particle's spine hits.
|
|
AmbiguousRegionFeatureTool to calculate variables related to the shower region.
Definition at line 268 of file ConnectionPathwayFeatureTool.h.
◆ FeatureToolMap
◆ FeatureToolVector
◆ AmbiguousRegionFeatureTool()
lar_content::AmbiguousRegionFeatureTool::AmbiguousRegionFeatureTool |
( |
| ) |
|
◆ BuildAmbiguousSpines()
Determine the spine hits of the particles with which the ambiguous hits are shared.
- Parameters
-
pAlgorithm | the algorithm |
hitType | the 2D view |
protoShower | the ProtoShower |
nuVertex2D | the 2D neutrino vertex |
ambiguousHitSpines | the output [particle index -> shower spine hits] map |
hitsToExcludeInEnergyCalcs | the list of hits to exclude in energy calculations |
Definition at line 1039 of file ConnectionPathwayFeatureTool.cc.
◆ CalculateNAmbiguousViews()
void lar_content::AmbiguousRegionFeatureTool::CalculateNAmbiguousViews |
( |
const ProtoShowerMatch & |
protoShowerMatch, |
|
|
float & |
nAmbiguousViews |
|
) |
| |
|
private |
◆ FindAmbiguousContinuousSpine()
Determine a continuous pathway of an ambigous particle's spine hits.
- Parameters
-
caloHitList | the input ambiguous particle spine hit list |
ambiguousHitList | the ambiguous hit list |
nuVertex2D | the 2D neutrino vertex |
- Returns
- a continuous hit pathway
Definition at line 1106 of file ConnectionPathwayFeatureTool.cc.
◆ GetHitListOfType()
Obtain the event hit list of a given view.
- Parameters
-
pAlgorithm | the algorithm |
hitType | the 2D view |
pCaloHitList | the output 2D hit list |
- Returns
- whether a valid 2D hit list could be found
Definition at line 1091 of file ConnectionPathwayFeatureTool.cc.
◆ GetInstanceName()
const std::string & pandora::Process::GetInstanceName |
( |
| ) |
const |
|
inlineinherited |
Get the instance name.
- Returns
- The instance name
Definition at line 109 of file Process.h.
◆ GetPandora()
const Pandora & pandora::Process::GetPandora |
( |
| ) |
const |
|
inlineinherited |
Get the associated pandora instance.
- Returns
- the associated pandora instance
Definition at line 116 of file Process.h.
◆ GetType()
const std::string & pandora::Process::GetType |
( |
| ) |
const |
|
inlineinherited |
Get the type.
- Returns
- The type
Definition at line 102 of file Process.h.
◆ GetViewAmbiguousHitVariables()
Calculate the ambiguous region variables for the input view.
- Parameters
-
pAlgorithm | the algorithm |
protoShowerMatch | the ProtoShower match |
hitType | the 2D view |
nuVertex3D | the 3D neutrino vertex |
unaccountedHitEnergy | the output unaccounted hit energy |
- Returns
- whether the ambiguous region variables could be calculated
Definition at line 952 of file ConnectionPathwayFeatureTool.cc.
◆ Initialize()
|
inlineprotectedvirtualinherited |
◆ ReadSettings()
◆ RegisterDetails()
StatusCode pandora::Process::RegisterDetails |
( |
const Pandora *const |
pPandora, |
|
|
const std::string & |
type, |
|
|
const std::string & |
instanceName |
|
) |
| |
|
inlineprotectedinherited |
Register i) the pandora instance that will run the process and ii) the process type.
- Parameters
-
pPandora | address of the pandora object that will run the process |
type | the process type |
instanceName | the process instance name |
Definition at line 146 of file Process.h.
◆ Reset()
|
inlineprotectedvirtualinherited |
◆ Run() [1/4]
◆ Run() [2/4]
◆ Run() [3/4]
◆ Run() [4/4]
Run the algorithm tool.
- Parameters
-
featureVector | the vector of features to append |
args | arguments to pass to the tool |
◆ m_caloHitListNameU
std::string lar_content::AmbiguousRegionFeatureTool::m_caloHitListNameU |
|
private |
◆ m_caloHitListNameV
std::string lar_content::AmbiguousRegionFeatureTool::m_caloHitListNameV |
|
private |
◆ m_caloHitListNameW
std::string lar_content::AmbiguousRegionFeatureTool::m_caloHitListNameW |
|
private |
◆ m_defaultFloat
float lar_content::AmbiguousRegionFeatureTool::m_defaultFloat |
|
private |
◆ m_instanceName
std::string pandora::Process::m_instanceName |
|
protectedinherited |
The process instance name.
Definition at line 89 of file Process.h.
◆ m_maxHitSeparation
float lar_content::AmbiguousRegionFeatureTool::m_maxHitSeparation |
|
private |
◆ m_maxSampleHits
unsigned int lar_content::AmbiguousRegionFeatureTool::m_maxSampleHits |
|
private |
◆ m_maxTrackFraction
float lar_content::AmbiguousRegionFeatureTool::m_maxTrackFraction |
|
private |
◆ m_maxTransverseDistance
float lar_content::AmbiguousRegionFeatureTool::m_maxTransverseDistance |
|
private |
◆ m_pPandora
const Pandora* pandora::Process::m_pPandora |
|
protectedinherited |
The pandora object that will run the process.
Definition at line 87 of file Process.h.
◆ m_type
std::string pandora::Process::m_type |
|
protectedinherited |
The process type.
Definition at line 88 of file Process.h.
The documentation for this class was generated from the following files: