VMC Examples Version 6.6
Loading...
Searching...
No Matches
Ex02TrackerHit.h
Go to the documentation of this file.
1#ifndef EX02_TRACKER_HIT_H
2#define EX02_TRACKER_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 Ex02TrackerHit.h
14/// \brief Definition of the Ex02TrackerHit class
15///
16/// Geant4 ExampleN02 adapted to Virtual Monte Carlo \n
17/// Id: Ex02TrackerHit.hh,v 1.6 2002/01/09 17:24:09 ranjard Exp \n
18/// GEANT4 tag Name: geant4-04-00-patch-02
19///
20/// \author I. Hrivnacova; IPN, Orsay
21
22#include <TObject.h>
23#include <TVector3.h>
24
25/// \ingroup E02
26/// \brief The tracker hit
27///
28/// \date 21/04/2002
29/// \author I. Hrivnacova; IPN, Orsay
30
31class Ex02TrackerHit : public TObject
32{
33 public:
35 virtual ~Ex02TrackerHit();
36
37 // methods
38 // void Draw();
39 virtual void Print(const Option_t* option = "") const;
40
41 //
42 // set methods
43
44 /// Set track Id
45 /// \param track The new track Id value
46 void SetTrackID(Int_t track) { fTrackID = track; };
47
48 /// Set chamber number
49 /// \param chamb The new chamber number value
50 void SetChamberNb(Int_t chamb) { fChamberNb = chamb; };
51
52 /// Set energy deposit
53 /// \param de The new energy deposit value
54 void SetEdep(Double_t de) { fEdep = de; };
55
56 /// Set position
57 /// \param xyz The new position value
58 void SetPos(TVector3 xyz) { fPos = xyz; };
59
60 //
61 // get methods
62
63 /// \return The track Id
64 Int_t GetTrackID() { return fTrackID; };
65
66 /// \return The chamber number
67 Int_t GetChamberNb() { return fChamberNb; };
68
69 /// \return The energy deposit
70 Double_t GetEdep() { return fEdep; };
71
72 /// \return The track position
73 TVector3 GetPos() { return fPos; };
74
75 private:
76 Int_t fTrackID; ///< Track Id
77 Int_t fChamberNb; ///< Chamber number
78 Double_t fEdep; ///< Energy deposit
79 TVector3 fPos; ///< Track position
80
81 ClassDef(Ex02TrackerHit, 1) // Ex02TrackerHit
82};
83
84#endif // EX02_TRACKER_HIT_H
The tracker hit.
void SetChamberNb(Int_t chamb)
void SetTrackID(Int_t track)
TVector3 fPos
Track position.
Int_t fTrackID
Track Id.
void SetPos(TVector3 xyz)
Int_t fChamberNb
Chamber number.
Double_t fEdep
Energy deposit.
virtual void Print(const Option_t *option="") const
virtual ~Ex02TrackerHit()
void SetEdep(Double_t de)
TVector3 GetPos()
Double_t GetEdep()