PandaRoot
BSEmcGeoItem Class Reference

Convenience object for neighbouring relations used by BSEmcRecursiveClustering. More...

#include <BSEmcGeoItem.h>

Inheritance diagram for BSEmcGeoItem:
BSEmcXtal

Public Member Functions

 BSEmcGeoItem ()
 
virtual ~BSEmcGeoItem ()
 
Bool_t IsSameItem (const BSEmcGeoItem *t_item) const
 
Bool_t IsNeighbour (const BSEmcGeoItem *t_item) const
 
Bool_t HasNeighbours () const
 
Bool_t IsAdded () const
 
Bool_t IsDigiPresent () const
 
Int_t NumberOfNeighbours () const
 
void AddNeighbour (BSEmcGeoItem *t_item)
 
void SetID (Int_t t_uniqueId)
 
Int_t GetID () const
 
const std::vector< BSEmcGeoItem * > & GetNeighbours () const
 
const BSEmcGeoItemGetNeighbour (Int_t t_index) const
 
BSEmcGeoItemGetNeighbour (Int_t t_index)
 
void ClearNeighbourList ()
 
void FindClusterCrystals (std::vector< BSEmcGeoItem *> &t_clusterCrystals)
 
void Reset ()
 
void AddDigi (const BSEmcDigi *t_digi)
 
const std::vector< const BSEmcDigi * > & GetDigis () const
 
void AddDigiIndex (Int_t t_digiindex)
 
const std::vector< Int_t > & GetDigiIndices () const
 

Detailed Description

Convenience object for neighbouring relations used by BSEmcRecursiveClustering.

Represents a crystal and contains ptr to neighbouring crystal representations to allow for simple recursive clustering of neighbours

Author
Ben Salisbury salis.nosp@m.bury.nosp@m.@hisk.nosp@m.p.un.nosp@m.i-bon.nosp@m.n.de, HISKP Bonn
Date
2021-01

Definition at line 25 of file BSEmcGeoItem.h.

Constructor & Destructor Documentation

◆ BSEmcGeoItem()

BSEmcGeoItem::BSEmcGeoItem ( )

◆ ~BSEmcGeoItem()

virtual BSEmcGeoItem::~BSEmcGeoItem ( )
virtual

Member Function Documentation

◆ AddDigi()

void BSEmcGeoItem::AddDigi ( const BSEmcDigi t_digi)
inline

Definition at line 48 of file BSEmcGeoItem.h.

48 { fDigis.push_back(t_digi); }

◆ AddDigiIndex()

void BSEmcGeoItem::AddDigiIndex ( Int_t  t_digiindex)
inline

Definition at line 50 of file BSEmcGeoItem.h.

50 { fDigiIndices.push_back(t_digiindex); }

◆ AddNeighbour()

void BSEmcGeoItem::AddNeighbour ( BSEmcGeoItem t_item)

Referenced by NumberOfNeighbours().

◆ ClearNeighbourList()

void BSEmcGeoItem::ClearNeighbourList ( )
inline

Definition at line 44 of file BSEmcGeoItem.h.

References FindClusterCrystals(), and Reset().

44 { fNeighbours.clear(); }

◆ FindClusterCrystals()

void BSEmcGeoItem::FindClusterCrystals ( std::vector< BSEmcGeoItem *> &  t_clusterCrystals)

Referenced by ClearNeighbourList().

◆ GetDigiIndices()

const std::vector<Int_t>& BSEmcGeoItem::GetDigiIndices ( ) const
inline

Definition at line 51 of file BSEmcGeoItem.h.

51 { return fDigiIndices; }

◆ GetDigis()

const std::vector<const BSEmcDigi *>& BSEmcGeoItem::GetDigis ( ) const
inline

Definition at line 49 of file BSEmcGeoItem.h.

49 { return fDigis; }

◆ GetID()

Int_t BSEmcGeoItem::GetID ( ) const
inline

Definition at line 40 of file BSEmcGeoItem.h.

Referenced by IsSameItem().

40 { return fUniqueID; }

◆ GetNeighbour() [1/2]

const BSEmcGeoItem* BSEmcGeoItem::GetNeighbour ( Int_t  t_index) const
inline

Definition at line 42 of file BSEmcGeoItem.h.

42 { return fNeighbours.at(t_index); }

◆ GetNeighbour() [2/2]

BSEmcGeoItem* BSEmcGeoItem::GetNeighbour ( Int_t  t_index)
inline

Definition at line 43 of file BSEmcGeoItem.h.

43 { return fNeighbours.at(t_index); }

◆ GetNeighbours()

const std::vector<BSEmcGeoItem *>& BSEmcGeoItem::GetNeighbours ( ) const
inline

Definition at line 41 of file BSEmcGeoItem.h.

41 { return fNeighbours; }

◆ HasNeighbours()

Bool_t BSEmcGeoItem::HasNeighbours ( ) const
inline

Definition at line 33 of file BSEmcGeoItem.h.

33 { return !fNeighbours.empty(); }

◆ IsAdded()

Bool_t BSEmcGeoItem::IsAdded ( ) const
inline

Definition at line 34 of file BSEmcGeoItem.h.

34 { return fIsAdded; }

◆ IsDigiPresent()

Bool_t BSEmcGeoItem::IsDigiPresent ( ) const
inline

Definition at line 35 of file BSEmcGeoItem.h.

35 { return fDigis.size() > 0; }

◆ IsNeighbour()

Bool_t BSEmcGeoItem::IsNeighbour ( const BSEmcGeoItem t_item) const

Referenced by IsSameItem().

◆ IsSameItem()

Bool_t BSEmcGeoItem::IsSameItem ( const BSEmcGeoItem t_item) const
inline

Definition at line 30 of file BSEmcGeoItem.h.

References GetID(), and IsNeighbour().

30 { return GetID() == t_item->GetID(); }
Int_t GetID() const
Definition: BSEmcGeoItem.h:40

◆ NumberOfNeighbours()

Int_t BSEmcGeoItem::NumberOfNeighbours ( ) const
inline

Definition at line 36 of file BSEmcGeoItem.h.

References AddNeighbour().

36 { return fNeighbourCount; }

◆ Reset()

void BSEmcGeoItem::Reset ( )

Referenced by ClearNeighbourList().

◆ SetID()

void BSEmcGeoItem::SetID ( Int_t  t_uniqueId)
inline

Definition at line 39 of file BSEmcGeoItem.h.

39 { fUniqueID = t_uniqueId; }

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