ATLAS Offline Software
Loading...
Searching...
No Matches
MarsHaloGenerator.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 MARSHALOGENERATOR_H
6#define MARSHALOGENERATOR_H
7
9
10
19 public:
20
21 MarsHaloGenerator(const HepPDT::ParticleDataTable* particleTable,
22 const std::string& inputFile,
23 const std::vector<std::string>& generatorSettings);
24
25 virtual ~MarsHaloGenerator() = 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
47#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.
virtual int readEvent(std::vector< BeamHaloParticle > *beamHaloEvent, CLHEP::HepRandomEngine *engine)
A function to read one event in a simplified format.
virtual ~MarsHaloGenerator()=default
MarsHaloGenerator(const HepPDT::ParticleDataTable *particleTable, const std::string &inputFile, const std::vector< std::string > &generatorSettings)
virtual int genFinalize()
A function to finalise the generator.
virtual int readParticle(BeamHaloParticle *beamHaloParticle)
A function to read one particle from the input ASCII file.
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.