PandaRoot
PndSdsCluster Class Referenceabstract

Class to store the Digis which belong to one cluster This class holds the information which Digi belongs to the actual cluster. The information is stored in a vector<Int_t> which contains the position of the digi in the TClonesArray where it is stored. More...

#include <PndSdsCluster.h>

Inheritance diagram for PndSdsCluster:
PndSdsClusterPixel PndSdsClusterStrip

Public Member Functions

 PndSdsCluster ()
 
 ~PndSdsCluster ()
 
 PndSdsCluster (std::vector< Int_t > list)
 
virtual void SetClusterList (Int_t DigiType, std::vector< Int_t > list, Int_t fileId, Int_t eventId)=0
 
std::vector< Int_t > GetClusterList () const
 
Int_t GetClusterSize () const
 
Int_t GetDigiIndex (Int_t i) const
 
bool DigiBelongsToCluster (Int_t digiIndex)
 
virtual void Print ()
 

Protected Member Functions

 ClassDef (PndSdsCluster, 2)
 

Protected Attributes

std::vector< Int_t > fClusterList
 

Friends

std::ostream & operator<< (std::ostream &out, PndSdsCluster &cl)
 

Detailed Description

Class to store the Digis which belong to one cluster This class holds the information which Digi belongs to the actual cluster. The information is stored in a vector<Int_t> which contains the position of the digi in the TClonesArray where it is stored.

PndSdsCluster.h

Author
T.Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de
Examples:
/home/gitlab-runner/builds/LYZoAKaU/0/PandaRootGroup/PandaRoot/detectors/sds/SdsReco/PndSdsChargeWeightingAlgorithms.h.

Definition at line 18 of file PndSdsCluster.h.

Constructor & Destructor Documentation

◆ PndSdsCluster() [1/2]

PndSdsCluster::PndSdsCluster ( )
inline

Definition at line 32 of file PndSdsCluster.h.

Referenced by ~PndSdsCluster().

32 : fClusterList(){};
std::vector< Int_t > fClusterList
Definition: PndSdsCluster.h:46

◆ ~PndSdsCluster()

PndSdsCluster::~PndSdsCluster ( )
inline

Definition at line 33 of file PndSdsCluster.h.

References PndSdsCluster(), and SetClusterList().

33 {};

◆ PndSdsCluster() [2/2]

PndSdsCluster::PndSdsCluster ( std::vector< Int_t >  list)

Member Function Documentation

◆ ClassDef()

PndSdsCluster::ClassDef ( PndSdsCluster  ,
 
)
protected

◆ DigiBelongsToCluster()

bool PndSdsCluster::DigiBelongsToCluster ( Int_t  digiIndex)

Referenced by GetDigiIndex().

◆ GetClusterList()

std::vector<Int_t> PndSdsCluster::GetClusterList ( ) const
inline

Definition at line 37 of file PndSdsCluster.h.

References fClusterList.

37 { return fClusterList; }
std::vector< Int_t > fClusterList
Definition: PndSdsCluster.h:46

◆ GetClusterSize()

Int_t PndSdsCluster::GetClusterSize ( ) const
inline

Definition at line 38 of file PndSdsCluster.h.

References fClusterList.

38 { return fClusterList.size(); }
std::vector< Int_t > fClusterList
Definition: PndSdsCluster.h:46

◆ GetDigiIndex()

Int_t PndSdsCluster::GetDigiIndex ( Int_t  i) const
inline

Definition at line 39 of file PndSdsCluster.h.

References DigiBelongsToCluster(), fClusterList, i, and Print().

39 { return fClusterList[i]; }
unsigned int i
Definition: P4_F32vec4.h:21
std::vector< Int_t > fClusterList
Definition: PndSdsCluster.h:46

◆ Print()

virtual void PndSdsCluster::Print ( )
virtual

Referenced by GetDigiIndex().

◆ SetClusterList()

virtual void PndSdsCluster::SetClusterList ( Int_t  DigiType,
std::vector< Int_t >  list,
Int_t  fileId,
Int_t  eventId 
)
pure virtual

Implemented in PndSdsClusterStrip, and PndSdsClusterPixel.

Referenced by ~PndSdsCluster().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
PndSdsCluster cl 
)
friend

Definition at line 20 of file PndSdsCluster.h.

21  {
22  std::vector<Int_t> list = cl.GetClusterList();
23  out << "Hits in Cluster: (";
24  for (UInt_t i = 0; i < list.size(); i++)
25  out << list[i] << " ";
26  out << ")" << std::endl;
27 
28  return out;
29  }
std::vector< Int_t > GetClusterList() const
Definition: PndSdsCluster.h:37
unsigned int i
Definition: P4_F32vec4.h:21

Member Data Documentation

◆ fClusterList

std::vector<Int_t> PndSdsCluster::fClusterList
protected

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