VMC Examples Version 6.6
Loading...
Searching...
No Matches
Ex02TrackerHit Class Reference

The tracker hit. More...

#include <Ex02TrackerHit.h>

Inheritance diagram for Ex02TrackerHit:

Public Member Functions

 Ex02TrackerHit ()
 
virtual ~Ex02TrackerHit ()
 
virtual void Print (const Option_t *option="") const
 
void SetTrackID (Int_t track)
 
void SetChamberNb (Int_t chamb)
 
void SetEdep (Double_t de)
 
void SetPos (TVector3 xyz)
 
Int_t GetTrackID ()
 
Int_t GetChamberNb ()
 
Double_t GetEdep ()
 
TVector3 GetPos ()
 

Private Attributes

Int_t fTrackID
 Track Id.
 
Int_t fChamberNb
 Chamber number.
 
Double_t fEdep
 Energy deposit.
 
TVector3 fPos
 Track position.
 

Detailed Description

The tracker hit.

Date
21/04/2002
Author
I. Hrivnacova; IPN, Orsay

Definition at line 31 of file Ex02TrackerHit.h.

Constructor & Destructor Documentation

◆ Ex02TrackerHit()

Ex02TrackerHit::Ex02TrackerHit ( )

Default constructor

Definition at line 31 of file Ex02TrackerHit.cxx.

32 : fTrackID(-1), fChamberNb(-1), fEdep(0.), fPos()
33{
34 /// Default constructor
35}
TVector3 fPos
Track position.
Int_t fTrackID
Track Id.
Int_t fChamberNb
Chamber number.
Double_t fEdep
Energy deposit.

◆ ~Ex02TrackerHit()

Ex02TrackerHit::~Ex02TrackerHit ( )
virtual

Destructor

Definition at line 38 of file Ex02TrackerHit.cxx.

39{
40 /// Destructor
41}

Member Function Documentation

◆ Print()

void Ex02TrackerHit::Print ( const Option_t * option = "") const
virtual

Printing

Definition at line 62 of file Ex02TrackerHit.cxx.

63{
64 /// Printing
65
66 cout << " trackID: " << fTrackID << " chamberNb: " << fChamberNb
67 << " energy deposit (keV): " << fEdep * 1.0e06 << " position (cm): ("
68 << fPos[0] << ", " << fPos[1] << ", " << fPos[2] << ")" << endl;
69}

◆ SetTrackID()

void Ex02TrackerHit::SetTrackID ( Int_t track)
inline

Set track Id

Parameters
trackThe new track Id value

Definition at line 46 of file Ex02TrackerHit.h.

46{ fTrackID = track; };

◆ SetChamberNb()

void Ex02TrackerHit::SetChamberNb ( Int_t chamb)
inline

Set chamber number

Parameters
chambThe new chamber number value

Definition at line 50 of file Ex02TrackerHit.h.

50{ fChamberNb = chamb; };

◆ SetEdep()

void Ex02TrackerHit::SetEdep ( Double_t de)
inline

Set energy deposit

Parameters
deThe new energy deposit value

Definition at line 54 of file Ex02TrackerHit.h.

54{ fEdep = de; };

◆ SetPos()

void Ex02TrackerHit::SetPos ( TVector3 xyz)
inline

Set position

Parameters
xyzThe new position value

Definition at line 58 of file Ex02TrackerHit.h.

58{ fPos = xyz; };

◆ GetTrackID()

Int_t Ex02TrackerHit::GetTrackID ( )
inline
Returns
The track Id

Definition at line 64 of file Ex02TrackerHit.h.

64{ return fTrackID; };

◆ GetChamberNb()

Int_t Ex02TrackerHit::GetChamberNb ( )
inline
Returns
The chamber number

Definition at line 67 of file Ex02TrackerHit.h.

67{ return fChamberNb; };

◆ GetEdep()

Double_t Ex02TrackerHit::GetEdep ( )
inline
Returns
The energy deposit

Definition at line 70 of file Ex02TrackerHit.h.

70{ return fEdep; };

◆ GetPos()

TVector3 Ex02TrackerHit::GetPos ( )
inline
Returns
The track position

Definition at line 73 of file Ex02TrackerHit.h.

73{ return fPos; };

Member Data Documentation

◆ fTrackID

Int_t Ex02TrackerHit::fTrackID
private

Track Id.

Definition at line 76 of file Ex02TrackerHit.h.

◆ fChamberNb

Int_t Ex02TrackerHit::fChamberNb
private

Chamber number.

Definition at line 77 of file Ex02TrackerHit.h.

◆ fEdep

Double_t Ex02TrackerHit::fEdep
private

Energy deposit.

Definition at line 78 of file Ex02TrackerHit.h.

◆ fPos

TVector3 Ex02TrackerHit::fPos
private

Track position.

Definition at line 79 of file Ex02TrackerHit.h.


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