LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "skzpReweight.h"
Classes | |
struct | LessThan |
struct | mapkey |
Public Member Functions | |
skzpReweight (std::string fpath="/nova/data/flux/SKZPdata/fluka05ptxf.root", std::string bpath="/nova/data/flux/SKZPdata/IPNDhists.root", int flag=2) | |
~skzpReweight () | |
void | SetParams (std::vector< double > fpar, std::vector< double > bpar) |
void | SetFlukParams (std::vector< double > fpar) |
void | SetBeamParams (std::vector< double > bpar) |
double | GetWeight (const simb::MCFlux *mcf, double Enu, int det, int beam) |
double | GetFlukWeight (const simb::MCFlux *mcf) |
double | GetFlukWeight (int ptype, double pT, double pz) |
double | GetBeamWeight (int ntype, double Enu, int det=1, int beam=2) |
Private Types | |
typedef std::map< double, double > | WeightMap_t |
Private Member Functions | |
void | FlukConfig () |
Conventions::ParticleType_t | GeantToEnum (int ptype) |
std::string | PartEnumToString (Conventions::ParticleType_t ptype) |
void | BeamConfig () |
std::string | GetHname (int inu, int eff, int beam, int det) |
void | FillVector (TH1D *hist, int ntype, int eff, int beam, int det) |
void | FillVector (TH1F *hist, int ntype, int eff, int beam, int det) |
std::string | BeamSysToString (Conventions::BeamSys_t bstype) |
std::string | BeamTypeToString (Conventions::BeamType_t btype) |
std::string | DetTypeToString (Conventions::DetType_t dtype) |
Private Attributes | |
std::vector< double > | fFPar |
std::string | fFpath |
std::vector< Conventions::ParticleType_t > | fPlist |
std::map< Conventions::ParticleType_t, TH2F * > | fPTPZ |
std::map< Conventions::ParticleType_t, TH2F * > | fWeightedPTPZ |
std::map< Conventions::ParticleType_t, TH2F * > | fWeightHist |
std::map< Conventions::ParticleType_t, double > | fMeanPT |
std::map< Conventions::ParticleType_t, double > | fN |
std::map< Conventions::ParticleType_t, double > | fNWeighted |
std::map< Conventions::ParticleType_t, double > | fWeightedMeanPT |
std::map< Conventions::ParticleType_t, int > | fNBinsY |
std::map< Conventions::ParticleType_t, int > | fNBinsX |
std::vector< double > | fBPar |
std::string | fBpath |
TFile * | fBeamSysFile |
std::map< mapkey, WeightMap_t, LessThan > | fBeamSysMap |
int | fBflag |
Definition at line 23 of file skzpReweight.h.
|
private |
Definition at line 119 of file skzpReweight.h.
nbw::skzpReweight::skzpReweight | ( | std::string | fpath = "/nova/data/flux/SKZPdata/fluka05ptxf.root" , |
std::string | bpath = "/nova/data/flux/SKZPdata/IPNDhists.root" , |
||
int | flag = 2 |
||
) |
Definition at line 18 of file skzpReweight.cxx.
References BeamConfig(), fBflag, fBPar, fBpath, fFPar, fFpath, and FlukConfig().
nbw::skzpReweight::~skzpReweight | ( | ) |
Definition at line 50 of file skzpReweight.cxx.
References fFPar, fMeanPT, fN, fNBinsX, fNBinsY, fNWeighted, fPlist, fPTPZ, fWeightedMeanPT, fWeightedPTPZ, and fWeightHist.
|
private |
Definition at line 254 of file skzpReweight.cxx.
References fBeamSysFile, fBflag, fBpath, FillVector(), GetHname(), hist, hist2, nbw::Conventions::kBeamEnd, nbw::Conventions::kBeamSysEnd, nbw::Conventions::kDetEnd, nbw::Conventions::kMINOSrat, nbw::Conventions::kNOvArat, and nbw::Conventions::kUnknownDet.
Referenced by SetBeamParams(), SetParams(), and skzpReweight().
|
private |
Definition at line 413 of file skzpReweight.cxx.
References fBflag, nbw::Conventions::kHornIDist, nbw::Conventions::kHornIMiscal, and nbw::Conventions::kUnknownEff.
Referenced by GetHname().
|
private |
Definition at line 428 of file skzpReweight.cxx.
References fBflag, nbw::Conventions::kLE, nbw::Conventions::kLE010z000i, nbw::Conventions::kLE010z170i, nbw::Conventions::kLE010z185i, nbw::Conventions::kLE010z185iL, nbw::Conventions::kLE010z200i, nbw::Conventions::kLE100z200i, nbw::Conventions::kLE150z200i, nbw::Conventions::kLE250z200i, and nbw::Conventions::kUnknownBeam.
Referenced by GetHname().
|
private |
Definition at line 467 of file skzpReweight.cxx.
References fBflag, nbw::Conventions::kIPND, nbw::Conventions::kMINOSfd, nbw::Conventions::kMINOSnd, nbw::Conventions::kMINOSrat, nbw::Conventions::kNOvAfd, nbw::Conventions::kNOvAnd, nbw::Conventions::kNOvArat, and nbw::Conventions::kUnknownDet.
Referenced by GetHname().
|
private |
Definition at line 323 of file skzpReweight.cxx.
References nbw::skzpReweight::mapkey::BeamDex, nbw::skzpReweight::mapkey::DetDex, nbw::skzpReweight::mapkey::EffDex, fBeamSysMap, and nbw::skzpReweight::mapkey::NuDex.
Referenced by BeamConfig().
|
private |
Definition at line 351 of file skzpReweight.cxx.
References nbw::skzpReweight::mapkey::BeamDex, nbw::skzpReweight::mapkey::DetDex, nbw::skzpReweight::mapkey::EffDex, fBeamSysMap, and nbw::skzpReweight::mapkey::NuDex.
|
private |
Definition at line 146 of file skzpReweight.cxx.
References fFpath, fMeanPT, fN, fNWeighted, fPlist, fPTPZ, fWeightedMeanPT, fWeightedPTPZ, fWeightHist, GetFlukWeight(), hist, hist2, nbw::Conventions::kK0L, nbw::Conventions::kKMinus, nbw::Conventions::kKPlus, nbw::Conventions::kPiMinus, nbw::Conventions::kPiPlus, PartEnumToString(), and pt.
Referenced by GetFlukWeight(), SetFlukParams(), SetParams(), and skzpReweight().
|
private |
Definition at line 379 of file skzpReweight.cxx.
References nbw::Conventions::kK0L, nbw::Conventions::kKMinus, nbw::Conventions::kKPlus, nbw::Conventions::kPiMinus, nbw::Conventions::kPiPlus, and nbw::Conventions::kUnknown.
Referenced by GetFlukWeight().
double nbw::skzpReweight::GetBeamWeight | ( | int | ntype, |
double | Enu, | ||
int | det = 1 , |
||
int | beam = 2 |
||
) |
Definition at line 221 of file skzpReweight.cxx.
References nbw::skzpReweight::mapkey::BeamDex, nbw::skzpReweight::mapkey::DetDex, nbw::skzpReweight::mapkey::EffDex, evd::details::end(), fBeamSysMap, fBPar, nbw::skzpReweight::mapkey::NuDex, w, and weight.
Referenced by GetFlukWeight(), and GetWeight().
|
inline |
Definition at line 45 of file skzpReweight.h.
References FlukConfig(), simb::MCFlux::ftptype, simb::MCFlux::ftpx, simb::MCFlux::ftpy, simb::MCFlux::ftpz, GeantToEnum(), GetBeamWeight(), PartEnumToString(), and pt.
Referenced by FlukConfig(), and GetWeight().
double nbw::skzpReweight::GetFlukWeight | ( | int | ptype, |
double | pT, | ||
double | pz | ||
) |
Definition at line 73 of file skzpReweight.cxx.
References B, fFPar, fN, fNWeighted, GeantToEnum(), nbw::Conventions::kK0L, nbw::Conventions::kKMinus, nbw::Conventions::kKPlus, nbw::Conventions::kPiMinus, nbw::Conventions::kPiPlus, and weight.
|
private |
Definition at line 306 of file skzpReweight.cxx.
References BeamSysToString(), BeamTypeToString(), DetTypeToString(), and fBflag.
Referenced by BeamConfig().
|
inline |
Definition at line 41 of file skzpReweight.h.
References simb::MCFlux::fntype, simb::MCFlux::ftptype, simb::MCFlux::ftpx, simb::MCFlux::ftpy, simb::MCFlux::ftpz, GetBeamWeight(), GetFlukWeight(), and pt.
|
private |
Definition at line 398 of file skzpReweight.cxx.
References nbw::Conventions::kK0L, nbw::Conventions::kKMinus, nbw::Conventions::kKPlus, nbw::Conventions::kPiMinus, nbw::Conventions::kPiPlus, and nbw::Conventions::kUnknown.
Referenced by FlukConfig(), and GetFlukWeight().
|
inline |
|
inline |
|
inline |
Definition at line 30 of file skzpReweight.h.
References BeamConfig(), fBPar, fFPar, and FlukConfig().
|
private |
Definition at line 117 of file skzpReweight.h.
Referenced by BeamConfig().
|
private |
Definition at line 121 of file skzpReweight.h.
Referenced by FillVector(), and GetBeamWeight().
|
private |
Definition at line 126 of file skzpReweight.h.
Referenced by BeamConfig(), BeamSysToString(), BeamTypeToString(), DetTypeToString(), GetHname(), and skzpReweight().
|
private |
Definition at line 115 of file skzpReweight.h.
Referenced by GetBeamWeight(), SetBeamParams(), SetParams(), and skzpReweight().
|
private |
Definition at line 116 of file skzpReweight.h.
Referenced by BeamConfig(), and skzpReweight().
|
private |
Definition at line 59 of file skzpReweight.h.
Referenced by GetFlukWeight(), SetFlukParams(), SetParams(), skzpReweight(), and ~skzpReweight().
|
private |
Definition at line 60 of file skzpReweight.h.
Referenced by FlukConfig(), and skzpReweight().
|
private |
Definition at line 65 of file skzpReweight.h.
Referenced by FlukConfig(), and ~skzpReweight().
|
private |
Definition at line 66 of file skzpReweight.h.
Referenced by FlukConfig(), GetFlukWeight(), and ~skzpReweight().
|
private |
Definition at line 69 of file skzpReweight.h.
Referenced by ~skzpReweight().
|
private |
Definition at line 69 of file skzpReweight.h.
Referenced by ~skzpReweight().
|
private |
Definition at line 67 of file skzpReweight.h.
Referenced by FlukConfig(), GetFlukWeight(), and ~skzpReweight().
|
private |
Definition at line 61 of file skzpReweight.h.
Referenced by FlukConfig(), and ~skzpReweight().
|
private |
Definition at line 62 of file skzpReweight.h.
Referenced by FlukConfig(), and ~skzpReweight().
|
private |
Definition at line 68 of file skzpReweight.h.
Referenced by FlukConfig(), and ~skzpReweight().
|
private |
Definition at line 63 of file skzpReweight.h.
Referenced by FlukConfig(), and ~skzpReweight().
|
private |
Definition at line 64 of file skzpReweight.h.
Referenced by FlukConfig(), and ~skzpReweight().