|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef BEAMHALOGENERATORALG_H
6 #define BEAMHALOGENERATORALG_H
8 #include "GaudiKernel/ServiceHandle.h"
10 #include "GaudiKernel/ITHistSvc.h"
69 StringArrayProperty
m_generatorSettings{
this,
"generatorSettings", {},
"A set of cuts to be applied to generated particles."};
StringProperty m_inputFile
Input file name.
FloatProperty m_flipProbability
Flip probability.
BooleanProperty m_enableFlip
Flag for flipping event.
BooleanProperty m_enableSampling
Flag to enable or disable sampling.
virtual StatusCode genInitialize()
For initializing the generator, if required.
virtual StatusCode fillEvt(HepMC::GenEvent *evt)
Fill the GenEvent pointer with the contents of the GenEvent cache.
StringProperty m_bufferFileName
The name of the binary buffer file, needed for sampling from a converted file.
StringArrayProperty m_generatorSettings
A vector of strings defining generator settings.
DoubleProperty m_interfacePlane
The position of the interface plane in mm.
Base class for common behaviour of generator interfaces.
BeamHaloGenerator * m_beamHaloGenerator
A pointer to the beam halo generator.
An abstract base class to provide generic beam halo generator functionality.
StringProperty m_inputTypeStr
Input file type and therefore associated beam halo generator that should be used.
virtual StatusCode genFinalize()
For finalising the generator, if required.
::StatusCode StatusCode
StatusCode definition for legacy code.
TH1F * m_validationPlots[NPLOTS]
An array of TH1F pointers for validation plots.
StringProperty m_randomStream
Name of the random number stream.
virtual StatusCode callGenerator()
Read one event from the selected input and convert it into GenEvent format.
virtual ~BeamHaloGeneratorAlg()=default
ServiceHandle< ITHistSvc > m_tHistSvc
A pointer to the THist service for validation plots.
HepMC::GenEvent m_evt
An empty GenEvent to cache the generate output between callGenerator and fillEvt.
BooleanProperty m_doMonitoringPlots
A flag to allow monitoring plots to be turned on or off.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
BeamHaloGeneratorAlg(const std::string &name, ISvcLocator *svcLocator)
A GenModule algorithm to produce beam halo HepMC records from input ASCII files produced with MARS or...