ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
advanced
basic
extended
analysis
biasing
common
electromagnetic
errorpropagation
eventgenerator
exoticphysics
field
g3tog4
geometry
hadronic
medical
optical
LXe
OpNovice
OpNovice2
wls
include
WLSActionInitialization.hh
WLSDetectorConstruction.hh
WLSDetectorMessenger.hh
WLSEventAction.hh
WLSEventActionMessenger.hh
WLSMaterials.hh
WLSPhotonDetHit.hh
WLSPhotonDetSD.hh
WLSPrimaryGeneratorAction.hh
WLSPrimaryGeneratorMessenger.hh
WLSRunAction.hh
WLSRunActionMessenger.hh
WLSStackingAction.hh
WLSSteppingAction.hh
WLSSteppingActionMessenger.hh
WLSTrackingAction.hh
WLSTrajectory.hh
WLSTrajectoryPoint.hh
WLSUserTrackInformation.hh
src
wls.cc
parallel
parameterisations
persistency
physicslists
polarisation
radioactivedecay
runAndEvent
visualization
source
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
WLSTrajectoryPoint.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file WLSTrajectoryPoint.hh
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
//
29
//
30
31
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
32
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
33
34
#ifndef WLSTrajectoryPoint_h_seen
35
#define WLSTrajectoryPoint_h_seen 1
36
37
#include "
globals.hh
"
38
39
#include "
G4Allocator.hh
"
40
#include "
G4ThreeVector.hh
"
41
#include "
G4TrajectoryPoint.hh
"
42
43
#include "
G4StepStatus.hh
"
44
45
class
G4Track
;
46
class
G4Step
;
47
class
G4VProcess
;
48
49
class
WLSTrajectoryPoint
:
public
G4TrajectoryPoint
{
50
51
//--------
52
public
:
// without description
53
//--------
54
55
// Constructor/Destructor
56
57
WLSTrajectoryPoint
();
58
WLSTrajectoryPoint
(
const
G4Track
* );
59
WLSTrajectoryPoint
(
const
G4Step
* );
60
WLSTrajectoryPoint
(
const
WLSTrajectoryPoint
&
right
);
61
virtual
~WLSTrajectoryPoint
();
62
63
// Operators
64
65
inline
void
*
operator
new
(size_t);
66
inline
void
operator
delete
(
void
*aTrajectoryPoint);
67
inline
G4bool
operator==
(
const
WLSTrajectoryPoint
& right)
const
68
{
return
(
this
==&right); };
69
70
// Get/Set functions
71
72
inline
G4double
GetTime
()
const
{
return
fTime
; };
73
inline
const
G4ThreeVector
GetMomentum
()
const
{
return
fMomentum
; };
74
inline
G4StepStatus
GetStepStatus
()
const
{
return
fStepStatus
; };
75
inline
G4String
GetVolumeName
()
const
{
return
fVolumeName
; };
76
77
// Get method for HEPRep style attributes
78
79
virtual
const
std::map<G4String,G4AttDef>*
GetAttDefs
()
const
;
80
virtual
std::vector<G4AttValue>*
CreateAttValues
()
const
;
81
82
//---------
83
private
:
84
//---------
85
86
// Member data
87
88
G4double
fTime
;
89
G4ThreeVector
fMomentum
;
90
G4StepStatus
fStepStatus
;
91
G4String
fVolumeName
;
92
93
};
94
95
extern
G4ThreadLocal
G4Allocator<WLSTrajectoryPoint>
*
WLSTrajPointAllocator
;
96
97
inline
void
* WLSTrajectoryPoint::operator
new
(size_t)
98
{
99
if
(!
WLSTrajPointAllocator
)
100
WLSTrajPointAllocator
=
new
G4Allocator<WLSTrajectoryPoint>
;
101
return
(
void
*)
WLSTrajPointAllocator
->MallocSingle();
102
}
103
104
inline
void
WLSTrajectoryPoint::operator
delete
(
void
*aTrajectoryPoint)
105
{
106
WLSTrajPointAllocator
->FreeSingle(
107
(
WLSTrajectoryPoint
*) aTrajectoryPoint);
108
}
109
110
#endif
geant4
tree
geant4-10.6-release
examples
extended
optical
wls
include
WLSTrajectoryPoint.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:08
using
1.8.2 with
ECCE GitHub integration