ATLAS Offline Software
SimulationHit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SimulationHit_h
6 #define SimulationHit_h
7 
8 #include "CLHEP/Vector/ThreeVector.h"
9 
11 {
12 public:
13  SimulationHit();
14  SimulationHit(double pre_time, const CLHEP::Hep3Vector& pre_position, const double pre_kinetic_energy, const CLHEP::Hep3Vector& pre_direction, const CLHEP::Hep3Vector& pre_momentum,
15  double post_time, const CLHEP::Hep3Vector& post_position, const double post_kinetic_energy, const CLHEP::Hep3Vector& post_direction, const CLHEP::Hep3Vector& post_momentum,
16  const double deposit_energy, const int pdgcode, const int track_id, const int parent_id);
17  virtual ~SimulationHit();
18 
19  class StepPoint {
20  public:
21  StepPoint();
22  StepPoint(double time, const CLHEP::Hep3Vector& position, const double kinetic_energy, const CLHEP::Hep3Vector& direction, const CLHEP::Hep3Vector& momentum);
23  double time;
24  CLHEP::Hep3Vector position;
26  CLHEP::Hep3Vector direction;
27  CLHEP::Hep3Vector momentum;
28  };
29 
30  const StepPoint& pre() const { return m_pre; }
31  const StepPoint& post() const { return m_post; }
32  double depositEnergy() const { return m_deposit_energy; }
33  int particleEncoding() const { return m_pdgcode; }
34  int trackID() const { return m_track_id; }
35  int parentID() const { return m_parent_id; }
36 
37 
38 public:
42  int m_pdgcode;
45 
46 };
47 
48 
49 #endif
50 
SimulationHit::depositEnergy
double depositEnergy() const
Definition: SimulationHit.h:32
SimulationHit::StepPoint::StepPoint
StepPoint()
Definition: SimulationHit.cxx:7
SimulationHit::m_pre
StepPoint m_pre
Definition: SimulationHit.h:39
SimulationHit::parentID
int parentID() const
Definition: SimulationHit.h:35
SimulationHit::StepPoint::time
double time
Definition: SimulationHit.h:23
SimulationHit
Definition: SimulationHit.h:11
SimulationHit::pre
const StepPoint & pre() const
Definition: SimulationHit.h:30
SimulationHit::StepPoint
Definition: SimulationHit.h:19
SimulationHit::SimulationHit
SimulationHit()
Definition: SimulationHit.cxx:10
SimulationHit::m_parent_id
int m_parent_id
Definition: SimulationHit.h:44
SimulationHit::StepPoint::position
CLHEP::Hep3Vector position
Definition: SimulationHit.h:24
SimulationHit::m_post
StepPoint m_post
Definition: SimulationHit.h:40
SimulationHit::StepPoint::kinetic_energy
double kinetic_energy
Definition: SimulationHit.h:25
SimulationHit::trackID
int trackID() const
Definition: SimulationHit.h:34
SimulationHit::m_pdgcode
int m_pdgcode
Definition: SimulationHit.h:42
SimulationHit::m_track_id
int m_track_id
Definition: SimulationHit.h:43
SimulationHit::particleEncoding
int particleEncoding() const
Definition: SimulationHit.h:33
SimulationHit::post
const StepPoint & post() const
Definition: SimulationHit.h:31
SimulationHit::m_deposit_energy
double m_deposit_energy
Definition: SimulationHit.h:41
SimulationHit::~SimulationHit
virtual ~SimulationHit()
Definition: SimulationHit.cxx:17
SimulationHit::StepPoint::direction
CLHEP::Hep3Vector direction
Definition: SimulationHit.h:26
SimulationHit::StepPoint::momentum
CLHEP::Hep3Vector momentum
Definition: SimulationHit.h:27