VMC Examples Version 6.6
Loading...
Searching...
No Matches
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
22using namespace std;
23
24/// \cond CLASSIMP
25ClassImp(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//_____________________________________________________________________________
39 : TObject(), fID(-1), fVolID(-1), fTime(0), fTransformation()
40{
41 /// Default constructor
42}
43
44//_____________________________________________________________________________
46{
47 /// Destructor
48}
49
50//_____________________________________________________________________________
51void 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//_____________________________________________________________________________
60{
61 /// Reset all accounted values.
62
63 fID = -1;
64 fVolID = -1;
65 fTime = 0.;
66 fTransformation = TGeoHMatrix();
67}
Definition of the A01HodoscopeHit class.
The hodoscope hit.
Int_t fVolID
The volume ID.
TGeoHMatrix fTransformation
The transformation of the hit volume.
virtual void Print(Option_t *option="") const
Double_t fTime
The hit time.
Int_t fID
The hit ID.
virtual ~A01HodoscopeHit()