7 #ifndef NBW_SKZPREWEIGHT_H 8 #define NBW_SKZPREWEIGHT_H 14 #include "nutools/NuBeamWeights/Conventions.h" 30 void SetParams(std::vector<double> fpar, std::vector<double> bpar) {
61 std::vector<Conventions::ParticleType_t>
fPlist;
62 std::map<Conventions::ParticleType_t, TH2F* >
fPTPZ;
65 std::map<Conventions::ParticleType_t, double >
fMeanPT;
66 std::map<Conventions::ParticleType_t, double >
fN;
67 std::map<Conventions::ParticleType_t, double >
fNWeighted;
129 #endif //NBW_SKZPREWEIGHT_H std::map< Conventions::ParticleType_t, int > fNBinsY
std::vector< double > fFPar
std::map< Conventions::ParticleType_t, double > fN
std::map< Conventions::ParticleType_t, int > fNBinsX
enum nbw::Conventions::EDetType DetType_t
std::vector< Conventions::ParticleType_t > fPlist
std::map< Conventions::ParticleType_t, double > fNWeighted
bool operator()(const mapkey lhs, const mapkey rhs) const
enum nbw::Conventions::EParticleType ParticleType_t
std::string GetHname(int inu, int eff, int beam, int det)
void SetParams(std::vector< double > fpar, std::vector< double > bpar)
object containing MC flux information
std::string BeamTypeToString(Conventions::BeamType_t btype)
double GetWeight(const simb::MCFlux *mcf, double Enu, int det, int beam)
double GetBeamWeight(int ntype, double Enu, int det=1, int beam=2)
std::map< mapkey, WeightMap_t, LessThan > fBeamSysMap
enum nbw::Conventions::EBeamType BeamType_t
std::map< Conventions::ParticleType_t, TH2F * > fWeightedPTPZ
std::map< Conventions::ParticleType_t, TH2F * > fPTPZ
std::map< Conventions::ParticleType_t, TH2F * > fWeightHist
skzpReweight(std::string fpath="/nova/data/flux/SKZPdata/fluka05ptxf.root", std::string bpath="/nova/data/flux/SKZPdata/IPNDhists.root", int flag=2)
void FillVector(TH1D *hist, int ntype, int eff, int beam, int det)
enum nbw::Conventions::EBeamSys BeamSys_t
std::map< Conventions::ParticleType_t, double > fWeightedMeanPT
std::map< double, double > WeightMap_t
std::string PartEnumToString(Conventions::ParticleType_t ptype)
double GetFlukWeight(const simb::MCFlux *mcf)
std::string BeamSysToString(Conventions::BeamSys_t bstype)
reweighting utility for NuMI beam
std::map< Conventions::ParticleType_t, double > fMeanPT
std::string DetTypeToString(Conventions::DetType_t dtype)
std::vector< double > fBPar
void SetBeamParams(std::vector< double > bpar)
Conventions::ParticleType_t GeantToEnum(int ptype)
void SetFlukParams(std::vector< double > fpar)