LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar_content::ProtoShower Class Reference

ProtoShower class. More...

#include "LArProtoShower.h"

Public Member Functions

 ProtoShower (const ShowerCore &showerCore, const ConnectionPathway &connectionPathway, const pandora::CaloHitList &spineHitList, const pandora::CaloHitList &ambiguousHitList, const pandora::CartesianPointVector &ambiguousDirectionVector, const pandora::CaloHitList &hitsToAdd)
 Constructor. More...
 
 ProtoShower (const ProtoShower &protoShower)
 Copy constructor. More...
 
const ShowerCoreGetShowerCore () const
 Get the shower core. More...
 
const ConnectionPathwayGetConnectionPathway () const
 Get the connection pathway. More...
 
const pandora::CaloHitList & GetSpineHitList () const
 Get the spine hit list. More...
 
const pandora::CaloHitList & GetAmbiguousHitList () const
 Get the ambiguous hit list. More...
 
void AddAmbiguousHit (const pandora::CaloHit *const ambiguousHit)
 Add an ambiguous hit to the ambiguous hit list. More...
 
const pandora::CartesianPointVector & GetAmbiguousDirectionVector () const
 Get the ambiguous direction vector. More...
 
void AddAmbiguousDirection (const pandora::CartesianVector &ambiguousDirection)
 Add an ambiguous direction to the ambiguous direction vector. More...
 
const pandora::CaloHitList & GetHitsToAddList () const
 Get the hits to add list. More...
 
void SetHitsToAddList (const pandora::CaloHitList &hitsToAddList)
 Set the hits to add list. More...
 
void AddHitToAdd (const pandora::CaloHit *const hitToAdd)
 Add a hit to the hits to add list. More...
 

Private Attributes

const ShowerCore m_showerCore
 the ShowerCore object More...
 
const ConnectionPathway m_connectionPathway
 the ConnectionPathway object More...
 
pandora::CaloHitList m_spineHitList
 the shower spine hit list More...
 
pandora::CaloHitList m_ambiguousHitList
 the list of ambiguous hits (those with shared energy deposits) More...
 
pandora::CartesianPointVector m_ambiguousDirectionVector
 the initial directions of the ambiguous hit owners More...
 
pandora::CaloHitList m_hitsToAdd
 the list of hits to add to an electron shower pfo More...
 

Detailed Description

ProtoShower class.

Definition at line 166 of file LArProtoShower.h.

Constructor & Destructor Documentation

lar_content::ProtoShower::ProtoShower ( const ShowerCore showerCore,
const ConnectionPathway connectionPathway,
const pandora::CaloHitList &  spineHitList,
const pandora::CaloHitList &  ambiguousHitList,
const pandora::CartesianPointVector &  ambiguousDirectionVector,
const pandora::CaloHitList &  hitsToAdd 
)
inline

Constructor.

Parameters
showerCorethe ShowerCore object
connectionPathwaythe ConnectionPathway object
spineHitListthe shower spine hit list
ambiguousHitListthe list of ambiguous hits (those with shared energy deposits)
ambiguousDirectionVectorthe initial directions of the ambiguous hit owners
hitsToAddthe list of hits to add to an electron shower pfo

Definition at line 273 of file LArProtoShower.h.

275  :
276  m_showerCore(showerCore),
277  m_connectionPathway(connectionPathway),
278  m_spineHitList(spineHitList),
279  m_ambiguousHitList(ambiguousHitList),
280  m_ambiguousDirectionVector(ambiguousDirectionVector),
281  m_hitsToAdd(hitsToAdd)
282 {
283 }
const ConnectionPathway m_connectionPathway
the ConnectionPathway object
pandora::CartesianPointVector m_ambiguousDirectionVector
the initial directions of the ambiguous hit owners
pandora::CaloHitList m_hitsToAdd
the list of hits to add to an electron shower pfo
const ShowerCore m_showerCore
the ShowerCore object
pandora::CaloHitList m_ambiguousHitList
the list of ambiguous hits (those with shared energy deposits)
pandora::CaloHitList m_spineHitList
the shower spine hit list
lar_content::ProtoShower::ProtoShower ( const ProtoShower protoShower)
inline

Copy constructor.

Parameters
protoShowerthe input ProtoShower object to copy

Definition at line 287 of file LArProtoShower.h.

287  :
288  m_showerCore(ShowerCore(protoShower.GetShowerCore().GetStartPosition(), protoShower.GetShowerCore().GetStartDirection())),
290  ConnectionPathway(protoShower.GetConnectionPathway().GetStartPosition(), protoShower.GetConnectionPathway().GetStartDirection())),
291  m_spineHitList(protoShower.GetSpineHitList()),
292  m_ambiguousHitList(protoShower.GetAmbiguousHitList()),
293  m_ambiguousDirectionVector(protoShower.GetAmbiguousDirectionVector()),
294  m_hitsToAdd(protoShower.GetHitsToAddList())
295 {
296 }
const ConnectionPathway m_connectionPathway
the ConnectionPathway object
pandora::CartesianPointVector m_ambiguousDirectionVector
the initial directions of the ambiguous hit owners
pandora::CaloHitList m_hitsToAdd
the list of hits to add to an electron shower pfo
const ShowerCore m_showerCore
the ShowerCore object
pandora::CaloHitList m_ambiguousHitList
the list of ambiguous hits (those with shared energy deposits)
pandora::CaloHitList m_spineHitList
the shower spine hit list

Member Function Documentation

void lar_content::ProtoShower::AddAmbiguousDirection ( const pandora::CartesianVector &  ambiguousDirection)
inline

Add an ambiguous direction to the ambiguous direction vector.

Parameters
ambiguousDirectionthe ambiguous direction to add

Definition at line 342 of file LArProtoShower.h.

References m_ambiguousDirectionVector.

Referenced by lar_content::ElectronInitialRegionRefinementAlgorithm::RefineHitsToAdd().

343 {
344  m_ambiguousDirectionVector.push_back(ambiguousDirection);
345 }
pandora::CartesianPointVector m_ambiguousDirectionVector
the initial directions of the ambiguous hit owners
void lar_content::ProtoShower::AddAmbiguousHit ( const pandora::CaloHit *const  ambiguousHit)
inline

Add an ambiguous hit to the ambiguous hit list.

Parameters
ambiguousHitthe ambiguous hit to add

Definition at line 328 of file LArProtoShower.h.

References m_ambiguousHitList.

Referenced by lar_content::ElectronInitialRegionRefinementAlgorithm::RefineHitsToAdd().

329 {
330  m_ambiguousHitList.push_back(ambiguousHit);
331 }
pandora::CaloHitList m_ambiguousHitList
the list of ambiguous hits (those with shared energy deposits)
void lar_content::ProtoShower::AddHitToAdd ( const pandora::CaloHit *const  hitToAdd)
inline

Add a hit to the hits to add list.

Parameters
hitToAddthe hit to add

Definition at line 363 of file LArProtoShower.h.

References m_hitsToAdd.

Referenced by lar_content::ElectronInitialRegionRefinementAlgorithm::BuildViewProtoShowers().

364 {
365  m_hitsToAdd.push_back(hitToAdd);
366 }
pandora::CaloHitList m_hitsToAdd
the list of hits to add to an electron shower pfo
const pandora::CartesianPointVector & lar_content::ProtoShower::GetAmbiguousDirectionVector ( ) const
inline

Get the ambiguous direction vector.

Returns
the ambiguous direction vector

Definition at line 335 of file LArProtoShower.h.

References m_ambiguousDirectionVector.

Referenced by lar_content::AmbiguousRegionFeatureTool::BuildAmbiguousSpines(), and lar_content::ElectronInitialRegionRefinementAlgorithm::RefineHitsToAdd().

336 {
338 }
pandora::CartesianPointVector m_ambiguousDirectionVector
the initial directions of the ambiguous hit owners
const pandora::CaloHitList & lar_content::ProtoShower::GetAmbiguousHitList ( ) const
inline

Get the ambiguous hit list.

Returns
the ambiguous hit list

Definition at line 321 of file LArProtoShower.h.

References m_ambiguousHitList.

Referenced by lar_content::AmbiguousRegionFeatureTool::BuildAmbiguousSpines(), lar_content::AmbiguousRegionFeatureTool::CalculateNAmbiguousViews(), and lar_content::AmbiguousRegionFeatureTool::GetViewAmbiguousHitVariables().

322 {
323  return m_ambiguousHitList;
324 }
pandora::CaloHitList m_ambiguousHitList
the list of ambiguous hits (those with shared energy deposits)
const pandora::CaloHitList & lar_content::ProtoShower::GetHitsToAddList ( ) const
inline

Get the hits to add list.

Returns
the hits to add list

Definition at line 349 of file LArProtoShower.h.

References m_hitsToAdd.

Referenced by lar_content::ElectronInitialRegionRefinementAlgorithm::RefineHitsToAdd().

350 {
351  return m_hitsToAdd;
352 }
pandora::CaloHitList m_hitsToAdd
the list of hits to add to an electron shower pfo
void lar_content::ProtoShower::SetHitsToAddList ( const pandora::CaloHitList &  hitsToAddList)
inline

Set the hits to add list.

Parameters
thehits to add list

Definition at line 356 of file LArProtoShower.h.

References m_hitsToAdd.

Referenced by lar_content::ElectronInitialRegionRefinementAlgorithm::RefineHitsToAdd().

357 {
358  m_hitsToAdd = hitsToAddList;
359 }
pandora::CaloHitList m_hitsToAdd
the list of hits to add to an electron shower pfo

Member Data Documentation

pandora::CartesianPointVector lar_content::ProtoShower::m_ambiguousDirectionVector
private

the initial directions of the ambiguous hit owners

Definition at line 265 of file LArProtoShower.h.

Referenced by AddAmbiguousDirection(), and GetAmbiguousDirectionVector().

pandora::CaloHitList lar_content::ProtoShower::m_ambiguousHitList
private

the list of ambiguous hits (those with shared energy deposits)

Definition at line 264 of file LArProtoShower.h.

Referenced by AddAmbiguousHit(), and GetAmbiguousHitList().

const ConnectionPathway lar_content::ProtoShower::m_connectionPathway
private

the ConnectionPathway object

Definition at line 262 of file LArProtoShower.h.

Referenced by GetConnectionPathway().

pandora::CaloHitList lar_content::ProtoShower::m_hitsToAdd
private

the list of hits to add to an electron shower pfo

Definition at line 266 of file LArProtoShower.h.

Referenced by AddHitToAdd(), GetHitsToAddList(), and SetHitsToAddList().

const ShowerCore lar_content::ProtoShower::m_showerCore
private

the ShowerCore object

Definition at line 261 of file LArProtoShower.h.

Referenced by GetShowerCore().

pandora::CaloHitList lar_content::ProtoShower::m_spineHitList
private

the shower spine hit list

Definition at line 263 of file LArProtoShower.h.

Referenced by GetSpineHitList().


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