R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3B::Neuland::GeneratorFactory Class Reference

#include <R3BNeulandGeneratorFactory.h>

Classes

struct  Options
 

Public Member Functions

 GeneratorFactory (Options &options)
 Default constructor.
 
auto Create () -> std::unique_ptr< FairPrimaryGenerator >
 Create a primary generator.
 
void SetRandomGen (TRandom3 *random_gen)
 
void SetNumOfPlanes (int num_of_planes)
 

Private Member Functions

auto create_muon_generator () -> std::unique_ptr< FairPrimaryGenerator >
 
auto create_box_generator () -> std::unique_ptr< FairPrimaryGenerator >
 

Private Attributes

int num_of_planes_ = MaxNumberOfPlanes
 Number of planes.
 
std::reference_wrapper< Optionsoptions_
 
TRandom3 * random_gen_ = nullptr
 

Detailed Description

Definition at line 24 of file R3BNeulandGeneratorFactory.h.

Constructor & Destructor Documentation

◆ GeneratorFactory()

R3B::Neuland::GeneratorFactory::GeneratorFactory ( Options & options)
inlineexplicit

Definition at line 41 of file R3BNeulandGeneratorFactory.h.

Member Function Documentation

◆ Create()

auto R3B::Neuland::GeneratorFactory::Create ( ) -> std::unique_ptr<FairPrimaryGenerator>

Create a primary generator from the setup options.

Definition at line 15 of file R3BNeulandGeneratorFactory.cxx.

◆ create_box_generator()

auto R3B::Neuland::GeneratorFactory::create_box_generator ( ) -> std::unique_ptr<FairPrimaryGenerator>
private

Definition at line 60 of file R3BNeulandGeneratorFactory.cxx.

◆ create_muon_generator()

auto R3B::Neuland::GeneratorFactory::create_muon_generator ( ) -> std::unique_ptr<FairPrimaryGenerator>
private

Definition at line 30 of file R3BNeulandGeneratorFactory.cxx.

◆ SetNumOfPlanes()

void R3B::Neuland::GeneratorFactory::SetNumOfPlanes ( int num_of_planes)
inline

Definition at line 55 of file R3BNeulandGeneratorFactory.h.

◆ SetRandomGen()

void R3B::Neuland::GeneratorFactory::SetRandomGen ( TRandom3 * random_gen)
inline

Definition at line 54 of file R3BNeulandGeneratorFactory.h.

Member Data Documentation

◆ num_of_planes_

int R3B::Neuland::GeneratorFactory::num_of_planes_ = MaxNumberOfPlanes
private

Definition at line 58 of file R3BNeulandGeneratorFactory.h.

◆ options_

std::reference_wrapper<Options> R3B::Neuland::GeneratorFactory::options_
private

Definition at line 59 of file R3BNeulandGeneratorFactory.h.

◆ random_gen_

TRandom3* R3B::Neuland::GeneratorFactory::random_gen_ = nullptr
private

Definition at line 60 of file R3BNeulandGeneratorFactory.h.


The documentation for this class was generated from the following files: