VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01DriftChamberHit.h
Go to the documentation of this file.
1#ifndef A01_DRIFT_CHAMBER_HIT_H
2#define A01_DRIFT_CHAMBER_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 A01DriftChamberHit.h
14/// \brief Definition of the A01DriftChamberHit class
15///
16/// Geant4 example A01 adapted to Virtual Monte Carlo: \n
17///
18/// \author I. Hrivnacova; IPN, Orsay
19
20#include <TMatrix.h>
21#include <TObject.h>
22#include <TVector3.h>
23
24/// \ingroup A01
25/// \brief The drift chamber hit
26///
27/// \date 12/05/2012
28/// \author I. Hrivnacova; IPN, Orsay
29
31{
32 public:
33 A01DriftChamberHit(Int_t z);
35 virtual ~A01DriftChamberHit();
36
37 // methods
38 virtual void Print(Option_t* option = "") const;
39 void Reset();
40
41 // set methods
42 void SetLayerID(Int_t id) { fLayerID = id; }
43 void SetTime(Double_t t) { fTime = t; }
44 void SetLocalPos(const TVector3& pos) { fLocalPos = pos; }
45 void SetWorldPos(const TVector3& pos) { fWorldPos = pos; }
46
47 // get methods
48 Int_t GetLayerID() const { return fLayerID; }
49 Double_t GetTime() const { return fTime; }
50 TVector3 GetLocalPos() const { return fLocalPos; };
51 TVector3 GetWorldPos() const { return fWorldPos; };
52
53 private:
54 Int_t fLayerID; ///< The layer ID
55 Double_t fTime; ///< The hit time
56 TVector3 fLocalPos; ///< The local hit position
57 TVector3 fWorldPos; ///< The global hit position
58
59 ClassDef(A01DriftChamberHit, 1) // A01DriftChamberHit
60};
61
62#endif // A01_DRIFT_CHAMBER_HIT_H
The drift chamber hit.
TVector3 GetWorldPos() const
void SetLocalPos(const TVector3 &pos)
void SetLayerID(Int_t id)
virtual void Print(Option_t *option="") const
Int_t fLayerID
The layer ID.
void SetTime(Double_t t)
Double_t fTime
The hit time.
TVector3 fLocalPos
The local hit position.
Double_t GetTime() const
TVector3 fWorldPos
The global hit position.
TVector3 GetLocalPos() const
void SetWorldPos(const TVector3 &pos)