CbmRoot
|
Base class for cluster objects. More...
#include <CbmCluster.h>
Public Member Functions | |
CbmCluster () | |
Constructor. More... | |
CbmCluster (const std::vector< Int_t > &indices, Int_t address) | |
CbmCluster (const CbmCluster &) | |
CbmCluster (CbmCluster &&other) noexcept | |
CbmCluster & | operator= (const CbmCluster &) |
CbmCluster & | operator= (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 |
CbmMatch * | GetMatch () 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... | |
CbmMatch * | fMatch |
link to Monte-Carlo information More... | |
CbmCluster::CbmCluster | ( | ) |
Constructor.
Definition at line 18 of file CbmCluster.cxx.
CbmCluster::CbmCluster | ( | const std::vector< Int_t > & | indices, |
Int_t | address | ||
) |
Definition at line 19 of file CbmCluster.cxx.
References fDigis.
CbmCluster::CbmCluster | ( | const CbmCluster & | other | ) |
Definition at line 24 of file CbmCluster.cxx.
References CbmMatch::AddLinks(), and fMatch.
|
noexcept |
Definition at line 35 of file CbmCluster.cxx.
|
virtual |
Destructor.
Definition at line 66 of file CbmCluster.cxx.
|
inline |
Add digi to cluster.
[in] | index | Digi index in TClonesArray. |
Definition at line 47 of file CbmCluster.h.
References fDigis.
Referenced by CbmTrdCluster::AddDigi(), and CbmMvdSensorClusterfinderTask::Exec().
|
inline |
Add array of digi to cluster.
[in] | indices | Array of digi indices in TClonesArray. |
Definition at line 53 of file CbmCluster.h.
References fDigis.
Referenced by CbmTrdCluster::AddDigi(), CbmMuchClustering::ClusteringA1(), CbmMuchClustering::ClusteringSL(), CbmMuchClustering::ClusteringWard(), CbmMuchFindHitsGem::ExecClusteringPeaks(), CbmMuchFindHitsGem::ExecClusteringSimple(), CbmMuchFindHitsGem::FindClusters(), and CbmTrdCluster::Merge().
|
private |
|
inline |
Remove all digis.
Definition at line 87 of file CbmCluster.h.
References fDigis.
Referenced by CbmTrdCluster::AddDigi(), CbmTrdCluster::Clear(), and CbmTrdCluster::Merge().
|
inline |
Accessors
Definition at line 90 of file CbmCluster.h.
References fAddress.
Referenced by compareClusterDataMembers(), CbmTrdHitProducer::Exec(), CbmMvdCluster::GetSensorNr(), CbmMvdCluster::GetStationNr(), CbmLitClusteringQa::ProcessClusters(), CbmMuchHitFinderQa::StatisticsQa(), CbmTrdCluster::ToString(), and CbmStsCluster::ToString().
|
inline |
Get digi at position index.
[in] | index | Position of digi in array. |
Definition at line 76 of file CbmCluster.h.
References fDigis.
Referenced by LxTBFinder::AddHit(), CbmStsAlgoAnaCluster::AnaSize1(), CbmStsAlgoAnaCluster::AnaSize2(), CbmStsAlgoAnaCluster::AnaSizeN(), CbmStsTrackFinder::CalculateEloss(), CbmMuchFindVectorsQA::CheckMatchGem(), CbmMuchHitFinderQa::ClusterDeconvQa(), compareClusterDataMembers(), CbmMuchFindHitsGem::CreateHits(), CbmMuchTrackFinderIdeal::DoFind(), CbmBinnedTrackerQANew::Exec(), CbmBinnedTrackerQA::Exec(), CbmTrdHitProducer::Exec(), LxFinderTriplet::Exec(), CbmTrdQa::Exec(), CbmTrdHitDensityQa::Exec(), LxTBTrdFinder::Exec(), CbmTrdRecoQa::Exec(), LxTrackAna::Exec(), LxTrackAnaTriplet::Exec(), LxTBMLFinder::Exec(), LxFinder::Exec(), CbmBinnedDebug::Exec(), CbmGlobalTrackingQA::Exec(), CbmTrdOccupancyQa::Exec(), CbmMuchFindHitsGem::ExecClusteringPeaks(), CbmMuchFindHitsGem::ExecClusteringSimple(), CbmHadronAnalysis::ExecEvent(), CbmMuchMatchTracks::ExecPixel(), CbmBinnedTrackerQA::HandleMuch(), CbmBinnedTrackerQA::HandleSts(), CbmBinnedTrackerQA::HandleTrd(), CbmBinnedTrackerQA::IterateTrdHits(), CbmMatchRecoToMC::MatchClusters(), CbmMuchHitFinderQa::PullsQa(), CbmKFParticleFinderPID::SetRecoPID(), CbmMuchFindVectorsGem::SetTrackId(), CbmTrdFindVectors::SetTrackId(), CbmMuchHitFinderQa::StatisticsQa(), and CbmStsAlgoAnaCluster::WeightedMean().
|
inline |
Get array of digi indices.
Definition at line 82 of file CbmCluster.h.
References fDigis.
Referenced by CbmTrdCluster::AddDigi(), compareClusterDataMembers(), and CbmTrdCluster::Merge().
|
inline |
Definition at line 91 of file CbmCluster.h.
References fMatch.
Referenced by compareClusterDataMembers(), and CbmKFTrackFitQA::StsHitMatch().
|
inline |
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().
|
noexcept |
Definition at line 56 of file CbmCluster.cxx.
CbmCluster & CbmCluster::operator= | ( | const CbmCluster & | other | ) |
Definition at line 43 of file CbmCluster.cxx.
References CbmMatch::AddLinks(), fAddress, fDigis, and fMatch.
|
inline |
Modifiers
Definition at line 94 of file CbmCluster.h.
References fAddress.
Referenced by CbmTrdModuleRecR::addClusters(), CbmStsAlgoFindClusters::CreateCluster(), CbmMvdSensorClusterfinderTask::Exec(), CbmMuchFindHitsGem::FindClusters(), and CbmTrdCluster::ReInit().
|
inline |
Set array of digi to cluster. Overwrites existing array.
[in] | indices | Array of digi indices in TClonesArray. |
Definition at line 61 of file CbmCluster.h.
References fDigis.
Referenced by CbmTrdModuleRecR::addClusters().
void CbmCluster::SetMatch | ( | CbmMatch * | match | ) |
Definition at line 68 of file CbmCluster.cxx.
References fMatch.
|
virtual |
Return 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().
|
private |
Unique detector ID.
Definition at line 105 of file CbmCluster.h.
Referenced by GetAddress(), operator=(), SetAddress(), and ToString().
|
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().
|
private |
link to Monte-Carlo information
Definition at line 106 of file CbmCluster.h.
Referenced by CbmCluster(), GetMatch(), operator=(), and SetMatch().