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

#include <CbmHit.h>

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

Public Member Functions

 CbmHit ()
 Default constructor.
 
 CbmHit (HitType _type, double _z, double _dz, int32_t _refId, int32_t _address, double _time=-1., double _timeError=-1.)
 Constructor with arguments.
 
virtual ~CbmHit ()
 Destructor.
 
HitType GetType () const
 
double GetZ () const
 
double GetDz () const
 
int32_t GetRefId () const
 
int32_t GetAddress () const
 
CbmMatchGetMatch () const
 
double GetTime () const
 
double GetTimeError () const
 
void SetZ (double z)
 
void SetDz (double dz)
 
void SetRefId (int32_t refId)
 
void SetAddress (int32_t address)
 
void SetMatch (CbmMatch *match)
 
void SetTime (double time)
 
void SetTime (double time, double error)
 
void SetTimeError (double error)
 
virtual int32_t GetPlaneId () const
 
virtual std::string ToString () const
 Virtual function. Must be implemented in derived class. Has to return string representation of the object.
 

Protected Member Functions

void SetType (HitType type)
 Sets hit type.
 
 CbmHit (const CbmHit &)
 
CbmHitoperator= (const CbmHit &)
 

Private Member Functions

 ClassDef (CbmHit, 3)
 

Private Attributes

HitType fType
 hit type
 
double fZ
 Z position of hit [cm].
 
double fDz
 Z position error [cm].
 
int32_t fRefId
 some reference id (usually to cluster, digi or MC point)
 
int32_t fAddress
 detector unique identifier
 
double fTime
 Hit time [ns].
 
double fTimeError
 Error of hit time [ns].
 
CbmMatchfMatch
 Monte-Carlo information.
 

Detailed Description

Definition at line 44 of file CbmHit.h.

Constructor & Destructor Documentation

◆ CbmHit() [1/3]

CbmHit::CbmHit ( )

Default constructor.

Definition at line 18 of file CbmHit.cxx.

◆ CbmHit() [2/3]

CbmHit::CbmHit ( HitType _type,
double _z,
double _dz,
int32_t _refId,
int32_t _address,
double _time = -1.,
double _timeError = -1. )

Constructor with arguments.

Parameters
[in]_typeHit type (see enum HitType).
[in]_zz position of the hit [cm].
[in]_dzError of z position of the hit [cm].
[in]_refIdReference id (usually to cluster, digi or MC point).
[in]_addressUnique detector identifier.
[in]_timeHit time [ns].
[in]_timeErrorError of hit time [ns].

Definition at line 20 of file CbmHit.cxx.

◆ ~CbmHit()

CbmHit::~CbmHit ( )
virtual

Destructor.

Definition at line 65 of file CbmHit.cxx.

References fMatch.

◆ CbmHit() [3/3]

CbmHit::CbmHit ( const CbmHit & rhs)
protected

Definition at line 34 of file CbmHit.cxx.

Member Function Documentation

◆ ClassDef()

CbmHit::ClassDef ( CbmHit ,
3  )
private

◆ GetAddress()

int32_t CbmHit::GetAddress ( ) const
inline

Definition at line 74 of file CbmHit.h.

References fAddress.

Referenced by CbmRichMCbmQaReal::analyseRing(), CbmRichMCbmQaRichOnly::analyseRing(), CbmTofCosmicClusterizer::BuildClusters(), CbmTofTestBeamClusterizer::BuildClusters(), CbmDeviceHitBuilderTof::BuildHits(), CbmTofEventClusterizer::BuildHits(), CbmTofHitMaker::BuildHits(), CbmTofEventClusterizer::CalibHits(), CbmTofFindTracks::CheckHit2Track(), compareHitDataMembers(), CbmTofTrackFinderNN::DoFind(), CbmRichMCbmQaReal::Exec(), CbmRichMCbmQaRichOnly::Exec(), CbmStsCoincHodo::Exec(), CbmTofHitFinderTBQa::Exec(), CbmTrdQa::Exec(), CbmTrdRecoQa::Exec(), CbmTofFindTracks::ExecFind(), CbmTofCalibrator::FillCalHist(), CbmTofCalibrator::FillCalHist(), CbmTofFindTracks::FillHistograms(), CbmDeviceHitBuilderTof::FillHistos(), CbmTofAnaTestbeam::FillHistos(), CbmTofCosmicClusterizer::FillHistos(), CbmTofEventClusterizer::FillHistos(), CbmTofTestBeamClusterizer::FillHistos(), CbmTofCalibrator::FillHitCalHist(), CbmLitClusteringQa::FillHitEfficiencyHistograms(), CbmStsFindTracksQa::FillHitMap(), CbmLitClusteringQa::FillResidualAndPullHistograms(), CbmTofFindTracks::FillUHits(), CbmTrdTrackingInterface::GetHitRanges(), CbmTofEventClusterizer::GetLocalX(), CbmTofEventClusterizer::GetLocalY(), CbmTrdHit::GetPlaneId(), CbmL1PFFitter::GetStsStationIndex(), CbmTofDigiBdfPar::GetTrackingStation(), CbmMuchTrackingInterface::GetTrackingStationIndex(), CbmStsTrackingInterface::GetTrackingStationIndex(), CbmTofTrackingInterface::GetTrackingStationIndex(), CbmTrdTrackingInterface::GetTrackingStationIndex(), CbmDeviceHitBuilderTof::LH_store(), CbmTofCosmicClusterizer::LH_store(), CbmTofEventClusterizer::LH_store(), CbmTofHitMaker::LH_store(), CbmTofTestBeamClusterizer::LH_store(), CbmMatchRecoToMC::MatchHitsFsd(), CbmTofCosmicClusterizer::MergeClusters(), CbmTofEventClusterizer::MergeClusters(), CbmTofHitMaker::MergeClusters(), CbmTofTestBeamClusterizer::MergeClusters(), CbmTofTrackFinderNN::PrintStatus(), CbmRecoStsPixel::ProcessData(), CbmLitClusteringQa::ProcessHits(), CbmLitFitQa::ProcessMuchTrack(), CbmLitFitQa::ProcessStsTrack(), CbmLitFitQa::ProcessTrdTrack(), CbmMuchHitFinderQa::PullsQa(), CbmHadronAnalysis::ReconstructSecondaries(), CbmTrdCalibTracker::ResolutionQa(), CbmRichMCbmQaRichOnly::RichRings(), CbmDeviceHitBuilderTof::SendHits(), CbmPixelHit::ToString(), CbmRichHit::ToString(), CbmStripHit::ToString(), CbmStsHit::ToString(), CbmTofHit::ToString(), CbmTofTrackFinderNN::TrklSeed(), and CbmTofTrackFinderNN::UpdateTrackList().

◆ GetDz()

◆ GetMatch()

◆ GetPlaneId()

virtual int32_t CbmHit::GetPlaneId ( ) const
inlinevirtual

Virtual function. Must be implemented in derived class. Should return plane identifier of the hit. Usually this is station or layer number of the detector. Can be calculated using unique detector identifier or can use additional class member from the derived class to store the plane identifier.

Reimplemented in CbmMuchPixelHit, CbmRichHit, CbmTofHit, and CbmTrdHit.

Definition at line 99 of file CbmHit.h.

Referenced by CbmLitConverter::CbmPixelHitToCbmLitPixelHit(), CbmLitConverterParallel::CbmPixelHitToLitScalPixelHit(), and TEST().

◆ GetRefId()

◆ GetTime()

double CbmHit::GetTime ( ) const
inline

Definition at line 76 of file CbmHit.h.

References fTime.

Referenced by CbmTofEventClusterizer::AddNextChan(), CbmRichRingFinderHough::AddRingsToOutputArray(), CbmRichMCbmQaReal::analyseRing(), CbmRichMCbmQaRichOnly::analyseRing(), LmvmTask::BetaMom(), CbmTofCosmicClusterizer::BuildClusters(), CbmTofTestBeamClusterizer::BuildClusters(), CbmDeviceHitBuilderTof::BuildHits(), CbmTofEventClusterizer::BuildHits(), CbmTofHitMaker::BuildHits(), CbmTofEventClusterizer::CalibHits(), CbmLitConverter::CbmMvdHitToCbmLitPixelHit(), CbmTofFindTracks::CheckHit2Track(), LmvmTask::CheckTofIdentification(), compareHitDataMembers(), CbmPointSetArrayDraw::DetermineTimeOffset(), CbmTsPointSetArrayDraw::DetermineTimeOffset(), CbmRichRingFinderHough::DoFind(), CbmTofTrackFinderNN::DoFind(), CbmRichMCbmSEDisplay::DrawEvent(), CbmAnaDimuonAnalysis::Exec(), CbmEventBuilderQa::Exec(), CbmKFTrackQa::Exec(), CbmRichMCbmQa::Exec(), CbmRichMCbmQaReal::Exec(), CbmRichMCbmQaRichOnly::Exec(), CbmTofHitFinderTBQa::Exec(), CbmTrdHitProducerQa::Exec(), CbmTofExtendTracks::ExecExtend(), CbmTofFindTracks::ExecFind(), CbmTofCalibrator::FillCalHist(), CbmTofCalibrator::FillCalHist(), LmvmTask::FillCands(), CbmTofExtendTracks::FillHistograms(), CbmTofFindTracks::FillHistograms(), CbmDeviceHitBuilderTof::FillHistos(), CbmTofAnaTestbeam::FillHistos(), CbmTofCosmicClusterizer::FillHistos(), CbmTofEventClusterizer::FillHistos(), CbmTofHitFinderQa::FillHistos(), CbmTofTestBeamClusterizer::FillHistos(), CbmTofTests::FillHistos(), CbmTofCalibrator::FillHitCalHist(), CbmLitClusteringQa::FillResidualAndPullHistograms(), PairAnalysisVarManager::FillVarTofHit(), CbmL1PFFitter::Fit(), CbmTofTrackletTools::FitTt(), CbmTrdHitMC::GetDt(), CbmTofTrackletTools::GetDTMean(), CbmTofTracklet::GetTdif(), CbmTofTrackletTools::GetTdif(), CbmTofTrackletTools::GetTexpected(), CbmTofTrackletTools::GetTexpectedError(), CbmPointSetArrayDraw::GetTime(), CbmTsPointSetArrayDraw::GetTime(), CbmLitGlobalElectronId::GetTofM2(), CbmTofCalibrator::HstDoublets(), CbmDeviceHitBuilderTof::LH_store(), CbmTofCosmicClusterizer::LH_store(), CbmTofEventClusterizer::LH_store(), CbmTofHitMaker::LH_store(), CbmTofTestBeamClusterizer::LH_store(), CbmTofCosmicClusterizer::MergeClusters(), CbmTofEventClusterizer::MergeClusters(), CbmTofHitMaker::MergeClusters(), CbmTofTestBeamClusterizer::MergeClusters(), CbmTrdModuleRec2D::PostProcessHits(), CbmTofTrackFinderNN::PrintStatus(), CbmRichMCbmDenoiseQa::Process(), CbmLitTofQa::ProcessGlobalTracks(), CbmLitTofQa::ProcessTofHits(), CbmMuchHitFinderQa::PullsQa(), CbmHadronAnalysis::ReconstructSecondaries(), CbmRecoQa::record(), CbmTrdCalibTracker::ResolutionQa(), CbmRichMCbmQaRichOnly::RichRings(), CbmDeviceHitBuilderTof::SendHits(), PairAnalysisTrack::SetMassHypo(), CbmKFParticleFinderPID::SetRecoPID(), CbmStsHit::ToString(), CbmTofHit::ToString(), CbmTrdHit::ToString(), CbmTofExtendTracks::TrkAddStation(), CbmTofTrackFinderNN::TrklSeed(), and HalCbmEvent::UpdateDST().

◆ GetTimeError()

◆ GetType()

HitType CbmHit::GetType ( ) const
inline

◆ GetZ()

double CbmHit::GetZ ( ) const
inline

Definition at line 71 of file CbmHit.h.

References fZ.

Referenced by CbmStsTrackFinder::CalculateEloss(), CbmL1PFFitter::CalculateFieldRegion(), CbmL1PFFitter::CalculateFieldRegionAtLastPoint(), CbmLitFindGlobalTracks::CalculateLength(), CbmKresConversionCorrectedPhotons::CalculatePlaneAngle_first(), CbmKresConversionManual::CalculatePlaneAngle_first(), CbmKresConversionManualmbias1::CalculatePlaneAngle_first(), CbmKresConversionManualmbias2::CalculatePlaneAngle_first(), CbmKresConversionManualmbias3::CalculatePlaneAngle_first(), CbmKresConversionManualmbias4::CalculatePlaneAngle_first(), CbmKresConversionPhotons::CalculatePlaneAngle_first(), CbmKresEta::CalculatePlaneAngle_first(), CbmKresConversionCorrectedPhotons::CalculatePlaneAngle_last(), CbmKresConversionManual::CalculatePlaneAngle_last(), CbmKresConversionManualmbias1::CalculatePlaneAngle_last(), CbmKresConversionManualmbias2::CalculatePlaneAngle_last(), CbmKresConversionManualmbias3::CalculatePlaneAngle_last(), CbmKresConversionManualmbias4::CalculatePlaneAngle_last(), CbmKresConversionPhotons::CalculatePlaneAngle_last(), CbmKresEta::CalculatePlaneAngle_last(), CbmLitConverter::CbmMvdHitToCbmLitPixelHit(), CbmLitConverter::CbmPixelHitToCbmLitPixelHit(), CbmLitConverterParallel::CbmPixelHitToLitScalPixelHit(), CbmTofFindTracks::CheckHit2Track(), CbmFsdHitsConverter::Chi2FsdhitGtrack(), compareHitDataMembers(), CbmTofHit::Dist3D(), CbmTofTracklet::Dist3D(), CbmTofTrackFinderNN::DoFind(), CbmRichMCbmSEDisplay::DrawEvent(), CbmRichMCbmQaReal::DrawRichTofEv(), CbmRichMCbmQaReal::DrawRing(), CbmKresConversionGeneral::Exec(), CbmLitCreateStandaloneData::Exec(), CbmMvdClusterAna::Exec(), CbmPsdMCbmQaReal::Exec(), CbmRichMCbmQaReal::Exec(), CbmTrdQa::Exec(), CbmTrdRecoQa::Exec(), CbmTofExtendTracks::ExecExtend(), CbmTofFindTracks::ExecFind(), CbmRichMCbmQaReal::extrapolate(), CbmTofCalibrator::FillCalHist(), CbmTofCalibrator::FillCalHist(), CbmTofExtendTracks::FillHistograms(), CbmTofFindTracks::FillHistograms(), CbmDeviceHitBuilderTof::FillHistos(), CbmTofAnaTestbeam::FillHistos(), CbmTofCosmicClusterizer::FillHistos(), CbmTofEventClusterizer::FillHistos(), CbmTofHitFinderQa::FillHistos(), CbmTofTestBeamClusterizer::FillHistos(), CbmTofTests::FillHistos(), CbmTofCalibrator::FillHitCalHist(), PairAnalysisVarManager::FillVarPairAnalysisPair(), PairAnalysisVarManager::FillVarPairAnalysisTrack(), PairAnalysisVarManager::FillVarPixelHit(), PairAnalysisVarManager::FillVarStsTrack(), CbmL1PFFitter::Fit(), CbmTofTrackletTools::FitTt(), CbmL1PFFitter::GetChiToVertex(), CbmTofHit::GetCosThe(), CbmTrdHitMC::GetDt(), CbmTrdHitMC::GetDx(), CbmTrdHitMC::GetDy(), CbmMvdQa::GetFirstMvdHitPos(), CbmTofEventClusterizer::GetLocalX(), CbmTofEventClusterizer::GetLocalY(), CbmTofHit::GetR(), CbmLitConverter::GetStsTrackTimes(), CbmStsWkn::GetStsWkn(), CbmStsWkn::GetStsWkn(), CbmTofTracklet::GetTdif(), CbmTofTrackletTools::GetTdif(), CbmTofTracklet::GetTex(), CbmTofTrackletTools::GetTexpected(), CbmTofTrackletTools::GetTexpectedError(), CbmPixelHitSetDraw::GetVector(), CbmPointSetArrayDraw::GetVector(), CbmTimeslicePixelHitSetDraw::GetVector(), CbmTsPointSetArrayDraw::GetVector(), CbmTofTracklet::GetXdif(), CbmTofTrackletTools::GetXdif(), CbmTofTracklet::GetYdif(), CbmTofTrackletTools::GetYdif(), CbmRecoTracks::HandlePixelHit(), CbmTimesliceRecoTracks::HandlePixelHit(), CbmMvdQa::HasHitFirstMvd(), CbmTofCalibrator::HstDoublets(), CbmTofTrackletTools::Line3DFit(), CbmMatchRecoToMC::MatchHitsTof(), CbmPixelHit::Position(), CbmMvdHit::Print(), CbmRichGeoTest::ProcessHits(), CbmLitTofQa::ProcessTofHits(), CbmLitTofQa::ProcessTofTracks(), CbmHadronAnalysis::ReconstructSecondaries(), CbmTrdCalibTracker::ResolutionQa(), CbmRichCorrectionVector::RotateAndCopyHitsToRingLight(), CbmRichPMTMapping::RotateAndCopyHitsToRingLight(), CbmDeviceHitBuilderTof::SendHits(), CbmKFParticleFinderPID::SetRecoPID(), CbmFsdHit::ToString(), CbmPixelHit::ToString(), CbmRichHit::ToString(), CbmStripHit::ToString(), CbmStsHit::ToString(), CbmTofHit::ToString(), CbmTofExtendTracks::TrkAddStation(), and CbmTofTrackFinderNN::TrklSeed().

◆ operator=()

CbmHit & CbmHit::operator= ( const CbmHit & rhs)
protected

Definition at line 48 of file CbmHit.cxx.

References fAddress, fDz, fMatch, fRefId, fTime, fTimeError, fType, and fZ.

Referenced by CbmTestHit::operator=().

◆ SetAddress()

void CbmHit::SetAddress ( int32_t address)
inline

◆ SetDz()

void CbmHit::SetDz ( double dz)
inline

Definition at line 81 of file CbmHit.h.

References fDz.

Referenced by CbmPixelHit::SetPositionError(), and TEST().

◆ SetMatch()

void CbmHit::SetMatch ( CbmMatch * match)

Definition at line 70 of file CbmHit.cxx.

References fMatch.

Referenced by TEST(), TEST(), and TEST().

◆ SetRefId()

◆ SetTime() [1/2]

◆ SetTime() [2/2]

void CbmHit::SetTime ( double time,
double error )
inline

Definition at line 86 of file CbmHit.h.

References fTime, and fTimeError.

◆ SetTimeError()

◆ SetType()

◆ SetZ()

void CbmHit::SetZ ( double z)
inline

◆ ToString()

virtual std::string CbmHit::ToString ( ) const
inlinevirtual

Virtual function. Must be implemented in derived class. Has to return string representation of the object.

Reimplemented in CbmFsdHit, CbmPixelHit, CbmRichHit, CbmStripHit, CbmStsHit, CbmTofHit, CbmTrdHit, and CbmTrdHitMC.

Definition at line 105 of file CbmHit.h.

Member Data Documentation

◆ fAddress

int32_t CbmHit::fAddress
private

detector unique identifier

Definition at line 122 of file CbmHit.h.

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

◆ fDz

double CbmHit::fDz
private

Z position error [cm].

Definition at line 120 of file CbmHit.h.

Referenced by GetDz(), operator=(), and SetDz().

◆ fMatch

CbmMatch* CbmHit::fMatch
private

Monte-Carlo information.

Definition at line 125 of file CbmHit.h.

Referenced by GetMatch(), operator=(), SetMatch(), and ~CbmHit().

◆ fRefId

int32_t CbmHit::fRefId
private

some reference id (usually to cluster, digi or MC point)

Definition at line 121 of file CbmHit.h.

Referenced by GetRefId(), operator=(), and SetRefId().

◆ fTime

double CbmHit::fTime
private

Hit time [ns].

Definition at line 123 of file CbmHit.h.

Referenced by GetTime(), operator=(), SetTime(), and SetTime().

◆ fTimeError

double CbmHit::fTimeError
private

Error of hit time [ns].

Definition at line 124 of file CbmHit.h.

Referenced by GetTimeError(), operator=(), SetTime(), and SetTimeError().

◆ fType

HitType CbmHit::fType
private

hit type

Definition at line 118 of file CbmHit.h.

Referenced by GetType(), operator=(), and SetType().

◆ fZ

double CbmHit::fZ
private

Z position of hit [cm].

Definition at line 119 of file CbmHit.h.

Referenced by GetZ(), operator=(), and SetZ().


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