This is a description how to set up and execute the auto trigger (AT) pedestals extraction software within the flchcalsoftware package. 

An fully automatised shell script within the package allows a fast pedestal and rms extraction and plotting on memory cell level for: 

  • All memory cells
  • Individual memory cells 0-15 
  • All memory cells of the different chips

This can be used for fast AT pedestal monitoring during test beam operation.

Info

This procedure is test beam (setup) independent! Just the .slcio file after the EUDAQ generation is needed.


First of all get the flchcalsoftware package from Stash:

git clone https://user@stash.desy.de/scm/calice/flchcalsoftware.git


Then build, compile and install the package:

mkdir build

cd build

cmake ..

make -j4 install

Compiler Version

Use the compiler version (GCC 4.9) used also in the latest ILCsoft Version (/cvmfs/ilc.desy.de/sw/x86_64_gcc49_sl6/v02-00-01/)


Now the software is ready tu be used! Just modify the input options of the extract_AT_pedestals.sh script:

and execute it.

If everything is fine you will receive a terminal output like:

<!-- Loading shared library : /nfs/dust/ilc/group/flchcal/CaliceSoft/v04-12/build/myInstall/lib/libuserlib.so.6.7.0 (libuserlib.so)-->

<!-- Loading shared library : /nfs/dust/ilc/group/flchcal/CaliceSoft/v04-12/build/myInstall/lib/libraw2calohit.so.6.9.0 (libraw2calohit.so)-->

<!-- Loading shared library : /nfs/dust/ilc/group/flchcal/CaliceSoft/v04-12/build/myInstall/lib/libcellGeometry.so.2.5.0 (libcellGeometry.so)-->

<!-- Loading shared library : /nfs/dust/ilc/group/flchcal/CaliceSoft/v04-12/build/myInstall/lib/librecoSiPM.so.6.9.0 (librecoSiPM.so)-->

<!-- Loading shared library : /nfs/dust/ilc/group/flchcal/CaliceSoft/v04-12/build/myInstall/lib/liblabview2lcio.so.1.0.0 (liblabview2lcio.so)-->

<!-- Loading shared library : /nfs/dust/ilc/group/flchcal/CaliceSoft/v04-12/build/myInstall/lib/libRootTreeWriter.so.2.6.0 (libRootTreeWriter.so)-->

<!-- Loading shared library : /nfs/dust/ilc/group/flchcal/CaliceSoft/v04-12/build/myInstall/lib/libcalicesim.so.3.4.0 (libcalicesim.so)-->

<!-- Loading shared library : /nfs/dust/ilc/group/flchcal/CaliceSoft/v04-12/build/myInstall/lib/libcaliceAnalysis.so.1.3.5 (libcaliceAnalysis.so)-->

<!-- Loading shared library : /nfs/dust/ilc/group/flchcal/CaliceSoft/v04-12/build/myInstall/lib/libCALIB.so.1.1.1 (libCALIB.so)-->




XMLParser::parse : no <constants/> section found in ../steering/calibration_tree_generation.xml

[ DEBUG "Marlin"]  ---- no GEAR XML file given  --------- 

[ VERBOSE "ProgressHandler"] *************************************************

[ VERBOSE "ProgressHandler"] Current run: 66528 (0 runs so far)  processed events: 68956 (68956 total)  processtime: 11s

[ VERBOSE "ProgressHandler"] Current event: 68955 time: 19.05.2019  07:34:28.000000000

[ VERBOSE "ProgressHandler"] Speed: last event took     0ms since last report 0.189ms/event rate:    5283Hz

[ VERBOSE "ProgressHandler"] *************************************************

[ VERBOSE "ProgressHandler"] Current run: 66528 (0 runs so far)  processed events: 130380 (130380 total)  processtime: 22s

[ VERBOSE "ProgressHandler"] Current event: 130379 time: 19.05.2019  07:37:16.000000000

[ VERBOSE "ProgressHandler"] Speed: last event took     0ms since last report 0.169ms/event rate:    5900Hz

[ VERBOSE "ProgressHandler"] *************************************************

[ VERBOSE "ProgressHandler"] Current run: 66528 (0 runs so far)  processed events: 194671 (194671 total)  processtime: 33s

[ VERBOSE "ProgressHandler"] Current event: 194670 time: 19.05.2019  07:40:09.000000000

[ VERBOSE "ProgressHandler"] Speed: last event took     0ms since last report 0.166ms/event rate:    6014Hz

[ VERBOSE "ProgressHandler"] 

[ VERBOSE "ProgressHandler"] --- ProgressHandler Report :

[ VERBOSE "ProgressHandler"] Processed 200858 events in 0 runs 

[ VERBOSE "ProgressHandler"] Average time per event 0.1643ms/event

[ VERBOSE "ProgressHandler"] Average rate: 6.09e+03Hz

[ VERBOSE "ProgressHandler"] 

Current File: /nfs/dust/ilc/user/heucheld/mip_calib/mip_calib_may19/single_run_check_at/run_66528_66539/calibration_tree.root

creating ChipID 11265

creating ChipID 11267

creating ChipID 10753

creating ChipID 11009

creating ChipID 11011

creating ChipID 11264

creating ChipID 10752

creating ChipID 11008

creating ChipID 11010

creating ChipID 10755

creating ChipID 11266

creating ChipID 10754

Start Extracting AT pedestals

Start Plotting AT Pedestals All

Start Plotting AT Pedestals Memory Cells

Start Plotting AT Pedestals Chips

Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1


In the set output folder you will find three output files:

  • AT_Pedestal_Table.tsv - containing all extracted pedestals and RMS values of every chip, channel, memcell.

  • AT_Pedestal_Spectra.root - containing all memory cell pedestal spectra of every chip, channel, memcell.

  • AT_Pedestal_Plots.root - containing all pedestal and RMS result plots (all cells, individual cells and chip wise) for detailed investigation.