BmnRoot
Loading...
Searching...
No Matches
BmnBaseHit Class Reference

#include <BmnBaseHit.h>

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

Public Member Functions

 BmnBaseHit ()
 Default constructor.
 
 BmnBaseHit (HitType _type, Double_t _z, Double_t _dz, Int_t _refId, Int_t _address, Double_t _time=-1., Double_t _timeError=-1.)
 Constructor with arguments.
 
virtual ~BmnBaseHit ()
 Destructor.
 
HitType GetType () const
 
Double_t GetZ () const
 
Double_t GetDz () const
 
Int_t GetRefId () const
 
Int_t GetAddress () const
 
BmnMatchGetMatch () const
 
Double_t GetTime () const
 
Double_t GetTimeError () const
 
void SetZ (Double_t z)
 
void SetDz (Double_t dz)
 
void SetRefId (Int_t refId)
 
void SetAddress (Int_t address)
 
void SetMatch (BmnMatch *match)
 
void SetTime (Double_t time)
 
void SetTime (Double_t time, Double_t error)
 
void SetTimeError (Double_t error)
 
virtual Int_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.
 
 BmnBaseHit (const BmnBaseHit &)
 
BmnBaseHitoperator= (const BmnBaseHit &)
 

Detailed Description

Definition at line 35 of file BmnBaseHit.h.

Constructor & Destructor Documentation

◆ BmnBaseHit() [1/3]

BmnBaseHit::BmnBaseHit ( )

Default constructor.

Definition at line 10 of file BmnBaseHit.cxx.

◆ BmnBaseHit() [2/3]

BmnBaseHit::BmnBaseHit ( HitType  _type,
Double_t  _z,
Double_t  _dz,
Int_t  _refId,
Int_t  _address,
Double_t  _time = -1.,
Double_t  _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 15 of file BmnBaseHit.cxx.

◆ ~BmnBaseHit()

BmnBaseHit::~BmnBaseHit ( )
virtual

Destructor.

Definition at line 62 of file BmnBaseHit.cxx.

◆ BmnBaseHit() [3/3]

BmnBaseHit::BmnBaseHit ( const BmnBaseHit rhs)
protected

Definition at line 31 of file BmnBaseHit.cxx.

Member Function Documentation

◆ GetAddress()

Int_t BmnBaseHit::GetAddress ( ) const
inline

Definition at line 67 of file BmnBaseHit.h.

Referenced by BmnPixelHit::ToString(), and BmnSsdHit::ToString().

◆ GetDz()

Double_t BmnBaseHit::GetDz ( ) const
inline

◆ GetMatch()

BmnMatch * BmnBaseHit::GetMatch ( ) const
inline

Definition at line 68 of file BmnBaseHit.h.

◆ GetPlaneId()

virtual Int_t BmnBaseHit::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.

Definition at line 90 of file BmnBaseHit.h.

◆ GetRefId()

Int_t BmnBaseHit::GetRefId ( ) const
inline

Definition at line 66 of file BmnBaseHit.h.

Referenced by BmnPixelHit::ToString().

◆ GetTime()

Double_t BmnBaseHit::GetTime ( ) const
inline

Definition at line 69 of file BmnBaseHit.h.

Referenced by BmnSsdHit::ToString().

◆ GetTimeError()

Double_t BmnBaseHit::GetTimeError ( ) const
inline

Definition at line 70 of file BmnBaseHit.h.

Referenced by BmnSsdHit::ToString().

◆ GetType()

HitType BmnBaseHit::GetType ( ) const
inline

Definition at line 63 of file BmnBaseHit.h.

◆ GetZ()

Double_t BmnBaseHit::GetZ ( ) const
inline

Definition at line 64 of file BmnBaseHit.h.

Referenced by BmnPixelHit::Position(), BmnPixelHit::ToString(), and BmnSsdHit::ToString().

◆ operator=()

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

Definition at line 45 of file BmnBaseHit.cxx.

◆ SetAddress()

void BmnBaseHit::SetAddress ( Int_t  address)
inline

Definition at line 76 of file BmnBaseHit.h.

◆ SetDz()

void BmnBaseHit::SetDz ( Double_t  dz)
inline

Definition at line 74 of file BmnBaseHit.h.

Referenced by BmnPixelHit::SetPositionError().

◆ SetMatch()

void BmnBaseHit::SetMatch ( BmnMatch match)

Definition at line 67 of file BmnBaseHit.cxx.

◆ SetRefId()

void BmnBaseHit::SetRefId ( Int_t  refId)
inline

Definition at line 75 of file BmnBaseHit.h.

◆ SetTime() [1/2]

void BmnBaseHit::SetTime ( Double_t  time)
inline

Definition at line 78 of file BmnBaseHit.h.

Referenced by BmnSsdHit::BmnSsdHit(), and BmnSsdHit::BmnSsdHit().

◆ SetTime() [2/2]

void BmnBaseHit::SetTime ( Double_t  time,
Double_t  error 
)
inline

Definition at line 79 of file BmnBaseHit.h.

◆ SetTimeError()

void BmnBaseHit::SetTimeError ( Double_t  error)
inline

Definition at line 82 of file BmnBaseHit.h.

Referenced by BmnSsdHit::BmnSsdHit(), and BmnSsdHit::BmnSsdHit().

◆ SetType()

void BmnBaseHit::SetType ( HitType  type)
inlineprotected

Sets hit type.

Parameters
typehit type

Definition at line 103 of file BmnBaseHit.h.

◆ SetZ()

void BmnBaseHit::SetZ ( Double_t  z)
inline

Definition at line 73 of file BmnBaseHit.h.

Referenced by BmnPixelHit::SetPosition().

◆ ToString()

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

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

Reimplemented in BmnPixelHit, and BmnSsdHit.

Definition at line 96 of file BmnBaseHit.h.


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