PPFXWeights.h
Go to the documentation of this file.
1 #pragma once
2 
3 // PPFX flux weights. See doc-23441
4 // and references therein
5 
6 #include "CAFAna/Core/Var.h"
7 
8 namespace ana
9 {
10 
11  /// weight events with the flux PPFX Central value correction.
13 
14  // var that corresponds to the ppfx spilltruthvar. We want the default
15  // value returned to be 1.
16  const Var kPPFXFluxCVWgt = VarFromNuTruthVar(kPPFXFluxCVWgtST, 1);
17 
18  //Get th number of universes
19  int GetPPFXNuniverses();
20 
21  //Get universe weights from spilltruthvar:
22  std::vector<NuTruthVar> GetkPPFXFluxUnivWgtST();
23 
24  //Get universe weights from rec tree:
25  std::vector<Var> GetkPPFXFluxUnivWgt();
26 
27 } // namepace
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const Var kPPFXFluxCVWgt
Definition: PPFXWeights.h:16
int GetPPFXNuniverses()
Definition: PPFXWeights.cxx:26
std::vector< Var > GetkPPFXFluxUnivWgt()
Definition: PPFXWeights.cxx:53
std::vector< NuTruthVar > GetkPPFXFluxUnivWgtST()
Definition: PPFXWeights.cxx:33
Var VarFromNuTruthVar(const NuTruthVar &stv, double _default)
Definition: Var.cxx:7
Template for Var and SpillVar.
const NuTruthVar kPPFXFluxCVWgtST([](const caf::SRNeutrinoProxy *nu){ if(nu->rwgt.ppfx.cv!=nu->rwgt.ppfx.cv){return 1.f;}if(nu->rwgt.ppfx.cv >90){return 1.f;}return float(nu->rwgt.ppfx.cv);})
weight events with the flux PPFX Central value correction.
Definition: PPFXWeights.h:12