ATLAS Offline Software
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
BeamHaloParticle
A class to describe a generic beam halo particle.
Definition: BeamHaloParticle.h:22
MarsHaloGenerator::readEvent
virtual int readEvent(std::vector< BeamHaloParticle > *beamHaloEvent, CLHEP::HepRandomEngine *engine)
A function to read one event in a simplified format.
Definition: MarsHaloGenerator.cxx:163
BeamHaloGenerator.h
MarsHaloGenerator::genFinalize
virtual int genFinalize()
A function to finalise the generator.
Definition: MarsHaloGenerator.cxx:106
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
MarsHaloGenerator
A class to provide conversion from a MARS format ASCII input record into HepMC format,...
Definition: MarsHaloGenerator.h:18
MarsHaloGenerator::fillEvt
virtual int fillEvt(HepMC::GenEvent *evt, CLHEP::HepRandomEngine *engine)
A function to create one event in HepMC format.
Definition: MarsHaloGenerator.cxx:71
jobOptions_CavernBackground.generatorSettings
generatorSettings
Definition: jobOptions_CavernBackground.py:35
BeamHaloGenerator
An abstract base class to provide generic beam halo generator functionality.
Definition: BeamHaloGenerator.h:31
CaloCondBlobAlgs_fillNoiseFromASCII.inputFile
string inputFile
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:17
MarsHaloGenerator::readParticle
virtual int readParticle(BeamHaloParticle *beamHaloParticle)
A function to read one particle from the input ASCII file.
Definition: MarsHaloGenerator.cxx:125
MarsHaloGenerator::MarsHaloGenerator
MarsHaloGenerator(const HepPDT::ParticleDataTable *particleTable, const std::string &inputFile, const std::vector< std::string > &generatorSettings)
Definition: MarsHaloGenerator.cxx:16
MarsHaloGenerator::~MarsHaloGenerator
virtual ~MarsHaloGenerator()=default
MarsHaloGenerator::genInitialize
virtual int genInitialize()
A function to initialise the generator.
Definition: MarsHaloGenerator.cxx:24