ATLAS Offline Software
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 
28  virtual ~ExtraParticlesPhysicsTool();
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)
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
ExtraParticlesPhysicsTool::PhysicsConstructor
Definition: ExtraParticlesPhysicsTool.h:36
ExtraParticlesPhysicsTool
Definition: ExtraParticlesPhysicsTool.h:22
ExtraParticlesPhysicsTool::PhysicsConstructor::ConstructProcess
virtual void ConstructProcess() override
Definition: ExtraParticlesPhysicsTool.cxx:110
ExtraParticlesPhysicsTool::GetPhysicsOption
virtual UPPhysicsConstructor GetPhysicsOption() override final
Implements.
Definition: ExtraParticlesPhysicsTool.cxx:60
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
ExtraParticlesPhysicsTool::m_extraParticlesConfig
std::map< std::string, std::vector< double > > m_extraParticlesConfig
a set of parameters for extra particle building
Definition: ExtraParticlesPhysicsTool.h:57
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
IPhysicsOptionTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ExtraParticlesPhysicsTool::initialize
virtual StatusCode initialize() override final
Initialize method.
Definition: ExtraParticlesPhysicsTool.cxx:52
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ExtraParticlesPhysicsTool::ExtraParticlesPhysicsTool
ExtraParticlesPhysicsTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: ExtraParticlesPhysicsTool.cxx:35
ExtraParticlesPhysicsTool::PhysicsConstructor::ConstructParticle
virtual void ConstructParticle() override
Definition: ExtraParticlesPhysicsTool.cxx:68
ExtraParticlesPhysicsTool::PhysicsConstructor::m_extraParticlesConfig
std::map< std::string, std::vector< double > > m_extraParticlesConfig
a set of parameters for extra particle building
Definition: ExtraParticlesPhysicsTool.h:49
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
IPhysicsConstructor.h
ExtraParticlesPhysicsTool::PhysicsConstructor::PhysicsConstructor
PhysicsConstructor(const std::string &name, MSG::Level level, const std::map< std::string, std::vector< double >> &extraParticlesConfig)
Definition: ExtraParticlesPhysicsTool.h:38
ExtraParticlesPhysicsTool::~ExtraParticlesPhysicsTool
virtual ~ExtraParticlesPhysicsTool()
Destructor.
Definition: ExtraParticlesPhysicsTool.cxx:47
ExtraParticlesPhysicsTool::PhysicsConstructor::m_extraParticles
std::set< G4ParticleDefinition * > m_extraParticles
a set to hold the newly created extra particles
Definition: ExtraParticlesPhysicsTool.h:52
IPhysicsContructor
Definition: IPhysicsConstructor.h:41