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
source
analysis
digits_hits
error_propagation
event
externals
g3tog4
geometry
global
graphics_reps
intercoms
interfaces
materials
parameterisations
particles
persistency
physics_lists
processes
biasing
cuts
decay
electromagnetic
adjoint
dna
highenergy
lowenergy
muons
pii
polarisation
standard
utils
xrays
include
src
G4Cerenkov.cc
G4ForwardXrayTR.cc
G4GammaXTRadiator.cc
G4RegularXTRadiator.cc
G4Scintillation.cc
G4ScintillationTrackInformation.cc
G4StrawTubeXTRadiator.cc
G4SynchrotronRadiation.cc
G4SynchrotronRadiationInMat.cc
G4TransitionRadiation.cc
G4TransparentRegXTRadiator.cc
G4VTransitionRadiation.cc
G4VXTRenergyLoss.cc
G4XTRGammaRadModel.cc
G4XTRRegularRadModel.cc
G4XTRTransparentRegRadModel.cc
hadronic
management
optical
parameterisation
scoring
solidstate
transportation
readout
run
track
tracking
visualization
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4ScintillationTrackInformation.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4ScintillationTrackInformation.cc
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
//
27
//
28
// Author : Valentin Libioulle valentin.libioulle@usherbrooke.ca (3IT - GRAMS)
29
//
30
31
#include "
G4ScintillationTrackInformation.hh
"
32
33
G4Allocator<G4ScintillationTrackInformation>
*&
aScintillationTIAllocator
()
34
{
35
G4ThreadLocalStatic
G4Allocator<G4ScintillationTrackInformation>
*
36
_instance =
nullptr
;
37
return
_instance;
38
}
39
40
const
G4String
G4ScintillationTrackInformation::BaseType
=
"G4ScintillationTrackInformation"
;
41
42
G4ScintillationTrackInformation::G4ScintillationTrackInformation
(
const
G4ScintillationType
& aType)
43
:
G4VUserTrackInformation
(BaseType),
44
scintillationType(aType)
45
{
46
}
47
48
G4ScintillationTrackInformation::~G4ScintillationTrackInformation
()
49
{
50
}
51
52
G4ScintillationTrackInformation::G4ScintillationTrackInformation
(
const
G4ScintillationTrackInformation
&
right
)
53
:
G4VUserTrackInformation
(right),
54
scintillationType(right.scintillationType)
55
{
56
}
57
58
G4ScintillationTrackInformation
&
G4ScintillationTrackInformation::operator=
(
const
G4ScintillationTrackInformation
&
right
)
59
{
60
G4VUserTrackInformation::operator=
(right);
61
this->
scintillationType
= right.
scintillationType
;
62
return
*
this
;
63
}
64
65
void
G4ScintillationTrackInformation::Print
()
const
66
{
67
G4cout
<<
"The user track information is a scintillation"
<<
G4endl
;
68
}
69
70
G4bool
G4ScintillationTrackInformation::IsScintillationTrackInformation
(
const
G4VUserTrackInformation
*
const
aTI)
71
{
72
G4bool
isSTI = (aTI && aTI->
GetType
() ==
BaseType
.c_str());
73
return
isSTI;
74
}
75
76
G4ScintillationTrackInformation
*
G4ScintillationTrackInformation::Cast
(
const
G4VUserTrackInformation
*
const
aTI)
77
{
78
G4ScintillationTrackInformation
* STI =
nullptr
;
79
if
(
IsScintillationTrackInformation
(aTI))
80
{
81
// No change will be done to the pointer and to the pointed data
82
G4VUserTrackInformation
* temp =
const_cast<
G4VUserTrackInformation
*
>
(aTI);
83
STI =
dynamic_cast<
G4ScintillationTrackInformation
*
>
(temp);
84
}
85
return
STI;
86
}
geant4
tree
geant4-10.6-release
source
processes
electromagnetic
xrays
src
G4ScintillationTrackInformation.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:36
using
1.8.2 with
ECCE GitHub integration