All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrimaryHadronNormalizationWeightCalc.cxx
Go to the documentation of this file.
1 //Built from PrimaryHadronNormalizationWeightCalc.cxx in ubcode/EventWeight/Calculator/Flux/BNBPrimaryHadron directory
2 
3 #include "FluxCalcPrep.h"
4 
5 
6 namespace sbn {
7  namespace evwgh {
8 
9  std::pair<bool, double> FluxWeightCalc::PHNWeightCalc(simb::MCFlux flux, float rand){
10  // We need to guard against unphysical parameters
11  bool parameters_pass = false;
12 
13  double weight = rand+1;
14 
15  if(weight > 0) parameters_pass = true;
16  else{parameters_pass = false;}
17 
18  std::pair<bool, double> output(parameters_pass, weight);
19 
20  return output;
21 
22  }
23 
24  } // namespace evwgh
25 } // namespace sbn
26 
27 
28 
BEGIN_PROLOG sequence::SlidingWindowTriggerPatternsOppositeWindows END_PROLOG simSlidingORM6O6 effSlidingORW output
std::pair< bool, double > PHNWeightCalc(simb::MCFlux flux, float rand)