VMC Examples
Version 6.6
Loading...
Searching...
No Matches
examples
A01
src
A01HodoscopeHit.cxx
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Virtual Monte Carlo examples
3
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
4
// All rights reserved.
5
//
6
// For the licensing terms see geant4_vmc/LICENSE.
7
// Contact: root-vmc@cern.ch
8
//-------------------------------------------------
9
10
/// \file A01HodoscopeHit.cxx
11
/// \brief Implementation of the A01HodoscopeHit class
12
///
13
/// Geant4 example A01 adapted to Virtual Monte Carlo \n
14
///
15
/// \date 12/05/2012
16
/// \author I. Hrivnacova; IPN, Orsay
17
18
#include <Riostream.h>
19
20
#include "
A01HodoscopeHit.h
"
21
22
using namespace
std;
23
24
/// \cond CLASSIMP
25
ClassImp(
A01HodoscopeHit
)
26
/// \endcond
27
28
//_____________________________________________________________________________
29
A01HodoscopeHit
::
A01HodoscopeHit
(Int_t
id
, Double_t t)
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
}
36
37
//_____________________________________________________________________________
38
A01HodoscopeHit::A01HodoscopeHit
()
39
:
TObject
(), fID(-1), fVolID(-1), fTime(0), fTransformation()
40
{
41
/// Default constructor
42
}
43
44
//_____________________________________________________________________________
45
A01HodoscopeHit::~A01HodoscopeHit
()
46
{
47
/// Destructor
48
}
49
50
//_____________________________________________________________________________
51
void
A01HodoscopeHit::Print
(Option_t*
/*option*/
)
const
52
{
53
/// Print hit info
54
55
cout <<
" Hodoscope["
<<
fID
<<
"] "
<<
fTime
* 1.0e+09 <<
" [nsec]"
<< endl;
56
}
57
58
//_____________________________________________________________________________
59
void
A01HodoscopeHit::Reset
()
60
{
61
/// Reset all accounted values.
62
63
fID
= -1;
64
fVolID
= -1;
65
fTime
= 0.;
66
fTransformation
= TGeoHMatrix();
67
}
A01HodoscopeHit.h
Definition of the A01HodoscopeHit class.
A01HodoscopeHit
The hodoscope hit.
Definition
A01HodoscopeHit.h:31
A01HodoscopeHit::fVolID
Int_t fVolID
The volume ID.
Definition
A01HodoscopeHit.h:58
A01HodoscopeHit::fTransformation
TGeoHMatrix fTransformation
The transformation of the hit volume.
Definition
A01HodoscopeHit.h:60
A01HodoscopeHit::Print
virtual void Print(Option_t *option="") const
Definition
A01HodoscopeHit.cxx:51
A01HodoscopeHit::fTime
Double_t fTime
The hit time.
Definition
A01HodoscopeHit.h:59
A01HodoscopeHit::Reset
void Reset()
Definition
A01HodoscopeHit.cxx:59
A01HodoscopeHit::fID
Int_t fID
The hit ID.
Definition
A01HodoscopeHit.h:57
A01HodoscopeHit::A01HodoscopeHit
A01HodoscopeHit()
Definition
A01HodoscopeHit.cxx:38
A01HodoscopeHit::~A01HodoscopeHit
virtual ~A01HodoscopeHit()
Definition
A01HodoscopeHit.cxx:45
TObject
Generated on Thu Oct 17 2024 08:29:51 for VMC Examples by
1.12.0