Public Member Functions | Private Attributes | Friends | List of all members
simb::MCNeutrino Class Reference

Event generator information. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/nusimdata/v1_16_04/source/nusimdata/SimulationBase/MCNeutrino.h"

Public Member Functions

 MCNeutrino ()
 
 MCNeutrino (simb::MCParticle &nu, simb::MCParticle &lep, int CCNC, int mode, int interactionType, int target, int nucleon, int quark, double w, double x, double y, double qsqr)
 nu is the incoming neutrino and lep is the outgoing lepton More...
 
const simb::MCParticleNu () const
 
const simb::MCParticleLepton () const
 
int CCNC () const
 
int Mode () const
 
int InteractionType () const
 
int Target () const
 
int HitNuc () const
 
int HitQuark () const
 
double W () const
 
double X () const
 
double Y () const
 
double QSqr () const
 
double Pt () const
 transverse momentum of interaction, in GeV/c More...
 
double Theta () const
 angle between incoming and outgoing leptons, in radians More...
 

Private Attributes

simb::MCParticle fNu
 the incoming neutrino More...
 
simb::MCParticle fLepton
 the outgoing lepton More...
 
int fMode
 Interaction mode (QE/1-pi/DIS...) see enum list. More...
 
int fInteractionType
 More detailed interaction type, see enum list below kNuanceOffset. More...
 
int fCCNC
 CC or NC interaction? see enum list. More...
 
int fTarget
 Nuclear target, as PDG code. More...
 
int fHitNuc
 Hit nucleon (2212 (proton) or 2112 (neutron)) More...
 
int fHitQuark
 For DIS events only, as PDG code. More...
 
double fW
 Hadronic invariant mass, in GeV. More...
 
double fX
 Bjorken x=Q^2/(2M*(E_neutrino-E_lepton)), unitless. More...
 
double fY
 Inelasticity y=1-(E_lepton/E_neutrino), unitless. More...
 
double fQSqr
 Momentum transfer Q^2, in GeV^2. More...
 

Friends

std::ostream & operator<< (std::ostream &output, const simb::MCNeutrino &mcnu)
 

Detailed Description

Event generator information.

Definition at line 18 of file MCNeutrino.h.

Constructor & Destructor Documentation

simb::MCNeutrino::MCNeutrino ( )

Definition at line 17 of file MCNeutrino.cxx.

18  : fNu ()
19  , fLepton ()
30  {
31  }
double fX
Bjorken x=Q^2/(2M*(E_neutrino-E_lepton)), unitless.
Definition: MCNeutrino.h:34
int fTarget
Nuclear target, as PDG code.
Definition: MCNeutrino.h:30
int fHitNuc
Hit nucleon (2212 (proton) or 2112 (neutron))
Definition: MCNeutrino.h:31
double fQSqr
Momentum transfer Q^2, in GeV^2.
Definition: MCNeutrino.h:36
simb::MCParticle fNu
the incoming neutrino
Definition: MCNeutrino.h:25
simb::MCParticle fLepton
the outgoing lepton
Definition: MCNeutrino.h:26
int fMode
Interaction mode (QE/1-pi/DIS...) see enum list.
Definition: MCNeutrino.h:27
double fW
Hadronic invariant mass, in GeV.
Definition: MCNeutrino.h:33
int fCCNC
CC or NC interaction? see enum list.
Definition: MCNeutrino.h:29
static float min(const float a, const float b, const float c)
Definition: absgeo.cxx:45
double fY
Inelasticity y=1-(E_lepton/E_neutrino), unitless.
Definition: MCNeutrino.h:35
int fHitQuark
For DIS events only, as PDG code.
Definition: MCNeutrino.h:32
int fInteractionType
More detailed interaction type, see enum list below kNuanceOffset.
Definition: MCNeutrino.h:28
simb::MCNeutrino::MCNeutrino ( simb::MCParticle nu,
simb::MCParticle lep,
int  CCNC,
int  mode,
int  interactionType,
int  target,
int  nucleon,
int  quark,
double  w,
double  x,
double  y,
double  qsqr 
)

nu is the incoming neutrino and lep is the outgoing lepton

Definition at line 35 of file MCNeutrino.cxx.

47  : fNu(nu)
48  , fLepton(lep)
49  , fMode(mode)
50  , fInteractionType(interactionType)
51  , fCCNC(CCNC)
52  , fTarget(target)
53  , fHitNuc(nucleon)
54  , fHitQuark(quark)
55  , fW(w)
56  , fX(x)
57  , fY(y)
58  , fQSqr(qsqr)
59  {
60  }
int CCNC() const
Definition: MCNeutrino.h:148
double fX
Bjorken x=Q^2/(2M*(E_neutrino-E_lepton)), unitless.
Definition: MCNeutrino.h:34
const XML_Char * target
Definition: expat.h:268
int fTarget
Nuclear target, as PDG code.
Definition: MCNeutrino.h:30
int fHitNuc
Hit nucleon (2212 (proton) or 2112 (neutron))
Definition: MCNeutrino.h:31
double fQSqr
Momentum transfer Q^2, in GeV^2.
Definition: MCNeutrino.h:36
simb::MCParticle fNu
the incoming neutrino
Definition: MCNeutrino.h:25
simb::MCParticle fLepton
the outgoing lepton
Definition: MCNeutrino.h:26
int fMode
Interaction mode (QE/1-pi/DIS...) see enum list.
Definition: MCNeutrino.h:27
double fW
Hadronic invariant mass, in GeV.
Definition: MCNeutrino.h:33
int fCCNC
CC or NC interaction? see enum list.
Definition: MCNeutrino.h:29
double fY
Inelasticity y=1-(E_lepton/E_neutrino), unitless.
Definition: MCNeutrino.h:35
int fHitQuark
For DIS events only, as PDG code.
Definition: MCNeutrino.h:32
Float_t w
Definition: plot.C:20
int fInteractionType
More detailed interaction type, see enum list below kNuanceOffset.
Definition: MCNeutrino.h:28

Member Function Documentation

int simb::MCNeutrino::CCNC ( ) const
inline

Definition at line 148 of file MCNeutrino.h.

References fCCNC.

Referenced by caf::CAFMaker::AddMCTruthToVec(), remid::ReMIdValidate::analyze(), remid::ReMIdTrain::analyze(), numue::NumuEAna::analyze(), mcchk::NeutrinoAna::analyze(), murem::MuonRemoveAna::analyze(), remid::ReMIdDedx::analyze(), showere::ShowerEnergyAna::analyze(), hough::HoughValidate::analyze(), earms::ElasticArmsValidate::analyze(), slicer::SlicerAna::analyze(), fuzz::FuzzyKValidate::analyze(), remid::ReMIdDedxStudies::analyze(), bpf::BPFCVNAna::analyze(), ncs::Xbeam::analyze(), ncs::GenieTruth::analyze(), ncs::Xeff::analyze(), slid::LIDTraining::analyze(), ncs::NCAna::analyze(), murem::MRCCNeutrino::CC(), trk::KalmanTrackAna::CheckRecoTracks(), gibuu::GiBUURegen::CopyGenieEvent(), filter::Filter::FillTruthVariables(), jmshower::RecoJMShowerFilter::filter(), showere::ShowerEnergyFilterMC::filter(), nuesand::FillNueSandbox::GetECF(), gibuu::GiBUURegen::GetEvent(), gibuu::GiBUURegen::GetGenieXSec(), cvn::GetInteractionType(), gibuu::GiBUURegen::GetKey(), cvn::GetMultiplicityMap(), cvn::GetParentParticleType(), comi::Cana::LoadMCInfo(), murem::MRCCNeutrino::MRCCNeutrino(), simb::operator<<(), cvn::ParticlesSliceClassify(), filter::TruthFilter::produce(), MergeGenCollections::MergeGenCollections::produce(), lem::MakeLibrary::produce(), ncid::NCNNKeras::produce(), caf::CAFMaker::produce(), evdb::ScanFrame::Record(), bpfit::BPFEnergyAna::setTruthVars(), bpfit::BPFTmvaTrainer::setTruthVars(), ncs::NCAna::SimpleOscProb(), caf::CAFMaker::SimpleOscProb(), and cvn::SliceClassify().

148 { return fCCNC; }
int fCCNC
CC or NC interaction? see enum list.
Definition: MCNeutrino.h:29
int simb::MCNeutrino::HitNuc ( ) const
inline
int simb::MCNeutrino::HitQuark ( ) const
inline

Definition at line 153 of file MCNeutrino.h.

References fHitQuark.

Referenced by gibuu::GiBUURegen::CopyGenieEvent(), simb::operator<<(), and MergeGenCollections::MergeGenCollections::produce().

153 { return fHitQuark; }
int fHitQuark
For DIS events only, as PDG code.
Definition: MCNeutrino.h:32
int simb::MCNeutrino::InteractionType ( ) const
inline
const simb::MCParticle & simb::MCNeutrino::Lepton ( ) const
inline
int simb::MCNeutrino::Mode ( ) const
inline
const simb::MCParticle & simb::MCNeutrino::Nu ( ) const
inline

Definition at line 146 of file MCNeutrino.h.

References fNu.

Referenced by caf::CAFMaker::AddMCTruthToVec(), cheat::TestTrackIds::analyze(), remid::ReMIdValidate::analyze(), tut::RecoValidationTutorial::analyze(), G4MismatchAna::analyze(), remid::ReMIdTrain::analyze(), numue::NumuEAna::analyze(), mcchk::RockAna::analyze(), murem::MuonRemoveAna::analyze(), mcchk::NeutrinoAna::analyze(), remid::ReMIdDedx::analyze(), mcchk::LeptonAna::analyze(), showere::ShowerEnergyAna::analyze(), hough::HoughValidate::analyze(), earms::ElasticArmsValidate::analyze(), mcchk::DetSimAna::analyze(), slicer::SlicerAna::analyze(), fuzz::FuzzyKValidate::analyze(), remid::ReMIdDedxStudies::analyze(), bpf::BPFCVNAna::analyze(), bpfit::BreakPointProtonAna::analyze(), ncs::Xbeam::analyze(), ncs::GenieTruth::analyze(), ncs::Xeff::analyze(), slid::LIDTraining::analyze(), ncs::NCAna::analyze(), mcchk::NeutrinoAna::AnalyzeNeutrinoInteraction(), trk::KalmanTrackAna::CheckRecoTracks(), novarwgt::ConvertNuToolsEvent(), murem::MRCCNeutrino::Energy(), filter::Filter::FillTruthVariables(), jmshower::RecoJMShowerFilter::filter(), showere::ShowerEnergyFilterMC::filter(), nuesand::FillNueSandbox::GetECF(), gibuu::GiBUURegen::GetEvent(), gibuu::GiBUURegen::GetGenieXSec(), cvn::GetInteractionType(), gibuu::GiBUURegen::GetKey(), cvn::GetMultiplicityMap(), comi::Cana::LoadMCInfo(), evg::MCTruthToDk2NuHackItr::match_mctruth_nuchoice(), rwgt::NeutrinoHasher::operator()(), simb::operator<<(), cvn::ParticlesSliceClassify(), filter::TruthFilter::produce(), lem::MakeLibrary::produce(), evgen::GENIERockGen::produce(), fuzz::FuzzyKVertex::produce(), gibuu::GiBUURegen::produce(), caf::CAFMaker::produce(), evdb::ScanFrame::Record(), MergeG4Collections::MergeG4Collections::SameMCTruth(), bpfit::BPFEnergyAna::setTruthVars(), bpfit::BPFTmvaTrainer::setTruthVars(), ncs::NCAna::SimpleOscProb(), caf::CAFMaker::SimpleOscProb(), and cvn::SliceClassify().

146 { return fNu; }
simb::MCParticle fNu
the incoming neutrino
Definition: MCNeutrino.h:25
double simb::MCNeutrino::Pt ( ) const

transverse momentum of interaction, in GeV/c

Definition at line 74 of file MCNeutrino.cxx.

References fNu, and simb::MCParticle::Pt().

Referenced by ncs::Xbeam::analyze(), ncs::Xeff::analyze(), and ncs::NCAna::analyze().

75  {
76  return fNu.Pt();
77  }
simb::MCParticle fNu
the incoming neutrino
Definition: MCNeutrino.h:25
double Pt(const int i=0) const
Definition: MCParticle.h:235
double simb::MCNeutrino::QSqr ( ) const
inline
int simb::MCNeutrino::Target ( ) const
inline
double simb::MCNeutrino::Theta ( ) const

angle between incoming and outgoing leptons, in radians

make TVector3 objects for the momenta of the incoming neutrino and outgoing lepton

Definition at line 63 of file MCNeutrino.cxx.

References fLepton, fNu, in, confusionMatrixTree::out, simb::MCParticle::Px(), simb::MCParticle::Py(), and simb::MCParticle::Pz().

Referenced by mcchk::LeptonAna::analyze(), ncs::Xbeam::analyze(), ncs::Xeff::analyze(), and ncs::NCAna::analyze().

64  {
65  ///make TVector3 objects for the momenta of the incoming neutrino
66  ///and outgoing lepton
67  TVector3 in(fNu.Px(), fNu.Py(), fNu.Pz());
68  TVector3 out(fLepton.Px(), fLepton.Py(), fLepton.Pz());
69 
70  return in.Angle(out);
71  }
double Py(const int i=0) const
Definition: MCParticle.h:230
double Px(const int i=0) const
Definition: MCParticle.h:229
simb::MCParticle fNu
the incoming neutrino
Definition: MCNeutrino.h:25
simb::MCParticle fLepton
the outgoing lepton
Definition: MCNeutrino.h:26
ifstream in
Definition: comparison.C:7
double Pz(const int i=0) const
Definition: MCParticle.h:231
double simb::MCNeutrino::W ( ) const
inline
double simb::MCNeutrino::X ( ) const
inline
double simb::MCNeutrino::Y ( ) const
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output,
const simb::MCNeutrino mcnu 
)
friend

Definition at line 80 of file MCNeutrino.cxx.

81  {
82  output << " neutrino = " << mcnu.Nu().PdgCode() << std::endl
83  << " neutrino energy = " << mcnu.Nu().E() << std::endl
84  << " CCNC = " << mcnu.CCNC() << std::endl
85  << " mode = " << mcnu.Mode() << std::endl
86  << " interaction type = " << mcnu.InteractionType() << std::endl
87  << " target = " << mcnu.Target() << std::endl
88  << " nucleon = " << mcnu.HitNuc() << std::endl
89  << " quark = " << mcnu.HitQuark() << std::endl
90  << " W = " << mcnu.W() << std::endl
91  << " X = " << mcnu.X() << std::endl
92  << " Y = " << mcnu.Y() << std::endl
93  << " Q^2 = " << mcnu.QSqr() << std::endl;
94 
95  return output;
96  }
double E(const int i=0) const
Definition: MCParticle.h:232
ofstream output
int PdgCode() const
Definition: MCParticle.h:211
int CCNC() const
Definition: MCNeutrino.h:148
double QSqr() const
Definition: MCNeutrino.h:157
int HitQuark() const
Definition: MCNeutrino.h:153
const simb::MCParticle & Nu() const
Definition: MCNeutrino.h:146
int HitNuc() const
Definition: MCNeutrino.h:152
int InteractionType() const
Definition: MCNeutrino.h:150
double W() const
Definition: MCNeutrino.h:154
double Y() const
Definition: MCNeutrino.h:156
double X() const
Definition: MCNeutrino.h:155
int Target() const
Definition: MCNeutrino.h:151
int Mode() const
Definition: MCNeutrino.h:149

Member Data Documentation

int simb::MCNeutrino::fCCNC
private

CC or NC interaction? see enum list.

Definition at line 29 of file MCNeutrino.h.

Referenced by CCNC().

int simb::MCNeutrino::fHitNuc
private

Hit nucleon (2212 (proton) or 2112 (neutron))

Definition at line 31 of file MCNeutrino.h.

Referenced by HitNuc().

int simb::MCNeutrino::fHitQuark
private

For DIS events only, as PDG code.

Definition at line 32 of file MCNeutrino.h.

Referenced by HitQuark().

int simb::MCNeutrino::fInteractionType
private

More detailed interaction type, see enum list below kNuanceOffset.

Definition at line 28 of file MCNeutrino.h.

Referenced by InteractionType().

simb::MCParticle simb::MCNeutrino::fLepton
private

the outgoing lepton

Definition at line 26 of file MCNeutrino.h.

Referenced by Lepton(), and Theta().

int simb::MCNeutrino::fMode
private

Interaction mode (QE/1-pi/DIS...) see enum list.

Definition at line 27 of file MCNeutrino.h.

Referenced by Mode().

simb::MCParticle simb::MCNeutrino::fNu
private

the incoming neutrino

Definition at line 25 of file MCNeutrino.h.

Referenced by Nu(), Pt(), and Theta().

double simb::MCNeutrino::fQSqr
private

Momentum transfer Q^2, in GeV^2.

Definition at line 36 of file MCNeutrino.h.

Referenced by QSqr().

int simb::MCNeutrino::fTarget
private

Nuclear target, as PDG code.

Definition at line 30 of file MCNeutrino.h.

Referenced by Target().

double simb::MCNeutrino::fW
private

Hadronic invariant mass, in GeV.

Definition at line 33 of file MCNeutrino.h.

Referenced by W().

double simb::MCNeutrino::fX
private

Bjorken x=Q^2/(2M*(E_neutrino-E_lepton)), unitless.

Definition at line 34 of file MCNeutrino.h.

Referenced by X().

double simb::MCNeutrino::fY
private

Inelasticity y=1-(E_lepton/E_neutrino), unitless.

Definition at line 35 of file MCNeutrino.h.

Referenced by Y().


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