rw_fit.fcl
Go to the documentation of this file.
1 #include "FitterPlotStyle.fcl"
2 #include "ProtoDUNECalibration.fcl"
3 
4 MCFileName: "/dune/app/users/calcuttj/PionStudies/rDataFrame/Prod4_3_31_21/eventSelection_mc_all.root"
5 DataFileName: "/dune/app/users/calcuttj/PionStudies/rDataFrame/Prod4_3_31_21/eventSelection_mc_all.root"
6 TreeName: "pduneana/beamana"
7 
8 DriverName: "protoana::AbsCexDriver"
9 AnalysisOptions: {
10  #FakeDataRoutine: "SampleScales"
11  #FakeDataRoutine: "BinnedScales"
12  FakeDataRoutine: "G4RW"
13  #FakeDataRoutine: "dEdX"
14 
15  FakeDataScales: [
16  #[1, 2.]
17  [2, 2.]
18  ]
19 
20  FakeDataBinnedScales: [
21  [2, [1., 1.488, 1.394, 1.469, 1.]],
22  [1, [1., .748, .782, .832, .912, 1.]]
23  ]
24 
25  FakeDataG4RW: {
26  Position: 2
27  Shift: 1
28  Full: true
29  }
30 
31  FakeDatadEdX: {
32  Cal_set: @local::CalorimetryParameters_SPProd4_MC_SCE
33  VariedCCal: 1.051e-3
34  }
35 
36  #EndZCut: 226.
37  EndZCut: 225.94353
38  SliceCut: 472
39  WirePitch: .47974
40  Z0: 0.56035
41 
42  #SliceMethod: "Traj"
43  #SliceMethod: "E"
44  SliceMethod: "Alt"
45  #SliceMethod: "Default"
46 
47  TrajZStart: -.49375
48 
49  #Fixing reco
50  DoEnergyFix: true
51  EnergyFix: 80.
52 
53 }
54 
55 Systematics: [
56  #{
57  # Name: "dEdX_Cal"
58  # Central: 1.
59  # LowerLimit: 0.
60  # UpperLimit: 2.
61 
62  # Options: {
63  # Cal_set: @local::CalorimetryParameters_SPProd4_MC_SCE
64  # }
65  #}
66  #{
67  # Name: "dEdX_Cal_Spline"
68  # Central: 1.011e-3
69  # LowerLimit: .809e-3
70  # UpperLimit: 1.2132e-3
71  # Sigma: .101e-3
72  #
73  # Options: {
74  # Cal_set: @local::CalorimetryParameters_SPProd4_MC_SCE
75  # C_cal_vars: [.809e-3, .910e-3, 1.121e-3, 1.2132e-3]
76  # }
77  #} #,
78  #{
79  # Name: "beam_res_width"
80  # Central: 2.618e-2
81  # LowerLimit: 0 #1.e-2
82  # UpperLimit: 4.e-2
83  # Sigma: 2.618e-3
84  #
85  # Options: {
86  # StaticMean: -1.89e-3
87  # WeightCap: 50
88  # }
89  #} #,
90  #{
91  # Name: "beam_res_mean"
92  # Central: -1.89e-3
93  # LowerLimit: -4.0e-3
94  # UpperLimit: 1.0e-3
95  # Sigma: 1.89e-4
96  #
97  # Options: {
98  # StaticWidth: 2.618e-2
99  # WeightCap: 50
100  # }
101  #} #,
102  #{
103  # Name: "g4rw_1"
104  # Central: 1.
105  # LowerLimit: 0.8
106  # UpperLimit: 1.2
107  # Sigma: .2
108 
109  # Options: {
110  # Position: 0
111  # PlusBranch: "g4rw_full_primary_plus_sigma_weight"
112  # MinusBranch: "g4rw_full_primary_minus_sigma_weight"
113 
114  # IsGrid: true
115  # GridBranch: "g4rw_full_grid_weights_0"
116  # GridEnd: 2.0
117  # GridStart: 0.1
118  # GridN: 20
119  # }
120  #} ,
121  #{
122  # Name: "g4rw_2"
123  # Central: 1.
124  # LowerLimit: 0.1
125  # UpperLimit: 2.0
126  # Sigma: .2
127 
128  # Options: {
129  # Position: 1
130  # PlusBranch: "g4rw_full_primary_plus_sigma_weight"
131  # MinusBranch: "g4rw_full_primary_minus_sigma_weight"
132 
133  # IsGrid: true
134  # GridBranch: "g4rw_full_grid_weights_1"
135  # GridEnd: 2.0
136  # GridStart: 0.1
137  # GridN: 20
138  # }
139  #},
140  {
141  Name: "g4rw_3"
142  Central: 1.
143  LowerLimit: 0.1
144  UpperLimit: 2.00
145  Sigma: .75
146 
147  Options: {
148  Position: 2
149  PlusBranch: "g4rw_full_primary_plus_sigma_weight"
150  MinusBranch: "g4rw_full_primary_minus_sigma_weight"
151 
152  IsGrid: true
153  GridBranch: "g4rw_full_grid_weights_2"
154  GridEnd: 2.0
155  GridStart: 0.1
156  GridN: 20
157  }
158  }
159 
160 ]
161 
162 Selections: [
163  {
164  Name: "Abs"
165  ID: 1
166  RecoBins: [[0., 200., 400., 500., 600., 800., 1200.]]
167  BinLabels: [["0 - 200", "200 - 400", "400 - 500", "500 - 600", "600 - 800", "800 - 1200"]]
168  AxisTitles: ["Reconstructed KE (MeV)"]
169  },
170  {
171  Name: "Cex"
172  ID: 2
173  RecoBins: [[0., 400., 500., 600., 800., 1200.]]
174  BinLabels: [["0 - 400", "400 - 500", "500 - 600", "600 - 800", "800 - 1200"]]
175  AxisTitles: ["Reconstructed KE (MeV)"]
176  } ,
177  {
178  Name: "RejectedInt"
179  ID: 3
180  RecoBins: [[0., 400., 500., 600., 800., 1200.]]
181  BinLabels: [["0 - 400", "400 - 500", "500 - 600", "600 - 800", "800 - 1200"]]
182  AxisTitles: ["Reconstructed KE (MeV)"]
183  },
184  {
185  Name: "APA2"
186  ID: 4
187  RecoBins: [[225, 275, 325, 375, 425, 580]]
188  AxisTitles: ["Reconstructed End Z (cm)"]
189  },
190  {
191  Name: "FailedBeamCuts"
192  ID: 5
193  RecoBins: [[0, 1]]
194  AxisTitles: [""]
195  },
196  {
197  Name: "NoBeamTrack"
198  ID: 6
199  RecoBins: [[0, 1]]
200  AxisTitles: [""]
201  }
202 ]
203 
204 
205 IncidentRecoBins: [-5000., 0., 200., 400., 600., 800., 1000., 1200.]
206 SelectedRecoBins: [-5000., 0., 200., 400., 600., 800., 1200.]
207 
208 FluxTypes: [
209  [2, "Muons"],
210  [1, "Pions"]
211  ]
212 
213 
214 DefaultSignalBins: [0., 400., 800., 1000, 1200.]
215 TrueIncidentBins: @local::DefaultSignalBins
216 
217 BeamEnergyBins: [0., 4000.]
218 
219 #For use identifying the true incident samples
220 #used to make the final total pion incident histogram
221 IncidentSamples: [1, 2, 3, 6, 7]
222 MeasurementSamples: [] #[1, 2]
223 
224 Samples: [
225  {
226  Name: "Abs"
227  ID: 1
228  IsSignal: false
229  SignalBins: [400., 500., 600., 800., 1000.]
230  #SignalBins: [200., 500., 600., 800., 1200.]
231  #SignalBins: [000., 50.,
232  # 100., 150.,
233  # 200., 250.,
234  # 300., 350.,
235  # 400., 450.,
236  # 500., 550.,
237  # 600., 650.,
238  # 700., 750.,
239  # 800., 850.,
240  # 900., 950.,
241  # 1000.]
242  FluxType: 1
243  },
244  {
245  Name: "Cex"
246  ID: 2
247  IsSignal: false
248  SignalBins: [450., 600., 800., 1200.]
249  #SignalBins: [000., 50.,
250  # 100., 150.,
251  # 200., 250.,
252  # 300., 350.,
253  # 400., 450.,
254  # 500., 550.,
255  # 600., 650.,
256  # 700., 750.,
257  # 800., 850.,
258  # 900., 950.,
259  # 1000.]
260  FluxType: 1
261  },
262  {
263  Name: "OtherInel"
264  ID: 3
265  IsSignal: false
266  SignalBins: @local::DefaultSignalBins
267  FluxType: 1
268  },
269  {
270  Name: "UpstreamInt"
271  ID: 4
272  IsSignal: false
273  SignalBins: []
274  FluxType: 1
275  },
276  {
277  Name: "Muons"
278  ID: 5
279  IsSignal: false
280  SignalBins: []
281  FluxType: 2
282  },
283  {
284  Name: "PionPastFV"
285  ID: 6
286  IsSignal: false
287  SignalBins: []
288  FluxType: 1
289  },
290  {
291  Name: "Other"
292  ID: 7
293  IsSignal: false
294  SignalBins: []
295  FluxType: 1
296  }
297 ]
298 
299 ## Minimizer setup
300 MaxCalls: 2000
301 NScanSteps: 100
302 Tolerance: 0.001
303 UpperLimit: 10.0
304 LowerLimit: 0.05
305 ReducedIncidentChi2: false
306 FitFlux: true
307 
308 FitFunctionType: 2
309 #####################
310 
311 ## Plotting
312 #PlotStyle: @local::ReducedColorsStyle
313 PlotStyle: @local::DefaultColorsStyle
314 PlotRebinned: true
315 DrawXSecUnderflow: false
316 #####################
317 
318 ## Validation
319 RandomStart: false
320 DoFakeData: true
321 DoThrows: false
322 NThrows: 1000
323 Do1DShifts: true
324 DoSysts: true
325 MaxRethrows: 1000
326 #####################