CbmRoot
|
Base class for cluster objects. More...
#include <CbmCluster.h>
Public Member Functions | |
CbmCluster () | |
Constructor. | |
CbmCluster (const std::vector< int32_t > &indices, int32_t address) | |
CbmCluster (const CbmCluster &) | |
CbmCluster (CbmCluster &&other) noexcept | |
CbmCluster & | operator= (const CbmCluster &) |
CbmCluster & | operator= (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 |
CbmMatch * | GetMatch () 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. | |
CbmMatch * | fMatch |
link to Monte-Carlo information | |
CbmCluster::CbmCluster | ( | ) |
Constructor.
Definition at line 22 of file CbmCluster.cxx.
CbmCluster::CbmCluster | ( | const std::vector< int32_t > & | indices, |
int32_t | address ) |
Definition at line 23 of file CbmCluster.cxx.
References fDigis.
CbmCluster::CbmCluster | ( | const CbmCluster & | other | ) |
Definition at line 32 of file CbmCluster.cxx.
References fMatch.
|
noexcept |
Definition at line 44 of file CbmCluster.cxx.
|
virtual |
Destructor.
Definition at line 78 of file CbmCluster.cxx.
|
inline |
Add digi to cluster.
[in] | index | Digi index in TClonesArray. |
Definition at line 51 of file CbmCluster.h.
References fDigis.
Referenced by CbmTrdCluster::AddDigi(), CbmMvdSensorClusterfinderTask::ExecFrame(), CbmRecoStsPixel::ProcessData(), and TEST().
|
inline |
Add array of digi to cluster.
[in] | indices | Array of digi indices in TClonesArray. |
Definition at line 57 of file CbmCluster.h.
References fDigis.
Referenced by CbmTrdCluster::AddDigi(), CbmMuchClustering::ClusteringA1(), CbmMuchClustering::ClusteringSL(), CbmMuchClustering::ClusteringWard(), CbmMuchFindHitsGem::ExecClusteringPeaks(), CbmMuchFindHitsGem::ExecClusteringSimple(), CbmMuchFindHitsGem::FindClusters(), CbmTrdCluster::Merge(), and TEST().
|
private |
|
inline |
Remove all digis.
Definition at line 87 of file CbmCluster.h.
References fDigis.
Referenced by CbmTrdCluster::AddDigi(), CbmTrdCluster::Clear(), CbmTrdCluster::Merge(), and TEST().
|
inline |
Accessors
Definition at line 90 of file CbmCluster.h.
References fAddress.
Referenced by compareClusterDataMembers(), CbmMvdCluster::GetSensorNr(), CbmMvdCluster::GetStationNr(), CbmLitClusteringQa::ProcessClusters(), CbmTrdCalibTracker::ResolutionQa(), CbmMuchHitFinderQa::StatisticsQa(), CbmStsCluster::ToString(), and CbmTrdCluster::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 CbmStsAlgoAnaCluster::AnaSize1(), CbmStsAlgoAnaCluster::AnaSize2(), CbmStsAlgoAnaCluster::AnaSizeN(), CbmStsTrackFinder::CalculateEloss(), CbmMuchHitFinderQa::ClusterDeconvQa(), compareClusterDataMembers(), CbmMuchFindHitsGem::CreateHits(), CbmMuchTrackFinderIdeal::DoFind(), CbmTrdHitDensityQa::Exec(), CbmTrdOccupancyQa::Exec(), CbmTrdQa::Exec(), CbmTrdRecoQa::Exec(), CbmMuchFindHitsGem::ExecClusteringPeaks(), CbmMuchFindHitsGem::ExecClusteringSimple(), CbmHadronAnalysis::ExecEvent(), CbmMuchMatchTracks::ExecPixel(), CbmTrdModuleRecR::IsClusterComplete(), CbmMatchRecoToMC::MatchClusters(), CbmMatchRecoToMC::MatchClusters(), CbmMuchHitFinderQa::PullsQa(), CbmTrdCalibTracker::ResolutionQa(), CbmKFParticleFinderPID::SetRecoPID(), 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 CbmStsAlgoAnaCluster::AnaSizeN(), CbmStsTrackFinder::CalculateEloss(), CbmMuchHitFinderQa::ClusterDeconvQa(), compareClusterDataMembers(), CbmMvdSensorHitfinderTask::ComputeCenterOfGravity(), CbmMuchFindHitsGem::CreateHits(), CbmMuchTrackFinderIdeal::DoFind(), CbmMvdClusterAna::Exec(), CbmStsAlgoAnaCluster::Exec(), CbmTrdHitDensityQa::Exec(), CbmTrdOccupancyQa::Exec(), CbmTrdQa::Exec(), CbmTrdRecoQa::Exec(), CbmMuchFindHitsGem::ExecClusteringPeaks(), CbmMuchFindHitsGem::ExecClusteringSimple(), CbmHadronAnalysis::ExecEvent(), CbmMuchMatchTracks::ExecPixel(), PairAnalysisVarManager::FillVarTrdCluster(), CbmTrdModuleRecR::IsClusterComplete(), CbmMatchRecoToMC::MatchClusters(), CbmMatchRecoToMC::MatchClusters(), CbmLitClusteringQa::ProcessClusters(), CbmMuchHitFinderQa::PullsQa(), CbmTrdCalibTracker::ResolutionQa(), CbmKFParticleFinderPID::SetRecoPID(), CbmMuchHitFinderQa::StatisticsQa(), ToString(), CbmStsCluster::ToString(), and CbmStsAlgoAnaCluster::WeightedMean().
|
noexcept |
Definition at line 67 of file CbmCluster.cxx.
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=().
|
inline |
Modifiers
Definition at line 94 of file CbmCluster.h.
References fAddress.
Referenced by CbmTrdModuleRecR::addClusters(), CbmStsAlgoFindClusters::CreateCluster(), CbmMvdSensorClusterfinderTask::ExecFrame(), CbmMuchFindHitsGem::FindClusters(), CbmRecoSts::ForwardGpuClusterAndHits(), CbmTrdCluster::ReInit(), and TEST().
|
inline |
Set array of digi to cluster. Overwrites existing array.
[in] | indices | Array of digi indices in TClonesArray. |
Definition at line 63 of file CbmCluster.h.
References fDigis.
Referenced by CbmTrdModuleRecR::addClusters(), and TEST().
void CbmCluster::SetMatch | ( | CbmMatch * | match | ) |
Definition at line 80 of file CbmCluster.cxx.
References fMatch.
|
virtual |
Return 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().
|
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().