Finally, with can run our analysis on some data. The relevant parameters can be added inline, or within a configuration file. The inline commands are as follows:
For example, to process 100 events on data with kit DCC X and Y only:
./example -n 100 -d 0x3 -X 0 -Y 0 fileX.dat fileY.dat
To run on data with Feminos X and Y and PMm2 (last windows version):
./example -d 0x7 -X 1 -Y 1 -P 3 fileX.aqs fileY.aqs filePmm2.dat
If you need extra configuration, you can add it in a configuration file config.cfg:
./example -c config.cfg -d 0x7 -X 1 -Y 1 -P 3 fileX.aqs fileY.aqs filePmm2.dat
Where the configuration file can look like this:
Pmm2: { nResets = 1; # number of timestamp resets before TPC data # All time stamps before the last reset are set to zero }; Reader: { latency = 1328; # default 1268, 1328 for cosmic+veto mesh ppm2Sync = 3; # Synchronisation margin between PMM2 and Feminos }; ana1: { cut1 = 0.; cut2 = 500; };
You can access these parameters in you analysis with the following lines:
Double_t cut1 = 0; if ( ! gHConfig->Lookup("ana1.cut1",cut1) ) Info("InitCfg","Use default fCut1 %g",fCut1); else fCut1 = cut1; Long64_t cut2 = 0; if ( ! gHConfig->Lookup("ana1.cut2",cut2) ) Info("InitCfg","Use default fCut2 %g",fCut2); else fCut2 = cut2;
Be careful, the parameters have to be read in 64 bits (Double_t, Long64_t).
Philippe Gros 2015-06-19