CbmRoot
Loading...
Searching...
No Matches
CbmCluster Class Reference

Base class for cluster objects. More...

#include <CbmCluster.h>

Inheritance diagram for CbmCluster:
[legend]
Collaboration diagram for CbmCluster:
[legend]

Public Member Functions

 CbmCluster ()
 Constructor.
 
 CbmCluster (const std::vector< int32_t > &indices, int32_t address)
 
 CbmCluster (const CbmCluster &)
 
 CbmCluster (CbmCluster &&other) noexcept
 
CbmClusteroperator= (const CbmCluster &)
 
CbmClusteroperator= (CbmCluster &&) noexcept
 
virtual ~CbmCluster ()
 Destructor.
 
void AddDigi (int32_t index)
 Add digi to cluster.
 
void AddDigis (const std::vector< int32_t > &indices)
 Add array of digi to cluster.
 
void SetDigis (const std::vector< int32_t > &indices)
 Set array of digi to cluster. Overwrites existing array.
 
int32_t GetNofDigis () const
 Number of digis in cluster.
 
int32_t GetDigi (int32_t index) const
 Get digi at position index.
 
const std::vector< int32_t > & GetDigis () const
 Get array of digi indices.
 
void ClearDigis ()
 Remove all digis.
 
int32_t GetAddress () const
 
CbmMatchGetMatch () const
 
void SetAddress (int32_t address)
 
void SetMatch (CbmMatch *match)
 
virtual std::string ToString () const
 Return string representation of the object.
 

Private Member Functions

 ClassDef (CbmCluster, 2)
 

Private Attributes

std::vector< int32_t > fDigis
 Array of digi indices.
 
int32_t fAddress
 Unique detector ID.
 
CbmMatchfMatch
 link to Monte-Carlo information
 

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 30 of file CbmCluster.h.

Constructor & Destructor Documentation

◆ CbmCluster() [1/4]

CbmCluster::CbmCluster ( )

Constructor.

Definition at line 22 of file CbmCluster.cxx.

◆ CbmCluster() [2/4]

CbmCluster::CbmCluster ( const std::vector< int32_t > & indices,
int32_t address )

Definition at line 23 of file CbmCluster.cxx.

References fDigis.

◆ CbmCluster() [3/4]

CbmCluster::CbmCluster ( const CbmCluster & other)

Definition at line 32 of file CbmCluster.cxx.

References fMatch.

◆ CbmCluster() [4/4]

CbmCluster::CbmCluster ( CbmCluster && other)
noexcept

Definition at line 44 of file CbmCluster.cxx.

◆ ~CbmCluster()

CbmCluster::~CbmCluster ( )
virtual

Destructor.

Definition at line 78 of file CbmCluster.cxx.

Member Function Documentation

◆ AddDigi()

void CbmCluster::AddDigi ( int32_t index)
inline

Add digi to cluster.

Parameters
[in]indexDigi index in TClonesArray.

Definition at line 51 of file CbmCluster.h.

References fDigis.

Referenced by CbmTrdCluster::AddDigi(), CbmMvdSensorClusterfinderTask::ExecFrame(), CbmRecoStsPixel::ProcessData(), and TEST().

◆ AddDigis()

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

◆ ClassDef()

CbmCluster::ClassDef ( CbmCluster ,
2  )
private

◆ ClearDigis()

void CbmCluster::ClearDigis ( )
inline

Remove all digis.

Definition at line 87 of file CbmCluster.h.

References fDigis.

Referenced by CbmTrdCluster::AddDigi(), CbmTrdCluster::Clear(), CbmTrdCluster::Merge(), and TEST().

◆ GetAddress()

◆ GetDigi()

◆ GetDigis()

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

Get array of digi indices.

Returns
Array of digi indices in TClonesArray.

Definition at line 82 of file CbmCluster.h.

References fDigis.

Referenced by CbmTrdCluster::AddDigi(), compareClusterDataMembers(), and CbmTrdCluster::Merge().

◆ GetMatch()

CbmMatch * CbmCluster::GetMatch ( ) const
inline

Definition at line 91 of file CbmCluster.h.

References fMatch.

Referenced by compareClusterDataMembers(), and CbmKFTrackFitQa::StsHitMatch().

◆ GetNofDigis()

◆ operator=() [1/2]

CbmCluster & CbmCluster::operator= ( CbmCluster && other)
noexcept

Definition at line 67 of file CbmCluster.cxx.

◆ operator=() [2/2]

CbmCluster & CbmCluster::operator= ( const CbmCluster & other)

Definition at line 53 of file CbmCluster.cxx.

References CbmMatch::AddLinks(), fAddress, fDigis, and fMatch.

Referenced by CbmTrdCluster::operator=().

◆ SetAddress()

◆ SetDigis()

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

Set array of digi to cluster. Overwrites existing array.

Parameters
[in]indicesArray of digi indices in TClonesArray.

Definition at line 63 of file CbmCluster.h.

References fDigis.

Referenced by CbmTrdModuleRecR::addClusters(), and TEST().

◆ SetMatch()

void CbmCluster::SetMatch ( CbmMatch * match)

Definition at line 80 of file CbmCluster.cxx.

References fMatch.

◆ ToString()

string CbmCluster::ToString ( ) const
virtual

Return string representation of the object.

Returns
String representation of the object.

Reimplemented in CbmStsCluster, and CbmTrdCluster.

Definition at line 87 of file CbmCluster.cxx.

References fAddress, fDigis, and GetNofDigis().

Referenced by CbmStsCluster::ToString(), and CbmTrdCluster::ToString().

Member Data Documentation

◆ fAddress

int32_t CbmCluster::fAddress
private

Unique detector ID.

Definition at line 105 of file CbmCluster.h.

Referenced by GetAddress(), operator=(), SetAddress(), and ToString().

◆ fDigis

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

Array of digi indices.

Definition at line 104 of file CbmCluster.h.

Referenced by AddDigi(), AddDigis(), CbmCluster(), ClearDigis(), GetDigi(), GetDigis(), GetNofDigis(), operator=(), SetDigis(), and ToString().

◆ fMatch

CbmMatch* CbmCluster::fMatch
private

link to Monte-Carlo information

Definition at line 106 of file CbmCluster.h.

Referenced by CbmCluster(), GetMatch(), operator=(), and SetMatch().


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