LArSoft  v10_04_05
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 149 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 256 of file LArProtoShower.h.

258  :
259  m_showerCore(showerCore),
260  m_connectionPathway(connectionPathway),
261  m_spineHitList(spineHitList),
262  m_ambiguousHitList(ambiguousHitList),
263  m_ambiguousDirectionVector(ambiguousDirectionVector),
264  m_hitsToAdd(hitsToAdd)
265 {
266 }
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 270 of file LArProtoShower.h.

270  :
271  m_showerCore(ShowerCore(protoShower.GetShowerCore().GetStartPosition())),
273  ConnectionPathway(protoShower.GetConnectionPathway().GetStartPosition(), protoShower.GetConnectionPathway().GetStartDirection())),
274  m_spineHitList(protoShower.GetSpineHitList()),
275  m_ambiguousHitList(protoShower.GetAmbiguousHitList()),
276  m_ambiguousDirectionVector(protoShower.GetAmbiguousDirectionVector()),
277  m_hitsToAdd(protoShower.GetHitsToAddList())
278 {
279 }
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 325 of file LArProtoShower.h.

References m_ambiguousDirectionVector.

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

326 {
327  m_ambiguousDirectionVector.push_back(ambiguousDirection);
328 }
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 311 of file LArProtoShower.h.

References m_ambiguousHitList.

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

312 {
313  m_ambiguousHitList.push_back(ambiguousHit);
314 }
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 346 of file LArProtoShower.h.

References m_hitsToAdd.

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

347 {
348  m_hitsToAdd.push_back(hitToAdd);
349 }
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 318 of file LArProtoShower.h.

References m_ambiguousDirectionVector.

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

319 {
321 }
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 304 of file LArProtoShower.h.

References m_ambiguousHitList.

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

305 {
306  return m_ambiguousHitList;
307 }
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 332 of file LArProtoShower.h.

References m_hitsToAdd.

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

333 {
334  return m_hitsToAdd;
335 }
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 339 of file LArProtoShower.h.

References m_hitsToAdd.

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

340 {
341  m_hitsToAdd = hitsToAddList;
342 }
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 248 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 247 of file LArProtoShower.h.

Referenced by AddAmbiguousHit(), and GetAmbiguousHitList().

const ConnectionPathway lar_content::ProtoShower::m_connectionPathway
private

the ConnectionPathway object

Definition at line 245 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 249 of file LArProtoShower.h.

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

const ShowerCore lar_content::ProtoShower::m_showerCore
private

the ShowerCore object

Definition at line 244 of file LArProtoShower.h.

Referenced by GetShowerCore().

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

the shower spine hit list

Definition at line 246 of file LArProtoShower.h.

Referenced by GetSpineHitList().


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