Diana Software
diana_tutorial_coincidences.cfg
Go to the documentation of this file.
1 # /** @example diana_tutorial.cfg
2 # @brief example of a sequence that computes basic event quantities
3 # @author Marco Vignati */
4 
5 
6 sequence DianaTutorialPulseShape
7 
8 # Reads a root file containing raw events.
9 # The number of processed events is printed every 10k event
10 reader RootFileReader
11 verbosity = info
12 enable = true
13 InputFile = output/PulseShape_000810_U.list
14 EventNumberPrintStep = 10000
15 NeighboursOn = true
16 NeighbourAlgorithm = TimeNeighbour
17 WindowSizeMs = 4000
18 endmod
19 
20 # Load QRunData from the file read by the reader,
21 # and save it to the output file written by the writer.
22 # QRunData is needed almost by all modules, so
23 # this module is de facto mandatory.
24 module RunDataLoader
25 verbosity = info
26 enable = true
27 Input = CurrentReader
28 Output = CurrentWriter
29 endmod
30 
31 # Filter events using raw event information. In this case
32 # events marked as "signal" or "heater" by the DAQ are selected, and
33 # subsequent modules (just one in this sequence) are
34 # executed only on these events.
35 # The Logic=CASE options tells to ignore the result of previous
36 # filters. Since there are no filters before this filter,
37 # the Logic option is useless in this case.
38 filter RawDataFilter
39 enable = true
40 verbosity = info
41 Logic = CASE
42 KeepSignal = true
43 KeepHeater = false
44 KeepNoise = false
45 KeepThermometer = false
46 OverWriteEvent = true
47 endmod
48 
49 filter RawDataFilter
50 enable = true
51 verbosity = info
52 Logic = CASE
53 KeepSignal = true
54 KeepHeater = false
55 KeepNoise = false
56 KeepThermometer = false
57 OverWriteEvent = true
58 FilterNeighbours = true
59 FilterMainEvent = false
60 endmod
61 
62 
63 module CoincidenceSimple
64 enable = true
65 verbosity = info
66 endmod
67 # Write events to file. Users can only choose the file name
68 # prefix, the full name will contain the run number, the
69 # run type (C for calibration, B for background,..., U for unknown)
70 # and the partial.
71 writer RootFileWriter
72 verbosity = info
73 enable = true
74 Description = data with amplitude
75 WriteFilesList = true
76 OutputFilesList = SyncWithRun
77 OutputFilePrefix = Coincidence
78 OutputDir = output
79 AliasFileName = ${DIANA_INSTALL}/cfg/aliases.txt
80 endmod
81 
82 endseq