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

The hodoscope hit. More...

#include <A01HodoscopeHit.h>

Inheritance diagram for A01HodoscopeHit:

Public Member Functions

 A01HodoscopeHit (Int_t id, Double_t t)
 
 A01HodoscopeHit ()
 
virtual ~A01HodoscopeHit ()
 
virtual void Print (Option_t *option="") const
 
void Reset ()
 
void SetID (Int_t id)
 
void SetVolId (Int_t volId)
 
void SetTime (Double_t t)
 
void SetTransformation (const TGeoHMatrix &transformation)
 
Int_t GetID () const
 
Int_t GetVolId () const
 
Double_t GetTime () const
 
const TGeoHMatrix & GetTransformation () const
 

Private Attributes

Int_t fID
 The hit ID.
 
Int_t fVolID
 The volume ID.
 
Double_t fTime
 The hit time.
 
TGeoHMatrix fTransformation
 The transformation of the hit volume.
 

Detailed Description

The hodoscope hit.

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

Definition at line 30 of file A01HodoscopeHit.h.

Constructor & Destructor Documentation

◆ A01HodoscopeHit() [1/2]

A01HodoscopeHit::A01HodoscopeHit ( Int_t id,
Double_t t )

Standard constructor

Parameters
idHit volume id
tHit time

Definition at line 29 of file A01HodoscopeHit.cxx.

30 : TObject(), fID(id), fVolID(-1), fTime(t), fTransformation()
31{
32 /// Standard constructor
33 /// \param id Hit volume id
34 /// \param t Hit time
35}
Int_t fVolID
The volume ID.
TGeoHMatrix fTransformation
The transformation of the hit volume.
Double_t fTime
The hit time.
Int_t fID
The hit ID.

◆ A01HodoscopeHit() [2/2]

A01HodoscopeHit::A01HodoscopeHit ( )

Default constructor

Definition at line 38 of file A01HodoscopeHit.cxx.

39 : TObject(), fID(-1), fVolID(-1), fTime(0), fTransformation()
40{
41 /// Default constructor
42}

◆ ~A01HodoscopeHit()

A01HodoscopeHit::~A01HodoscopeHit ( )
virtual

Destructor

Definition at line 45 of file A01HodoscopeHit.cxx.

46{
47 /// Destructor
48}

Member Function Documentation

◆ Print()

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

Print hit info

Definition at line 51 of file A01HodoscopeHit.cxx.

52{
53 /// Print hit info
54
55 cout << " Hodoscope[" << fID << "] " << fTime * 1.0e+09 << " [nsec]" << endl;
56}

◆ Reset()

void A01HodoscopeHit::Reset ( )

Reset all accounted values.

Definition at line 59 of file A01HodoscopeHit.cxx.

60{
61 /// Reset all accounted values.
62
63 fID = -1;
64 fVolID = -1;
65 fTime = 0.;
66 fTransformation = TGeoHMatrix();
67}

◆ SetID()

void A01HodoscopeHit::SetID ( Int_t id)
inline

Definition at line 42 of file A01HodoscopeHit.h.

42{ fID = id; }

◆ SetVolId()

void A01HodoscopeHit::SetVolId ( Int_t volId)
inline

Definition at line 43 of file A01HodoscopeHit.h.

43{ fVolID = volId; }

◆ SetTime()

void A01HodoscopeHit::SetTime ( Double_t t)
inline

Definition at line 44 of file A01HodoscopeHit.h.

44{ fTime = t; }

◆ SetTransformation()

void A01HodoscopeHit::SetTransformation ( const TGeoHMatrix & transformation)
inline

Definition at line 45 of file A01HodoscopeHit.h.

46 {
47 fTransformation = transformation;
48 }

◆ GetID()

Int_t A01HodoscopeHit::GetID ( ) const
inline

Definition at line 51 of file A01HodoscopeHit.h.

51{ return fID; }

◆ GetVolId()

Int_t A01HodoscopeHit::GetVolId ( ) const
inline

Definition at line 52 of file A01HodoscopeHit.h.

52{ return fVolID; }

◆ GetTime()

Double_t A01HodoscopeHit::GetTime ( ) const
inline

Definition at line 53 of file A01HodoscopeHit.h.

53{ return fTime; }

◆ GetTransformation()

const TGeoHMatrix & A01HodoscopeHit::GetTransformation ( ) const
inline

Definition at line 54 of file A01HodoscopeHit.h.

54{ return fTransformation; }

Member Data Documentation

◆ fID

Int_t A01HodoscopeHit::fID
private

The hit ID.

Definition at line 57 of file A01HodoscopeHit.h.

◆ fVolID

Int_t A01HodoscopeHit::fVolID
private

The volume ID.

Definition at line 58 of file A01HodoscopeHit.h.

◆ fTime

Double_t A01HodoscopeHit::fTime
private

The hit time.

Definition at line 59 of file A01HodoscopeHit.h.

◆ fTransformation

TGeoHMatrix A01HodoscopeHit::fTransformation
private

The transformation of the hit volume.

Definition at line 60 of file A01HodoscopeHit.h.


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