CbmRoot
|
Data Container for TRD clusters. More...
#include <CbmTrdCluster.h>
Public Types | |
enum | CbmTrdClusterDef { kTriang = 5, kProfileStart, kProfileStop } |
Public Member Functions | |
CbmTrdCluster () | |
Default constructor. More... | |
CbmTrdCluster (const CbmTrdCluster &ref) | |
CbmTrdCluster (const std::vector< Int_t > &indices, Int_t address) | |
CbmTrdCluster (Int_t address, Int_t idx, Int_t ch, Int_t r, Int_t time) | |
Constructor starting from first digit. More... | |
virtual | ~CbmTrdCluster () |
Destructor. More... | |
Bool_t | AddDigi (Int_t idx, Int_t channel=-1, Int_t terminator=0, Int_t dt=0) |
Append digi to cluster. More... | |
void | Clear (Option_t *) |
reset cluster data More... | |
UShort_t | GetNCols () const |
UShort_t | GetNRows () const |
UShort_t | GetEndCh () const |
UShort_t | GetRow () const |
UShort_t | GetStartCh () const |
UShort_t | GetStartTime () const |
Bool_t | HasTrianglePads () const |
Bool_t | HasOpenStart () const |
Bool_t | HasOpenStop () const |
Int_t | IsChannelInRange (Int_t ch) const |
Query on RO channel list. More... | |
Bool_t | Merge (CbmTrdCluster *second) |
Merge current cluster with info from second. More... | |
void | ReInit (Int_t address, Int_t row, Int_t time) |
Initialize basic parameters of the cluster. More... | |
void | SetNCols (UShort_t ncols) |
void | SetNRows (UShort_t nrows) |
void | SetTrianglePads (Bool_t set=kTRUE) |
void | SetProfileStart (Bool_t set=kTRUE) |
void | SetProfileStop (Bool_t set=kTRUE) |
virtual std::string | ToString () const |
Extended functionality. 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) |
Protected Attributes | |
UChar_t | fNCols |
UChar_t | fNRows |
UShort_t | fStartCh |
UShort_t | fStartTime |
channel address of first channel 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... | |
Data Container for TRD clusters.
Definition at line 23 of file CbmTrdCluster.h.
Enumerator | |
---|---|
kTriang | set type of pads on which the cluster is reconstructed |
kProfileStart | only for triangular if no T in first col |
kProfileStop | only for triangular if no R in last col |
Definition at line 25 of file CbmTrdCluster.h.
CbmTrdCluster::CbmTrdCluster | ( | ) |
Default constructor.
Definition at line 19 of file CbmTrdCluster.cxx.
CbmTrdCluster::CbmTrdCluster | ( | const CbmTrdCluster & | ref | ) |
Definition at line 27 of file CbmTrdCluster.cxx.
CbmTrdCluster::CbmTrdCluster | ( | const std::vector< Int_t > & | indices, |
Int_t | address | ||
) |
Definition at line 35 of file CbmTrdCluster.cxx.
CbmTrdCluster::CbmTrdCluster | ( | Int_t | address, |
Int_t | idx, | ||
Int_t | ch, | ||
Int_t | r, | ||
Int_t | time | ||
) |
Constructor starting from first digit.
[in] | address | global module address |
[in] | idx | global digi index in the TClonesArray |
[in] | ch | RO channel address within the module |
[in] | r | module row for the RO channel |
[in] | time | relative buffer DAQ time |
Definition at line 43 of file CbmTrdCluster.cxx.
|
virtual |
Destructor.
Definition at line 58 of file CbmTrdCluster.cxx.
Bool_t CbmTrdCluster::AddDigi | ( | Int_t | idx, |
Int_t | channel = -1 , |
||
Int_t | terminator = 0 , |
||
Int_t | dt = 0 |
||
) |
Append digi to cluster.
[in] | idx | index of digi in TClonesArray |
[in] | channel | RO channel for digi |
[in] | terminator | state of digi for triangular pads: 0 if complete, -/+ if T/R misses |
[in] | dt | update start time of cluster if current digi is prompt |
Extend basic functionality of CbmCluster::AddDigi(). If channel>=0 add this info to channel map.
Definition at line 62 of file CbmTrdCluster.cxx.
References CbmCluster::AddDigi(), CbmCluster::AddDigis(), CbmCluster::ClearDigis(), fNCols, fStartCh, fStartTime, CbmCluster::GetDigis(), GetEndCh(), HasOpenStart(), HasOpenStop(), SetProfileStart(), and SetProfileStop().
Referenced by CbmTrdCluster().
|
inlineinherited |
Add digi to cluster.
[in] | index | Digi index in TClonesArray. |
Definition at line 47 of file CbmCluster.h.
References CbmCluster::fDigis.
Referenced by AddDigi(), and CbmMvdSensorClusterfinderTask::Exec().
|
inlineinherited |
Add array of digi to cluster.
[in] | indices | Array of digi indices in TClonesArray. |
Definition at line 53 of file CbmCluster.h.
References CbmCluster::fDigis.
Referenced by AddDigi(), CbmMuchClustering::ClusteringA1(), CbmMuchClustering::ClusteringSL(), CbmMuchClustering::ClusteringWard(), CbmMuchFindHitsGem::ExecClusteringPeaks(), CbmMuchFindHitsGem::ExecClusteringSimple(), CbmMuchFindHitsGem::FindClusters(), and Merge().
|
privateinherited |
void CbmTrdCluster::Clear | ( | Option_t * | ) |
reset cluster data
Definition at line 103 of file CbmTrdCluster.cxx.
References CbmCluster::ClearDigis(), fNCols, fNRows, fStartCh, and fStartTime.
|
inlineinherited |
|
inlineinherited |
Accessors
Definition at line 90 of file CbmCluster.h.
References CbmCluster::fAddress.
Referenced by compareClusterDataMembers(), CbmTrdHitProducer::Exec(), CbmMvdCluster::GetSensorNr(), CbmMvdCluster::GetStationNr(), CbmLitClusteringQa::ProcessClusters(), CbmMuchHitFinderQa::StatisticsQa(), ToString(), and CbmStsCluster::ToString().
|
inlineinherited |
Get digi at position index.
[in] | index | Position of digi in array. |
Definition at line 76 of file CbmCluster.h.
References CbmCluster::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().
|
inlineinherited |
Get array of digi indices.
Definition at line 82 of file CbmCluster.h.
References CbmCluster::fDigis.
Referenced by AddDigi(), compareClusterDataMembers(), and Merge().
|
inline |
Definition at line 66 of file CbmTrdCluster.h.
References fNCols, and fStartCh.
Referenced by AddDigi().
|
inlineinherited |
Definition at line 91 of file CbmCluster.h.
References CbmCluster::fMatch.
Referenced by compareClusterDataMembers(), and CbmKFTrackFitQA::StsHitMatch().
|
inline |
Accessors
Definition at line 64 of file CbmTrdCluster.h.
References fNCols.
Referenced by PairAnalysisVarManager::FillVarTrdCluster(), and CbmTrdModuleRecT::MakeHit().
|
inlineinherited |
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().
|
inline |
Definition at line 65 of file CbmTrdCluster.h.
References fNRows.
Referenced by PairAnalysisVarManager::FillVarTrdCluster(), and GetRow().
|
inline |
Definition at line 67 of file CbmTrdCluster.h.
References GetNRows().
Referenced by Merge(), and ToString().
|
inline |
Definition at line 68 of file CbmTrdCluster.h.
References fStartCh.
Referenced by CbmTrdModuleRecT::MakeHit().
|
inline |
Definition at line 69 of file CbmTrdCluster.h.
References fStartTime.
Referenced by CbmTrdModuleRecT::MakeHit().
|
inline |
Definition at line 71 of file CbmTrdCluster.h.
References fNRows, and kProfileStart.
Referenced by AddDigi(), CbmTrdModuleRecT::MakeHit(), Merge(), and ToString().
|
inline |
Definition at line 72 of file CbmTrdCluster.h.
References fNRows, and kProfileStop.
Referenced by AddDigi(), CbmTrdModuleRecT::MakeHit(), Merge(), and ToString().
|
inline |
Definition at line 70 of file CbmTrdCluster.h.
References fNRows, and kTriang.
Referenced by Merge(), and ToString().
Int_t CbmTrdCluster::IsChannelInRange | ( | Int_t | ch | ) | const |
Query on RO channel list.
[in] | channel | RO channel for digi |
Definition at line 128 of file CbmTrdCluster.cxx.
Bool_t CbmTrdCluster::Merge | ( | CbmTrdCluster * | second | ) |
Merge current cluster with info from second.
[in] | second | cluster to be added |
Definition at line 139 of file CbmTrdCluster.cxx.
References CbmCluster::AddDigis(), CbmCluster::ClearDigis(), fNCols, fStartCh, fStartTime, CbmCluster::GetDigis(), GetRow(), HasOpenStart(), HasOpenStop(), HasTrianglePads(), SetProfileStart(), and SetProfileStop().
void CbmTrdCluster::ReInit | ( | Int_t | address, |
Int_t | row, | ||
Int_t | time | ||
) |
Initialize basic parameters of the cluster.
[in] | address | global module address |
[in] | row | cluster row in the module |
[in] | time | cluster time in time buffer |
Definition at line 112 of file CbmTrdCluster.cxx.
References fNCols, fStartCh, fStartTime, CbmCluster::SetAddress(), SetNRows(), SetProfileStart(), and SetProfileStop().
Referenced by CbmTrdCluster().
|
inlineinherited |
Modifiers
Definition at line 94 of file CbmCluster.h.
References CbmCluster::fAddress.
Referenced by CbmTrdModuleRecR::addClusters(), CbmStsAlgoFindClusters::CreateCluster(), CbmMvdSensorClusterfinderTask::Exec(), CbmMuchFindHitsGem::FindClusters(), and ReInit().
|
inlineinherited |
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 CbmCluster::fDigis.
Referenced by CbmTrdModuleRecR::addClusters().
|
inherited |
Definition at line 68 of file CbmCluster.cxx.
References CbmCluster::fMatch.
|
inline |
Setters
Definition at line 91 of file CbmTrdCluster.h.
References fNCols.
Referenced by CbmTrdModuleRecR::addClusters().
|
inline |
|
inline |
Definition at line 99 of file CbmTrdCluster.h.
References fNRows, and kProfileStart.
Referenced by CbmTrdModuleRecT::AddDigi(), AddDigi(), Merge(), and ReInit().
|
inline |
Definition at line 102 of file CbmTrdCluster.h.
References fNRows, and kProfileStop.
Referenced by CbmTrdModuleRecT::AddDigi(), AddDigi(), Merge(), and ReInit().
|
inline |
Definition at line 96 of file CbmTrdCluster.h.
References fNRows, and kTriang.
Referenced by CbmTrdClusterFinder::AddClusters(), CbmTrdModuleRecT::AddDigi(), and CbmTrdModuleRecT::FindClusters().
|
virtual |
Extended functionality.
Reimplemented from CbmCluster.
Definition at line 201 of file CbmTrdCluster.cxx.
References fNCols, fStartCh, fStartTime, CbmCluster::GetAddress(), GetRow(), HasOpenStart(), HasOpenStop(), HasTrianglePads(), i, and CbmCluster::ToString().
Referenced by CbmTrdModuleRecT::AddDigi(), and CbmTrdModuleRecT::MakeHit().
|
privateinherited |
Unique detector ID.
Definition at line 105 of file CbmCluster.h.
Referenced by CbmCluster::GetAddress(), CbmCluster::operator=(), CbmCluster::SetAddress(), and CbmCluster::ToString().
|
privateinherited |
Array of digi indices.
Definition at line 104 of file CbmCluster.h.
Referenced by CbmCluster::AddDigi(), CbmCluster::AddDigis(), CbmCluster::CbmCluster(), CbmCluster::ClearDigis(), CbmCluster::GetDigi(), CbmCluster::GetDigis(), CbmCluster::GetNofDigis(), CbmCluster::operator=(), CbmCluster::SetDigis(), and CbmCluster::ToString().
|
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().
|
protected |
Definition at line 110 of file CbmTrdCluster.h.
Referenced by AddDigi(), Clear(), GetEndCh(), GetNCols(), IsChannelInRange(), Merge(), ReInit(), SetNCols(), and ToString().
|
protected |
Definition at line 112 of file CbmTrdCluster.h.
Referenced by Clear(), GetNRows(), HasOpenStart(), HasOpenStop(), HasTrianglePads(), SetNRows(), SetProfileStart(), SetProfileStop(), and SetTrianglePads().
|
protected |
Definition at line 113 of file CbmTrdCluster.h.
Referenced by AddDigi(), Clear(), GetEndCh(), GetStartCh(), IsChannelInRange(), Merge(), ReInit(), and ToString().
|
protected |
channel address of first channel
Definition at line 114 of file CbmTrdCluster.h.
Referenced by AddDigi(), Clear(), GetStartTime(), Merge(), ReInit(), and ToString().