#include <MCTruth.h>
Public Member Functions | |
| MCTruth () | |
| ~MCTruth () | |
| int | NuType () const |
| int | CCNC () const |
| int | Mode () const |
| double | Enu () const |
| double | Flux (int pdgcode, int which=0) const |
| int | NParticles () const |
| const TParticle & | GetParticle (int i) const |
| void | Add (TParticle &part) |
| void | SetNeutrino (int id, double enu) |
| void | SetCCNC (int type) |
| void | SetMode (int type) |
| void | SetFluxPos (double nue, double nuebar, double numu, double numubar, double nutau, double nutaubar) |
| void | SetFluxNeg (double nue, double nuebar, double numu, double numubar, double nutau, double nutaubar) |
| void | SetFluxGen (double nue, double nuebar, double numu, double numubar, double nutau, double nutaubar) |
| void | Print () |
Private Member Functions | |
| ClassDef (MCTruth, 3) | |
Private Attributes | |
| std::vector< TParticle > | fPartList |
| int | fNuType |
| PDG code of incident neutrino. | |
| int | fMode |
| Interaction mode (QE/1-pi/DIS...). | |
| int | fCCNC |
| CC or NC interaction? | |
| float | fEnu |
| Incident neutrino energy. | |
| float | fFluxPos [6] |
| e,ebar,mu,mubar,tau,taubar flux, +horn focus | |
| float | fFluxNeg [6] |
| Fluxes as aboce, for negative horn focus. | |
| float | fFluxGen [6] |
| Fluxes as above, assumed by generator. | |
Definition at line 39 of file MCTruth.h.
|
|
Definition at line 15 of file MCTruth.cxx. References fFluxGen, fFluxNeg, and fFluxPos.
|
|
|
Definition at line 102 of file MCTruth.cxx.
00102 { }
|
|
|
Definition at line 56 of file MCTruth.h. References fPartList. Referenced by main(), and evgen::CRYGen::Sample().
00056 { fPartList.push_back(part); }
|
|
|
Definition at line 46 of file MCTruth.h. References fCCNC. Referenced by mcchk::GenCheck::Ana().
00046 { return fCCNC; }
|
|
||||||||||||
|
|
|
|
Definition at line 49 of file MCTruth.h. References fEnu. Referenced by mcchk::GenCheck::Ana().
00049 { return fEnu; }
|
|
||||||||||||
|
Flux of neutrinos at the same energy
Definition at line 33 of file MCTruth.cxx. References fFluxGen, fFluxNeg, fFluxPos, sim::kGenerator, sim::kMinusFocus, and sim::kPlusFocus. Referenced by mcchk::GenCheck::Ana().
00034 {
00035 const float* flux = 0;
00036 if (which==kGenerator) flux = fFluxGen;
00037 if (which==kPlusFocus) flux = fFluxPos;
00038 if (which==kMinusFocus) flux = fFluxNeg;
00039 if (pdgcode== 12) return flux[0];
00040 if (pdgcode==-12) return flux[1];
00041 if (pdgcode== 14) return flux[2];
00042 if (pdgcode==-14) return flux[3];
00043 if (pdgcode== 16) return flux[4];
00044 if (pdgcode==-16) return flux[5];
00045 return 0.0;
00046 }
|
|
|
Definition at line 53 of file MCTruth.h. References fPartList.
00053 {return fPartList[i]; }
|
|
|
Definition at line 47 of file MCTruth.h. References fMode.
00047 { return fMode; }
|
|
|
Definition at line 52 of file MCTruth.h. References fPartList.
00052 { return (int)fPartList.size(); }
|
|
|
Definition at line 45 of file MCTruth.h. References fNuType. Referenced by mcchk::GenCheck::Ana().
00045 { return fNuType; }
|
|
|
Definition at line 83 of file MCTruth.cxx. References fPartList. Referenced by main().
00084 {
00085 for (unsigned int i=0; i<fPartList.size(); ++i) {
00086 std::cout << i << ") "
00087 << fPartList[i].GetName() << "\t"
00088 << "["
00089 << fPartList[i].Vx() << ","
00090 << fPartList[i].Vy() << ","
00091 << fPartList[i].Vz() << ","
00092 << fPartList[i].T()
00093 << "] ["
00094 << fPartList[i].Px() << ","
00095 << fPartList[i].Py() << ","
00096 << fPartList[i].Pz()
00097 << "]"
00098 << std::endl;
00099 }
00100 }
|
|
|
Definition at line 58 of file MCTruth.h. References fCCNC.
00058 { fCCNC = type; }
|
|
||||||||||||||||||||||||||||
|
Definition at line 72 of file MCTruth.cxx. References fFluxGen.
|
|
||||||||||||||||||||||||||||
|
Definition at line 61 of file MCTruth.cxx. References fFluxNeg.
|
|
||||||||||||||||||||||||||||
|
Definition at line 50 of file MCTruth.cxx. References fFluxPos.
|
|
|
Definition at line 59 of file MCTruth.h. References fMode.
00059 { fMode = type; }
|
|
||||||||||||
|
Definition at line 57 of file MCTruth.h.
|
|
|
CC or NC interaction?
|
|
|
Incident neutrino energy.
Definition at line 78 of file MCTruth.h. Referenced by Enu(), and SetNeutrino(). |
|
|
Fluxes as above, assumed by generator.
Definition at line 82 of file MCTruth.h. Referenced by Flux(), MCTruth(), and SetFluxGen(). |
|
|
Fluxes as aboce, for negative horn focus.
Definition at line 81 of file MCTruth.h. Referenced by Flux(), MCTruth(), and SetFluxNeg(). |
|
|
e,ebar,mu,mubar,tau,taubar flux, +horn focus
Definition at line 80 of file MCTruth.h. Referenced by Flux(), MCTruth(), and SetFluxPos(). |
|
|
Interaction mode (QE/1-pi/DIS...).
|
|
|
PDG code of incident neutrino.
Definition at line 75 of file MCTruth.h. Referenced by NuType(), and SetNeutrino(). |
|
|
Definition at line 73 of file MCTruth.h. Referenced by Add(), GetParticle(), NParticles(), and Print(). |
1.3.5