#include <NtpMCTruth.h>
Public Member Functions | |
| NtpMCTruth () | |
| virtual | ~NtpMCTruth () |
| virtual std::ostream & | Print (std::ostream &os) const |
| virtual void | Print (const Option_t *option="") const |
Public Attributes | |
| UShort_t | index |
| Int_t | stdhep [2] |
| Int_t | inu |
| Int_t | inunoosc |
| Int_t | itg |
| Int_t | iboson |
| Int_t | iresonance |
| Int_t | iaction |
| Int_t | istruckq |
| Int_t | iflags |
| Int_t | ndigu |
| Int_t | ndigv |
| Float_t | tphu |
| Float_t | tphv |
| Float_t | a |
| Float_t | z |
| Float_t | sigma |
| Float_t | sigmadiff |
| Float_t | x |
| Float_t | y |
| Float_t | q2 |
| Float_t | w2 |
| Float_t | emfrac |
| Float_t | vtxx |
| Float_t | vtxy |
| Float_t | vtxz |
| Float_t | p4neu [4] |
| Float_t | p4neunoosc [4] |
| Float_t | p4tgt [4] |
| Float_t | p4shw [4] |
| Float_t | p4mu1 [4] |
| Float_t | p4mu2 [4] |
| Float_t | p4el1 [4] |
| Float_t | p4el2 [4] |
| Float_t | p4tau [4] |
| NtpMCFluxInfo | flux |
| NtpMCFluxWgt | fluxwgt |
|
|
Definition at line 24 of file NtpMCTruth.cxx. References LoadMinosPDG(), p4el1, p4el2, p4mu1, p4mu2, p4neu, p4neunoosc, p4shw, p4tau, p4tgt, and stdhep. 00024 : 00025 index(0),inu(0),inunoosc(0),itg(0),iboson(0), 00026 iresonance(0),iaction(0),istruckq(0x7fffffff),iflags(0x7ffffff), 00027 ndigu(0),ndigv(0),tphu(0),tphv(0),a(0),z(0),sigma(0),sigmadiff(0), 00028 x(0),y(0),q2(0),w2(0),emfrac(0),vtxx(0),vtxy(0),vtxz(0),flux(),fluxwgt() { 00029 // Default constructor 00030 00031 LoadMinosPDG(); 00032 00033 for ( int i = 0; i < 2; i++ ) { stdhep[i] = -1; } 00034 00035 for ( int i = 0; i < 4; i++ ) { 00036 p4neu[i] = 0.; 00037 p4neunoosc[i] = 0.; 00038 p4tgt[i] = 0.; 00039 p4shw[i] = 0.; 00040 p4mu1[i] = 0.; 00041 p4mu2[i] = 0.; 00042 p4el1[i] = 0.; 00043 p4el2[i] = 0.; 00044 p4tau[i] = 0.; 00045 } 00046 00047 }
|
|
|
Definition at line 49 of file NtpMCTruth.cxx. 00049 {
00050 // Destructor
00051 }
|
|
|
Definition at line 115 of file NtpMCTruth.cxx. References Print(). 00115 {
00116 //
00117 // Purpose: Print mc truth data in form supported by TObject::Print.
00118 //
00119 // Arguments: option (not used)
00120 //
00121
00122 Print(std::cout);
00123 return;
00124
00125 }
|
|
|
Definition at line 54 of file NtpMCTruth.cxx. References a, emfrac, flux, fluxwgt, iaction, iboson, iflags, index, inu, inunoosc, iresonance, istruckq, itg, ndigu, ndigv, p4el1, p4el2, p4mu1, p4mu2, p4neu, p4neunoosc, p4shw, p4tau, p4tgt, q2, sigma, sigmadiff, stdhep, tphu, tphv, vtxx, vtxy, vtxz, w2, x, y, and z. Referenced by inuke_reweight::calc_weights(), MadScanDisplay::EventDump(), MadEvDisplay::EventDump(), Print(), and inuke_reweight::test_fill_stdhep(). 00054 {
00055 //
00056 // Purpose: Print mc truth data on ostream.
00057 //
00058
00059 const TDatabasePDG& dbpdg = *(TDatabasePDG::Instance());
00060
00061 os << "NtpMCTruth::Print" << endl;
00062 std::string nuname = "???";
00063 if (dbpdg.GetParticle(inu)) nuname = dbpdg.GetParticle(inu)->GetName();
00064 std::string nunooscname = "???";
00065 if (dbpdg.GetParticle(inunoosc)) nunooscname
00066 = dbpdg.GetParticle(inunoosc)->GetName();
00067 std::string tgtname = "???";
00068 if ( dbpdg.GetParticle(itg) ) tgtname = dbpdg.GetParticle(itg)->GetName();
00069 std::string bosonname = "???";
00070 if ( dbpdg.GetParticle(iboson) ) bosonname
00071 = dbpdg.GetParticle(iboson)->GetName();
00072
00073 os << "mc index " << index << " stdhep index range " << stdhep[0]
00074 << "-" << stdhep[1] << endl;
00075 os << "neu: " << inu << "/" << nuname.c_str()
00076 << ", un-osc neu: " << inunoosc << "/" << nunooscname.c_str() << endl;
00077 os << "target nucleon: " << itg << "/" << tgtname.c_str()
00078 << ", exchange boson: " << iboson << "/" << bosonname.c_str()
00079 << endl;
00080 os << "resonance " << iresonance << " action " << iaction
00081 << " istruckq " << istruckq << " iflags " << iflags
00082 << " nucleus (Z,A) (" << z << "," << a << ")" << endl;
00083 os << "cross section " << sigma << " (total) "
00084 << sigmadiff << " (differential) "
00085 << " x " << x << " y " << y
00086 << " q**2 " << q2 << " w**2 " << w2 << endl;
00087 os << "emfrac " << emfrac << " vtx(x,y,z(m)) (" << vtxx << ","
00088 << vtxy << "," << vtxz << ")" << endl;
00089 os << "p4neu(GeV) (" << p4neu[0] << "," << p4neu[1] << "," << p4neu[2]
00090 << "," << p4neu[3] << ")" << endl;
00091 os << "p4neunoosc(GeV) (" << p4neunoosc[0] << "," << p4neunoosc[1] << ","
00092 << p4neunoosc[2] << "," << p4neunoosc[3] << ")" << endl;
00093 os << "p4tgt(GeV) (" << p4tgt[0] << "," << p4tgt[1] << "," << p4tgt[2]
00094 << "," << p4tgt[3] << ")" << endl;
00095 os << "p4shw(GeV) (" << p4shw[0] << "," << p4shw[1] << "," << p4shw[2]
00096 << "," << p4shw[3] << ")" << endl;
00097 os << "p4mu1(GeV) (" << p4mu1[0] << "," << p4mu1[1] << "," << p4mu1[2]
00098 << "," << p4mu1[3] << ")" << endl;
00099 os << "p4mu2(GeV) (" << p4mu2[0] << "," << p4mu2[1] << "," << p4mu2[2]
00100 << "," << p4mu2[3] << ")" << endl;
00101 os << "p4el1(GeV) (" << p4el1[0] << "," << p4el1[1] << "," << p4el1[2]
00102 << "," << p4el1[3] << ")" << endl;
00103 os << "p4el2(GeV) (" << p4el2[0] << "," << p4el2[1] << "," << p4el2[2]
00104 << "," << p4el2[3] << ")" << endl;
00105 os << "p4tau(GeV) (" << p4tau[0] << "," << p4tau[1] << "," << p4tau[2]
00106 << "," << p4tau[3] << ")" << endl;
00107 os << "ndigits(u,v) (" << ndigu << "," << ndigv << ")"
00108 << ", summed ph(u,v) (" << tphu << "," << tphv << ")" << endl;
00109 os<< "Flux Info: "<< flux << endl;
00110 os<< "Flux Wgt: "<< fluxwgt << endl;
00111 return os;
00112
00113 }
|
|
|
Definition at line 55 of file NtpMCTruth.h. Referenced by ReweightHelpers::EventRegistryFilla(), Anp::FillTruth::Fill(), ANtpInfoObjectFillerBeam::FillBeamMCTruthInformation(), NtpMCModule::FillNtpMCTruth(), NuReco::GetTruthInfo(), ReweightHelpers::MCEventInfoFilla(), MadQuantities::Nucleus(), and Print(). |
|
|
|
|
Definition at line 79 of file NtpMCTruth.h. Referenced by NtpMCModule::FillNtpMCTruth(), and Print(). |
|
|
|
Definition at line 41 of file NtpMCTruth.h. Referenced by Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print(). |
|
|
Definition at line 50 of file NtpMCTruth.h. Referenced by ANtpTruthInfoBeamAna::Analyze(), Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print(). |
|
|
Definition at line 36 of file NtpMCTruth.h. Referenced by StdHepInfoAna::Analyze(), NuAnalysis::Efficiencies(), NuAnalysis::EnergySpectMC(), Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), NuAnalysis::NuMuBarAppearance(), Print(), and NuReco::PrintTrueEnergy(). |
|
|
|
|
|
Definition at line 46 of file NtpMCTruth.h. Referenced by ANtpTruthInfoBeamAna::Analyze(), Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print(). |
|
|
Definition at line 40 of file NtpMCTruth.h. Referenced by ANtpTruthInfoBeamAna::Analyze(), Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), NuReco::GetTruthInfo(), and Print(). |
|
|
Definition at line 51 of file NtpMCTruth.h. Referenced by Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print(). |
|
|
Definition at line 52 of file NtpMCTruth.h. Referenced by Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print(). |
|
|
|
Definition at line 75 of file NtpMCTruth.h. Referenced by NtpMCModule::FillNtpMCTruth(), NtpMCTruth(), and Print(). |
|
|
|
Definition at line 73 of file NtpMCTruth.h. Referenced by NtpMCModule::FillNtpMCTruth(), NtpMCTruth(), and Print(). |
|
|
|
Definition at line 68 of file NtpMCTruth.h. Referenced by MadScanDisplay::Display(), MadEvDisplay::Display(), MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), Anp::FillTruth::Fill(), ANtpInfoObjectFillerBeam::FillBeamMCTruthInformation(), NtpMCModule::FillNtpMCTruth(), NtpMCTruth(), and Print(). |
|
|
|
Definition at line 76 of file NtpMCTruth.h. Referenced by MadHandScan::Cheat(), ANtpInfoObjectFiller::FillMCTruthInformation(), NtpMCModule::FillNtpMCTruth(), ANtpTruthInfoBeamAna::Get3Momenta(), MadHandScan::HandScanDisplay(), NtpMCTruth(), Print(), and MadQuantities::TrueLeptonEnergy(). |
|
|
Definition at line 70 of file NtpMCTruth.h. Referenced by ReweightHelpers::EventRegistryFilla(), Anp::FillTruth::Fill(), ANtpInfoObjectFiller::FillMCTruthInformation(), NtpMCModule::FillNtpMCTruth(), NuReco::GetTruthInfo(), ReweightHelpers::MCEventInfoFilla(), NtpMCTruth(), Print(), and MadQuantities::Target4Vector(). |
|
|
Definition at line 61 of file NtpMCTruth.h. Referenced by MNtpModule::Ana(), ReweightHelpers::EventRegistryFilla(), Anp::FillTruth::Fill(), ANtpInfoObjectFillerBeam::FillBeamMCTruthInformation(), NtpMCModule::FillNtpMCTruth(), NuReco::GetTruthInfo(), ReweightHelpers::MCEventInfoFilla(), Print(), MadQuantities::Q2(), and VHS::Skim(). |
|
|
Definition at line 57 of file NtpMCTruth.h. Referenced by Anp::FillTruth::Fill(), ANtpInfoObjectFillerBeam::FillBeamMCTruthInformation(), NtpMCModule::FillNtpMCTruth(), and Print(). |
|
|
Definition at line 58 of file NtpMCTruth.h. Referenced by ANtpTruthInfoBeamAna::Analyze(), Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print(). |
|
|
|
Definition at line 53 of file NtpMCTruth.h. Referenced by Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print(). |
|
|
Definition at line 54 of file NtpMCTruth.h. Referenced by Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print(). |
|
|
|
|
|
|
Definition at line 59 of file NtpMCTruth.h. Referenced by MNtpModule::Ana(), ReweightHelpers::EventRegistryFilla(), Anp::FillTruth::Fill(), ANtpInfoObjectFillerBeam::FillBeamMCTruthInformation(), NtpMCModule::FillNtpMCTruth(), NuReco::GetTruthInfo(), ReweightHelpers::MCEventInfoFilla(), Print(), VHS::Skim(), and MadQuantities::X(). |
|
|
|
Definition at line 56 of file NtpMCTruth.h. Referenced by ReweightHelpers::EventRegistryFilla(), Anp::FillTruth::Fill(), ANtpInfoObjectFillerBeam::FillBeamMCTruthInformation(), NtpMCModule::FillNtpMCTruth(), NuReco::GetTruthInfo(), ReweightHelpers::MCEventInfoFilla(), MadQuantities::Nucleus(), and Print(). |
1.3.9.1