using AGATA  libprespecAGATA.so
using FRS   libprespecFRS.so
using LYCCA libprespecLYCCA.so
using UTILS libprespecUTILS.so

import unpack_merge.config

########################################################################
# choose here if FRS raw spectra and/or hitpattern histograms
# will be created for all modules and all crates
########################################################################
alias $frs_hitpattern  hitpattern
alias $frs_disp_raw display
#alias $frs_hitpattern  #--
#alias $frs_disp_raw #--

########################################################################
# FRS unpacking
########################################################################

crate   FrsCrate
        procid          10
        triggers        all
        #module                 timestamp       TimestampModuleGSI 
        module                  c0x0200     constant0x0200
        module                  hitpat_mult     FRS.v785frs
        module                  tdc0            FRS.v775frs
        module                  tdc1            FRS.v775frs
        module                  adc0            FRS.v785frs
        module                  qdc1            FRS.v792frs
        $frs_disp_raw
        #print 
end

crate   FrsTpcCrate
        procid          20
        triggers        all
        module                 scaler  FRS.v830frs
        module                 tdc0    FRS.v775frs
        module                 tdc1    FRS.v775frs
        module                 adc0    FRS.v785frs
        module                 adc1    FRS.v785frs
        $frs_hitpattern  
        $frs_disp_raw 
        #print 
end

crate MuiscPileupCor
        procid          60
        triggers        all
        module      music   FRS.PileupCorrSIS  
        $frs_hitpattern  
        $frs_disp_raw 
        #print
end
