ATLAS Offline Software
Loading...
Searching...
No Matches
ShowerEnergySpot.h
Go to the documentation of this file.
1/*
2Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
4Compressed version of energy spots to be used by ShowerLibrary.
5
6*/
7#pragma once
8
9#include "G4ThreeVector.hh"
10
11namespace ShowerLib {
13 {
14
15 public:
16
17 // Constructors and destructors
20
21
22
23 ShowerEnergySpot(const G4ThreeVector& P, G4double E, G4double t)
24 {
25 m_point[0] = P.getX();
26 m_point[1] = P.getY();
27 m_point[2] = P.getZ();
28 m_energy = E;
29 m_time = t;
30 }
33
34// Accessor methods
35 inline void SetEnergy(const G4double& E)
36 { m_energy = E; }
37
38 inline G4double GetEnergy() const
39 { return m_energy; }
40
41 inline void SetPosition(const G4ThreeVector& P)
42 {
43 m_point[0] = P.getX();
44 m_point[1] = P.getY();
45 m_point[2] = P.getZ();
46 }
47
48 inline G4ThreeVector GetPosition() const
49 { return G4ThreeVector(m_point[0], m_point[1], m_point[2]); }
50
51 inline void SetTime(const G4double t)
52 { m_time = t; }
53
54 inline G4double GetTime() const
55 { return m_time; }
56
57
58 private:
59 float m_point[3];
60 float m_energy;
61 float m_time;
62 };
63
64}
65
66
67
68
static Double_t P(Double_t *tt, Double_t *par)
void SetTime(const G4double t)
void SetPosition(const G4ThreeVector &P)
G4ThreeVector GetPosition() const
ShowerEnergySpot(const G4ThreeVector &P, G4double E, G4double t)
void SetEnergy(const G4double &E)
Namespace for the ShowerLib related classes.
Definition StepInfo.h:17