CbmRoot
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. More...
 
virtual ~CbmMuchCluster ()
 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

Data container for MUCH clusters.

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

Definition at line 20 of file CbmMuchCluster.h.

Constructor & Destructor Documentation

◆ CbmMuchCluster()

CbmMuchCluster::CbmMuchCluster ( )

Default constructor.

Definition at line 7 of file CbmMuchCluster.cxx.

◆ ~CbmMuchCluster()

CbmMuchCluster::~CbmMuchCluster ( )
virtual

Destructor.

Definition at line 9 of file CbmMuchCluster.cxx.

Member Function Documentation

◆ AddDigi()

void CbmCluster::AddDigi ( Int_t  index)
inlineinherited

Add digi to cluster.

Parameters
[in]indexDigi index in TClonesArray.

Definition at line 47 of file CbmCluster.h.

References CbmCluster::fDigis.

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

◆ AddDigis()

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

◆ ClassDef()

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

◆ GetAddress()

◆ GetDigi()

Int_t CbmCluster::GetDigi ( Int_t  index) const
inlineinherited

◆ GetDigis()

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

Int_t CbmCluster::GetNofDigis ( ) const
inlineinherited

Number of digis in cluster.

Returns
Number of digis in cluster.

Definition at line 69 of file CbmCluster.h.

References CbmCluster::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(), CbmCluster::ToString(), CbmStsCluster::ToString(), and CbmStsAlgoAnaCluster::WeightedMean().

◆ SetAddress()

void CbmCluster::SetAddress ( Int_t  address)
inlineinherited

◆ SetDigis()

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

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

Referenced by CbmTrdModuleRecR::addClusters().

◆ SetMatch()

void CbmCluster::SetMatch ( CbmMatch match)
inherited

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

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

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

Member Data Documentation

◆ fAddress

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