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

Private Member Functions

 ClassDef (CbmCluster, 2)
 

Private Attributes

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

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

Constructor & Destructor Documentation

◆ CbmCluster() [1/4]

CbmCluster::CbmCluster ( )

Constructor.

Definition at line 18 of file CbmCluster.cxx.

◆ CbmCluster() [2/4]

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

Definition at line 19 of file CbmCluster.cxx.

References fDigis.

◆ CbmCluster() [3/4]

CbmCluster::CbmCluster ( const CbmCluster other)

Definition at line 24 of file CbmCluster.cxx.

References CbmMatch::AddLinks(), and fMatch.

◆ CbmCluster() [4/4]

CbmCluster::CbmCluster ( CbmCluster &&  other)
noexcept

Definition at line 35 of file CbmCluster.cxx.

◆ ~CbmCluster()

CbmCluster::~CbmCluster ( )
virtual

Destructor.

Definition at line 66 of file CbmCluster.cxx.

Member Function Documentation

◆ AddDigi()

void CbmCluster::AddDigi ( Int_t  index)
inline

Add digi to cluster.

Parameters
[in]indexDigi index in TClonesArray.

Definition at line 47 of file CbmCluster.h.

References fDigis.

Referenced by CbmTrdCluster::AddDigi(), and CbmMvdSensorClusterfinderTask::Exec().

◆ AddDigis()

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

◆ ClassDef()

CbmCluster::ClassDef ( CbmCluster  ,
 
)
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(), and CbmTrdCluster::Merge().

◆ GetAddress()

◆ GetDigi()

◆ GetDigis()

const std::vector<Int_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()

Int_t CbmCluster::GetNofDigis ( ) const
inline

Number of digis in cluster.

Returns
Number of digis in cluster.

Definition at line 69 of file CbmCluster.h.

References fDigis.

Referenced by LxTBFinder::AddHit(), CbmStsAlgoAnaCluster::AnaSizeN(), CbmStsTrackFinder::CalculateEloss(), CbmMuchFindVectorsQA::CheckMatchGem(), CbmMuchHitFinderQa::ClusterDeconvQa(), compareClusterDataMembers(), CbmMvdSensorHitfinderTask::ComputeCenterOfGravity(), CbmMuchFindHitsGem::CreateHits(), CbmMuchTrackFinderIdeal::DoFind(), CbmMvdClusterAna::Exec(), CbmBinnedTrackerQANew::Exec(), CbmTrdHitProducer::Exec(), CbmBinnedTrackerQA::Exec(), CbmTrdQa::Exec(), LxFinderTriplet::Exec(), CbmTrdHitDensityQa::Exec(), CbmStsAlgoAnaCluster::Exec(), CbmTrdRecoQa::Exec(), LxTBTrdFinder::Exec(), LxTrackAna::Exec(), LxTrackAnaTriplet::Exec(), LxTBMLFinder::Exec(), LxFinder::Exec(), CbmBinnedDebug::Exec(), CbmGlobalTrackingQA::Exec(), CbmTrdOccupancyQa::Exec(), CbmMuchFindHitsGem::ExecClusteringPeaks(), CbmMuchFindHitsGem::ExecClusteringSimple(), CbmHadronAnalysis::ExecEvent(), CbmMuchMatchTracks::ExecPixel(), PairAnalysisVarManager::FillVarTrdCluster(), CbmBinnedTrackerQA::HandleMuch(), CbmBinnedTrackerQA::HandleSts(), CbmBinnedTrackerQA::HandleTrd(), CbmBinnedTrackerQA::IterateTrdHits(), CbmMatchRecoToMC::MatchClusters(), CbmLitClusteringQa::ProcessClusters(), CbmMuchHitFinderQa::PullsQa(), CbmKFParticleFinderPID::SetRecoPID(), CbmMuchFindVectorsGem::SetTrackId(), CbmTrdFindVectors::SetTrackId(), CbmMuchHitFinderQa::StatisticsQa(), ToString(), CbmStsCluster::ToString(), and CbmStsAlgoAnaCluster::WeightedMean().

◆ operator=() [1/2]

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

Definition at line 56 of file CbmCluster.cxx.

◆ operator=() [2/2]

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

Definition at line 43 of file CbmCluster.cxx.

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

◆ SetAddress()

void CbmCluster::SetAddress ( Int_t  address)
inline

◆ SetDigis()

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

References fDigis.

Referenced by CbmTrdModuleRecR::addClusters().

◆ SetMatch()

void CbmCluster::SetMatch ( CbmMatch match)

Definition at line 68 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 74 of file CbmCluster.cxx.

References fAddress, fDigis, GetNofDigis(), and i.

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

Member Data Documentation

◆ fAddress

Int_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<Int_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: