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

The drift chamber hit. More...

#include <A01DriftChamberHit.h>

Inheritance diagram for A01DriftChamberHit:

Public Member Functions

 A01DriftChamberHit (Int_t z)
 
 A01DriftChamberHit ()
 
virtual ~A01DriftChamberHit ()
 
virtual void Print (Option_t *option="") const
 
void Reset ()
 
void SetLayerID (Int_t id)
 
void SetTime (Double_t t)
 
void SetLocalPos (const TVector3 &pos)
 
void SetWorldPos (const TVector3 &pos)
 
Int_t GetLayerID () const
 
Double_t GetTime () const
 
TVector3 GetLocalPos () const
 
TVector3 GetWorldPos () const
 

Private Attributes

Int_t fLayerID
 The layer ID.
 
Double_t fTime
 The hit time.
 
TVector3 fLocalPos
 The local hit position.
 
TVector3 fWorldPos
 The global hit position.
 

Detailed Description

The drift chamber hit.

Date
12/05/2012
Author
I. Hrivnacova; IPN, Orsay

Definition at line 30 of file A01DriftChamberHit.h.

Constructor & Destructor Documentation

◆ A01DriftChamberHit() [1/2]

A01DriftChamberHit::A01DriftChamberHit ( Int_t z)

Standard constructor

Parameters
zThe layer id

Definition at line 29 of file A01DriftChamberHit.cxx.

30 : TObject(), fLayerID(z), fTime(0.), fLocalPos(), fWorldPos()
31{
32 /// Standard constructor
33 /// \param z The layer id
34}
Int_t fLayerID
The layer ID.
Double_t fTime
The hit time.
TVector3 fLocalPos
The local hit position.
TVector3 fWorldPos
The global hit position.

◆ A01DriftChamberHit() [2/2]

A01DriftChamberHit::A01DriftChamberHit ( )

Default constructor

Definition at line 37 of file A01DriftChamberHit.cxx.

38 : TObject(), fLayerID(-1), fTime(0.), fLocalPos(), fWorldPos()
39{
40 /// Default constructor
41}

◆ ~A01DriftChamberHit()

A01DriftChamberHit::~A01DriftChamberHit ( )
virtual

Destructor

Definition at line 44 of file A01DriftChamberHit.cxx.

45{
46 /// Destructor
47}

Member Function Documentation

◆ Print()

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

Print hit info

Definition at line 50 of file A01DriftChamberHit.cxx.

51{
52 /// Print hit info
53
54 cout << " Layer[" << fLayerID << "] : time " << fTime * 1e+09
55 << " (nsec) --- local (x,y) " << fLocalPos.X() * 10. << ", "
56 << fLocalPos.Y() * 10 << " (mm)" << endl;
57}

◆ Reset()

void A01DriftChamberHit::Reset ( )

Reset all accounted values.

Definition at line 60 of file A01DriftChamberHit.cxx.

61{
62 /// Reset all accounted values.
63
64 fLayerID = -1;
65 fTime = 0.;
66 fLocalPos = TVector3();
67 fWorldPos = TVector3();
68}

◆ SetLayerID()

void A01DriftChamberHit::SetLayerID ( Int_t id)
inline

Definition at line 42 of file A01DriftChamberHit.h.

42{ fLayerID = id; }

◆ SetTime()

void A01DriftChamberHit::SetTime ( Double_t t)
inline

Definition at line 43 of file A01DriftChamberHit.h.

43{ fTime = t; }

◆ SetLocalPos()

void A01DriftChamberHit::SetLocalPos ( const TVector3 & pos)
inline

Definition at line 44 of file A01DriftChamberHit.h.

44{ fLocalPos = pos; }

◆ SetWorldPos()

void A01DriftChamberHit::SetWorldPos ( const TVector3 & pos)
inline

Definition at line 45 of file A01DriftChamberHit.h.

45{ fWorldPos = pos; }

◆ GetLayerID()

Int_t A01DriftChamberHit::GetLayerID ( ) const
inline

Definition at line 48 of file A01DriftChamberHit.h.

48{ return fLayerID; }

◆ GetTime()

Double_t A01DriftChamberHit::GetTime ( ) const
inline

Definition at line 49 of file A01DriftChamberHit.h.

49{ return fTime; }

◆ GetLocalPos()

TVector3 A01DriftChamberHit::GetLocalPos ( ) const
inline

Definition at line 50 of file A01DriftChamberHit.h.

50{ return fLocalPos; };

◆ GetWorldPos()

TVector3 A01DriftChamberHit::GetWorldPos ( ) const
inline

Definition at line 51 of file A01DriftChamberHit.h.

51{ return fWorldPos; };

Member Data Documentation

◆ fLayerID

Int_t A01DriftChamberHit::fLayerID
private

The layer ID.

Definition at line 54 of file A01DriftChamberHit.h.

◆ fTime

Double_t A01DriftChamberHit::fTime
private

The hit time.

Definition at line 55 of file A01DriftChamberHit.h.

◆ fLocalPos

TVector3 A01DriftChamberHit::fLocalPos
private

The local hit position.

Definition at line 56 of file A01DriftChamberHit.h.

◆ fWorldPos

TVector3 A01DriftChamberHit::fWorldPos
private

The global hit position.

Definition at line 57 of file A01DriftChamberHit.h.


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