The mutomca_mixer application can merge different root files produced by the track reconstruction of the super layer and drift tube chambers.
Tracks are merged according to the event number defined in the input root files. The output file contains the TFtree tree with the following fields:
Branch | Description |
---|---|
evNumber | the event number |
m_TF | the slope of the track on the horizontal plane of the DT chamber |
q_TF | the intercept of the track on the horizontal plane of the DT chamber |
m_VF | the slope of the track on the vertical plane of the DT chamber |
q_VF | the intercept of the track on the vertical plane of the DT chamber |
m_SL | the slope of the track on the vertical plane of the SL |
q_SL | the intercept of the track on the vertical plane of the SL |
Installation
The required environment is describe in the guide.
The mutomca_mixer is a pure python application published by INFN gitlab site: available in baltig:
No Format |
---|
git clone https://baltig.infn.it/muontomographyandreett/python-muotom-utils cd python-muotom-utils/src |
The only requirements is python3-root; the application is self-contained and can be installed manually in any place
tools |
The code can be built with the following statements:
No Format |
---|
cd muotom-tools
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make
sudo make install |
No Format |
sudo cp mutomca_mixer /usr/bin |
Configuration
The only command line option required by the application is the path of a configuration file. The configuration file is a INI-file containing the following sections and parameters:
No Format |
---|
[main] write_all_events = true [geom] sl_dt_hdist = 229.0 sl_dt_vdist = 520.0 [IO] sl0_file = sl0_data.root sl1_file = sl1_data.root dt0_file = dt0_data.root dt1_file = dt1_data.root main_file = mixed_data.root |
Section main
Variable Type Description write_all_events string If true the mixer writes all the events even if there're no matches, otherwise only events with references for both the coordinates are considered Section geom
Variable Type Description sl_dt_hdist float It's the distance (in mm.) between the reference plane for the SL and the reference plane of the Drift Tube chamber of a MUTOMCA detector sl_dt_vdist float It's the vertical displacement (in mm.) between the SL and the DT chamber Section IO
Variable Type Description sl0_file string It's the path of the root file containing the tracks of the super layer on the right of the Castor sl1_file string It's the path of the root file containing the tracks of the super layer on the left of the Castor dt0_file string It's the path of the root file containing the tracks of the drift tube chamber on the right of the Castor dt1_file string It's the path of the root file containing the tracks of the drift tube chamber on the left of the Castor main_file string It's the path of the root file with all the merged tracks
Execution
The application can be run with
No Format |
---|
mutomca_mixer --configconf=<path of the configuration file> |