CbmRoot
Loading...
Searching...
No Matches
CbmMvdCluster Class Reference

#include <CbmMvdCluster.h>

Inheritance diagram for CbmMvdCluster:
[legend]
Collaboration diagram for CbmMvdCluster:
[legend]

Public Member Functions

 CbmMvdCluster ()
 
 CbmMvdCluster (const CbmMvdCluster &)
 
CbmMvdClusteroperator= (const CbmMvdCluster &)
 
virtual ~CbmMvdCluster ()
 
void SetPixelMap (std::map< std::pair< int32_t, int32_t >, int32_t > PixelMap)
 
void SetRefId (int32_t RefId)
 
void SetEarliestFrameNumber (Int_t frameNumber)
 
int16_t GetTotalDigisInCluster () const
 
std::map< std::pair< int32_t, int32_t >, int32_t > GetPixelMap () const
 
int32_t GetSensorNr () const
 
uint32_t GetDetectorId () const
 
int32_t GetRefId () const
 
int32_t GetEarliestFrameNumber () const
 
float GetClusterCharge () const
 
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
 
CbmMatchGetMatch () const
 
void SetAddress (int32_t address)
 
void SetMatch (CbmMatch *match)
 
virtual std::string ToString () const
 Return string representation of the object.
 

Protected Member Functions

 ClassDef (CbmMvdCluster, 5)
 

Protected Attributes

std::map< std::pair< int32_t, int32_t >, int32_t > fPixelMap
 
int32_t fRefId
 
float fClusterCharge
 
int32_t fEarliestFrameNumber
 

Private Attributes

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

Detailed Description

CbmMvdCluster.h

Definition at line 31 of file CbmMvdCluster.h.

Constructor & Destructor Documentation

◆ CbmMvdCluster() [1/2]

CbmMvdCluster::CbmMvdCluster ( )

Default constructor

Definition at line 16 of file CbmMvdCluster.cxx.

References CbmCluster::CbmCluster(), fClusterCharge, fEarliestFrameNumber, fPixelMap, and fRefId.

Referenced by CbmMvdCluster(), ClassDef(), and operator=().

◆ CbmMvdCluster() [2/2]

CbmMvdCluster::CbmMvdCluster ( const CbmMvdCluster & rhs)

◆ ~CbmMvdCluster()

CbmMvdCluster::~CbmMvdCluster ( )
virtual

Destructor

Definition at line 30 of file CbmMvdCluster.cxx.

Member Function Documentation

◆ AddDigi()

void CbmCluster::AddDigi ( int32_t index)
inlineinherited

Add digi to cluster.

Parameters
[in]indexDigi index in TClonesArray.

Definition at line 51 of file CbmCluster.h.

References fDigis.

Referenced by CbmTrdCluster::AddDigi(), CbmMvdSensorClusterfinderTask::ExecFrame(), CbmRecoStsPixel::ProcessData(), and TEST().

◆ AddDigis()

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

◆ ClassDef()

CbmMvdCluster::ClassDef ( CbmMvdCluster ,
5  )
protected

References CbmMvdCluster().

◆ ClearDigis()

void CbmCluster::ClearDigis ( )
inlineinherited

Remove all digis.

Definition at line 87 of file CbmCluster.h.

References fDigis.

Referenced by CbmTrdCluster::AddDigi(), CbmTrdCluster::Clear(), CbmTrdCluster::Merge(), and TEST().

◆ GetAddress()

◆ GetClusterCharge()

float CbmMvdCluster::GetClusterCharge ( ) const
inline

Definition at line 61 of file CbmMvdCluster.h.

References fClusterCharge.

Referenced by CbmMvdSensorClusterfinderTask::UpdateDebugHistos().

◆ GetDetectorId()

uint32_t CbmMvdCluster::GetDetectorId ( ) const
inline

◆ GetDigi()

◆ GetDigis()

const std::vector< int32_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 fDigis.

Referenced by CbmTrdCluster::AddDigi(), CbmTrdCluster::CbmTrdCluster(), compareClusterDataMembers(), and CbmTrdCluster::Merge().

◆ GetEarliestFrameNumber()

int32_t CbmMvdCluster::GetEarliestFrameNumber ( ) const
inline

Definition at line 59 of file CbmMvdCluster.h.

References fEarliestFrameNumber.

Referenced by CbmMvdSensorHitfinderTask::ComputeCenterOfGravity().

◆ GetMatch()

CbmMatch * CbmCluster::GetMatch ( ) const
inlineinherited

Definition at line 91 of file CbmCluster.h.

References fMatch.

Referenced by compareClusterDataMembers(), and CbmKFTrackFitQa::StsHitMatch().

◆ GetNofDigis()

◆ GetPixelMap()

std::map< std::pair< int32_t, int32_t >, int32_t > CbmMvdCluster::GetPixelMap ( ) const
inline

◆ GetRefId()

int32_t CbmMvdCluster::GetRefId ( ) const
inline

◆ GetSensorNr()

int32_t CbmMvdCluster::GetSensorNr ( ) const
inline

◆ GetTotalDigisInCluster()

int16_t CbmMvdCluster::GetTotalDigisInCluster ( ) const
inline

Accessors

Definition at line 49 of file CbmMvdCluster.h.

References fPixelMap.

Referenced by CbmMvdQa::ExecHitQa().

◆ operator=()

CbmMvdCluster & CbmMvdCluster::operator= ( const CbmMvdCluster & )
inline

Definition at line 38 of file CbmMvdCluster.h.

References CbmMvdCluster().

◆ SetAddress()

◆ SetDigis()

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

Set array of digi to cluster. Overwrites existing array.

Parameters
[in]indicesArray of digi indices in TClonesArray.

Definition at line 63 of file CbmCluster.h.

References fDigis.

Referenced by CbmTrdModuleRecR::addClusters(), and TEST().

◆ SetEarliestFrameNumber()

void CbmMvdCluster::SetEarliestFrameNumber ( Int_t frameNumber)
inline

Definition at line 46 of file CbmMvdCluster.h.

References fEarliestFrameNumber.

Referenced by CbmMvdSensorClusterfinderTask::ExecFrame().

◆ SetMatch()

void CbmCluster::SetMatch ( CbmMatch * match)
inherited

Definition at line 80 of file CbmCluster.cxx.

References fMatch.

◆ SetPixelMap()

void CbmMvdCluster::SetPixelMap ( std::map< std::pair< int32_t, int32_t >, int32_t > PixelMap)

Setters

Definition at line 34 of file CbmMvdCluster.cxx.

References fClusterCharge, and fPixelMap.

Referenced by CbmMvdSensorClusterfinderTask::ExecFrame().

◆ SetRefId()

void CbmMvdCluster::SetRefId ( int32_t RefId)
inline

Definition at line 45 of file CbmMvdCluster.h.

References fRefId.

Referenced by CbmMvdHitfinder::ProcessData().

◆ 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 87 of file CbmCluster.cxx.

References fAddress, fDigis, and GetNofDigis().

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

Member Data Documentation

◆ fAddress

int32_t CbmCluster::fAddress
privateinherited

Unique detector ID.

Definition at line 105 of file CbmCluster.h.

Referenced by CbmCluster(), CbmCluster(), CbmCluster(), CbmCluster(), GetAddress(), operator=(), operator=(), SetAddress(), and ToString().

◆ fClusterCharge

float CbmMvdCluster::fClusterCharge
protected

Definition at line 66 of file CbmMvdCluster.h.

Referenced by CbmMvdCluster(), CbmMvdCluster(), GetClusterCharge(), and SetPixelMap().

◆ fDigis

std::vector<int32_t> CbmCluster::fDigis
privateinherited

◆ fEarliestFrameNumber

int32_t CbmMvdCluster::fEarliestFrameNumber
protected

◆ fMatch

CbmMatch* CbmCluster::fMatch
privateinherited

link to Monte-Carlo information

Definition at line 106 of file CbmCluster.h.

Referenced by CbmCluster(), CbmCluster(), CbmCluster(), CbmCluster(), GetMatch(), operator=(), operator=(), and SetMatch().

◆ fPixelMap

std::map<std::pair<int32_t, int32_t>, int32_t> CbmMvdCluster::fPixelMap
protected

◆ fRefId

int32_t CbmMvdCluster::fRefId
protected

Definition at line 65 of file CbmMvdCluster.h.

Referenced by CbmMvdCluster(), CbmMvdCluster(), GetRefId(), and SetRefId().


The documentation for this class was generated from the following files: