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 HepPDT::ParticleDataTable* particleTable,
23 const std::string& inputFile,
24 const std::vector<std::string>& generatorSettings);
25
26 virtual ~FlukaHaloGenerator() = default;
27
29 virtual int genInitialize();
30
32 virtual int genFinalize();
33
35 virtual int fillEvt(HepMC::GenEvent* evt,
36 CLHEP::HepRandomEngine* engine);
37
38 protected:
39
41 virtual int readEvent(std::vector<BeamHaloParticle> *beamHaloEvent,
42 CLHEP::HepRandomEngine* engine);
43
45 virtual int readParticle(BeamHaloParticle *beamHaloParticle);
46
47 private:
48
53};
54
55#endif
BeamHaloGenerator(const HepPDT::ParticleDataTable *particleTable, 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 HepPDT::ParticleDataTable *particleTable, 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.