Pandora
Pandora source code navigator
|
TransverseTrackHitsBaseTool class. More...
#include "TransverseTrackHitsBaseTool.h"
Public Types | |
typedef ThreeDHitCreationAlgorithm::ProtoHit | ProtoHit |
typedef ThreeDHitCreationAlgorithm::ProtoHitVector | ProtoHitVector |
typedef ThreeDHitCreationAlgorithm::TrajectorySample | TrajectorySample |
Public Member Functions | |
virtual void | Run (ThreeDHitCreationAlgorithm *const pAlgorithm, const pandora::ParticleFlowObject *const pPfo, const pandora::CaloHitVector &inputTwoDHits, ProtoHitVector &protoHitVector) |
Run the algorithm tool. | |
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 Types | |
typedef std::map< pandora::HitType, TwoDSlidingFitResult > | MatchedSlidingFitMap |
Protected Member Functions | |
virtual void | GetTransverseTrackHit3D (const MatchedSlidingFitMap &matchedSlidingFitMap, ProtoHit &protoHit) const =0 |
Get the three dimensional position using a provided two dimensional calo hit and sliding linear fits in the other two views. | |
virtual void | GetTrackHits3D (const pandora::CaloHitVector &inputTwoDHits, const MatchedSlidingFitMap &matchedSlidingFitMap, ProtoHitVector &protoHitVector) const |
Calculate 3D hits from an input list of 2D hits. | |
virtual void | AddTransverseChi2 (const MatchedSlidingFitMap &matchedSlidingFitMap, ProtoHit &protoHit) const |
Calculate an additional contribution to the chi-squared based on the steepness of the track. | |
virtual void | BuildSlidingFitMap (const pandora::ParticleFlowObject *const pPfo, MatchedSlidingFitMap &matchedSlidingFitMap) const |
Calculate sliding fit results for clusters from each view. | |
virtual pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Read the algorithm settings. | |
virtual void | GetBestPosition3D (const pandora::HitType hitType1, const pandora::HitType hitType2, const pandora::CartesianPointVector &fitPositionList1, const pandora::CartesianPointVector &fitPositionList2, ProtoHit &protoHit) const |
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positions from the other two views. | |
virtual void | GetBestPosition3D (const pandora::HitType hitType1, const pandora::HitType hitType2, const pandora::CartesianVector &fitPosition1, const pandora::CartesianVector &fitPosition2, ProtoHit &protoHit) const |
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positions from the other two views. | |
virtual void | GetBestPosition3D (const pandora::HitType hitType, const pandora::CartesianVector &fitPosition, ProtoHit &protoHit) const |
Get the three dimensional position using a provided two dimensional calo hit and a candidate fit position from another view. | |
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 | |
unsigned int | m_minViews |
The minimum number of views required for building hits. | |
unsigned int | m_slidingFitWindow |
The layer window for the sliding linear fits. | |
double | m_sigmaX2 |
The sigmaX squared value, for calculation of chi2 deltaX term. | |
double | m_chiSquaredCut |
The chi squared cut (accept only values below the cut value) | |
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 | |
double | GetTransverseChi2 (const pandora::CartesianVector &position2D, const TwoDSlidingFitResult &fitResult) const |
Calculate an additional contribution to the chi-squared based on the steepness of the track. | |
TransverseTrackHitsBaseTool class.
Definition at line 19 of file TransverseTrackHitsBaseTool.h.
|
protectedinherited |
Definition at line 35 of file TrackHitsBaseTool.h.
Definition at line 24 of file HitCreationBaseTool.h.
|
inherited |
Definition at line 25 of file HitCreationBaseTool.h.
|
inherited |
Definition at line 26 of file HitCreationBaseTool.h.
|
protectedvirtual |
Calculate an additional contribution to the chi-squared based on the steepness of the track.
matchedSlidingFitMap | map of sliding fit results from each view |
protoHit | to receive the modified proto hit |
Definition at line 43 of file TransverseTrackHitsBaseTool.cc.
|
protectedvirtualinherited |
Calculate sliding fit results for clusters from each view.
pPfo | the input particle flow object |
matchedSlidingFitMap | the group of sliding fit results |
Definition at line 55 of file TrackHitsBaseTool.cc.
|
protectedvirtualinherited |
Get the three dimensional position using a provided two dimensional calo hit and a candidate fit position from another view.
hitType | the hit type identifying the other view |
fitPosition | the candidate sliding fit position in the other view |
protoHit | to receive the populated proto hit |
Definition at line 112 of file HitCreationBaseTool.cc.
|
protectedvirtualinherited |
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positions from the other two views.
hitType1 | the hit type identifying the first view |
hitType2 | the hit type identifying the second view |
fitPositionList1 | the candidate sliding fit position in the first view |
fitPositionList2 | the candidate sliding fit position in the second view |
protoHit | to receive the populated proto hit |
Definition at line 32 of file HitCreationBaseTool.cc.
|
protectedvirtualinherited |
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positions from the other two views.
hitType1 | the hit type identifying the first view |
hitType2 | the hit type identifying the second view |
fitPosition1 | the candidate sliding fit position in the first view |
fitPosition2 | the candidate sliding fit position in the second view |
protoHit | to receive the populated proto hit |
Definition at line 73 of file HitCreationBaseTool.cc.
|
inlineinherited |
|
inlineinherited |
|
protectedvirtual |
Calculate 3D hits from an input list of 2D hits.
pAlgorithm | the hit creation algorithm |
inputTwoDHits | the input vector of 2D hits |
matchedSlidingFitMap | the group of sliding fit results |
protoHitVector | to receive the new three dimensional proto hits |
Implements lar_content::TrackHitsBaseTool.
Definition at line 21 of file TransverseTrackHitsBaseTool.cc.
|
private |
Calculate an additional contribution to the chi-squared based on the steepness of the track.
position2D | the calculated two dimensional position |
fitResult | the sliding fit to the track |
Definition at line 64 of file TransverseTrackHitsBaseTool.cc.
|
protectedpure virtual |
Get the three dimensional position using a provided two dimensional calo hit and sliding linear fits in the other two views.
matchedSlidingFitMap | map of sliding fit results from each view |
protoHit | to receive the populated proto hit |
Implemented in lar_content::ClearTransverseTrackHitsTool, and lar_content::MultiValuedTransverseTrackHitsTool.
|
inlineinherited |
|
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.
|
protectedvirtualinherited |
Read the algorithm settings.
xmlHandle | the relevant xml handle |
Reimplemented from lar_content::HitCreationBaseTool.
Reimplemented in lar_content::LongitudinalTrackHitsBaseTool.
Definition at line 91 of file TrackHitsBaseTool.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.
|
virtualinherited |
Run the algorithm tool.
pAlgorithm | address of the calling algorithm |
pPfo | the address of the pfo |
inputTwoDHits | the vector of input two dimensional hits |
protoHitVector | to receive the new three dimensional proto hits |
Implements lar_content::HitCreationBaseTool.
Definition at line 29 of file TrackHitsBaseTool.cc.
|
protectedinherited |
The chi squared cut (accept only values below the cut value)
Definition at line 86 of file HitCreationBaseTool.h.
|
protectedinherited |
|
protectedinherited |
The minimum number of views required for building hits.
Definition at line 58 of file TrackHitsBaseTool.h.
|
protectedinherited |
|
protectedinherited |
The sigmaX squared value, for calculation of chi2 deltaX term.
Definition at line 85 of file HitCreationBaseTool.h.
|
protectedinherited |
The layer window for the sliding linear fits.
Definition at line 59 of file TrackHitsBaseTool.h.
|
protectedinherited |