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

#include <BmnPixelHit.h>

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

Public Member Functions

 BmnPixelHit ()
 Default constructor.
 
 BmnPixelHit (Int_t address, Double_t x, Double_t y, Double_t z, Double_t dx, Double_t dy, Double_t dz, Double_t dxy, Int_t refId, Double_t time=-1., Double_t timeError=-1.)
 Standard constructor.
 
 BmnPixelHit (Int_t address, const TVector3 &pos, const TVector3 &err, Double_t dxy, Int_t refId, Double_t time=-1., Double_t timeError=-1.)
 
virtual ~BmnPixelHit ()
 
virtual std::string ToString () const
 Inherited from BmnBaseHit.
 
Double_t GetX () const
 
Double_t GetY () const
 
Double_t GetDx () const
 
Double_t GetDy () const
 
Double_t GetDxy () const
 
void Position (TVector3 &pos) const
 Copies hit position to pos.
 
void PositionError (TVector3 &dpos) const
 Copies hit position error to pos.
 
void SetX (Double_t x)
 
void SetY (Double_t y)
 
void SetDx (Double_t dx)
 
void SetDy (Double_t dy)
 
void SetDxy (Double_t dxy)
 
void SetPosition (const TVector3 &pos)
 Sets position of the hit.
 
void SetPositionError (const TVector3 &dpos)
 
- Public Member Functions inherited from BmnBaseHit
 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
 

Additional Inherited Members

- Protected Member Functions inherited from BmnBaseHit
void SetType (HitType type)
 Sets hit type.
 
 BmnBaseHit (const BmnBaseHit &)
 
BmnBaseHitoperator= (const BmnBaseHit &)
 

Detailed Description

Definition at line 18 of file BmnPixelHit.h.

Constructor & Destructor Documentation

◆ BmnPixelHit() [1/3]

BmnPixelHit::BmnPixelHit ( )

Default constructor.

Definition at line 13 of file BmnPixelHit.cxx.

◆ BmnPixelHit() [2/3]

BmnPixelHit::BmnPixelHit ( Int_t  address,
Double_t  x,
Double_t  y,
Double_t  z,
Double_t  dx,
Double_t  dy,
Double_t  dz,
Double_t  dxy,
Int_t  refId,
Double_t  time = -1.,
Double_t  timeError = -1. 
)

Standard constructor.

Parameters
[in]addressDetector unique identifier.
[in]xX position of the hit [cm].
[in]yY position of the hit [cm].
[in]zZ position of the hit [cm].
[in]dxX position error of the hit [cm].
[in]dyY position error of the hit [cm].
[in]dzZ position error of the hit [cm].
[in]dxyXY correlation of the hit.
[in]refIdSome reference ID.
[in]timeHit time [ns].
[in]timeErrorError of hit time [ns].

Definition at line 33 of file BmnPixelHit.cxx.

◆ BmnPixelHit() [3/3]

BmnPixelHit::BmnPixelHit ( Int_t  address,
const TVector3 &  pos,
const TVector3 &  err,
Double_t  dxy,
Int_t  refId,
Double_t  time = -1.,
Double_t  timeError = -1. 
)

\breif Standard constructor.

Parameters
addressDetector unique identifier.
posPosition of the hit as TVector3 [cm].
errPosition errors of the hit as TVector3 [cm].
dxyXY correlation of the hit.
refIdSome reference ID.
[in]timeHit time [ns].
[in]timeErrorError of hit time [ns].

Definition at line 19 of file BmnPixelHit.cxx.

◆ ~BmnPixelHit()

BmnPixelHit::~BmnPixelHit ( )
virtual

brief Destructor.

Definition at line 54 of file BmnPixelHit.cxx.

Member Function Documentation

◆ GetDx()

Double_t BmnPixelHit::GetDx ( ) const
inline

Definition at line 87 of file BmnPixelHit.h.

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

◆ GetDxy()

Double_t BmnPixelHit::GetDxy ( ) const
inline

Definition at line 89 of file BmnPixelHit.h.

Referenced by ToString().

◆ GetDy()

Double_t BmnPixelHit::GetDy ( ) const
inline

Definition at line 88 of file BmnPixelHit.h.

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

◆ GetX()

Double_t BmnPixelHit::GetX ( ) const
inline

Definition at line 85 of file BmnPixelHit.h.

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

◆ GetY()

Double_t BmnPixelHit::GetY ( ) const
inline

Definition at line 86 of file BmnPixelHit.h.

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

◆ Position()

void BmnPixelHit::Position ( TVector3 &  pos) const

Copies hit position to pos.

Parameters
posOutput hit position.

Definition at line 68 of file BmnPixelHit.cxx.

References GetX(), GetY(), and BmnBaseHit::GetZ().

◆ PositionError()

void BmnPixelHit::PositionError ( TVector3 &  dpos) const

Copies hit position error to pos.

Parameters
posOutput hit position error.

Definition at line 73 of file BmnPixelHit.cxx.

References GetDx(), GetDy(), and BmnBaseHit::GetDz().

◆ SetDx()

void BmnPixelHit::SetDx ( Double_t  dx)
inline

Definition at line 106 of file BmnPixelHit.h.

Referenced by SetPositionError().

◆ SetDxy()

void BmnPixelHit::SetDxy ( Double_t  dxy)
inline

Definition at line 108 of file BmnPixelHit.h.

◆ SetDy()

void BmnPixelHit::SetDy ( Double_t  dy)
inline

Definition at line 107 of file BmnPixelHit.h.

Referenced by SetPositionError().

◆ SetPosition()

void BmnPixelHit::SetPosition ( const TVector3 &  pos)

Sets position of the hit.

Parameters
posnew hit position.

Definition at line 78 of file BmnPixelHit.cxx.

References SetX(), SetY(), and BmnBaseHit::SetZ().

◆ SetPositionError()

void BmnPixelHit::SetPositionError ( const TVector3 &  dpos)

\breif Sets position error of the hit.

Parameters
dposnew hit position error

Definition at line 85 of file BmnPixelHit.cxx.

References SetDx(), SetDy(), and BmnBaseHit::SetDz().

◆ SetX()

void BmnPixelHit::SetX ( Double_t  x)
inline

Definition at line 104 of file BmnPixelHit.h.

Referenced by SetPosition().

◆ SetY()

void BmnPixelHit::SetY ( Double_t  y)
inline

Definition at line 105 of file BmnPixelHit.h.

Referenced by SetPosition().

◆ ToString()

std::string BmnPixelHit::ToString ( ) const
virtual

Inherited from BmnBaseHit.

Reimplemented from BmnBaseHit.

Reimplemented in BmnSsdHit.

Definition at line 58 of file BmnPixelHit.cxx.

References BmnBaseHit::GetAddress(), GetDx(), GetDxy(), GetDy(), BmnBaseHit::GetDz(), BmnBaseHit::GetRefId(), GetX(), GetY(), and BmnBaseHit::GetZ().


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