CALIFA Data

The working directory for CALIFA is:

/u/land/CalifaNov2018/

First, execute the macro set_r3broot.sh:

. set_r3broot.sh

then, the working directory for CALIFA analysis of s444 data is:

/u/land/CalifaNov2018/r3broot/macros/r3b/unpack/califa/


Unpack CALIFA Data

The macros for standalone CALIFA unpacking of data stored in a LMD file are:

  • califa_febex3_unpack.C - mapped data
  • califa_febex3_mapped2cal.C - calibrated data

These macros perform unpacking of data, channel mapping (presently crystalID = FEBEXCARD# * 16 + FEBEXCH#) and store the data in a root file, whose name has to be defined by the user.

Before running the macros, make sure that paths to input / output files are properly set to the right names, which are specific to your computer.

Mapped level, execute the macro califa_febex3_unpack.C

cd macros/r3b/unpack/califa
root -l califa_febex3_unpack.C
[..] ... unpacking of the file ...
[..] .q

The output file contains the TTree "evt" with a TClonesArray of R3BCalifaMappedData unpacked from the original lmd file. The variables that one can find in this level are:

  • fCrystalId - Crystal unique identifier
  • fEnergy - Total energy deposited in the crystal [channels]
  • fNf - Total fast amplitude deposited in the crystal [a.u.]
  • fNs - Total slow amplitude deposited on the crystal [a.u.]
  • fTime - Time since event start [ns]
  • fTot - Time over threshold

Cal level, execute the macro califa_febex3_mapped2cal.C

cd macros/r3b/unpack/califa
root -l califa_febex3_mapped2cal.C
[..] ... unpacking of the file ...
[..] .q

The output file contains the TTree "evt" with a TClonesArray of R3BCalifaCrystalCalData unpacked from the original lmd file. The variables that one can find in this level are:

  • fCrystalId - Crystal unique identifier
  • fEnergy - Total energy deposited in the crystal [KeV]
  • fToT_Energy - Total energy deposited on the crystal from ToT [KeV]
  • fTime - Time since event start [ns]

Calibration of data

Execute the macro califa_febex3_calibParFinder.C, this will look for the calibration parameters of each crystal to move the data from mapped to cal level.

Before running the macro, make sure that paths to input / output files are properly set to the right names, which are specific to your computer.

cd macros/r3b/unpack/califa
root -l califa_febex3_calibParFinder.C
[..] ... unpacking of the file and calibrating data ...
[..] .q


CALIFA Online

The macro for standalone CALIFA online is:

califa_febex3_online.C

Before running the macro, make sure that paths to stream server, HTTP server and their corresponding ports are properly set to the right values, currently the standalone CALIFA daq is running in the server lxg0898 (port: 6002):

TString filename = "--stream=lxg0898:6002"

The port of the HTTP server is defined by user in the online macro:

run->ActivateHttpServer( Int_t refresh = 2000, Int_t port=8044)

then, execute the macro in bash mode:

root -b califa_febex3_online.C

the HTTP server will be the name of the computer where you are running the macro, for example, lxg0898, lxir123, ....

then, open firefox and go into http://lxir123:8044/

Figure shows an example of CALIFA data in the online (histogram color indicates the arrangement, green for FEBEX channels and brown for PreAmp channels):

Image: