Running Millepede‐II on a CAF File - EMPHATICSoft/emphaticsoft GitHub Wiki
The following process assumes that Millepede-II has already been installed in a separate directory. For instructions on installing Millepede, as well as a short tutorial, view the following Wiki pages:
https://github.com/EMPHATICSoft/emphaticsoft/wiki/MILLEPEDE%E2%80%90II
https://github.com/EMPHATICSoft/emphaticsoft/wiki/Millepede%E2%80%90II-Installation
Step 1
The following files should be copied into a new directory:
/exp/emph/app/users/tbarbera/art_simulations/artsim_attempt1/extract_caf_data /exp/emph/app/users/tbarbera/art_simulations/artsim_attempt1/organize_caf_data /exp/emph/app/users/tbarbera/MPII/GBL/gblemph/GBL_3D /exp/emph/app/users/tbarbera/MPII/GBL/gblemph/mille.py /exp/emph/app/users/tbarbera/MPII/GBL/gblemph/gblnum.py /exp/emph/app/users/tbarbera/MPII/GBL/gblemph/gblfit_helix.py
These files are also located in the GitHub Repository for GBL files.
The CAF file should also be copied into this directory. For information on creating a CAF file, view the wiki page on Creating a CAF file.
Step 2
Change the input file in extract_caf_data to the desired CAF file and run:
python3 extract_caf_data
This will produce a file named output.txt
Step 3
Update the output file in organize_caf_data with the desired name and run:
python3 organize_caf_data
This will produce a text file containing the 3D tracks that can be run through GBL.
Step 4
Update the input file in GBL_3Dto match the name of the output file from Step 3.
Update the name of the binary file produced in the 'GBL_3D' script
Run:
python3 GBL_3D
This will produce a binary file to be fed into Pede inside of the 'target' directory.
Step 5
Copy the binary file produced in Step 4 into the 'target' directory in Millepede. Make sure that the name of the binary file in the 'target' directory ends in ".dat"
Create a Millepede-II Steering file with the desired constraints (an example can be copied from '/exp/emph/app/users/tbarbera/MPII/target/general_emphatic_steering.txt')
Step 6
To run Pede on the binary file:
./pede steering_file_name > pede.dump
This will add information about the Alignment Parameters into 'millepede.res' and information about the residuals into 'millepede.mon'
In addition, to check the information in the binary file:
./pede -C steering_file_name > pede.dump
This will not calculate the alignment parameters, but will still add information about the residuals into 'millepede.mon' and adds basic information to 'millepede.res'
Additional Information
Parameter labels are set in GBL as three-digit numbers. The first two numbers correspond to the strip number (starting with 00 up to 27). The last digit corresponds to the type of parameter:
Ending in 1 - Displacement in measurement direction
Ending in 3 - Displacement in Z
Ending in 4 - Rotation about measurement direction axis
Ending in 5 - Rotation about axis perpendicular to measurement direction (still in XY plane)
Ending in 6 - Rotation about Z-axis