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

Data container for MUCH clusters. More...

#include <CbmMuchCluster.h>

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

Public Member Functions

 CbmMuchCluster ()
 Default constructor.
 
virtual ~CbmMuchCluster ()
 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

Data container for MUCH clusters.

Author
Evgeny Kryshen e.kry.nosp@m.shen.nosp@m.@gsi..nosp@m.de

Definition at line 24 of file CbmMuchCluster.h.

Constructor & Destructor Documentation

◆ CbmMuchCluster()

CbmMuchCluster::CbmMuchCluster ( )

Default constructor.

Definition at line 11 of file CbmMuchCluster.cxx.

◆ ~CbmMuchCluster()

CbmMuchCluster::~CbmMuchCluster ( )
virtual

Destructor.

Definition at line 13 of file CbmMuchCluster.cxx.

Member Function Documentation

◆ AddDigi()

void CbmCluster::AddDigi ( int32_t index)
inlineinherited

Add digi to cluster.

Parameters
[in]indexDigi index in TClonesArray.

Definition at line 51 of file CbmCluster.h.

References CbmCluster::fDigis.

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

◆ AddDigis()

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

◆ ClassDef()

CbmCluster::ClassDef ( CbmCluster ,
2  )
privateinherited

◆ ClearDigis()

void CbmCluster::ClearDigis ( )
inlineinherited

Remove all digis.

Definition at line 87 of file CbmCluster.h.

References CbmCluster::fDigis.

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

◆ GetAddress()

◆ GetDigi()

◆ GetDigis()

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

Get array of digi indices.

Returns
Array of digi indices in TClonesArray.

Definition at line 82 of file CbmCluster.h.

References CbmCluster::fDigis.

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

◆ GetMatch()

CbmMatch * CbmCluster::GetMatch ( ) const
inlineinherited

Definition at line 91 of file CbmCluster.h.

References CbmCluster::fMatch.

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

◆ GetNofDigis()

◆ SetAddress()

◆ SetDigis()

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

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 CbmCluster::fDigis.

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

◆ SetMatch()

void CbmCluster::SetMatch ( CbmMatch * match)
inherited

Definition at line 80 of file CbmCluster.cxx.

References CbmCluster::fMatch.

◆ ToString()

string CbmCluster::ToString ( ) const
virtualinherited

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 CbmCluster::fAddress, CbmCluster::fDigis, and CbmCluster::GetNofDigis().

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

Member Data Documentation

◆ fAddress

int32_t CbmCluster::fAddress
privateinherited

Unique detector ID.

Definition at line 105 of file CbmCluster.h.

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

◆ fDigis

◆ fMatch

CbmMatch* CbmCluster::fMatch
privateinherited

link to Monte-Carlo information

Definition at line 106 of file CbmCluster.h.

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


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