ATLAS Offline Software
LArCalorimeter
LArG4
LArG4Code
LArG4Code
EnergySpot.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
// EnergySpot
6
// Prepared 30-Apr-2003 Bill Seligman
7
8
// This is a very primitive "hit" class for recording energy deposits
9
// created by fast shower models.
10
11
#ifndef __EnergySpot_h__
12
#define __EnergySpot_h__
13
14
#include "G4ThreeVector.hh"
15
#include "globals.hh"
16
17
class
EnergySpot
18
{
19
public
:
20
// Constructors and destructors
21
EnergySpot
()
22
:
m_point
(G4ThreeVector())
23
,
m_energy
(0)
24
,
m_time
(0)
25
{;}
26
27
EnergySpot
(
const
G4ThreeVector&
P
, G4double
E
, G4double
t
)
28
:
m_point
(
P
)
29
,
m_energy
(
E
)
30
,
m_time
(
t
)
31
{;}
32
33
virtual
~EnergySpot
() {;}
34
35
// Accessor methods
36
inline
void
SetEnergy
(
const
G4double&
E
) {
m_energy
=
E
; }
37
inline
G4double
GetEnergy
()
const
{
return
m_energy
; }
38
39
inline
void
SetPosition
(
const
G4ThreeVector&
P
) {
m_point
=
P
; }
40
inline
G4ThreeVector
GetPosition
()
const
{
return
m_point
; }
41
42
inline
void
SetTime
(
const
G4double
t
) {
m_time
=
t
; }
43
inline
G4double
GetTime
()
const
{
return
m_time
; }
44
45
G4bool
operator==
(
const
EnergySpot
& eSpot)
const
46
{
47
return
(
m_energy
== eSpot.
m_energy
&&
m_point
== eSpot.
m_point
);
48
}
49
50
private
:
51
G4ThreeVector
m_point
;
52
G4double
m_energy
;
53
G4double
m_time
;
54
};
55
56
#endif
EnergySpot::~EnergySpot
virtual ~EnergySpot()
Definition:
EnergySpot.h:33
EnergySpot::SetTime
void SetTime(const G4double t)
Definition:
EnergySpot.h:42
EnergySpot::EnergySpot
EnergySpot(const G4ThreeVector &P, G4double E, G4double t)
Definition:
EnergySpot.h:27
EnergySpot
Definition:
EnergySpot.h:18
DMTest::P
P_v1 P
Definition:
P.h:23
EnergySpot::EnergySpot
EnergySpot()
Definition:
EnergySpot.h:21
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
EnergySpot::GetEnergy
G4double GetEnergy() const
Definition:
EnergySpot.h:37
EnergySpot::GetTime
G4double GetTime() const
Definition:
EnergySpot.h:43
EnergySpot::m_point
G4ThreeVector m_point
Definition:
EnergySpot.h:51
EnergySpot::m_time
G4double m_time
Definition:
EnergySpot.h:53
EnergySpot::m_energy
G4double m_energy
Definition:
EnergySpot.h:52
VP1PartSpect::E
@ E
Definition:
VP1PartSpectFlags.h:21
EnergySpot::SetEnergy
void SetEnergy(const G4double &E)
Definition:
EnergySpot.h:36
EnergySpot::GetPosition
G4ThreeVector GetPosition() const
Definition:
EnergySpot.h:40
EnergySpot::SetPosition
void SetPosition(const G4ThreeVector &P)
Definition:
EnergySpot.h:39
EnergySpot::operator==
G4bool operator==(const EnergySpot &eSpot) const
Definition:
EnergySpot.h:45
Generated on Sun Dec 22 2024 21:10:10 for ATLAS Offline Software by
1.8.18