-
Notifications
You must be signed in to change notification settings - Fork 5
/
mca-calib.json
89 lines (83 loc) · 2.17 KB
/
mca-calib.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"requires": [ "$_/LinCalibBric.C" ],
"logLevel": "info",
"brics": {
"main": {
"type": "dbrx::MRBric",
"rndEventGen": {
"type": "dbrx::RootRndGen",
"pdf": "4 * TMath::Landau(x, 2100, 700, 0) + 1 * TMath::Gaus(x, 5096, 35)",
"xMin": 0,
"xMax": 10000,
"nPoints": 10000,
"nOut": 1E6
},
"mcaSpectrum": {
"type": "dbrx::RootHistBuilder<double>",
"input": "&rndEventGen",
"histName": "mcaSpectrum",
"histTitle": "MCA Spectrum",
"nBins": 10000,
"xlow": 0,
"xup": 10000
},
"mcaEventsWriter": {
"type": "dbrx::RootTreeWriter",
"treeName": "mcaEvents",
"treeTitle": "MCA Events",
"entry": {
"evtNo": "&rndEventGen.index",
"mca": "&rndEventGen"
}
},
"mcaFileWriter": {
"type": "dbrx::RootFileWriter",
"fileName": "out-mca.root",
"title": "MCA Output File",
"content": [ "&mcaEventsWriter", "&mcaSpectrum" ]
},
"mcaFileReader": {
"type": "dbrx::RootFileReader",
"input": "&mcaFileWriter"
},
"mcaEventsReader": {
"type": "dbrx::RootTreeReader",
"input": "&mcaFileReader.content.mcaEvents",
"nEntries": -1,
"firstEntry": 0
},
"calib": {
"type": "LinCalibBric",
"input": "&mcaEventsReader.entry.mca",
"offset": -24.819,
"slope": 0.13477
},
"calSpectrum": {
"type": "dbrx::RootHistBuilder<double>",
"input": "&calib",
"histName": "calSpectrum",
"histTitle": "Calibrated Spectrum",
"nBins": 1000,
"xlow": 0,
"xup": 1000
},
"calEventsWriter": {
"type": "dbrx::RootTreeWriter",
"treeName": "calEvents",
"treeTitle": "Calibrated Events",
"entry": {
"eDep": "&calib"
}
},
"outFileWriter": {
"type": "dbrx::RootFileWriter",
"fileName": "out-cal.root",
"title": "Calib Output File",
"content": {
"hists": "&calSpectrum",
"trees": "&calEventsWriter"
}
}
}
}
}