Analysis example

Dear allpix2 developers,

I defined my own geometry and a macro.
geometry:
image
and macro:
image
Then I
‘source /cvmfs/clicdp.cern.ch/software/allpix-squared/2.1.0/x86_64-centos7-gcc11-opt/setup.sh’
‘allpix -c my xxx.conf’
and use root analysis exeample
root -l /path/to/data.root
.L /cvmfs/clicdp.cern.ch/software/allpix-squared/2.1.0/x86_64-centos7-gcc11-opt/lib/libAllpixObjects.so .L analysisExample.C analysisExample(_file0, “detector1”)`
The result is
‘LocalStartPoint: (3.85919,4.03028,-0.1425)mm’
Based on the geometry and incident position I set, localStartPoint . X() should be around 9.0mm.
Probably I’m wrong somewhere.

Regards,
Bail

Hi @Bail ,

it looks to me as if you are loading the wrong detector model. The position you get matches the geometry of the cmsp1 model, which is the one used in one of our example configurations.

Please check, whether your detectors_file points to the correct geometry and that in this geometry file the parameter to the model key is indeed your new model.

Best
Paul

Ok, Thank you for your guidance!