ATLAS Offline Software
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
BeamHaloParticle
A class to describe a generic beam halo particle.
Definition: BeamHaloParticle.h:22
BeamHaloGenerator.h
FlukaHaloGenerator::genFinalize
virtual int genFinalize()
A function to finalise the generator.
Definition: FlukaHaloGenerator.cxx:74
FlukaHaloGenerator::m_sameEvent
bool m_sameEvent
Definition: FlukaHaloGenerator.h:49
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
jobOptions_CavernBackground.generatorSettings
generatorSettings
Definition: jobOptions_CavernBackground.py:35
FlukaHaloGenerator::FlukaHaloGenerator
FlukaHaloGenerator(int type, const HepPDT::ParticleDataTable *particleTable, const std::string &inputFile, const std::vector< std::string > &generatorSettings)
Definition: FlukaHaloGenerator.cxx:15
FlukaParticle.h
BeamHaloGenerator
An abstract base class to provide generic beam halo generator functionality.
Definition: BeamHaloGenerator.h:31
FlukaHaloGenerator
A class to provide conversion from a FLUKA format ASCII input record into HepMC format,...
Definition: FlukaHaloGenerator.h:18
CaloCondBlobAlgs_fillNoiseFromASCII.inputFile
string inputFile
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:17
FlukaHaloGenerator::readEvent
virtual int readEvent(std::vector< BeamHaloParticle > *beamHaloEvent, CLHEP::HepRandomEngine *engine)
A function to read one event in a simplified format.
Definition: FlukaHaloGenerator.cxx:95
FlukaHaloGenerator::genInitialize
virtual int genInitialize()
A function to initialise the generator.
Definition: FlukaHaloGenerator.cxx:29
FlukaHaloGenerator::m_firstEvent
bool m_firstEvent
Definition: FlukaHaloGenerator.h:50
FlukaHaloGenerator::m_lastFlukaParticle
FlukaParticle m_lastFlukaParticle
Definition: FlukaHaloGenerator.h:52
FlukaParticle
A class to describe a FLUKA particle read from an input ASCII file.
Definition: FlukaParticle.h:19
FlukaHaloGenerator::m_flukaParticle
FlukaParticle m_flukaParticle
Definition: FlukaHaloGenerator.h:51
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
FlukaHaloGenerator::fillEvt
virtual int fillEvt(HepMC::GenEvent *evt, CLHEP::HepRandomEngine *engine)
A function to create one event in HepMC format.
Definition: FlukaHaloGenerator.cxx:48
FlukaHaloGenerator::~FlukaHaloGenerator
virtual ~FlukaHaloGenerator()=default
FlukaHaloGenerator::readParticle
virtual int readParticle(BeamHaloParticle *beamHaloParticle)
A function to read one particle from the input ASCII file.
Definition: FlukaHaloGenerator.cxx:87