MaCh3 DUNE 1.0.0
Reference Guide
|
Base class for handling FD Beam samples. More...
#include <samplePDFDUNE/samplePDFDUNEBeamFD.h>
Public Types | |
enum | KinematicTypes { kTrueNeutrinoEnergy , kRecoNeutrinoEnergy , kTrueXPos , kTrueYPos , kTrueZPos , kCVNNumu , kCVNNue , kM3Mode , kOscChannel , kIsFHC } |
Public Member Functions | |
samplePDFDUNEBeamFD (std::string mc_version, covarianceXsec *xsec_cov, covarianceOsc *osc_cov) | |
samplePDFDUNE FD beam Constructor | |
~samplePDFDUNEBeamFD () | |
destructor | |
TH1D * | get1DVarHist (KinematicTypes Var1, int fModeToFill=-1, int fSampleToFill=-1, int WeightStyle=0, TAxis *Axis=0) |
Getter to make plots in different variables, mode, osc channel, systematic weighting and with bin range. | |
TH1D * | get1DVarHist (KinematicTypes Var1, std::vector< std::vector< double > > Selection, int WeightStyle=0, TAxis *Axis=0) |
Getter to make plots in different variables, mode, osc channel, systematic weighting and with bin range. | |
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 () |
Setup our spline file, this calls InitialseSplineObject() under the hood. | |
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. | |
const double * | GetPointerToKinematicParameter (std::string KinematicParameter, 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. | |
std::vector< double > | ReturnKinematicParameterBinning (std::string KinematicParameter) |
int | ReturnKinematicParameterFromString (std::string KinematicParameterStr) |
std::string | ReturnStringFromKinematicParameter (int KinematicParameterStr) |
double | CalcXsecWeightFunc (int iSample, int iEvent) |
NOT IMPLEMENTED: Dunder method to calculate xsec weights. | |
void | applyShifts (int iSample, int iEvent) |
Apply kinematic shifts. | |
Base class for handling FD Beam samples.
Definition at line 22 of file samplePDFDUNEBeamFD.h.
Enumerator | |
---|---|
kTrueNeutrinoEnergy | |
kRecoNeutrinoEnergy | |
kTrueXPos | |
kTrueYPos | |
kTrueZPos | |
kCVNNumu | |
kCVNNue | |
kM3Mode | |
kOscChannel | |
kIsFHC |
Definition at line 36 of file samplePDFDUNEBeamFD.h.
samplePDFDUNEBeamFD::samplePDFDUNEBeamFD | ( | std::string | mc_version, |
covarianceXsec * | xsec_cov, | ||
covarianceOsc * | osc_cov ) |
samplePDFDUNE FD beam Constructor
mc_version | Config Name |
xsec_cov | Cross-section covariance matrix |
osc_cov | Oscillation covariance matrix |
Definition at line 10 of file samplePDFDUNEBeamFD.cpp.
samplePDFDUNEBeamFD::~samplePDFDUNEBeamFD | ( | ) |
|
protected |
Apply kinematic shifts.
iSample | Sample Number |
iEvent | Event number |
Definition at line 742 of file samplePDFDUNEBeamFD.cpp.
|
inlineprotected |
NOT IMPLEMENTED: Dunder method to calculate xsec weights.
iSample | sample ID |
iEvent | Event number |
Definition at line 113 of file samplePDFDUNEBeamFD.h.
TH1D * samplePDFDUNEBeamFD::get1DVarHist | ( | KinematicTypes | Var1, |
int | fModeToFill = -1, | ||
int | fSampleToFill = -1, | ||
int | WeightStyle = 0, | ||
TAxis * | Axis = 0 ) |
Getter to make plots in different variables, mode, osc channel, systematic weighting and with bin range.
Var1 | Variable kinematic type |
fModeToFill | [default: -1] Mode to fill, -1 indicates all mdoes |
fSampleToFill | [default: -1] Sample to fill, -1 indicates all samples |
WeightStyle | [default: 0] If weight style==1 use *(MCSamples[i].osc_w_pointer[j]) * dunemcSamples[i].pot_s * dunemcSamples[i].norm_s * dunemcSamples[i].flux_w[j] instead |
Axis | NOTE: UNUSED |
Definition at line 398 of file samplePDFDUNEBeamFD.cpp.
TH1D * samplePDFDUNEBeamFD::get1DVarHist | ( | KinematicTypes | Var1, |
std::vector< std::vector< double > > | SelectionVec, | ||
int | WeightStyle = 0, | ||
TAxis * | Axis = 0 ) |
Getter to make plots in different variables, mode, osc channel, systematic weighting and with bin range.
Var1 | Variable kinematic type |
Selection | Selection to apply to hist |
WeightStyle | [default: 0] If weight style==1 use *(MCSamples[i].osc_w_pointer[j]) * dunemcSamples[i].pot_s * dunemcSamples[i].norm_s * dunemcSamples[i].flux_w[j] instead |
Axis | NOTE: UNUSED |
DB New version of get1DVarHist which only fills histogram with events passing IsEventSelected This works by having the Selection vector, where each component of Selection is a 2 or 3 length vector If Selection[i].size()==3, Selection[i][0] is the ND280KinematicType which is being cut, and only events with ND280KinematicType values between Selection[i][1] and Selection[i][2] are accepted
Definition at line 449 of file samplePDFDUNEBeamFD.cpp.
|
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 658 of file samplePDFDUNEBeamFD.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 612 of file samplePDFDUNEBeamFD.cpp.
|
protected |
Initialises object.
Definition at line 18 of file samplePDFDUNEBeamFD.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 533 of file samplePDFDUNEBeamFD.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 574 of file samplePDFDUNEBeamFD.cpp.
|
protected |
Definition at line 822 of file samplePDFDUNEBeamFD.cpp.
|
inlineprotected |
Definition at line 646 of file samplePDFDUNEBeamFD.cpp.
|
inlineprotected |
Definition at line 692 of file samplePDFDUNEBeamFD.cpp.
|
protected |
Function to setup MC from file.
iSample | sample ID |
Definition at line 204 of file samplePDFDUNEBeamFD.cpp.
|
protected |
Tells FD base which variables to point to/be set to.
iSample | Sample ID |
Definition at line 727 of file samplePDFDUNEBeamFD.cpp.
|
protected |
Setup our spline file, this calls InitialseSplineObject() under the hood.
Definition at line 172 of file samplePDFDUNEBeamFD.cpp.
|
protected |
Sets up pointers weights for each event (oscillation/xsec/etc.)
Definition at line 188 of file samplePDFDUNEBeamFD.cpp.
|
protected |
Definition at line 172 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 152 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 151 of file samplePDFDUNEBeamFD.h.
|
protected |
TTree containing sample Data.
Definition at line 131 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 164 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 160 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 163 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 162 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 161 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 138 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 140 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 141 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 142 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 143 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 139 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 149 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 145 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 148 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 147 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 146 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 158 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 175 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 179 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 159 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 168 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 169 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 170 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 171 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 180 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 173 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 135 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 165 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 166 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 167 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 174 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 177 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 176 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 133 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 181 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 178 of file samplePDFDUNEBeamFD.h.
|
protected |
File containing sample objects.
Definition at line 128 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 153 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 154 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 155 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 206 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 205 of file samplePDFDUNEBeamFD.h.
|
protected |
DUNE MC sampels.
Definition at line 122 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 198 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 200 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 199 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 204 of file samplePDFDUNEBeamFD.h.
|
protected |
FD Detector Systematics.
Definition at line 209 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 189 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 191 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 190 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 201 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 183 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 192 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 194 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 193 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 202 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 195 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 197 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 196 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 203 of file samplePDFDUNEBeamFD.h.
|
protected |
Number of FD Detector Systematics.
Definition at line 212 of file samplePDFDUNEBeamFD.h.
|
protected |
Value of POT used for sample.
Definition at line 125 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 186 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 188 of file samplePDFDUNEBeamFD.h.
|
protected |
Definition at line 187 of file samplePDFDUNEBeamFD.h.