Skip to content

Commit 081b5ba

Browse files
committed
adding neutron threshold and cleaning up configurations
1 parent 70bf419 commit 081b5ba

5 files changed

Lines changed: 12 additions & 20 deletions

File tree

sbncode/SBNEventWeight/Calculators/Geant4/Geant4WeightCalc.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ void Geant4WeightCalc::Configure(fhicl::ParameterSet const& p,
186186
FitParNominals.push_back(theNominal);
187187
FitParSigmas.push_back(theSigma);
188188

189+
if (fDebug) std::cout << "Name: " << theName << ", Nominal: " << theNominal << ", Sigma: " << theSigma << std::endl;
190+
189191
theNominals[theName] = theNominal;
190192

191193
fParameterSet.AddParameter(theName, theSigma);
@@ -514,8 +516,7 @@ std::vector<float> Geant4WeightCalc::GetWeight(art::Event& e, size_t itruth ) {
514516
}
515517
std::cout << std::endl;
516518
}
517-
518-
} // if ( ( TMath::Abs(p_PDG) == 211 || p_PDG == 2212 ) )
519+
}
519520
if (fMakeOutputTrees) fOutTree_Particle->Fill();
520521
} // loop over mcparticles (i)
521522
if (fMakeOutputTrees) fOutTree_MCTruth->Fill();

sbncode/SBNEventWeight/jobs/geant4/eventweight_geant4_sbn.fcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ sbn_eventweight_geant4: {
138138
# - Sigma defines the 1-sigma range for multisims and unisims. Currently the
139139
# code can only accept a single value for sigma, giving symmetric
140140
# uncertainty bounds: nominal-sigma and nominal+sigma
141-
# [Only in use for fitting purposes, instead range defined through input files - Jul 2025]
142141
# - Cut must be one of the following:
143142
# "total" <- total scattering cross section, pulled from Geant4
144143
# "abs" <- absorption cross section (pi+ and pi- only at the moment -- Oct 2019)

sbncode/SBNEventWeight/jobs/geant4/neutron_reweight_parameters.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NeutronParameters: [
66
{
77
Name: "fNeutronTotal"
88
Cut: "total"
9-
Range: [10.0, 2005.0]
9+
Range: [100.0, 2005.0]
1010
Nominal: 1.0
1111
Sigma: 0.2
1212
}

sbncode/SBNEventWeight/jobs/geant4/piminus_reweight_parameters.fcl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ BEGIN_PROLOG
44

55
PiMinusParameters: [
66
{
7-
Name: "fPiMinusReacLow"
8-
Cut: "reac"
7+
Name: "fPiMinusInelLow"
8+
Cut: "inel"
99
Range: [10., 200.]
1010
Nominal: 1
1111
Sigma: 0.2
1212
} ,
1313
{
14-
Name: "fPiMinusReacHigh"
15-
Cut: "reac"
14+
Name: "fPiMinusInelHigh"
15+
Cut: "inel"
1616
Range: [700., 2005.]
1717
Nominal: 1.0
1818
Sigma: 0.2
@@ -21,7 +21,6 @@ PiMinusParameters: [
2121
{
2222
Name: "fPiMinusAbs"
2323
Cut: "abs"
24-
# Range: [200.0, 700.00]
2524
Range: [10.0, 2005.00]
2625
Nominal: 1.0
2726
Sigma: 0.2
@@ -30,7 +29,6 @@ PiMinusParameters: [
3029
{
3130
Name: "fPiMinusCex"
3231
Cut: "cex"
33-
# Range: [200.0, 700.00]
3432
Range: [10.0, 2005.00]
3533
Nominal: 1.0
3634
Sigma: 0.2
@@ -39,7 +37,6 @@ PiMinusParameters: [
3937
{
4038
Name: "fPiMinusDCex"
4139
Cut: "dcex"
42-
# Range: [200.0, 700.00]
4340
Range: [10.0, 2005.00]
4441
Nominal: 1.0
4542
Sigma: 0.2
@@ -48,7 +45,6 @@ PiMinusParameters: [
4845
{
4946
Name: "fPiMinusPiProd"
5047
Cut: "prod"
51-
# Range: [200.0, 700.00]
5248
Range: [10.0, 2005.00]
5349
Nominal: 1.0
5450
Sigma: 0.2

sbncode/SBNEventWeight/jobs/geant4/piplus_reweight_parameters.fcl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ BEGIN_PROLOG
44

55
PiPlusParameters: [
66
{
7-
Name: "fPiPlusReacLow"
8-
Cut: "reac"
7+
Name: "fPiPlusInelLow"
8+
Cut: "inel"
99
Range: [10., 200.]
1010
Nominal: 1.0
1111
Sigma: 0.2
1212
} ,
1313
{
14-
Name: "fPiPlusReacHigh"
15-
Cut: "reac"
14+
Name: "fPiPlusInelHigh"
15+
Cut: "inel"
1616
Range: [700., 2005.]
1717
Nominal: 1.0
1818
Sigma: 0.2
@@ -21,7 +21,6 @@ PiPlusParameters: [
2121
{
2222
Name: "fPiPlusAbs"
2323
Cut: "abs"
24-
# Range: [200.0, 700.00]
2524
Range: [10.0, 2005.00]
2625
Nominal: 1.0
2726
Sigma: 0.2
@@ -30,7 +29,6 @@ PiPlusParameters: [
3029
{
3130
Name: "fPiPlusCex"
3231
Cut: "cex"
33-
# Range: [200.0, 700.00]
3432
Range: [10.0, 2005.00]
3533
Nominal: 1.0
3634
Sigma: 0.2
@@ -39,7 +37,6 @@ PiPlusParameters: [
3937
{
4038
Name: "fPiPlusDCex"
4139
Cut: "dcex"
42-
# Range: [200.0, 700.00]
4340
Range: [10.0, 2005.00]
4441
Nominal: 1.0
4542
Sigma: 0.2
@@ -48,7 +45,6 @@ PiPlusParameters: [
4845
{
4946
Name: "fPiPlusPiProd"
5047
Cut: "prod"
51-
# Range: [200.0, 700.00]
5248
Range: [10.0, 2005.00]
5349
Nominal: 1.0
5450
Sigma: 0.2

0 commit comments

Comments
 (0)