ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
ISF
ISF_HepMC
ISF_HepMC_Tools
src
GenParticleSimAcceptList.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ISF_HEPMC_GENPARTICLESIMACCEPTLIST_H
6
#define ISF_HEPMC_GENPARTICLESIMACCEPTLIST_H 1
7
8
// FrameWork includes
9
#include "GaudiKernel/ToolHandle.h"
10
#include "GaudiKernel/SystemOfUnits.h"
11
#include "
AthenaBaseComps/AthAlgTool.h
"
12
// ISF includes
13
#include "
ISF_HepMC_Interfaces/IGenParticleFilter.h
"
14
15
// STL includes
16
#include <string>
17
#include <vector>
18
19
#include "
AtlasHepMC/GenParticle.h
"
20
namespace
ISF
{
21
22
class
ISFParticle
;
23
31
class
GenParticleSimAcceptList
:
public
extends<AthAlgTool, IGenParticleFilter> {
32
33
public
:
34
//** Constructor with parameters */
35
GenParticleSimAcceptList
(
const
std::string& t,
const
std::string& n,
const
IInterface* p );
36
38
~GenParticleSimAcceptList
(){}
39
41
virtual
StatusCode
initialize
() override final;
42
virtual StatusCode
finalize
() override final;
43
45
virtual
bool
pass
(
const
HepMC
::ConstGenParticlePtr& particle )
const
override;
46
47
private
:
49
bool
pass
(
const
HepMC
::ConstGenParticlePtr& particle ,
std
::
vector
<
int
> & used_vertices )
const
;
50
StringArrayProperty
m_acceptLists
{
this
,
"AcceptLists"
, {
"G4particle_acceptlist.txt"
} };
51
std::vector<long int>
m_pdgId
;
52
BooleanProperty
m_qs
{
this
,
"QuasiStableSim"
,
true
};
53
BooleanProperty
m_useShadowEvent
{
this
,
"UseShadowEvent"
,
false
,
"New approach to selecting particles for simulation"
};
54
DoubleProperty
m_minDecayRadiusQS
{
this
,
"MinimumDecayRadiusQS"
, 30.19*Gaudi::Units::mm};
55
};
56
57
}
58
59
60
#endif
//> !ISF_HEPMC_GENPARTICLESIMACCEPTLIST_H
AthAlgTool.h
GenParticle.h
IGenParticleFilter.h
ISF::GenParticleSimAcceptList::finalize
virtual StatusCode finalize() override final
Definition
GenParticleSimAcceptList.cxx:141
ISF::GenParticleSimAcceptList::initialize
virtual StatusCode initialize() override final
Athena algtool's Hooks.
Definition
GenParticleSimAcceptList.cxx:31
ISF::GenParticleSimAcceptList::pass
virtual bool pass(const HepMC::ConstGenParticlePtr &particle) const override
passes through to the private version
Definition
GenParticleSimAcceptList.cxx:70
ISF::GenParticleSimAcceptList::m_qs
BooleanProperty m_qs
Switch for quasi-stable particle simulation.
Definition
GenParticleSimAcceptList.h:52
ISF::GenParticleSimAcceptList::m_acceptLists
StringArrayProperty m_acceptLists
The location of the accept lists.
Definition
GenParticleSimAcceptList.h:50
ISF::GenParticleSimAcceptList::~GenParticleSimAcceptList
~GenParticleSimAcceptList()
Destructor.
Definition
GenParticleSimAcceptList.h:38
ISF::GenParticleSimAcceptList::GenParticleSimAcceptList
GenParticleSimAcceptList(const std::string &t, const std::string &n, const IInterface *p)
Constructor.
Definition
GenParticleSimAcceptList.cxx:23
ISF::GenParticleSimAcceptList::m_pdgId
std::vector< long int > m_pdgId
Allowed PDG IDs.
Definition
GenParticleSimAcceptList.h:51
ISF::GenParticleSimAcceptList::m_minDecayRadiusQS
DoubleProperty m_minDecayRadiusQS
Decay radius below which QS particles should be ignored.
Definition
GenParticleSimAcceptList.h:54
ISF::GenParticleSimAcceptList::m_useShadowEvent
BooleanProperty m_useShadowEvent
Definition
GenParticleSimAcceptList.h:53
ISF::ISFParticle
The generic ISF particle definition,.
Definition
ISFParticle.h:42
vector
Definition
MultiHisto.h:13
const
HepMC
Definition
Barcode.h:13
ISF
ISFParticleOrderedQueue.
Definition
PrimaryParticleInformation.h:13
std
STL namespace.
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0