#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.
nbw::skzpReweight::~skzpReweight | ( | ) |
Definition at line 50 of file skzpReweight.cxx.
|
private |
Definition at line 254 of file skzpReweight.cxx.
|
private |
Definition at line 413 of file skzpReweight.cxx.
|
private |
Definition at line 428 of file skzpReweight.cxx.
|
private |
Definition at line 467 of file skzpReweight.cxx.
|
private |
Definition at line 323 of file skzpReweight.cxx.
|
private |
Definition at line 351 of file skzpReweight.cxx.
|
private |
Definition at line 146 of file skzpReweight.cxx.
|
private |
Definition at line 379 of file skzpReweight.cxx.
double nbw::skzpReweight::GetBeamWeight | ( | int | ntype, |
double | Enu, | ||
int | det = 1 , |
||
int | beam = 2 |
||
) |
Definition at line 221 of file skzpReweight.cxx.
|
inline |
Definition at line 45 of file skzpReweight.h.
double nbw::skzpReweight::GetFlukWeight | ( | int | ptype, |
double | pT, | ||
double | pz | ||
) |
Definition at line 73 of file skzpReweight.cxx.
|
private |
Definition at line 306 of file skzpReweight.cxx.
|
inline |
Definition at line 41 of file skzpReweight.h.
|
private |
Definition at line 398 of file skzpReweight.cxx.
|
inline |
Definition at line 37 of file skzpReweight.h.
|
inline |
Definition at line 34 of file skzpReweight.h.
|
inline |
Definition at line 30 of file skzpReweight.h.
|
private |
Definition at line 117 of file skzpReweight.h.
|
private |
Definition at line 121 of file skzpReweight.h.
|
private |
Definition at line 126 of file skzpReweight.h.
|
private |
Definition at line 115 of file skzpReweight.h.
|
private |
Definition at line 116 of file skzpReweight.h.
|
private |
Definition at line 59 of file skzpReweight.h.
|
private |
Definition at line 60 of file skzpReweight.h.
|
private |
Definition at line 65 of file skzpReweight.h.
|
private |
Definition at line 66 of file skzpReweight.h.
|
private |
Definition at line 69 of file skzpReweight.h.
|
private |
Definition at line 69 of file skzpReweight.h.
|
private |
Definition at line 67 of file skzpReweight.h.
|
private |
Definition at line 61 of file skzpReweight.h.
|
private |
Definition at line 62 of file skzpReweight.h.
|
private |
Definition at line 68 of file skzpReweight.h.
|
private |
Definition at line 63 of file skzpReweight.h.
|
private |
Definition at line 64 of file skzpReweight.h.