23 sprintf(namepar,
"MIPP_NuMI_%s_sys_%d",
"pip",ii);
26 sprintf(namepar,
"MIPP_NuMI_%s_stats_%d",
"pip",ii);
34 sprintf(namepar,
"MIPP_NuMI_%s_sys_%d",
"pim",ii);
37 sprintf(namepar,
"MIPP_NuMI_%s_stats_%d",
"pim",ii);
53 std::vector<bool> this_nodes;
55 this_nodes.push_back(
false);
67 if(binID<0)
return this_nodes;
77 this_nodes[ii] =
true;
104 std::cout<<
"LOW MC VAL: "<<binC <<
std::endl;
int Idx_ancestry
The index of the hadron leaving the target in the ancestry chain.
double getMCval(double pz, double pt, int pdgcode)
MC value for this HP production.
A list/table of parameter names and values.
MIPPNumiPionYieldsReweighter(int iuniv, const ParameterTable &cv_pars, const ParameterTable &univ_pars)
A class to manage the MC value for MIPP NuMI.
const ParameterTable & cvPars
virtual std::vector< bool > canReweight(const InteractionChainData &aa)
Look through the InteractionChainData input and identify those Interactions that can be reweighted as...
Information about the chain of interactions leading to a neutrino.
virtual ~MIPPNumiPionYieldsReweighter()
double getParameterValue(const std::string &name) const
get the value of a parameter. throw an exception of a well defined type if we don't have it ...
std::vector< InteractionData > interaction_chain
vector of neutrino ancestors
std::vector< float > vbin_data_pip
int Tar_pdg
pdg code of the particle
int GetNbins_pim_MIPPNuMI()
std::vector< float > vbin_data_pim
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
static MIPPNumiMC * getInstance()
int GetNbins_pip_MIPPNuMI()
const ParameterTable & univPars
int BinID(double pz, double pt, int pdgcode)
Return the Bin ID for this data.
A class to manage the bin definitions for MIPP Numi Yields.
static MIPPNumiYieldsBins * getInstance()
double Pt
Transversal momentum (GeV/c) of the particle.
virtual double calculateWeight(const InteractionChainData &aa)
calculate a weight for this interaction chain given the central value parameters and the parameters f...
The information about the hadron that exits the target.
double Pz
Longitudinal momentum (GeV/c) of the particle.
TargetData tar_info
Information about the hadron which exited the target.
QTextStream & endl(QTextStream &s)