ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
G4Sim
MCTruth
MCTruth
VTrackInformation.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 MCTRUTH_VTRACKINFORMATION_H
6
#define MCTRUTH_VTRACKINFORMATION_H
7
8
#include "G4VUserTrackInformation.hh"
9
#include "
AtlasHepMC/GenParticle_fwd.h
"
10
11
namespace
ISF
{
12
class
ISFParticle
;
13
}
14
30
class
VTrackInformation
:
public
G4VUserTrackInformation {
31
public
:
32
enum
TrackClassification
{
Primary
,
RegeneratedPrimary
,
RegisteredSecondary
,
Secondary
,
BarcodeOnly
} ;
33
VTrackInformation
(
TrackClassification
tc
=
Primary
);
34
39
TrackClassification
GetClassification
()
const
{
return
m_classify
;}
45
void
SetClassification
(
TrackClassification
tc
) {
m_classify
=
tc
;}
46
54
HepMC::ConstGenParticlePtr
GetPrimaryGenParticle
()
const
{
return
m_primaryGenParticle
;}
55
HepMC::GenParticlePtr
GetPrimaryGenParticle
() {
return
m_primaryGenParticle
;}
61
void
SetPrimaryGenParticle
(
HepMC::GenParticlePtr
);
62
67
virtual
HepMC::ConstGenParticlePtr
GetCurrentGenParticle
()
const
{
return
nullptr
;}
68
virtual
HepMC::GenParticlePtr
GetCurrentGenParticle
() {
return
nullptr
;}
74
virtual
void
SetCurrentGenParticle
(
HepMC::GenParticlePtr
);
75
80
virtual
const
ISF::ISFParticle
*
GetBaseISFParticle
()
const
{
return
nullptr
;}
81
virtual
ISF::ISFParticle
*
GetBaseISFParticle
() {
return
nullptr
;}
88
virtual
void
SetBaseISFParticle
(
ISF::ISFParticle
*);
89
94
virtual
bool
GetReturnedToISF
()
const
;
99
virtual
void
SetReturnedToISF
(
bool
) ;
100
101
virtual
int
GetParticleBarcode
()
const
= 0;
// TODO Drop this once UniqueID and Status are used instead
102
virtual
int
GetParticleUniqueID
()
const
= 0;
103
virtual
int
GetParticleStatus
()
const
= 0;
104
105
virtual
void
Print
()
const
{}
106
private
:
107
TrackClassification
m_classify
;
108
HepMC::GenParticlePtr
m_primaryGenParticle
{};
109
};
110
111
#endif
// MCTRUTH_VTRACKINFORMATION_H
GenParticle_fwd.h
tc
static Double_t tc
Definition
LArPhysWaveHECTool.cxx:38
ISF::ISFParticle
The generic ISF particle definition,.
Definition
ISFParticle.h:42
VTrackInformation::GetCurrentGenParticle
virtual HepMC::ConstGenParticlePtr GetCurrentGenParticle() const
return a pointer to the GenParticle corresponding to the current G4Track (if there is one).
Definition
VTrackInformation.h:67
VTrackInformation::SetBaseISFParticle
virtual void SetBaseISFParticle(ISF::ISFParticle *)
set the pointer to the ISFParticle corresponding to the current G4Track.
Definition
VTrackInformation.cxx:28
VTrackInformation::Print
virtual void Print() const
Definition
VTrackInformation.h:105
VTrackInformation::GetPrimaryGenParticle
HepMC::GenParticlePtr GetPrimaryGenParticle()
Definition
VTrackInformation.h:55
VTrackInformation::SetPrimaryGenParticle
void SetPrimaryGenParticle(HepMC::GenParticlePtr)
set the pointer to the GenParticle used to create the initial G4PrimaryParticle from which the curren...
Definition
VTrackInformation.cxx:12
VTrackInformation::SetClassification
void SetClassification(TrackClassification tc)
update the classification of the currently tracked particle, usually called when a new G4Track is cre...
Definition
VTrackInformation.h:45
VTrackInformation::GetReturnedToISF
virtual bool GetReturnedToISF() const
Is the ISFParticle corresponding to the current G4Track scheduled to be returned to the ISF?
Definition
VTrackInformation.cxx:17
VTrackInformation::TrackClassification
TrackClassification
Definition
VTrackInformation.h:32
VTrackInformation::RegeneratedPrimary
@ RegeneratedPrimary
Definition
VTrackInformation.h:32
VTrackInformation::Primary
@ Primary
Definition
VTrackInformation.h:32
VTrackInformation::RegisteredSecondary
@ RegisteredSecondary
Definition
VTrackInformation.h:32
VTrackInformation::Secondary
@ Secondary
Definition
VTrackInformation.h:32
VTrackInformation::BarcodeOnly
@ BarcodeOnly
Definition
VTrackInformation.h:32
VTrackInformation::m_classify
TrackClassification m_classify
Definition
VTrackInformation.h:107
VTrackInformation::GetBaseISFParticle
virtual ISF::ISFParticle * GetBaseISFParticle()
Definition
VTrackInformation.h:81
VTrackInformation::m_primaryGenParticle
HepMC::GenParticlePtr m_primaryGenParticle
Definition
VTrackInformation.h:108
VTrackInformation::GetCurrentGenParticle
virtual HepMC::GenParticlePtr GetCurrentGenParticle()
Definition
VTrackInformation.h:68
VTrackInformation::VTrackInformation
VTrackInformation(TrackClassification tc=Primary)
Definition
VTrackInformation.cxx:7
VTrackInformation::SetReturnedToISF
virtual void SetReturnedToISF(bool)
Flag whether the ISFParticle corresponding to the current G4Track scheduled to be returned to the ISF...
Definition
VTrackInformation.cxx:34
VTrackInformation::GetBaseISFParticle
virtual const ISF::ISFParticle * GetBaseISFParticle() const
return a pointer to the ISFParticle corresponding to the current G4Track.
Definition
VTrackInformation.h:80
VTrackInformation::GetPrimaryGenParticle
HepMC::ConstGenParticlePtr GetPrimaryGenParticle() const
return a pointer to the GenParticle used to create the initial G4PrimaryParticle from which the curre...
Definition
VTrackInformation.h:54
VTrackInformation::GetClassification
TrackClassification GetClassification() const
return the classification of the current G4Ttrack (Primary, Regenerated Primary, Registered Secondary...
Definition
VTrackInformation.h:39
VTrackInformation::SetCurrentGenParticle
virtual void SetCurrentGenParticle(HepMC::GenParticlePtr)
set the pointer to the GenParticle corresponding to the current G4Track.
Definition
VTrackInformation.cxx:22
VTrackInformation::GetParticleStatus
virtual int GetParticleStatus() const =0
VTrackInformation::GetParticleBarcode
virtual int GetParticleBarcode() const =0
VTrackInformation::GetParticleUniqueID
virtual int GetParticleUniqueID() const =0
HepMC::GenParticlePtr
GenParticle * GenParticlePtr
Definition
GenParticle.h:37
HepMC::ConstGenParticlePtr
const GenParticle * ConstGenParticlePtr
Definition
GenParticle.h:38
ISF
ISFParticleOrderedQueue.
Definition
PrimaryParticleInformation.h:13
Generated on
for ATLAS Offline Software by
1.14.0