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 17 of file PndHypCluster.h.

Constructor & Destructor Documentation

◆ PndHypCluster() [1/2]

PndHypCluster::PndHypCluster ( )
inline

Definition at line 19 of file PndHypCluster.h.

Referenced by ~PndHypCluster().

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

◆ ~PndHypCluster()

PndHypCluster::~PndHypCluster ( )
inline

Definition at line 20 of file PndHypCluster.h.

References PndHypCluster().

20 {};

◆ 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 24 of file PndHypCluster.h.

24 { return fClusterList; };

◆ GetClusterSize()

Int_t PndHypCluster::GetClusterSize ( ) const
inline

Definition at line 25 of file PndHypCluster.h.

25 { return fClusterList.size(); };

◆ GetDigiIndex()

Int_t PndHypCluster::GetDigiIndex ( Int_t  i) const
inline

Definition at line 26 of file PndHypCluster.h.

References i.

26 { return fClusterList[i]; }
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetSensorSide()

SensorSide PndHypCluster::GetSensorSide ( ) const
inline

Definition at line 28 of file PndHypCluster.h.

28 { return fSide; };

◆ Print()

void PndHypCluster::Print ( )

Referenced by SetSensorSide().

◆ SetClusterList()

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

Definition at line 23 of file PndHypCluster.h.

23 { fClusterList = list; }

◆ SetSensorSide()

void PndHypCluster::SetSensorSide ( SensorSide  s)
inline

Definition at line 29 of file PndHypCluster.h.

References DigiBelongsToCluster(), and Print().

29 { fSide = s; }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 33 of file PndHypCluster.h.

34  {
35  std::vector<Int_t> list = cl.GetClusterList();
36  out << "Hits in Cluster:" << std::endl;
37  for (unsigned int i = 0; i < list.size(); i++)
38  out << list[i] << std::endl;
39  out << std::endl;
40 
41  return out;
42  }
unsigned int i
Definition: P4_F32vec4.h:21
std::vector< Int_t > GetClusterList() const
Definition: PndHypCluster.h:24

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