ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
ISF
ISF_Geant4
ISF_Geant4Event
ISF_Geant4Event
ISFG4Helper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ISF_GEANT4TOOLS_ISFG4HELPER_H
6
#define ISF_GEANT4TOOLS_ISFG4HELPER_H
7
8
// ISF Includes
9
10
// MCTruth includes
11
#include "
MCTruth/VTrackInformation.h
"
//use enum
12
13
// forward declarations
14
#include "
AtlasHepMC/GenParticle_fwd.h
"
15
namespace
ISF
{
16
class
TruthBinding
;
17
class
ISFParticle
;
18
}
19
class
TrackInformation
;
20
class
G4Track;
21
22
namespace
iGeant4
{
23
24
class
ISFG4Helper
{
25
26
public
:
27
ISFG4Helper
() =
delete
;
28
30
static
ISF::ISFParticle
*
convertG4TrackToISFParticle
(
const
G4Track& aTrack,
31
const
ISF::ISFParticle
& parent,
32
ISF::TruthBinding
* truth =
nullptr
);
33
35
static
VTrackInformation
*
getISFTrackInfo
(
const
G4Track& aTrack);
36
38
static
void
setG4TrackInfoFromBaseISFParticle
( G4Track& aTrack,
39
const
ISF::ISFParticle
& baseIsp,
40
bool
setReturnToISF=
false
);
41
44
static
TrackInformation
*
attachTrackInfoToNewG4Track
( G4Track& aTrack,
45
ISF::ISFParticle
& baseIsp,
46
VTrackInformation::TrackClassification
classification,
47
HepMC::GenParticlePtr
generationZeroGenParticle =
nullptr
);
48
49
private
:
50
51
};
52
}
53
54
#endif
// ISF_GEANT4TOOLS_ISFG4HELPER_H
GenParticle_fwd.h
VTrackInformation.h
ISF::ISFParticle
The generic ISF particle definition,.
Definition
ISFParticle.h:42
ISF::TruthBinding
Definition
TruthBinding.h:18
TrackInformation
Implementation of VTrackInformation.
Definition
TrackInformation.h:44
VTrackInformation
Instances of classes derived from this class are attached as UserInformation to G4Tracks.
Definition
VTrackInformation.h:30
VTrackInformation::TrackClassification
TrackClassification
Definition
VTrackInformation.h:32
iGeant4::ISFG4Helper::getISFTrackInfo
static VTrackInformation * getISFTrackInfo(const G4Track &aTrack)
return a valid UserInformation object of the G4Track for use within the ISF
Definition
ISFG4Helper.cxx:66
iGeant4::ISFG4Helper::ISFG4Helper
ISFG4Helper()=delete
iGeant4::ISFG4Helper::convertG4TrackToISFParticle
static ISF::ISFParticle * convertG4TrackToISFParticle(const G4Track &aTrack, const ISF::ISFParticle &parent, ISF::TruthBinding *truth=nullptr)
convert the given G4Track into an ISFParticle
Definition
ISFG4Helper.cxx:28
iGeant4::ISFG4Helper::setG4TrackInfoFromBaseISFParticle
static void setG4TrackInfoFromBaseISFParticle(G4Track &aTrack, const ISF::ISFParticle &baseIsp, bool setReturnToISF=false)
link the given G4Track to the given ISFParticle
iGeant4::ISFG4Helper::attachTrackInfoToNewG4Track
static TrackInformation * attachTrackInfoToNewG4Track(G4Track &aTrack, ISF::ISFParticle &baseIsp, VTrackInformation::TrackClassification classification, HepMC::GenParticlePtr generationZeroGenParticle=nullptr)
attach a new TrackInformation object to the given new (!) G4Track (the G4Track must not have a UserIn...
Definition
ISFG4Helper.cxx:75
HepMC::GenParticlePtr
HepMC3::GenParticlePtr GenParticlePtr
Definition
GenParticle.h:19
ISF
ISFParticleOrderedQueue.
Definition
PrimaryParticleInformation.h:13
iGeant4
Definition
Geant4TruthIncident.h:33
Generated on
for ATLAS Offline Software by
1.17.0