ATLAS Offline Software
Loading...
Searching...
No Matches
ExtraParticlesPhysicsTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef EXTRA_PARTICLES__EXTRA_PARTICLES_PHYSICS_TOOL_H
6#define EXTRA_PARTICLES__EXTRA_PARTICLES_PHYSICS_TOOL_H 1
7
8// Include files
12
22 : public extends<AthAlgTool, IPhysicsOptionTool> {
23 public:
25 ExtraParticlesPhysicsTool(const std::string &type, const std::string &name,
26 const IInterface *parent);
27
29
31 virtual StatusCode initialize() override final;
32
34 virtual UPPhysicsConstructor GetPhysicsOption() override final;
35
37 public:
39 const std::string &name, MSG::Level level,
40 const std::map<std::string, std::vector<double>> &extraParticlesConfig)
41 : IPhysicsContructor(name, level),
42 m_extraParticlesConfig(extraParticlesConfig) {}
43
44 virtual void ConstructParticle() override;
45 virtual void ConstructProcess() override;
46
47 private:
49 std::map<std::string, std::vector<double>> m_extraParticlesConfig;
50
52 std::set<G4ParticleDefinition *> m_extraParticles;
53 };
54
55 protected:
57 std::map<std::string, std::vector<double>> m_extraParticlesConfig;
58};
59
60#endif // EXTRA_PARTICLES__EXTRA_PARTICLES_PHYSICS_TOOL_H
std::set< G4ParticleDefinition * > m_extraParticles
a set to hold the newly created extra particles
PhysicsConstructor(const std::string &name, MSG::Level level, const std::map< std::string, std::vector< double > > &extraParticlesConfig)
std::map< std::string, std::vector< double > > m_extraParticlesConfig
a set of parameters for extra particle building
ExtraParticlesPhysicsTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
virtual UPPhysicsConstructor GetPhysicsOption() override final
Implements.
virtual ~ExtraParticlesPhysicsTool()
Destructor.
std::map< std::string, std::vector< double > > m_extraParticlesConfig
a set of parameters for extra particle building
virtual StatusCode initialize() override final
Initialize method.
IPhysicsContructor(const std::string &name, MSG::Level level)
Standard constructor.