MaCh3 DUNE 1.0.0
Reference Guide
|
Base class for handling atmospheric samples. More...
#include <samplePDFDUNE/samplePDFDUNEAtm.h>
Public Types | |
enum | KinematicTypes { kTrueNeutrinoEnergy , kRecoNeutrinoEnergy , kTrueCosZ , kRecoCosZ , kOscChannel , kMode } |
Enum to identify kinematics. More... | |
Public Member Functions | |
samplePDFDUNEAtm (std::string mc_version, covarianceXsec *xsec_cov, covarianceOsc *osc_cov) | |
Constructor. | |
~samplePDFDUNEAtm () | |
destructor | |
Protected Member Functions | |
void | Init () |
Initialises object. | |
int | setupExperimentMC (int iSample) |
Function to setup MC from file. | |
void | setupFDMC (int iSample) |
Tells FD base which variables to point to/be set to. | |
void | SetupWeightPointers () |
Sets up pointers weights for each event (oscillation/xsec/etc.) | |
void | SetupSplines () |
Sets up splines. | |
double | CalcXsecWeightFunc (int iSample, int iEvent) |
NOT IMPLEMENTED: Dunder method to calculate xsec weights. | |
void | applyShifts (int iSample, int iEvent) |
NOT IMPLEMENTED: Apply kinematic shifts. | |
const double * | GetPointerToKinematicParameter (KinematicTypes KinPar, int iSample, int iEvent) |
Returns pointer to kinemtatic parameter for event in Structs DUNE. | |
const double * | GetPointerToKinematicParameter (double KinematicVariable, int iSample, int iEvent) |
Returns pointer to kinemtatic parameter for event in Structs DUNE. | |
const double * | GetPointerToKinematicParameter (std::string KinematicParameter, int iSample, int iEvent) |
Returns pointer to kinemtatic parameter for event in Structs DUNE. | |
double | ReturnKinematicParameter (double KinematicVariable, int iSample, int iEvent) |
Returns pointer to kinemtatic parameter for event in Structs DUNE. | |
double | ReturnKinematicParameter (std::string KinematicParameter, int iSample, int iEvent) |
Returns pointer to kinemtatic parameter for event in Structs DUNE. | |
std::vector< double > | ReturnKinematicParameterBinning (std::string KinematicParameterStr) |
Gets binning for a given parameter. | |
std::vector< double > | ReturnKinematicParameterBinning (KinematicTypes KinPar) |
Gets binning for a given parameter. | |
int | ReturnKinematicParameterFromString (std::string KinematicStr) |
Get kinematic parameter ID from string name. | |
std::string | ReturnStringFromKinematicParameter (int KinematicVariable) |
Get kinematic parameter name from ID. | |
Protected Attributes | |
std::vector< struct dunemc_base > | dunemcSamples |
Array filled with MC samples for each oscillation channel. | |
bool | IsELike |
Is the sample e-like. | |
Base class for handling atmospheric samples.
Definition at line 11 of file samplePDFDUNEAtm.h.
Enum to identify kinematics.
Enumerator | |
---|---|
kTrueNeutrinoEnergy | |
kRecoNeutrinoEnergy | |
kTrueCosZ | |
kRecoCosZ | |
kOscChannel | |
kMode |
Definition at line 23 of file samplePDFDUNEAtm.h.
samplePDFDUNEAtm::samplePDFDUNEAtm | ( | std::string | mc_version, |
covarianceXsec * | xsec_cov, | ||
covarianceOsc * | osc_cov ) |
Constructor.
mc_version | Configuration file |
xsec_cov | cross-section covariance matrix |
osc_cov | oscillation covariance matrix |
Definition at line 15 of file samplePDFDUNEAtm.cpp.
samplePDFDUNEAtm::~samplePDFDUNEAtm | ( | ) |
|
inlineprotected |
NOT IMPLEMENTED: Apply kinematic shifts.
iSample | Sample Number |
iEvent | Event number |
Definition at line 54 of file samplePDFDUNEAtm.h.
|
inlineprotected |
NOT IMPLEMENTED: Dunder method to calculate xsec weights.
iSample | sample ID |
iEvent | Event number |
Definition at line 49 of file samplePDFDUNEAtm.h.
|
protected |
Returns pointer to kinemtatic parameter for event in Structs DUNE.
KinematicVariable | Kinematic parameter as double (gets cast -> int) |
iSample | Sample ID |
iEvent | Event ID |
Definition at line 174 of file samplePDFDUNEAtm.cpp.
|
protected |
Returns pointer to kinemtatic parameter for event in Structs DUNE.
KinPar | Kinematic parameter enum val |
iSample | Sample ID |
iEvent | Event ID |
Definition at line 144 of file samplePDFDUNEAtm.cpp.
|
protected |
Returns pointer to kinemtatic parameter for event in Structs DUNE.
KinematicParameter | Kinematic parameter name as string (gets cast -> int) |
iSample | Sample ID |
iEvent | Event ID |
Definition at line 179 of file samplePDFDUNEAtm.cpp.
|
protected |
Initialises object.
Definition at line 22 of file samplePDFDUNEAtm.cpp.
|
protected |
Returns pointer to kinemtatic parameter for event in Structs DUNE.
KinematicVariable | Kinematic parameter ID as double (gets cast -> int) |
iSample | Sample ID |
iEvent | Event ID |
Definition at line 184 of file samplePDFDUNEAtm.cpp.
|
protected |
Returns pointer to kinemtatic parameter for event in Structs DUNE.
KinematicParameter | Kinematic parameter name as string (gets cast -> int) |
iSample | Sample ID |
iEvent | Event ID |
Definition at line 188 of file samplePDFDUNEAtm.cpp.
|
protected |
Gets binning for a given parameter.
KinPar | Parameter ID |
Definition at line 197 of file samplePDFDUNEAtm.cpp.
|
protected |
Gets binning for a given parameter.
KinematicParameterStr | Parameter name |
Definition at line 192 of file samplePDFDUNEAtm.cpp.
|
inlineprotected |
Get kinematic parameter ID from string name.
KinematicStr |
Definition at line 219 of file samplePDFDUNEAtm.cpp.
|
inlineprotected |
Get kinematic parameter name from ID.
KinematicVariable | Parameter ID |
Definition at line 236 of file samplePDFDUNEAtm.cpp.
|
protected |
Function to setup MC from file.
iSample | sample ID |
Definition at line 44 of file samplePDFDUNEAtm.cpp.
|
protected |
Tells FD base which variables to point to/be set to.
iSample | Sample ID |
Definition at line 125 of file samplePDFDUNEAtm.cpp.
|
protected |
Sets up splines.
Definition at line 28 of file samplePDFDUNEAtm.cpp.
|
protected |
Sets up pointers weights for each event (oscillation/xsec/etc.)
Definition at line 32 of file samplePDFDUNEAtm.cpp.
|
protected |
Array filled with MC samples for each oscillation channel.
Definition at line 112 of file samplePDFDUNEAtm.h.
|
protected |
Is the sample e-like.
Definition at line 115 of file samplePDFDUNEAtm.h.