APRILContent
Algorithm of Particle Reconstruction for ILC - implementation with PandoraSDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations
Static Public Member Functions | List of all members
april_content::CaloHitHelper Class Reference

CaloHitHelper class. More...

#include <CaloHitHelper.h>

Static Public Member Functions

static pandora::StatusCode RemoveCurrentConnections (const pandora::Algorithm &algorithm)
 Remove the connections of the current calo hit list. More...
 
static pandora::StatusCode RemoveConnections (const pandora::CaloHitList *const pCaloHitList)
 Remove the connections of the calo hit list. More...
 
static pandora::StatusCode ExtractCurrentSeedCaloHitList (const pandora::Algorithm &algorithm, pandora::CaloHitList &seedCaloHitList, bool discriminateLeafHits=false)
 Extract the calo hit seed list from the current calo hit list. More...
 
static pandora::StatusCode ExtractSeedCaloHitList (const pandora::CaloHitList *const pCaloHitList, pandora::CaloHitList &seedCaloHitList, bool discriminateLeafHits=false)
 Extract the calo hit seed list from the calo hit list. More...
 
static pandora::StatusCode ExtractCurrentLeafCaloHitList (const pandora::Algorithm &algorithm, pandora::CaloHitList &leafCaloHitList, bool discriminateSeedHits=false)
 Extract the calo hit leaf list from the current calo hit list. More...
 
static pandora::StatusCode ExtractLeafCaloHitList (const pandora::CaloHitList *const pCaloHitList, pandora::CaloHitList &leafCaloHitList, bool discriminateSeedHits=false)
 Extract the calo hit leaf list from the calo hit list. More...
 
static pandora::StatusCode BuildCaloHitList (const CaloHit *const pCaloHit, ConnectorDirection direction, pandora::CaloHitList &calohitList)
 Build the calo hit list starting from a calo hit by looking recursively in the connector list (forward or backward) More...
 
static pandora::StatusCode BuildCaloHitList (const CaloHit *const pCaloHit, ConnectorDirection direction, pandora::CaloHitList &calohitList, unsigned int connectionLimit, unsigned int pseudoLayerLimit)
 Build the calo hit list starting from a calo hit by looking recursively in the connector list (forward or backward). Stops after n recursive steps from the initial calo hit or after reaching a pseudo layer limit. More...
 
static pandora::StatusCode GetMeanDirection (const CaloHit *const pCaloHit, ConnectorDirection connectorDirection, pandora::CartesianVector &direction, unsigned int depth)
 Get the mean direction of the calo hit in a given direction. More...
 
static bool CanConnect (const CaloHit *const pCaloHit1, const CaloHit *const pCaloHit2, const pandora::CartesianVector &expectedDirection, const float normaleMaxAngle, const float normaleMaxDistance, const float transverseMaxAngle, const float transverseMaxDistance)
 Whether the two calo hits can be connected. The valid region to connect two hits is contained within a cone. More...
 
static bool CanConnect (const pandora::Track *const pTrack, const CaloHit *const pCaloHit, const float normaleMaxAngle, const float normaleMaxDistance, const float transverseMaxAngle, const float transverseMaxDistance)
 Whether the track and the calo hit can be connected. The valid region is contained within a cone. More...
 
static bool IsInRegionOfInterest (const pandora::CartesianVector &startRegionPosition, const pandora::CartesianVector &testPosition, const pandora::CartesianVector &expectedDirection, const pandora::CartesianVector &normaleVector, const float normaleMaxAngle, const float normaleMaxDistance, const float transverseMaxAngle, const float transverseMaxDistance)
 Whether the tested position is in the region of interest. The valid region is contained within a cone. More...
 

Detailed Description

CaloHitHelper class.

Member Function Documentation

pandora::StatusCode april_content::CaloHitHelper::BuildCaloHitList ( const CaloHit *const  pCaloHit,
ConnectorDirection  direction,
pandora::CaloHitList &  calohitList 
)
static

Build the calo hit list starting from a calo hit by looking recursively in the connector list (forward or backward)

Parameters
pCaloHitthe calo hit to start from
directionthe direction to look recursively for
caloHitListthe calo hit list recursively built to receive
pandora::StatusCode april_content::CaloHitHelper::BuildCaloHitList ( const CaloHit *const  pCaloHit,
ConnectorDirection  direction,
pandora::CaloHitList &  calohitList,
unsigned int  connectionLimit,
unsigned int  pseudoLayerLimit 
)
static

Build the calo hit list starting from a calo hit by looking recursively in the connector list (forward or backward). Stops after n recursive steps from the initial calo hit or after reaching a pseudo layer limit.

Parameters
pCaloHitthe calo hit to start from
directionthe direction to look recursively for
caloHitListthe calo hit list recursively built to receive
connectionLimitthe maximum number of recursive steps from the initial calo hit
pseudoLayerLimitthe pseudo layer limit to reach for stopping the recursive list building
bool april_content::CaloHitHelper::CanConnect ( const CaloHit *const  pCaloHit1,
const CaloHit *const  pCaloHit2,
const pandora::CartesianVector &  expectedDirection,
const float  normaleMaxAngle,
const float  normaleMaxDistance,
const float  transverseMaxAngle,
const float  transverseMaxDistance 
)
static

Whether the two calo hits can be connected. The valid region to connect two hits is contained within a cone.

Parameters
pCaloHit1a backward calo hit to connect
pCaloHit2a forward calo hit to connect
exceptedDirectionthe expected of the shower development from pCaloHit1
normaleMaxAnglethe maximum angle between the two hits when the expected direction is colinear to the cell direction of pCaloHit1
normaleMaxDistancethe maximum distance between the two hits when the expected direction is colinear to the cell direction of pCaloHit1
transverseMaxAnglethe maximum angle between the two hits when the expected direction is perpendicular to the cell direction of pCaloHit1
transverseMaxDistancethe maximum distance between the two hits when the expected direction is perpendicular to the cell direction of pCaloHit1
bool april_content::CaloHitHelper::CanConnect ( const pandora::Track *const  pTrack,
const CaloHit *const  pCaloHit,
const float  normaleMaxAngle,
const float  normaleMaxDistance,
const float  transverseMaxAngle,
const float  transverseMaxDistance 
)
static

Whether the track and the calo hit can be connected. The valid region is contained within a cone.

Parameters
pTracka track with a valid calorimeter projection
pCaloHita forward calo hit to connect
normaleMaxAnglethe maximum angle between the two hits when the expected direction is colinear to the cell direction of pCaloHit1
normaleMaxDistancethe maximum distance between the two hits when the expected direction is colinear to the cell direction of pCaloHit1
transverseMaxAnglethe maximum angle between the two hits when the expected direction is perpendicular to the cell direction of pCaloHit1
transverseMaxDistancethe maximum distance between the two hits when the expected direction is perpendicular to the cell direction of pCaloHit1
pandora::StatusCode april_content::CaloHitHelper::ExtractCurrentLeafCaloHitList ( const pandora::Algorithm &  algorithm,
pandora::CaloHitList &  leafCaloHitList,
bool  discriminateSeedHits = false 
)
static

Extract the calo hit leaf list from the current calo hit list.

Parameters
algorithmthe algorithm to access the content
leafCaloHitListthe calo hit leaf list to receive
discriminateLeafHitswhether the leaf/seed hits have to be put in the extracted list
pandora::StatusCode april_content::CaloHitHelper::ExtractCurrentSeedCaloHitList ( const pandora::Algorithm &  algorithm,
pandora::CaloHitList &  seedCaloHitList,
bool  discriminateLeafHits = false 
)
static

Extract the calo hit seed list from the current calo hit list.

Parameters
algorithmthe algorithm to access the content
seedCaloHitListthe calo hit seed list to receive
discriminateLeafHitswhether the leaf/seed hits have to be put in the extracted list
pandora::StatusCode april_content::CaloHitHelper::ExtractLeafCaloHitList ( const pandora::CaloHitList *const  pCaloHitList,
pandora::CaloHitList &  leafCaloHitList,
bool  discriminateSeedHits = false 
)
static

Extract the calo hit leaf list from the calo hit list.

Parameters
pCaloHitListthe list to extract the sub calo hit leaf list
leafCaloHitListthe calo hit leaf list to receive
discriminateLeafHitswhether the leaf/seed hits have to be put in the extracted list
pandora::StatusCode april_content::CaloHitHelper::ExtractSeedCaloHitList ( const pandora::CaloHitList *const  pCaloHitList,
pandora::CaloHitList &  seedCaloHitList,
bool  discriminateLeafHits = false 
)
static

Extract the calo hit seed list from the calo hit list.

Parameters
pCaloHitListthe list to extract the sub calo hit seed list
seedCaloHitListthe calo hit seed list to receive
discriminateLeafHitswhether the leaf/seed hits have to be put in the extracted list
pandora::StatusCode april_content::CaloHitHelper::GetMeanDirection ( const CaloHit *const  pCaloHit,
ConnectorDirection  connectorDirection,
pandora::CartesianVector &  direction,
unsigned int  depth 
)
static

Get the mean direction of the calo hit in a given direction.

Parameters
pCaloHitthe calo hit to evaluate the mean direction
connectorDirectionthe connector direction to evaluate the mean direction
directionthe mean direction to receive
depththe maximum connector depth to reach for the direction evaluation
bool april_content::CaloHitHelper::IsInRegionOfInterest ( const pandora::CartesianVector &  startRegionPosition,
const pandora::CartesianVector &  testPosition,
const pandora::CartesianVector &  expectedDirection,
const pandora::CartesianVector &  normaleVector,
const float  normaleMaxAngle,
const float  normaleMaxDistance,
const float  transverseMaxAngle,
const float  transverseMaxDistance 
)
static

Whether the tested position is in the region of interest. The valid region is contained within a cone.

Parameters
startRegionPositionthe position where the region of interest starts
testPositionthe position to test inside the region of interest
exceptedDirectionthe expected of the shower development from startRegionPosition
normaleMaxAnglethe maximum angle between the two hits when the expected direction is colinear to the cell direction of startRegionPosition
normaleMaxDistancethe maximum distance between the two hits when the expected direction is colinear to the cell direction of startRegionPosition
transverseMaxAnglethe maximum angle between the two hits when the expected direction is perpendicular to the cell direction of startRegionPosition
transverseMaxDistancethe maximum distance between the two hits when the expected direction is perpendicular to the cell direction of startRegionPosition
pandora::StatusCode april_content::CaloHitHelper::RemoveConnections ( const pandora::CaloHitList *const  pCaloHitList)
static

Remove the connections of the calo hit list.

Parameters
pCaloHitListthe calo hit list to remove the connections
pandora::StatusCode april_content::CaloHitHelper::RemoveCurrentConnections ( const pandora::Algorithm &  algorithm)
static

Remove the connections of the current calo hit list.

Parameters
algorithmthe algorithm to access the content

The documentation for this class was generated from the following files: