Diana Software
diana_tutorial_pulseshape.cfg
Go to the documentation of this file.
1 # /** @example diana_tutorial_pulseshape.cfg
2 # @brief Tutorial 3.
3 # @author Marco Vignati */
4 #
5 # Sequence to compute a pulse shape parameter to reject bad
6 # pulses. It includes the module MTutorialPulseShapeSimple,
7 # which uses the average pulse of each channel as reference
8 # shape. The average pulses are read from the file produced by MAveragePulseSimple (see diana_tutorial_averagepulse.cfg).
9 #
10 # shell> diana -C cfg/tutorial/diana_tutorial_pulseshape.cfg
11 
12 sequence DianaTutorialPulseShape
13 
14 # Reads a root file containing raw events. The file
15 # read is produced by diana_tutorial_averagepulse.cfg
16 reader RootFileReader
17 verbosity = info
18 enable = true
19 InputFile = data/AveragePulses.list
20 EventNumberPrintStep = 10000
21 endmod
22 
23 # Load QRunData and QDetChannelCollection from the file read by the reader,
24 # and save it to the output file written by the writer.
25 module RunDataLoader
26 verbosity = info
27 enable = true
28 Input = CurrentReader
29 Output = CurrentWriter
30 endmod
31 
32 # Filter events using raw event information. In this case
33 # events marked as "signal" or "heater" by the DAQ are selected, and
34 # subsequent modules (just one in this sequence) are
35 # executed only on these events.
36 # The Logic=CASE options tells to ignore the result of previous
37 # filters. Since there are no filters before this filter,
38 # the Logic option is useless in this case.
39 filter RawDataFilter
40 enable = true
41 verbosity = info
42 Logic = CASE
43 KeepSignal = true
44 KeepHeater = false
45 KeepNoise = false
46 KeepThermometers = false
47 OverWriteEvent = true
48 endmod
49 
50 # Apply module MTutorialPulseShapeSimple to events
51 # which passes the filter above. Average pulses needed
52 # by this module have been produced by MTutorialAveragePulse
53 # (config file diana_tutorial_averagepulse.cfg) and saved into
54 # the file avg/averagepulse.root
55 module TutorialPulseShape
56 enable = true
57 verbosity = info
58 AveragePulseInput = avg/averagepulse.root
59 endmod
60 
61 # Write events to file with file prefix "PulseShape"
62 writer RootFileWriter
63 verbosity = info
64 enable = true
65 Description = data with pulse shape estimation
66 WriteFilesList = true
67 OutputFilesList = SyncWithRun
68 OutputFilePrefix = PulseShape
69 OutputDir = data
70 AliasFileName = ${DIANA_INSTALL}/cfg/aliases.txt
71 endmod
72 
73 endseq