FairRoot/PandaRoot
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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 ()
 

Private Member Functions

 ClassDef (PndHypCluster, 1)
 

Private Attributes

std::vector< Int_t > fClusterList
 
SensorSide fSide
 

Friends

std::ostreamoperator<< (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 18 of file PndHypCluster.h.

Constructor & Destructor Documentation

PndHypCluster::PndHypCluster ( )
inline

Definition at line 21 of file PndHypCluster.h.

21 :fClusterList(),fSide(kTOP){};
SensorSide fSide
Definition: PndHypCluster.h:47
std::vector< Int_t > fClusterList
Definition: PndHypCluster.h:46
PndHypCluster::~PndHypCluster ( )
inline

Definition at line 22 of file PndHypCluster.h.

22 {};
PndHypCluster::PndHypCluster ( std::vector< Int_t >  list)

Definition at line 3 of file PndHypCluster.cxx.

3  :
4  fClusterList(list),fSide(kTOP)
5 {
6 }
SensorSide fSide
Definition: PndHypCluster.h:47
std::vector< Int_t > fClusterList
Definition: PndHypCluster.h:46

Member Function Documentation

PndHypCluster::ClassDef ( PndHypCluster  ,
 
)
private
bool PndHypCluster::DigiBelongsToCluster ( Int_t  digiIndex)

Definition at line 13 of file PndHypCluster.cxx.

References fClusterList, and i.

14 {
15  for (unsigned int i = 0; i < fClusterList.size(); i++)
16  if (fClusterList[i] == digiIndex) return true;
17 
18  return false;
19 }
Int_t i
Definition: run_full.C:25
std::vector< Int_t > fClusterList
Definition: PndHypCluster.h:46
std::vector<Int_t> PndHypCluster::GetClusterList ( ) const
inline

Definition at line 26 of file PndHypCluster.h.

References fClusterList.

26 {return fClusterList;};
std::vector< Int_t > fClusterList
Definition: PndHypCluster.h:46
Int_t PndHypCluster::GetClusterSize ( ) const
inline

Definition at line 27 of file PndHypCluster.h.

References fClusterList.

27 {return fClusterList.size();};
std::vector< Int_t > fClusterList
Definition: PndHypCluster.h:46
Int_t PndHypCluster::GetDigiIndex ( Int_t  i) const
inline

Definition at line 28 of file PndHypCluster.h.

References fClusterList, and i.

28 {return fClusterList[i];}
Int_t i
Definition: run_full.C:25
std::vector< Int_t > fClusterList
Definition: PndHypCluster.h:46
SensorSide PndHypCluster::GetSensorSide ( ) const
inline

Definition at line 30 of file PndHypCluster.h.

References fSide.

30 {return fSide;};
SensorSide fSide
Definition: PndHypCluster.h:47
void PndHypCluster::Print ( )

Definition at line 8 of file PndHypCluster.cxx.

9 {
10  std::cout << *this;
11 }
void PndHypCluster::SetClusterList ( std::vector< Int_t >  list)
inline

Definition at line 25 of file PndHypCluster.h.

References fClusterList.

25 {fClusterList = list;}
std::vector< Int_t > fClusterList
Definition: PndHypCluster.h:46
void PndHypCluster::SetSensorSide ( SensorSide  s)
inline

Definition at line 31 of file PndHypCluster.h.

References fSide, and s.

Referenced by PndHypStripClusterBuilder::AddCluster().

31 {fSide = s;}
SensorSide fSide
Definition: PndHypCluster.h:47
TLorentzVector s
Definition: Pnd2DStar.C:50

Friends And Related Function Documentation

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

Definition at line 35 of file PndHypCluster.h.

35  {
36  std::vector<Int_t> list = cl.GetClusterList();
37  out << "Hits in Cluster:" << std::endl;
38  for (unsigned int i = 0; i<list.size();i++)
39  out << list[i] << std::endl;
40  out << std::endl;
41 
42  return out;
43  }
Int_t i
Definition: run_full.C:25
std::vector< Int_t > GetClusterList() const
Definition: PndHypCluster.h:26
TFile * out
Definition: reco_muo.C:20

Member Data Documentation

std::vector<Int_t> PndHypCluster::fClusterList
private
SensorSide PndHypCluster::fSide
private

Definition at line 47 of file PndHypCluster.h.

Referenced by GetSensorSide(), and SetSensorSide().


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