LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Event generator information. More...
#include "MCTruth.h"
Public Member Functions | |
MCTruth () | |
simb::Origin_t | Origin () const |
int | NParticles () const |
const simb::MCParticle & | GetParticle (int i) const |
const simb::MCNeutrino & | GetNeutrino () const |
bool | NeutrinoSet () const |
void | Add (simb::MCParticle &part) |
void | SetOrigin (simb::Origin_t origin) |
void | SetNeutrino (int CCNC, int mode, int interactionType, int target, int nucleon, int quark, double w, double x, double y, double qsqr) |
Private Attributes | |
std::vector< simb::MCParticle > | fPartList |
list of particles in this event More... | |
simb::MCNeutrino | fMCNeutrino |
reference to neutrino info - null if not a neutrino More... | |
simb::Origin_t | fOrigin |
origin for this event More... | |
bool | fNeutrinoSet |
flag for whether the neutrino information has been set More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, simb::MCTruth const &a) |
simb::MCTruth::MCTruth | ( | ) |
Definition at line 21 of file MCTruth.cxx.
|
inline |
Definition at line 77 of file MCTruth.h.
References fPartList.
Referenced by evgen::MARLEYHelper::add_marley_particles(), evgb::FillMCTruth(), simfilter::FilterGenInTime::filter(), evgen::CORSIKAGen::GetSample(), evgb::GENIEHelper::PackMCTruth(), evgen::NueAr40CCGenerator::ProcessOneNeutrino(), ToyOneShowerGen::produce(), evgen::CosmicsGen::produce(), evgen::CORSIKAGen::produce(), evgen::NUANCEGen::produce(), evgen::NucleonDecay::produce(), evgen::NDKGen::produce(), evgen::TextFileGen::produce(), evgen::NeutronOsc::produce(), evgen::FileMuons::ReadEvents(), evgb::CRYHelper::Sample(), evgen::LightSource::Sample(), evgen::SingleGen::SampleMany(), evgen::GaisserParam::SampleOne(), evgen::RadioGen::SampleOne(), evgen::MUSUN::SampleOne(), and evgen::SingleGen::SampleOne().
|
inline |
Definition at line 74 of file MCTruth.h.
References fMCNeutrino.
Referenced by lar_pandora::PFParticleMonitoring::analyze(), rwgt::ReweightAna::analyze(), shower::TCShowerTemplateMaker::analyze(), shower::TCShowerElectronLikelihood::analyze(), shower::TCShowerAnalysis::analyze(), opdet::FlashPurityCheckAna::analyze(), cluster::ClusterAna::analyze(), pfpf::PFPAna::analyze(), NuShowerEff::analyze(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), sim::dump::DumpMCTruth(), evgen::NUANCEGen::FillHistograms(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), simb::operator<<(), DUNE::NeutrinoShowerEff::processEff(), DUNE::NeutrinoTrackingEff::processEff(), wc::CellTree::processMC(), evgen::NUANCEGen::produce(), evgen::GENIEGen::produce(), rwgt::NuReweight::RetrieveGHEP(), evgb::RetrieveGHEP(), and evgb::GENIEHelper::Sample().
|
inline |
Definition at line 73 of file MCTruth.h.
References fPartList.
Referenced by cluster::DBclusterAna::analyze(), vertex::FeatureVertexFinderAna::analyze(), lar_pandora::LArPandoraHelper::CollectGeneratorMCParticles(), sim::dump::DumpMCTruth(), evgen::NUANCEGen::FillHistograms(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), filt::FinalStateParticleFilter::filter(), filt::FinalStateSelectFilter::filter(), simfilter::FilterGenInTime::filter(), simb::operator<<(), evgen::CosmicsGen::produce(), evgen::CORSIKAGen::produce(), trkf::Track3DKalman::produce(), trkf::Track3DKalmanSPS::produce(), rwgt::NuReweight::RetrieveGHEP(), and evgb::RetrieveGHEP().
|
inline |
Definition at line 75 of file MCTruth.h.
References fNeutrinoSet.
Referenced by lar_pandora::PFParticleMonitoring::analyze(), shower::TCShowerTemplateMaker::analyze(), shower::TCShowerElectronLikelihood::analyze(), shower::TCShowerAnalysis::analyze(), NuShowerEff::analyze(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), sim::dump::DumpMCTruth(), lar_pandora::PFParticleCosmicAna::FillTrueTree(), lar_pandora::PFParticleValidation::GetMCTruth(), DUNE::NeutrinoShowerEff::processEff(), DUNE::NeutrinoTrackingEff::processEff(), wc::CellTree::processMC(), and evgen::GENIEGen::produce().
|
inline |
Definition at line 72 of file MCTruth.h.
References fPartList.
Referenced by evgen::MARLEYHelper::add_marley_particles(), cluster::DBclusterAna::analyze(), lar_pandora::LArPandoraHelper::CollectGeneratorMCParticles(), sim::dump::DumpMCTruth(), evgen::NUANCEGen::FillHistograms(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), filt::FinalStateParticleFilter::filter(), filt::FinalStateSelectFilter::filter(), simfilter::FilterGenInTime::filter(), evgen::NueAr40CCGenerator::Generate(), simb::operator<<(), wc::CellTree::processMC(), evgen::NueAr40CCGenerator::ProcessOneNeutrino(), evgen::CosmicsGen::produce(), evgen::CORSIKAGen::produce(), evgen::NDKGen::produce(), trkf::Track3DKalman::produce(), trkf::Track3DKalmanSPS::produce(), rwgt::NuReweight::RetrieveGHEP(), and evgb::RetrieveGHEP().
|
inline |
Definition at line 71 of file MCTruth.h.
References fOrigin.
Referenced by cluster::ClusterAna::analyze(), pfpf::PFPAna::analyze(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), sim::dump::DumpMCTruth(), tca::GetOrigin(), lar_pandora::PFParticleValidation::IsNeutrinoInduced(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), wc::CellTree::processMC(), MCReco::produce(), and cluster::TrajCluster::produce().
void simb::MCTruth::SetNeutrino | ( | int | CCNC, |
int | mode, | ||
int | interactionType, | ||
int | target, | ||
int | nucleon, | ||
int | quark, | ||
double | w, | ||
double | x, | ||
double | y, | ||
double | qsqr | ||
) |
Definition at line 30 of file MCTruth.cxx.
References fMCNeutrino, fNeutrinoSet, fPartList, art::errors::LogicError, simb::MCParticle::PdgCode(), and simb::MCParticle::TrackId().
Referenced by evgen::MARLEYHelper::create_MCTruth(), evgb::FillMCTruth(), evgb::GENIEHelper::PackMCTruth(), evgen::NueAr40CCGenerator::ProcessOneNeutrino(), and evgen::NUANCEGen::produce().
|
inline |
Definition at line 78 of file MCTruth.h.
References fOrigin, and geo::origin().
Referenced by evgen::MARLEYHelper::create_MCTruth(), evgb::FillMCTruth(), evgen::NueAr40CCGenerator::Generate(), evgb::GENIEHelper::PackMCTruth(), evgen::CosmicsGen::produce(), evgen::CORSIKAGen::produce(), evgen::FileMuons::produce(), evgen::NUANCEGen::produce(), evgen::NucleonDecay::produce(), evgen::NDKGen::produce(), evgen::GaisserParam::produce(), evgen::NeutronOsc::produce(), evgen::RadioGen::produce(), evgen::LightSource::produce(), evgen::MUSUN::produce(), evgen::SingleGen::produce(), and evgb::CRYHelper::Sample().
|
friend |
Definition at line 70 of file MCTruth.cxx.
|
private |
reference to neutrino info - null if not a neutrino
Definition at line 37 of file MCTruth.h.
Referenced by GetNeutrino(), and SetNeutrino().
|
private |
flag for whether the neutrino information has been set
Definition at line 39 of file MCTruth.h.
Referenced by NeutrinoSet(), and SetNeutrino().
|
private |
origin for this event
Definition at line 38 of file MCTruth.h.
Referenced by Origin(), and SetOrigin().
|
private |
list of particles in this event
Definition at line 36 of file MCTruth.h.
Referenced by Add(), GetParticle(), NParticles(), and SetNeutrino().