VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01HodoscopeHit.h
Go to the documentation of this file.
1#ifndef A01_HODOSCOPE_HIT_H
2#define A01_HODOSCOPE_HIT_H
3
4//------------------------------------------------
5// The Virtual Monte Carlo examples
6// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
13/// \file A01HodoscopeHit.h
14/// \brief Definition of the A01HodoscopeHit class
15///
16/// Geant4 example A01 adapted to Virtual Monte Carlo: \n
17///
18/// \author I. Hrivnacova; IPN, Orsay
19
20#include <TGeoMatrix.h>
21#include <TObject.h>
22#include <TVector3.h>
23
24/// \ingroup A01
25/// \brief The hodoscope hit
26///
27/// \date 12/05/2012
28/// \author I. Hrivnacova; IPN, Orsay
29
31{
32 public:
33 A01HodoscopeHit(Int_t id, Double_t t);
35 virtual ~A01HodoscopeHit();
36
37 // methods
38 virtual void Print(Option_t* option = "") const;
39 void Reset();
40
41 // set methods
42 void SetID(Int_t id) { fID = id; }
43 void SetVolId(Int_t volId) { fVolID = volId; }
44 void SetTime(Double_t t) { fTime = t; }
45 void SetTransformation(const TGeoHMatrix& transformation)
46 {
47 fTransformation = transformation;
48 }
49
50 // get methods
51 Int_t GetID() const { return fID; }
52 Int_t GetVolId() const { return fVolID; }
53 Double_t GetTime() const { return fTime; }
54 const TGeoHMatrix& GetTransformation() const { return fTransformation; }
55
56 private:
57 Int_t fID; ///< The hit ID
58 Int_t fVolID; ///< The volume ID
59 Double_t fTime; ///< The hit time
60 TGeoHMatrix fTransformation; ///< The transformation of the hit volume
61
62 ClassDef(A01HodoscopeHit, 1) // A01HodoscopeHit
63};
64
65#endif // A01_HODOSCOPE_HIT_H
The hodoscope hit.
Int_t fVolID
The volume ID.
Double_t GetTime() const
TGeoHMatrix fTransformation
The transformation of the hit volume.
void SetID(Int_t id)
void SetVolId(Int_t volId)
virtual void Print(Option_t *option="") const
Double_t fTime
The hit time.
Int_t GetVolId() const
void SetTransformation(const TGeoHMatrix &transformation)
void SetTime(Double_t t)
const TGeoHMatrix & GetTransformation() const
Int_t fID
The hit ID.
Int_t GetID() const
virtual ~A01HodoscopeHit()