#include "ShowerSpineFinderTool.h"
|
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 | FindShowerSpine (const pandora::CaloHitList *const pViewHitList, const pandora::CartesianVector &nuVertex2D, const pandora::CartesianVector &initialDirection, pandora::CaloHitList &unavailableHitList, pandora::CaloHitList &showerSpineHitList) const |
| Perform a running fit to collect the hits of the shower spine.
|
|
bool | CollectSubsectionHits (const TwoDSlidingFitResult &extrapolatedFit, const pandora::CartesianVector &extrapolatedStartPosition, const pandora::CartesianVector &extrapolatedEndPosition, const pandora::CartesianVector &extrapolatedDirection, const bool isEndDownstream, const pandora::CaloHitList *const pViewHitList, pandora::CartesianPointVector &runningFitPositionVector, pandora::CaloHitList &unavailableHitList, pandora::CaloHitList &showerSpineHitList) const |
| Perform a running fit step: collect hits which lie close to the shower spine projection.
|
|
bool | IsCloseToLine (const pandora::CartesianVector &hitPosition, const pandora::CartesianVector &lineStart, const pandora::CartesianVector &lineDirection, const float distanceToLine) const |
| Determine whether a hit lies close to the shower spine projection.
|
|
void | CollectConnectedHits (const pandora::CaloHitList &collectedHits, const pandora::CartesianVector &extrapolatedStartPosition, const pandora::CartesianVector &extrapolatedDirection, pandora::CartesianPointVector &runningFitPositionVector, pandora::CaloHitList &showerSpineHitList) const |
| Add to the shower spine the connecting hits.
|
|
float | GetClosestDistance (const pandora::CartesianVector &position, const pandora::CartesianPointVector &testPositions) const |
| Find the smallest distance between a position and a list of other positions.
|
|
Definition at line 19 of file ShowerSpineFinderTool.h.
◆ ShowerSpineFinderTool()
lar_content::ShowerSpineFinderTool::ShowerSpineFinderTool |
( |
| ) |
|
◆ CollectConnectedHits()
Add to the shower spine the connecting hits.
- Parameters
-
collectedHits | the input list of close hits |
extrapolatedStartPosition | the shower spine projection start position |
extrapolatedDirection | the shower spine projection direction |
runningFitPositionVector | the vector of the collected hit positions |
showerSpineHitList | the list of collected shower spine hits |
Definition at line 228 of file ShowerSpineFinderTool.cc.
◆ CollectSubsectionHits()
Perform a running fit step: collect hits which lie close to the shower spine projection.
- Parameters
-
extrapolatedFit | the fit to the hitherto collected hits |
extrapolatedStartPosition | the shower spine projection start position |
extrapolatedEndPosition | the shower spine projection end position |
extrapolatedDirection | the shower spine projection direction |
isEndDownstream | whether the shower direction is downstream (in Z) of the neutrino vertex |
pViewHitList | the 2D event hit list |
runningFitPositionVector | the vector of the hitherto collected hit positions |
unavailableHitList | protected hits that cannot be collected |
showerSpineHitList | the output list of shower spine hits |
- Returns
- whether any hits were collected in the running fit step
Definition at line 155 of file ShowerSpineFinderTool.cc.
◆ FindShowerSpine()
Perform a running fit to collect the hits of the shower spine.
- Parameters
-
pViewHitList | the 2D event hit list |
nuVertex2D | the 2D neutrino vertex |
initialDirection | the initial direction of the pathway |
unavailableHitList | protected hits that cannot be collected |
showerSpineHitList | the output list of shower spine hits |
Definition at line 57 of file ShowerSpineFinderTool.cc.
◆ GetClosestDistance()
Find the smallest distance between a position and a list of other positions.
- Parameters
-
position | the input position |
testPositions | the list of other positions |
- Returns
- the closest distance
Definition at line 262 of file ShowerSpineFinderTool.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.
◆ Initialize()
|
inlineprotectedvirtualinherited |
◆ IsCloseToLine()
Determine whether a hit lies close to the shower spine projection.
- Parameters
-
hitPosition | the hit position |
lineStart | the shower spine projection start position |
lineDirection | the shower spine projection direction |
distanceToLine | the comparison distance for 'is close' |
- Returns
- whether the hit is close to the shower spine projection
Definition at line 215 of file ShowerSpineFinderTool.cc.
◆ 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()
◆ m_distanceToLine
float lar_content::ShowerSpineFinderTool::m_distanceToLine |
|
private |
◆ m_growingFitInitialLength
float lar_content::ShowerSpineFinderTool::m_growingFitInitialLength |
|
private |
◆ m_growingFitSegmentLength
float lar_content::ShowerSpineFinderTool::m_growingFitSegmentLength |
|
private |
◆ m_highResolutionSlidingFitWindow
unsigned int lar_content::ShowerSpineFinderTool::m_highResolutionSlidingFitWindow |
|
private |
◆ m_hitConnectionDistance
float lar_content::ShowerSpineFinderTool::m_hitConnectionDistance |
|
private |
◆ m_hitThresholdForSpine
unsigned int lar_content::ShowerSpineFinderTool::m_hitThresholdForSpine |
|
private |
◆ m_initialFitDistanceToLine
float lar_content::ShowerSpineFinderTool::m_initialFitDistanceToLine |
|
private |
The max. proximity to the spine projection for collection in the first step.
Definition at line 100 of file ShowerSpineFinderTool.h.
◆ m_instanceName
std::string pandora::Process::m_instanceName |
|
protectedinherited |
The process instance name.
Definition at line 89 of file Process.h.
◆ m_localSlidingFitWindow
unsigned int lar_content::ShowerSpineFinderTool::m_localSlidingFitWindow |
|
private |
◆ m_maxFittingHits
unsigned int lar_content::ShowerSpineFinderTool::m_maxFittingHits |
|
private |
◆ m_minInitialHitsFound
unsigned int lar_content::ShowerSpineFinderTool::m_minInitialHitsFound |
|
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: