1#ifndef _samplePDFDUNEBeamNDGar_h_
2#define _samplePDFDUNEBeamNDGar_h_
10#include <TGraph2DErrors.h>
16#include "covariance/covarianceXsec.h"
17#include "covariance/covarianceOsc.h"
18#include "samplePDF/samplePDFFDBase.h"
19#include "StandardRecord.h"
36 enum KinematicTypes {
kTrueNeutrinoEnergy,
kRecoNeutrinoEnergy,
kTrueXPos,
kTrueYPos,
kTrueZPos,
kTrueRad,
kNMuonsRecoOverTruth,
kRecoLepEnergy,
kTrueLepEnergy,
kRecoXPos,
kRecoYPos,
kRecoZPos,
kRecoRad,
kLepPT,
kLepPZ,
kPionMultiplicity,
kNRecoParticles,
kInFDV,
kTrueMinusRecoEnergyRatio,
kTrueMinusRecoEnergy,
kNTrueMuons,
kNRecoMuons};
162 caf::StandardRecord*
sr =
new caf::StandardRecord();
Base class for handling beam ND GAR samples.
double ReturnKinematicParameter(double KinematicVariable, int iSample, int iEvent)
Returns pointer to kinemtatic parameter for event in Structs DUNE.
void SetupWeightPointers()
Sets up pointers weights for each event (oscillation/xsec/etc.)
void Init()
Initialises object.
TFile * _sampleFile
File containing sample objects.
samplePDFDUNEBeamNDGar(std::string mc_version, covarianceXsec *xsec_cov)
Constructor.
int ReturnKinematicParameterFromString(std::string KinematicParameterStr)
Get kinematic parameter ID from string name.
TTree * _data
TTree containing sample Data.
void SetupSplines()
Sets up splines.
std::string ReturnStringFromKinematicParameter(int KinematicParameter)
Gets name of kinematic parmaeter.
double pot
Value of POT used for sample.
KinematicTypes
Enum to identify kinematics.
@ kTrueMinusRecoEnergyRatio
double CalcXsecWeightFunc(int iSample, int iEvent)
NOT IMPLEMENTED: Dunder method to calculate xsec weights.
void setupFDMC(int iSample)
Tells FD base which variables to point to/be set to.
int setupExperimentMC(int iSample)
Function to setup MC from file.
const double * GetPointerToKinematicParameter(KinematicTypes KinPar, int iSample, int iEvent)
Returns pointer to kinemtatic parameter for event in Structs DUNE.
~samplePDFDUNEBeamNDGar()
destructor
std::vector< double > ReturnKinematicParameterBinning(std::string KinematicParameter)
Gets binning for a given parameter.
float muonscore_threshold
std::vector< struct dunemc_base > dunendgarmcSamples
Array filled with MC samples for each oscillation channel.
void applyShifts(int iSample, int iEvent)
NOT IMPLEMENTED: Apply kinematic shifts.