EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmCluster Class Reference

Base class for cluster objects. More...

#include <EicRoot/blob/master/cbmdata/CbmCluster.h>

+ Inheritance diagram for CbmCluster:
+ Collaboration diagram for CbmCluster:

Public Member Functions

 CbmCluster ()
 Constructor.
 
virtual ~CbmCluster ()
 Destructor.
 
void AddDigi (Int_t index)
 Add digi to cluster.
 
void AddDigis (const std::vector< Int_t > &indices)
 Add array of digi to cluster.
 
void SetDigis (const std::vector< Int_t > &indices)
 Set array of digi to cluster. Overwrites existing array.
 
Int_t GetNofDigis () const
 Number of digis in cluster.
 
Int_t GetDigi (Int_t index) const
 Get digi at position index.
 
const std::vector< Int_t > & GetDigis () const
 Get array of digi indices.
 
void Clear ()
 Remove all digis.
 
Int_t GetAddress () const
 
FairMultiLinkedDataGetLinks () const
 
void SetAddress (Int_t address)
 
void SetLinks (FairMultiLinkedData *links)
 

Private Member Functions

 CbmCluster (const CbmCluster &)
 
CbmClusteroperator= (const CbmCluster &)
 
 ClassDef (CbmCluster, 1)
 

Private Attributes

std::vector< Int_t > fDigis
 Array of digi indices.
 
Int_t fAddress
 Unique detector ID.
 
FairMultiLinkedDatafLinks
 Monte-Carlo link collection.
 

Detailed Description

Base class for cluster objects.

Author
Andrey Lebedev andre.nosp@m.y.le.nosp@m.bedev.nosp@m.@gsi.nosp@m..de
Date
2012

Definition at line 20 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 20 of file CbmCluster.h

Constructor & Destructor Documentation

CbmCluster::CbmCluster ( )

Constructor.

Definition at line 9 of file CbmCluster.cxx.

View newest version in sPHENIX GitHub at line 9 of file CbmCluster.cxx

CbmCluster::~CbmCluster ( )
virtual

Destructor.

Definition at line 18 of file CbmCluster.cxx.

View newest version in sPHENIX GitHub at line 18 of file CbmCluster.cxx

CbmCluster::CbmCluster ( const CbmCluster )
private

Member Function Documentation

void CbmCluster::AddDigi ( Int_t  index)
inline

Add digi to cluster.

Parameters
[in]indexDigi index in TClonesArray.

Definition at line 37 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 37 of file CbmCluster.h

References fDigis.

void CbmCluster::AddDigis ( const std::vector< Int_t > &  indices)
inline

Add array of digi to cluster.

Parameters
[in]indicesArray of digi indices in TClonesArray.

Definition at line 43 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 43 of file CbmCluster.h

References fDigis.

CbmCluster::ClassDef ( CbmCluster  ,
 
)
private
void CbmCluster::Clear ( )
inline

Remove all digis.

Definition at line 73 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 73 of file CbmCluster.h

References fDigis.

Int_t CbmCluster::GetAddress ( ) const
inline

Accessors

Definition at line 76 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 76 of file CbmCluster.h

References fAddress.

Int_t CbmCluster::GetDigi ( Int_t  index) const
inline

Get digi at position index.

Parameters
[in]indexPosition of digi in array.
Returns
Digi index in TClonesArray.

Definition at line 62 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 62 of file CbmCluster.h

References fDigis.

const std::vector<Int_t>& CbmCluster::GetDigis ( ) const
inline

Get array of digi indices.

Returns
Array of digi indices in TClonesArray.

Definition at line 68 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 68 of file CbmCluster.h

References fDigis.

FairMultiLinkedData* CbmCluster::GetLinks ( ) const
inline

Definition at line 77 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 77 of file CbmCluster.h

References fLinks.

Int_t CbmCluster::GetNofDigis ( ) const
inline

Number of digis in cluster.

Returns
Number of digis in cluster.

Definition at line 55 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 55 of file CbmCluster.h

References fDigis.

CbmCluster& CbmCluster::operator= ( const CbmCluster )
private
void CbmCluster::SetAddress ( Int_t  address)
inline

Modifiers

Definition at line 80 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 80 of file CbmCluster.h

References fAddress.

void CbmCluster::SetDigis ( const std::vector< Int_t > &  indices)
inline

Set array of digi to cluster. Overwrites existing array.

Parameters
[in]indicesArray of digi indices in TClonesArray.

Definition at line 49 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 49 of file CbmCluster.h

References fDigis.

void CbmCluster::SetLinks ( FairMultiLinkedData links)
inline

Definition at line 81 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 81 of file CbmCluster.h

References fLinks.

Member Data Documentation

Int_t CbmCluster::fAddress
private

Unique detector ID.

Definition at line 88 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 88 of file CbmCluster.h

Referenced by GetAddress(), and SetAddress().

std::vector<Int_t> CbmCluster::fDigis
private

Array of digi indices.

Definition at line 87 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 87 of file CbmCluster.h

Referenced by AddDigi(), AddDigis(), Clear(), GetDigi(), GetDigis(), GetNofDigis(), and SetDigis().

FairMultiLinkedData* CbmCluster::fLinks
private

Monte-Carlo link collection.

Definition at line 89 of file CbmCluster.h.

View newest version in sPHENIX GitHub at line 89 of file CbmCluster.h

Referenced by GetLinks(), and SetLinks().


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