ATLAS Offline Software
Loading...
Searching...
No Matches
FlukaHaloGenerator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef FLUKAHALOGENERATOR_H
6#define FLUKAHALOGENERATOR_H
7
10
19 public:
20
21 FlukaHaloGenerator(int type, // Type of input Fluka particle record
22 const std::string& inputFile,
23 const std::vector<std::string>& generatorSettings);
24
25 virtual ~FlukaHaloGenerator() = default;
26
28 virtual int genInitialize();
29
31 virtual int genFinalize();
32
34 virtual int fillEvt(HepMC::GenEvent* evt,
35 CLHEP::HepRandomEngine* engine);
36
37 protected:
38
40 virtual int readEvent(std::vector<BeamHaloParticle> *beamHaloEvent,
41 CLHEP::HepRandomEngine* engine);
42
44 virtual int readParticle(BeamHaloParticle *beamHaloParticle);
45
46 private:
47
52};
53
54#endif
BeamHaloGenerator(const std::string &inputFile, const std::vector< std::string > &generatorSettings)
A class to describe a generic beam halo particle.
FlukaParticle m_lastFlukaParticle
virtual int readParticle(BeamHaloParticle *beamHaloParticle)
A function to read one particle from the input ASCII file.
FlukaHaloGenerator(int type, const std::string &inputFile, const std::vector< std::string > &generatorSettings)
virtual int genInitialize()
A function to initialise the generator.
virtual int fillEvt(HepMC::GenEvent *evt, CLHEP::HepRandomEngine *engine)
A function to create one event in HepMC format.
virtual int genFinalize()
A function to finalise the generator.
virtual ~FlukaHaloGenerator()=default
virtual int readEvent(std::vector< BeamHaloParticle > *beamHaloEvent, CLHEP::HepRandomEngine *engine)
A function to read one event in a simplified format.
FlukaParticle m_flukaParticle
A class to describe a FLUKA particle read from an input ASCII file.
HepMC3::GenEvent GenEvent
Definition GenEvent.h:39