1 #include "FluxWeightSystematics.hxx" 2 #include "ND280AnalysisUtils.hxx" 3 #include "ToyBoxND280.hxx" 4 #include "Parameters.hxx" 9 FluxWeightSystematics::FluxWeightSystematics(
const std::string& name):
BinnedParams(name,k2D_SYMMETRIC){
13 _flux =
new FluxWeighting(ND::params().GetParameterS(
"psycheSystematics.FluxWeighting.Folder"),
14 ND::params().GetParameterS(
"psycheSystematics.FluxWeighting.Version"),
15 ND::params().GetParameterS(
"psycheSystematics.FluxWeighting.Tuning"));
30 if (event.GetIsSandMC())
return eventWeight;
42 if(!GetBinValues(enu, type, mean_dummy, sigma, index))
return eventWeight;
49 eventWeight.Correction = 1 + (mean-1);
52 std::cout <<
"Run: " <<
event.EventInfo.Run <<
" Enu: " << enu <<
" type: " << type <<
" mean " << mean <<
" sigma " << sigma
61 FluxWeightSystematicsNeutrino::FluxWeightSystematicsNeutrino():
FluxWeightSystematics(
"FluxWeightNeutrino"){
67 bool FluxWeightSystematicsNeutrino::IsCorrectRunPeriod(
int runPeriod){
75 FluxWeightSystematicsAntiNeutrino::FluxWeightSystematicsAntiNeutrino():
FluxWeightSystematics(
"FluxWeightAntiNeutrino"){
81 bool FluxWeightSystematicsAntiNeutrino::IsCorrectRunPeriod(
int runPeriod){
84 return (runPeriod>=8);
Int_t _index
The index of this systematic (needed by SystematicsManager);.
Float_t * Variations
the vector of Variations, one for each of the systematic parameters
Int_t NuPDG
The PDG code of the incoming neutrino.
void SetNParameters(int N)
Set the number of systematic parameters associated to this systematic.
AnaTrueVertexB * TrueVertex
For storing the true vertex, for analyses with no reconstructed primary vertex.
Float_t NuEnergy
The true energy of the incoming neutrino.
int GetRunPeriod(int run, int subrun=-1)
Returns the run period (sequentially: 0,1,2,3,4,5 ...)
ToyVariations * GetToyVariations(UInt_t index) const
returns the variations for a given systematic (index)
This is a normalization systematic. It takes into account the uncertainty on the neutrino flux...
Weight_h ComputeWeight(const ToyExperiment &toy, const AnaEventC &event, const ToyBoxB &box)