FillIMapHists.h
Go to the documentation of this file.
1 #ifndef FILLIMAPHISTS_H
2 #define FILLIMAPHISTS_H
3 
4 #include "CommonIMapIncludes.h"
5 #include "TChain.h"
6 #include "dk2nu/tree/dk2nu.h"
7 #include "dk2nu/tree/dkmeta.h"
8 #include <string>
9 
18 
20  float elow, ehigh;
21  Int_t nuid;
23 };
24 
26 
29 
36 
37 };
38 
39 
40 /*! \fn FillIMapHists
41  * \brief Fills the interaction map hists, looping over dk2nu input
42  * Loop over the events in the Dk2Nu chain passed in and call FillOneEntry()
43  * returns the total weight = total number of neutrino interactions which
44  * were used to fill the plots (non integer since g4numi is a weighted MC)
45  */
46 double FillIMapHists(TChain* tdk2nu, TChain* dkmeta, HistList* hists, const FillIMapHistsOpts* opts);
47 
48 /*! \fn FillOneEntry
49  * \brief Fill hists with the data inside of the dk2nu and dkmeta ntuples
50  * This is a reimplementation of the routine originally written by
51  * Maria (Majo) Bustamante and Leo Aliaga, and improved by others.
52  *
53  * this function returns the weight used in filling the histograms,
54  * which is zero if the event was skipped, but otherwise corresponds
55  * to the product of the decay and importance weights.
56  */
57 double FillOneEntry(bsim::Dk2Nu* dk2nu, bsim::DkMeta* dkmeta, HistList* hists, const FillIMapHistsOpts* opts, FillIMapHistsReweighters* reweighters);
58 
59 
60 int FindIndexFromVolume(const std::string& volname);
61 
62 int FindIndexFromParticleName(const std::string& wanted);
63 
64 #endif // FILLIMAPHISTS_H
NeutrinoFluxReweight::MIPPNumiKaonYieldsReweighter * NumiKaons
Definition: FillIMapHists.h:28
Reweighter of thin target nucleonA interactions.
double FillOneEntry(bsim::Dk2Nu *dk2nu, bsim::DkMeta *dkmeta, HistList *hists, const FillIMapHistsOpts *opts, FillIMapHistsReweighters *reweighters)
NeutrinoFluxReweight::ThinTargetMesonIncidentReweighter * ThinTargetMesonIncident
Definition: FillIMapHists.h:34
std::string string
Definition: nybbler.cc:12
Reweighter of thin target nC interactions.
Reweighter of thin target pion production.
double FillIMapHists(TChain *tdk2nu, TChain *dkmeta, HistList *hists, const FillIMapHistsOpts *opts)
NeutrinoFluxReweight::ThinTargetpCPionReweighter * ThinTargetpCPion
Definition: FillIMapHists.h:30
Reweight a chain of interactions that are covered by the NuMI target pi+ and pi- yields measured by M...
NeutrinoFluxReweight::MIPPNumiPionYieldsReweighter * NumiPions
Definition: FillIMapHists.h:27
NeutrinoFluxReweight::ThinTargetnucleonAReweighter * ThinTargetnucleonA
Definition: FillIMapHists.h:35
NeutrinoFluxReweight::ThinTargetpCKaonReweighter * ThinTargetpCKaon
Definition: FillIMapHists.h:31
opts
Definition: ECLAPI.py:241
int FindIndexFromParticleName(const std::string &wanted)
int FindIndexFromVolume(const std::string &volname)
Reweight a chain of interactions that are covered by the NuMI target K/pi ratios measured by MIPP...
NeutrinoFluxReweight::ThinTargetnCPionReweighter * ThinTargetnCPion
Definition: FillIMapHists.h:32
NeutrinoFluxReweight::ThinTargetpCNucleonReweighter * ThinTargetpCNucleon
Definition: FillIMapHists.h:33