Diana Software
diana_tutorial.cfg
Go to the documentation of this file.
1 # /** @example diana_tutorial.cfg
2 # @brief Tutorial 1.
3 # @author Marco Vignati */
4 #
5 # Sequence that computes basic pulse quantities
6 # including modules MBaselineModule and MPulseBasicParameters.
7 # These modules compute baseline, maximum-baseline amplitude, rise and decay times etc.
8 # Run with:
9 #
10 # shell> diana -C cfg/tutorial/diana_tutorial.cfg
11 
12 
13 sequence DianaTutorial
14 
15 # Reads a root file containing raw events. The file being
16 # read is produced by "diana-test -t".
17 # The number of processed events is printed every 10k event
18 reader RootFileReader
19 verbosity = info
20 enable = true
21 InputFile = data/QRaw_000810.list
22 EventNumberPrintStep = 10000
23 endmod
24 
25 # Load QRunData and QDetChannelCollection from the file read by the reader,
26 # and save it to the output file written by the writer.
27 module RunDataLoader
28 verbosity = info
29 enable = true
30 Input = CurrentReader
31 Output = CurrentWriter
32 endmod
33 
34 # Compute baseline quantities. The first 100 points
35 # of the acquisition window are used to estimate the baseline.
36 module BaselineModule
37 enable = true
38 verbosity = info
39 NumPoints = 100
40 endmod
41 
42 # Estimate number of pulses in the waveform.
43 # The baseline and its rms are estimated using 100 waveform points.
44 # Peaks are considered when they exceed the noise rms by a factor 5.
45 module BCountPulses
46 enable = true
47 verbosity = info
48 BaselineNumPoints = 100
49 ThresholdNumberOfSigma = 5
50 endmod
51 
52 
53 # Filter events using raw event information. In this case
54 # events marked as "signal" or "heater" by the DAQ are selected, and
55 # subsequent modules (just one in this sequence) are
56 # executed only on these events.
57 # The Logic=CASE options tells to ignore the result of previous
58 # filters. Since there are no filters before this filter,
59 # the Logic option is useless in this case.
60 filter RawDataFilter
61 enable = true
62 verbosity = info
63 Logic = CASE
64 KeepSignal = true
65 KeepHeater = true
66 KeepNoise = false
67 KeepThermometers = false
68 endmod
69 
70 # Compute basic amplitude (Max-Baseline) and shape parameters of the waveform.
71 module PulseBasicParameters
72 enable = true
73 verbosity = info
74 endmod
75 
76 # Write events to file. Users can only choose the file name
77 # prefix, the full name will contain the run number, the
78 # run type (C for calibration, B for background,..., U for unknown)
79 # and the partial.
80 writer RootFileWriter
81 verbosity = info
82 enable = true
83 Description = data with raw analysis variables
84 WriteFilesList = true
85 OutputFilesList = Analyzed.list
86 OutputFilePrefix = Analyzed
87 OutputDir = data
88 AliasFileName = ${DIANA_INSTALL}/cfg/aliases.txt
89 endmod
90 
91 endseq