MIPPNumiYieldsBins.h
Go to the documentation of this file.
1 #ifndef MIPPNUMIYIELDSBINS_H
2 #define MIPPNUMIYIELDSBINS_H
3 
4 #include <utility>
5 #include <map>
6 #include <vector>
7 
8 namespace NeutrinoFluxReweight{
9 
10  /*! \class MIPPNumiYieldsBins
11  * \brief A class to manage the bin definitions for MIPP Numi Yields
12  */
14 
15  private:
17 
18  public:
20 
21  //! Read a xml pip file name to parse the bins
22  void pip_data_from_xml(const char* filename);
23 
24  //! Read a xml pim file name to parse the bins
25  void pim_data_from_xml(const char* filename);
26 
27  //! Read a xml kaons over pions file name to parse the bins
28  void k_pi_data_from_xml(const char* filename);
29 
30  //! Return the Bin ID for this data
31  int BinID(double pz,double pt, int pdgcode);
32 
37 
38  //Number of bins:
41  int GetNbins_K_MIPPNuMI();
42 
43  private:
45 
46  };
47 
48 
49 
50 }
51 #endif
void k_pi_data_from_xml(const char *filename)
Read a xml kaons over pions file name to parse the bins.
void pim_data_from_xml(const char *filename)
Read a xml pim file name to parse the bins.
string filename
Definition: train.py:213
int BinID(double pz, double pt, int pdgcode)
Return the Bin ID for this data.
A class to manage the bin definitions for MIPP Numi Yields.
static MIPPNumiYieldsBins * getInstance()
void pip_data_from_xml(const char *filename)
Read a xml pip file name to parse the bins.