28 inline int GetOscChannel(
const std::vector<OscChannelInfo>& OscChannel,
const int InitFlav,
const int FinalFlav) {
29 for (
size_t i = 0; i < OscChannel.size(); ++i) {
30 if (InitFlav == OscChannel[i].InitPDG && FinalFlav == OscChannel[i].FinalPDG) {
31 return static_cast<int>(OscChannel[i].ChannelIndex);
35 MACH3LOG_ERROR(
"Didn't find Osc channel for InitFlav = {}, FinalFlav = {}", InitFlav, FinalFlav);
63 std::vector<std::vector<std::string>>
mc_files;
int GetOscChannel(const std::vector< OscChannelInfo > &OscChannel, const int InitFlav, const int FinalFlav)
KS: Get Osc Channel Index based on initial and final PDG codes.
Custom exception class used throughout MaCh3.
constexpr static const int _BAD_INT_
Default value used for int initialisation.
KS: Store info about used osc channels.
int InitPDG
PDG of initial flavour.
double ChannelIndex
In case experiment specific would like to have pointer to channel after using GetOscChannel,...
int FinalPDG
PDG of oscillated/final flavour.
std::string flavourName
Name of osc channel.
std::string flavourName_Latex
Fancy channel name (e.g., LaTeX formatted)
KS: Store info about MC sample.
TH1 * W2Hist
histogram used for plotting storing W2 distribution
std::string SampleName
tag for sample used to easily set by which uncertainties should be affected
TH1 * DataHist
histogram used for plotting storing data distribution
int nDimensions
Keep track of the dimensions of the sample binning.
std::vector< OscChannelInfo > OscChannels
Stores info about oscillation channel for a single sample.
SampleInfo()=default
Default constructor.
std::vector< std::string > VarStr
the strings associated with the variables used for the binning e.g. "RecoNeutrinoEnergy"
std::string SampleTitle
the name of this sample e.g."muon-like" used for printing
std::vector< std::string > spline_files
names of spline files associated associated with this object
TH1 * MCHist
histogram used for plotting storing MC distribution
std::vector< std::vector< std::string > > mc_files
names of mc files associated associated with this object