Pandora
Pandora source code navigator
|
ShowerRegionFeatureTool to calculate variables related to the shower region. More...
#include "ConnectionPathwayFeatureTool.h"
Public Types | |
typedef std::vector< MvaFeatureTool< Ts... > * > | FeatureToolVector |
typedef std::map< std::string, MvaFeatureTool< Ts... > * > | FeatureToolMap |
Public Member Functions | |
ShowerRegionFeatureTool () | |
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. | |
Protected Member Functions | |
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. | |
Protected Attributes | |
const Pandora * | m_pPandora |
The pandora object that will run the process. | |
std::string | m_type |
The process type. | |
std::string | m_instanceName |
The process instance name. | |
Private Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Read the algorithm settings. | |
void | GetViewShowerRegionVariables (const pandora::Algorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pShowerPfo, const pandora::CartesianVector &nuVertex3D, const ProtoShowerMatch &protoShowerMatch, const pandora::HitType hitType, const pandora::CartesianVector &showerStart3D, float &nHits, float &foundHitRatio, float &scatterAngle, float &openingAngle, float &nuVertexEnergyAsymmetry, float &nuVertexEnergyWeightedMeanRadialDistance, float &showerStartEnergyAsymmetry, float &showerStartMoliereRadius) |
Calculate the shower region variables for the input view. | |
void | BuildViewShower (const pandora::ParticleFlowObject *const pShowerPfo, const TwoDSlidingFitResult &spineFit, const pandora::HitType hitType, const pandora::CartesianVector &showerStart2D, const pandora::CartesianVector &nuVertex2D, pandora::CaloHitList &postShowerHitList, pandora::CartesianPointVector &postShowerPositions) |
Collect the shower region hits in a given view. | |
void | GetShowerHitVariables (const pandora::CaloHitList &spineHitList, const pandora::CaloHitList &postShowerHitList, const pandora::ParticleFlowObject *const pShowerPfo, const pandora::HitType hitType, float &nHits, float &foundHitRatio) |
Evaluate the variables associated with the shower region hit multiplicity. | |
void | CalculateViewScatterAngle (const pandora::CartesianVector &nuVertex2D, const TwoDSlidingFitResult &spineFitResult, const pandora::CartesianVector &showerStart2D, const TwoDSlidingFitResult &showerFitResult, float &scatterAngle) |
Calculate the connection pathway-shower region scatter angle. | |
void | CalculateViewOpeningAngle (const TwoDSlidingFitResult &showerFitResult, const pandora::CaloHitList &postShowerHitList, const pandora::CartesianVector &showerStart2D, float &openingAngle) |
Calculate the opening angle of the shower region. | |
void | CalculateViewNuVertexConsistencyVariables (const TwoDSlidingFitResult &spineFitResult, const pandora::CaloHitList &postShowerHitList, const bool isDownstream, const pandora::CartesianVector &nuVertex2D, float &nuVertexEnergyAsymmetry, float &nuVertexEnergyWeightedMeanRadialDistance) |
Evaluate the neutrino vertex consistency variables. | |
void | CalculateViewShowerStartConsistencyVariables (const TwoDSlidingFitResult &showerFitResult, const pandora::CaloHitList &postShowerHitList, const bool isShowerDownstream, float &showerStartEnergyAsymmetry, float &showerStartMoliereRadius) |
Evaluate the shower start consistency variables. | |
Private Attributes | |
float | m_defaultFloat |
Default float value. | |
float | m_defaultRatio |
Default float value for ratios. | |
unsigned int | m_spineFitWindow |
The spine fit window. | |
float | m_showerRadius |
The max. separation distance between a shower region hit and the shower core. | |
unsigned int | m_showerFitWindow |
The shower fit window. | |
float | m_edgeStep |
The binning of the shower boundaries. | |
float | m_moliereFraction |
The energy fraction which corresponds to minShowerStartMoliereRadius. | |
float | m_maxNHitsLimit |
maxNHits max. limit | |
float | m_maxFoundHitRatioLimit |
maxFoundHitRatio max. limit | |
float | m_maxScatterAngleLimit |
maxScatterAngle max. limit | |
float | m_maxOpeningAngleLimit |
maxOpeningAngle max. limit | |
float | m_maxNuVertexEnergyWeightedMeanRadialDistanceLimit |
maxNuVertexEnergyWeightedMeanRadialDistance max. limit | |
float | m_minShowerStartMoliereRadiusLimit |
minShowerStartMoliereRadius max. limit | |
ShowerRegionFeatureTool to calculate variables related to the shower region.
Definition at line 128 of file ConnectionPathwayFeatureTool.h.
|
inherited |
Definition at line 37 of file LArMvaHelper.h.
|
inherited |
Definition at line 36 of file LArMvaHelper.h.
lar_content::ShowerRegionFeatureTool::ShowerRegionFeatureTool | ( | ) |
Default constructor.
Definition at line 335 of file ConnectionPathwayFeatureTool.cc.
|
private |
Collect the shower region hits in a given view.
pShowerPfo | the shower pfo |
spineFit | the shower spine fit |
hitType | the 2D view |
showerStart2D | the 2D shower start position |
nuVertex2D | the 2D neutrino vertex position |
postShowerHitList | the collected shower region hit list |
postShowerPositions | the collected shower region hit position vector |
Definition at line 579 of file ConnectionPathwayFeatureTool.cc.
|
private |
Evaluate the neutrino vertex consistency variables.
spineHitList | the shower spine hit list |
postShowerHitList | the collected shower region hit list |
isDownstream | whether the shower direction is downstream (in Z) of the neutrino vertex |
nuVertex2D | the 2D neutrino vertex |
nuVertexEnergyAsymmetry | the output neutrino vertex energy asymmetry |
nuVertexEnergyWeightedMeanRadialDistance | the output neutrino vertex energy weighted mean radial distance |
Definition at line 725 of file ConnectionPathwayFeatureTool.cc.
|
private |
Calculate the opening angle of the shower region.
showerFitResult | the shower region fit |
postShowerHitList | the collected shower region hit list |
showerStart2D | the 2D shower start position |
openingAngle | the output opening angle |
Definition at line 661 of file ConnectionPathwayFeatureTool.cc.
|
private |
Calculate the connection pathway-shower region scatter angle.
nuVertex2D | the 2D neutrino vertex |
spineFitResult | the shower spine fit |
showerStart2D | the 2D shower start position |
showerFitResult | the shower region fit |
scatterAngle | the output scatter angle |
Definition at line 644 of file ConnectionPathwayFeatureTool.cc.
|
private |
Evaluate the shower start consistency variables.
showerFitResult | the shower fit result |
postShowerHitList | the collected shower region hit list |
isShowerDownstream | whether the shower direction is downstream (in Z) of the neutrino vertex |
showerStartEnergyAsymmetry | the output shower start energy asymmetry |
showerStartMoliereRadius | the output shower start moliere radius |
Definition at line 768 of file ConnectionPathwayFeatureTool.cc.
|
inlineinherited |
|
inlineinherited |
|
private |
Evaluate the variables associated with the shower region hit multiplicity.
spineHitList | the shower spine hit list |
postShowerHitList | the collected shower region hit list |
pShowerPfo | the shower pfo |
hitType | the 2D view |
nHits | the output number of shower region hits |
foundHitRatio | the output found hit ratio |
Definition at line 624 of file ConnectionPathwayFeatureTool.cc.
|
inlineinherited |
|
private |
Calculate the shower region variables for the input view.
pAlgorithm | the algorithm |
pShowerPfo | the shower pfo |
nuVertex3D | the 3D neutrino vertex |
protoShowerMatch | the ProtoShower match |
hitType | the 2D view |
showerStart3D | the 3D shower start position |
nHits | the output number of shower region hits |
foundHitRatio | the output found hit ratio |
scatterAngle | the output scatter angle |
openingAngle | the output opening angle |
nuVertexEnergyAsymmetry | the output neutrino vertex energy asymmetry |
nuVertexEnergyWeightedMeanRadialDistance | the output neutrino vertex energy weighted mean radial distance |
showerStartEnergyAsymmetry | the output shower start energy asymmetry |
showerStartMoliereRadius | the output shower start moliere radius |
Definition at line 502 of file ConnectionPathwayFeatureTool.cc.
|
inlineprotectedvirtualinherited |
Perform any operations that must occur after reading settings, but before running the process.
Reimplemented in lar_content::BdtBeamParticleIdTool, lar_content::BeamParticleIdTool, lar_content::CosmicRayTaggingTool, lar_content::EventReadingAlgorithm, lar_content::EventWritingAlgorithm, lar_content::LArPseudoLayerPlugin, lar_content::LArRotationalTransformationPlugin, EventReadingAlgorithm, and EventWritingAlgorithm.
Definition at line 126 of file Process.h.
|
privatevirtual |
Read the algorithm settings.
xmlHandle | the relevant xml handle |
Implements pandora::Process.
Definition at line 830 of file ConnectionPathwayFeatureTool.cc.
|
inlineprotectedinherited |
Register i) the pandora instance that will run the process and ii) the process type.
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.
|
inlineprotectedvirtualinherited |
Perform any operations when pandora is reset, typically at the end of each event.
Reimplemented in lar_content::MasterAlgorithm, lar_content::PostProcessingAlgorithm, and lar_content::PreProcessingAlgorithm.
Definition at line 133 of file Process.h.
void lar_content::ShowerRegionFeatureTool::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 | ||
) |
Definition at line 420 of file ConnectionPathwayFeatureTool.cc.
void lar_content::ShowerRegionFeatureTool::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 | ||
) |
Definition at line 354 of file ConnectionPathwayFeatureTool.cc.
|
inlinevirtualinherited |
Definition at line 51 of file LArMvaHelper.h.
|
pure virtualinherited |
Run the algorithm tool.
featureVector | the vector of features to append |
args | arguments to pass to the tool |
|
private |
Default float value.
Definition at line 248 of file ConnectionPathwayFeatureTool.h.
|
private |
Default float value for ratios.
Definition at line 249 of file ConnectionPathwayFeatureTool.h.
|
private |
The binning of the shower boundaries.
Definition at line 253 of file ConnectionPathwayFeatureTool.h.
|
protectedinherited |
|
private |
maxFoundHitRatio max. limit
Definition at line 256 of file ConnectionPathwayFeatureTool.h.
|
private |
maxNHits max. limit
Definition at line 255 of file ConnectionPathwayFeatureTool.h.
|
private |
maxNuVertexEnergyWeightedMeanRadialDistance max. limit
Definition at line 259 of file ConnectionPathwayFeatureTool.h.
|
private |
maxOpeningAngle max. limit
Definition at line 258 of file ConnectionPathwayFeatureTool.h.
|
private |
maxScatterAngle max. limit
Definition at line 257 of file ConnectionPathwayFeatureTool.h.
|
private |
minShowerStartMoliereRadius max. limit
Definition at line 260 of file ConnectionPathwayFeatureTool.h.
|
private |
The energy fraction which corresponds to minShowerStartMoliereRadius.
Definition at line 254 of file ConnectionPathwayFeatureTool.h.
|
protectedinherited |
|
private |
The shower fit window.
Definition at line 252 of file ConnectionPathwayFeatureTool.h.
|
private |
The max. separation distance between a shower region hit and the shower core.
Definition at line 251 of file ConnectionPathwayFeatureTool.h.
|
private |
The spine fit window.
Definition at line 250 of file ConnectionPathwayFeatureTool.h.
|
protectedinherited |