NtpMCTruth Class Reference

#include <NtpMCTruth.h>

List of all members.

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
 index of this mctruth entry in mc array
Int_t stdhep [2]
 index range in stdhep array of associated particles
Int_t inu
 PDG id of neutrino, nu_e=12, nu_mu=14, nu_tau=16, anti=-.
Int_t inunoosc
 PDG id of un-oscillated neutrino.
Int_t itg
 PDG id of target nucleon, p=2212, n=2112.
Int_t iboson
 PDG id of exchange boson, Z0=23, W+=24.
Int_t iresonance
 resonance code
Int_t iaction
 0=NC 1=CC (2=QE 3=QE+pi)
Int_t istruckq
 PDG id of struck quark.
Int_t iflags
 generator flags
Int_t ndigu
 total number of digits in u-view
Int_t ndigv
 total number of digits in v-view
Float_t tphu
 summed pulse height u-view
Float_t tphv
 summed pulse height v-view
Float_t a
 nucleus A
Float_t z
 nucleus Z
Float_t sigma
 total cross section for this interaction
Float_t sigmadiff
 differential cross section
Float_t x
 Bj x.
Float_t y
 y
Float_t q2
 Q**2.
Float_t w2
 W**2.
Float_t emfrac
 fraction of "shower" energy which is EM
Float_t vtxx
 vertex x-pos in meters (was cm previous to 8/31/04)
Float_t vtxy
 vertex y-pos in meters (was cm previous to 8/31/04)
Float_t vtxz
 vertex z-pos in meters (was cm previous to 8/31/04)
Float_t p4neu [4]
 neutrino momentum+energy (GeV) 4-vector
Float_t p4neunoosc [4]
 unoscillated neutrino 4-vector
Float_t p4tgt [4]
 target nucleon 4-vector
Float_t p4shw [4]
 shower (hadronic+em)
Float_t p4mu1 [4]
 primary muon
Float_t p4mu2 [4]
 secondary muon (e.g. from charm production & decay)
Float_t p4el1 [4]
 first electron
Float_t p4el2 [4]
 highest E second electron
Float_t p4tau [4]
 highest E tau (may have decayed)
NtpMCFluxInfo flux
 flux info associated with primary
NtpMCFluxWgt fluxwgt
 flux weight associated with primary

Detailed Description

Definition at line 20 of file NtpMCTruth.h.


Constructor & Destructor Documentation

NtpMCTruth::NtpMCTruth (  ) 

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 }

NtpMCTruth::~NtpMCTruth (  )  [virtual]

Definition at line 49 of file NtpMCTruth.cxx.

00049                         {
00050   // Destructor
00051 }


Member Function Documentation

void NtpMCTruth::Print ( const Option_t *  option = ""  )  const [virtual]

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 }

std::ostream & NtpMCTruth::Print ( std::ostream &  os  )  const [virtual]

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 }


Member Data Documentation

Float_t NtpMCTruth::a

flux weight associated with primary

Definition at line 79 of file NtpMCTruth.h.

Referenced by NtpMCModule::FillNtpMCTruth(), and Print().

0=NC 1=CC (2=QE 3=QE+pi)

Definition at line 45 of file NtpMCTruth.h.

Referenced by NueHandScan::Ana(), MNtpModule::Ana(), NueSensitivity::Ana(), NueReadTJPID::Ana(), StdHepInfoAna::Analyze(), NueFluxWeightsAna::Analyze(), NuAnalysis::BasicPlots(), MadCluAnalysis::CallUserFunctions(), MadCluAnalysis::DataDistributions(), HitView::DrawBasicInfo(), ChainView::DrawBasicInfo(), MadEvDisplay::DrawTextBox(), MadScanDisplay::DrawTextBox(), NuAnalysis::Efficiencies(), NuAnalysis::EfficienciesOld(), NuAnalysis::EnergySpectMC(), ReweightHelpers::EventRegistryFilla(), Anp::FillTruth::Fill(), MadTVAnalysis::FillMCHists(), MadMKAnalysis::FillMCHists(), ANtpInfoObjectFiller::FillMCTruthInformation(), NtpMCModule::FillNtpMCTruth(), MadCluAnalysis::FOM(), NueDisplayModule::GetBasicInfo(), NuReco::GetPrimaryMuonStdHepIndex(), SKZPWeightCalculator::GetRFWWeight(), NuReco::GetTruthInfo(), SKZPWeightCalculator::GetWeight(), MadHandScan::HandScanDisplay(), MadQuantities::IAction(), NueAnalysisCuts::IsBackground(), NueAnalysisCuts::IsSignal(), ReweightHelpers::MCEventInfoFilla(), MinosCompactEvent::MinosCompactEvent(), MadScanDisplay::NextPass(), MadEvDisplay::NextPass(), NuAnalysis::NuMuBarAppearance(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadPIDAnalysis::PassTruthSignal(), MadTestAnalysis::PassTruthSignal(), MadCluAnalysis::PassTruthSignal(), MadUserAnalysis::PassTruthSignal(), MadDpAnalysis::PassTruthSignal(), MadCBSQEAnalysis::PassTruthSignal(), MadCluAnalysis::Plot(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), Print(), NuReco::PrintTrueEnergy(), MadQuantities::ShowerValidation(), VHS::Skim(), MadCBSQEAnalysis::TestQEDiscrim(), VHS::Train(), MadQuantities::TrueLeptonEnergy(), and MCNNRunner::WriteResults().

PDG id of exchange boson, Z0=23, W+=24.

Definition at line 41 of file NtpMCTruth.h.

Referenced by Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print().

generator flags

Definition at line 50 of file NtpMCTruth.h.

Referenced by ANtpTruthInfoBeamAna::Analyze(), Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print().

PDG id of neutrino, nu_e=12, nu_mu=14, nu_tau=16, anti=-.

Definition at line 38 of file NtpMCTruth.h.

Referenced by NueHandScan::Ana(), MNtpModule::Ana(), NueSensitivity::Ana(), NueReadTJPID::Ana(), NueFluxWeightsAna::Analyze(), NuAnalysis::BasicPlots(), MadCluAnalysis::CallUserFunctions(), MadCluAnalysis::DataDistributions(), HitView::DrawBasicInfo(), ChainView::DrawBasicInfo(), MadEvDisplay::DrawTextBox(), MadScanDisplay::DrawTextBox(), NuAnalysis::Efficiencies(), NuAnalysis::EfficienciesOld(), NuAnalysis::EnergySpectMC(), ReweightHelpers::EventRegistryFilla(), Anp::FillTruth::Fill(), ANtpInfoObjectFillerBeam::FillBeamMCTruthInformation(), MadTVAnalysis::FillMCHists(), MadMKAnalysis::FillMCHists(), ANtpInfoObjectFiller::FillMCTruthInformation(), NtpMCModule::FillNtpMCTruth(), MadCluAnalysis::FOM(), NueDisplayModule::GetBasicInfo(), NuReco::GetPrimaryMuonStdHepIndex(), SKZPWeightCalculator::GetRFWWeight(), NuReco::GetTruthInfo(), SKZPWeightCalculator::GetWeight(), MadHandScan::HandScanDisplay(), MadQuantities::INu(), NueAnalysisCuts::IsBackground(), NueAnalysisCuts::IsSignal(), ReweightHelpers::MCEventInfoFilla(), MinosCompactEvent::MinosCompactEvent(), MadScanDisplay::NextPass(), MadEvDisplay::NextPass(), NuAnalysis::NuMuBarAppearance(), NueConvention::Oscillate(), NueRWHelpers::Oscillate(), NueRWHelpers::OscillateMatter(), MadPIDAnalysis::PassTruthSignal(), MadTestAnalysis::PassTruthSignal(), MadCluAnalysis::PassTruthSignal(), MadUserAnalysis::PassTruthSignal(), MadDpAnalysis::PassTruthSignal(), MadCBSQEAnalysis::PassTruthSignal(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), Print(), VHS::Skim(), MadCBSQEAnalysis::TestQEDiscrim(), VHS::Train(), MadQuantities::TrueLeptonEnergy(), and MCNNRunner::WriteResults().

PDG id of struck quark.

Definition at line 46 of file NtpMCTruth.h.

Referenced by ANtpTruthInfoBeamAna::Analyze(), Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print().

PDG id of target nucleon, p=2212, n=2112.

Definition at line 40 of file NtpMCTruth.h.

Referenced by ANtpTruthInfoBeamAna::Analyze(), Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), NuReco::GetTruthInfo(), and Print().

total number of digits in u-view

Definition at line 51 of file NtpMCTruth.h.

Referenced by Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print().

total number of digits in v-view

Definition at line 52 of file NtpMCTruth.h.

Referenced by Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print().

Float_t NtpMCTruth::p4el1[4]
Float_t NtpMCTruth::p4el2[4]

highest E second electron

Definition at line 75 of file NtpMCTruth.h.

Referenced by NtpMCModule::FillNtpMCTruth(), NtpMCTruth(), and Print().

Float_t NtpMCTruth::p4mu1[4]
Float_t NtpMCTruth::p4mu2[4]

secondary muon (e.g. from charm production & decay)

Definition at line 73 of file NtpMCTruth.h.

Referenced by NtpMCModule::FillNtpMCTruth(), NtpMCTruth(), and Print().

Float_t NtpMCTruth::p4neu[4]
Float_t NtpMCTruth::p4shw[4]
Float_t NtpMCTruth::p4tau[4]
Float_t NtpMCTruth::p4tgt[4]
Float_t NtpMCTruth::q2

differential cross section

Definition at line 58 of file NtpMCTruth.h.

Referenced by ANtpTruthInfoBeamAna::Analyze(), Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print().

summed pulse height u-view

Definition at line 53 of file NtpMCTruth.h.

Referenced by Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print().

summed pulse height v-view

Definition at line 54 of file NtpMCTruth.h.

Referenced by Anp::FillTruth::Fill(), NtpMCModule::FillNtpMCTruth(), and Print().

Float_t NtpMCTruth::w2
Float_t NtpMCTruth::x
Float_t NtpMCTruth::y
Float_t NtpMCTruth::z

The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1