PandaRoot
PndHypCluster Class Reference

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 <PndHypCluster.h>

Inheritance diagram for PndHypCluster:

Public Member Functions

 PndHypCluster ()
 
 ~PndHypCluster ()
 
 PndHypCluster (std::vector< Int_t > list)
 
void SetClusterList (std::vector< Int_t > list)
 
std::vector< Int_t > GetClusterList () const
 
Int_t GetClusterSize () const
 
Int_t GetDigiIndex (Int_t i) const
 
SensorSide GetSensorSide () const
 
void SetSensorSide (SensorSide s)
 
bool DigiBelongsToCluster (Int_t digiIndex)
 
void Print ()
 

Friends

std::ostream & operator<< (std::ostream &out, PndHypCluster &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.

PndHypClusterCand.h

Author
T.Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de

Definition at line 29 of file PndHypCluster.h.

Constructor & Destructor Documentation

◆ PndHypCluster() [1/2]

PndHypCluster::PndHypCluster ( )
inline

Definition at line 31 of file PndHypCluster.h.

Referenced by ~PndHypCluster().

31 : fClusterList(), fSide(SensorSide::kTOP){};

◆ ~PndHypCluster()

PndHypCluster::~PndHypCluster ( )
inline

Definition at line 32 of file PndHypCluster.h.

References PndHypCluster().

32 {};

◆ PndHypCluster() [2/2]

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

Member Function Documentation

◆ DigiBelongsToCluster()

bool PndHypCluster::DigiBelongsToCluster ( Int_t  digiIndex)

Referenced by SetSensorSide().

◆ GetClusterList()

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

Definition at line 36 of file PndHypCluster.h.

36 { return fClusterList; };

◆ GetClusterSize()

Int_t PndHypCluster::GetClusterSize ( ) const
inline

Definition at line 37 of file PndHypCluster.h.

37 { return fClusterList.size(); };

◆ GetDigiIndex()

Int_t PndHypCluster::GetDigiIndex ( Int_t  i) const
inline

Definition at line 38 of file PndHypCluster.h.

References i.

38 { return fClusterList[i]; }
unsigned int i
Definition: P4_F32vec4.h:33

◆ GetSensorSide()

SensorSide PndHypCluster::GetSensorSide ( ) const
inline

Definition at line 40 of file PndHypCluster.h.

40 { return fSide; };

◆ Print()

void PndHypCluster::Print ( )

Referenced by SetSensorSide().

◆ SetClusterList()

void PndHypCluster::SetClusterList ( std::vector< Int_t >  list)
inline

Definition at line 35 of file PndHypCluster.h.

35 { fClusterList = list; }

◆ SetSensorSide()

void PndHypCluster::SetSensorSide ( SensorSide  s)
inline

Definition at line 41 of file PndHypCluster.h.

References DigiBelongsToCluster(), and Print().

41 { fSide = s; }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 45 of file PndHypCluster.h.

46  {
47  std::vector<Int_t> list = cl.GetClusterList();
48  out << "Hits in Cluster:" << std::endl;
49  for (unsigned int i = 0; i < list.size(); i++)
50  out << list[i] << std::endl;
51  out << std::endl;
52 
53  return out;
54  }
unsigned int i
Definition: P4_F32vec4.h:33
std::vector< Int_t > GetClusterList() const
Definition: PndHypCluster.h:36

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