Hi @simonspa ,
Thank you very much for the link. I am trying to test this using a simple configuration file with alpide tracker. But for some reason, I do not see any events in the output files. Here are the details:
- The simulation conf file (tutorial-sim.conf)
[Allpix]
number_of_events = 1
detectors_file = “tutorial-geometry.conf”
log_level = “WARNING”
[GeometryBuilderGeant4]
#### this is with fixed energy
#[DepositionGeant4]
#particle_type = “e-”
#source_energy = 5GeV
#source_type = “beam”
#beam_size = 3mm
#source_position = 0 0 -200mm
#beam_direction = 0 0 1
#physics_list = FTFP_BERT_EMZ
#output_plots = 1
#### this is with energy from Geant4 simulation
[DepositionReader]
model = “csv”
file_name = “inputValues.csv”
detector_name_chars = 6
unit_length = “mm”
output_plots = 1
[ElectricFieldReader]
model = “linear”
bias_voltage = -50V
depletion_voltage = -30V
output_plots = 1
[ProjectionPropagation]
name = “Stave0”
##, “detector2”, “detector3”, “detector4”, “detector5”, “detector6”
temperature = 293K
charge_per_step = 10
output_plots = 1
output_linegraphs = 1
[VisualizationGeant4]
mode = “gui”
transparency = 0.4
view_style = “surface”
trajectories_color_mode = “charge”
trajectories_color_positive = “blue”
trajectories_color_neutral = “green”
trajectories_color_negative = “red”
[SimpleTransfer]
output_plots = 1
[DefaultDigitizer]
output_plots = 1
[DetectorHistogrammer]
output_plots = 1
[ROOTObjectWriter]
exclude = “PropagatedCharge”
- the geometry file (tutorial-geometry.conf)
[Stave0]
type = “alpide”
position = 50.73mm -0.607368mm 3864.51mm
orientation = 0 0 0
- The input file (inputValues.csv):
Event: 1
# PID,T,E,X,Y,Z,V,TRK,PRT
-11, 12.8394, 7.85445e-03, 60.6453, -0.607368, 3864.51, Stave0, 1, 0
When I run, I do not see any meaningful histograms from the output/modules.root and output/data.root. Most likely, I am doing some stupid mistake, but unfortunately, I cannot find this out.
One more thing I like to ask: how do I put units on the input CSV files? If I use energy in GeV, should I just write “7.85445e-03GeV” in the csv file?
Thank you very much,
Arka
EDIT 1: For the energy unit to be in GeV, I found out that I just need to write “unit_energy = GeV” in the config file.
EDIT 2: I have another question. How do I add the track orientation for the deposition reader?