Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add genbb generator using input event text file 'input_events.txt' #295

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#@key_label "name"
#@meta_label "type"

[name="input_events" type="genbb::genbb_mgr"]
format : string = "genbb"
input_files : string[1] = "input_events.txt"

5 changes: 3 additions & 2 deletions resources/snemo/demonstrator/decays/1.4/DecaysManager.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#@config Main configuration parameters for the Bayeux/genbb manager for decay generators
logging.priority : string = "fatal"
generator : string = @variant(primary_events:generator|"electron.1MeV")
generators.configuration_files : string[5] as path = \
generators.configuration_files : string[6] as path = \
"@falaise:snemo/demonstrator/decays/1.4/DecayGenerators/BackgroundSources.conf" \
"@falaise:snemo/demonstrator/decays/1.4/DecayGenerators/CalibrationSources.conf" \
"@falaise:snemo/demonstrator/decays/1.4/DecayGenerators/DBDSources.conf" \
"@falaise:snemo/demonstrator/decays/1.4/DecayGenerators/GenericSources.conf" \
"@falaise:snemo/demonstrator/decays/1.4/DecayGenerators/ConfigurableSources.conf"
"@falaise:snemo/demonstrator/decays/1.4/DecayGenerators/ConfigurableSources.conf" \
"@falaise:snemo/demonstrator/decays/1.4/DecayGenerators/InputEvents.conf"

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
spot.y : real as length = @variant(vertexes:generator/if_free_spot/y|0.0 mm)
spot.z : real as length = @variant(vertexes:generator/if_free_spot/z|0.0 mm)

[name="input_vertex" type="genvtx::from_file_vg"]
#@config Vertex generation from an input text file
time_generator : boolean = false
filename : string = "input_vertex.txt"
length_unit : string = "mm"

##################################################################
# New in Falaise >= 5, requires Bayeux 3.5.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ commissioning_single_spot : Vertex generation from from a commissioning spot : H
# The following generator implies some set of additional positioning options (variant='if_free_spot')
free_spot : Vertex generation from an arbitrary spot in the geometry : : if_free_spot :

input_vertex : Vertex generation from an input text file 'input_vertex.txt' : : :

################################################################
# Vertex generation for the 'realistic flat' source foil model #
Expand Down