Could not find a detector model

Dear Allpix2 developers,

First,
source /cvmfs/clicdp.cern.ch/software/allpix-squared/2.1.0/x86_64-centos7-gcc11-opt/setup.sh
Then I add the new detector model named scdpix.conf and a new conf named scd_simulation.conf
Second,
allpix -c scd_simulation.conf
it shows that
(F) Error during execution of run:
Could not find a detector model of type ‘scdpix’
Please check your configuration and modules. Cannot continue.

Hi @Bail

you need to tell Allpix Squared where to look for detector models. This is covered in the user manual, sections 4.2 and 5.4. The easiest solution is to add the search path to your configuration. For example if the model lives in the same directory as your configuration, just add

[Allpix]
model_paths = "./"

to your configuration.

Cheers,
Simon

Dear Simon

Thank you very much, it works!

Cheer,
Bail