LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MCParticle.h"
Public Member Functions | |
MCParticle () | |
Don't write this as ROOT output. More... | |
MCParticle (const int trackId, const int pdg, const std::string process, const int mother=-1, const double mass=s_uninitialized, const int status=1) | |
Standard constructor. More... | |
MCParticle (MCParticle const &)=default | |
MCParticle & | operator= (const MCParticle &)=default |
MCParticle (MCParticle &&)=default | |
MCParticle & | operator= (MCParticle &&)=default |
MCParticle (MCParticle const &, int) | |
int | TrackId () const |
int | StatusCode () const |
int | PdgCode () const |
int | Mother () const |
void | SetMother (int mother) |
const TVector3 & | Polarization () const |
void | SetPolarization (const TVector3 &p) |
std::string | Process () const |
std::string | EndProcess () const |
void | SetEndProcess (std::string s) |
void | AddDaughter (const int trackID) |
int | NumberDaughters () const |
int | Daughter (const int i) const |
unsigned int | NumberTrajectoryPoints () const |
const TLorentzVector & | Position (const int i=0) const |
double | Vx (const int i=0) const |
double | Vy (const int i=0) const |
double | Vz (const int i=0) const |
double | T (const int i=0) const |
const TLorentzVector & | EndPosition () const |
double | EndX () const |
double | EndY () const |
double | EndZ () const |
double | EndT () const |
const TLorentzVector & | Momentum (const int i=0) const |
double | Px (const int i=0) const |
double | Py (const int i=0) const |
double | Pz (const int i=0) const |
double | E (const int i=0) const |
double | P (const int i=0) const |
double | Pt (const int i=0) const |
double | Mass () const |
const TLorentzVector & | EndMomentum () const |
double | EndPx () const |
double | EndPy () const |
double | EndPz () const |
double | EndE () const |
void | SetGvtx (double *v) |
void | SetGvtx (float *v) |
void | SetGvtx (TLorentzVector v) |
void | SetGvtx (double x, double y, double z, double t) |
TLorentzVector | GetGvtx () const |
double | Gvx () const |
double | Gvy () const |
double | Gvz () const |
double | Gvt () const |
int | FirstDaughter () const |
int | LastDaughter () const |
void | SetRescatter (int code) |
int | Rescatter () const |
const simb::MCTrajectory & | Trajectory () const |
void | AddTrajectoryPoint (TLorentzVector const &position, TLorentzVector const &momentum) |
void | AddTrajectoryPoint (TLorentzVector const &position, TLorentzVector const &momentum, std::string const &process, bool keepTransportation=false) |
double | Weight () const |
void | SetWeight (double wt) |
void | SparsifyTrajectory (double margin=0.1, bool keep_second_to_last=false) |
bool | operator< (const simb::MCParticle &other) const |
Static Public Attributes | |
static const int | s_uninitialized = std::numeric_limits<int>::min() |
Protected Types | |
typedef std::set< int > | daughters_type |
Protected Attributes | |
int | fstatus |
Status code from generator, geant, etc. More... | |
int | ftrackId |
TrackId. More... | |
int | fpdgCode |
PDG code. More... | |
int | fmother |
Mother. More... | |
std::string | fprocess |
Detector-simulation physics process that created the particle. More... | |
std::string | fendprocess |
end process for the particle More... | |
simb::MCTrajectory | ftrajectory |
particle trajectory (position,momentum) More... | |
double | fmass |
Mass; from PDG unless overridden Should be in GeV. More... | |
TVector3 | fpolarization |
Polarization. More... | |
daughters_type | fdaughters |
Sorted list of daughters of this particle. More... | |
double | fWeight |
Assigned weight to this particle for MC tests. More... | |
TLorentzVector | fGvtx |
int | frescatter |
rescatter code More... | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const simb::MCParticle &) |
Definition at line 24 of file MCParticle.h.
|
protected |
Definition at line 33 of file MCParticle.h.
simb::MCParticle::MCParticle | ( | ) |
Don't write this as ROOT output.
Definition at line 32 of file MCParticle.cxx.
simb::MCParticle::MCParticle | ( | const int | trackId, |
const int | pdg, | ||
const std::string | process, | ||
const int | mother = -1 , |
||
const double | mass = s_uninitialized , |
||
const int | status = 1 |
||
) |
Standard constructor.
Definition at line 50 of file MCParticle.cxx.
References fmass, and SetGvtx().
|
default |
|
default |
simb::MCParticle::MCParticle | ( | MCParticle const & | p, |
int | offset | ||
) |
Definition at line 86 of file MCParticle.cxx.
References Daughter(), fdaughters, fmother, ftrackId, Mother(), NumberDaughters(), and TrackId().
|
inline |
Definition at line 269 of file MCParticle.h.
References fdaughters.
Referenced by sim::MCMiniPart::operator simb::MCParticle(), sim::MCParticleLite::operator simb::MCParticle(), and larg4::UpdateDaughterInformation::operator()().
|
inline |
Definition at line 258 of file MCParticle.h.
References simb::MCTrajectory::Add(), and ftrajectory.
Referenced by evgen::MARLEYHelper::add_marley_particles(), larg4::ParticleListActionService::AddPointToCurrentParticle(), evgen::CORSIKAGen::GetSample(), sim::MCMiniPart::operator simb::MCParticle(), sim::MCParticleLite::operator simb::MCParticle(), evgen::NueAr40CCGenerator::ProcessOneNeutrino(), evgen::NDKGen::produce(), evgen::SpectrumVolumeGen::produce_radio(), evgen::Decay0Gen::produce_radio(), evgen::FileMuons::ReadEvents(), fluxr::PPFXFluxReader::readNext(), evgen::TextFileGen::readNextHepEvt(), evgb::CRYHelper::Sample(), evgen::PhotonGen::Sample(), evgen::LightSource::Sample(), evgen::larg4SingleGen::SampleMany(), evgen::SingleGen::SampleMany(), evgen::GaisserParam::SampleOne(), evgen::larg4SingleGen::SampleOne(), evgen::SingleGen::SampleOne(), evgen::MUSUN::SampleOne(), and evgen::RadioGen::SampleOne().
|
inline |
Definition at line 261 of file MCParticle.h.
References simb::MCTrajectory::Add(), and ftrajectory.
int simb::MCParticle::Daughter | ( | const int | i | ) | const |
Definition at line 118 of file MCParticle.cxx.
References fdaughters.
Referenced by ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement(), cheat::RecoCheckAna::CheckRecoEvents(), cheat::RecoCheckAna::CheckRecoVertices(), ClusteringValidation::ClusterAnalyser::FindPhotonAngle(), lcvn::AssignLabels::GetNeutralDaughterHitsRecursive(), lcvn::AssignLabels::GetProtoDUNEBeamInteractionType(), lcvn::AssignLabels::GetTopology(), ems::MCinfo::Info(), nnet::TrainingDataAlg::isElectronEnd(), nnet::PointIdEffTest::isMuonDecaying(), nnet::TrainingDataAlg::isMuonDecaying(), and MCParticle().
|
inline |
Definition at line 234 of file MCParticle.h.
References Momentum().
Referenced by opdet::OpFlashMCTruthAna::analyze(), lar_pandora::PFParticleMonitoring::analyze(), shower::TCShowerElectronLikelihood::analyze(), shower::TCShowerTemplateMaker::analyze(), pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), hit::HitFinderAna::analyze(), cluster::ClusterTrackAna::analyze(), rwgt::ReweightAna::analyze(), lcvn::LArNuCVNZlibMaker::analyze(), nnet::RawWaveformDump::analyze(), nnet::RawWaveformClnSigDump::analyze(), trkf::TrackAna::analyze(), trkf::TrackAna::anaStitch(), ShowerRecoTools::ShowerStartPositionCheater::CalculateElement(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), sim::ParticleList::Cut(), evdb_tool::DrawLArVoxel3D::Draw(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), simfilter::FilterGenInTime::filter(), opreco::OpticalRecoAna::get_MC_particle_list(), lar_pandora::LArPandoraSliceIdHelper::GetBeamNeutrinoMCTruth(), lar_pandora::PFParticleValidation::GetSimpleMCPrimaryList(), simfilter::FilterGenInTime::KeepParticle(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthLongText(), evd::SimulationDrawer::MCTruthOrtho(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), P(), print_weights(), evdb::ScanFrame::Record(), evgb::RetrieveGHEP(), evgb::GENIEHelper::Sample(), and shower::TCShowerTemplateMaker::showerProfileTrue().
|
inline |
Definition at line 245 of file MCParticle.h.
References ftrajectory, Momentum(), simb::MCTrajectory::size(), and T().
|
inline |
Definition at line 241 of file MCParticle.h.
References ftrajectory, Momentum(), and simb::MCTrajectory::size().
Referenced by NuShowerEff::analyze(), sim::dump::DumpMCParticle(), sim::MCMiniPart::MCMiniPart(), sim::MCParticleLite::MCParticleLite(), and DUNE::NeutrinoShowerEff::processEff().
|
inline |
Definition at line 226 of file MCParticle.h.
References ftrajectory, Position(), and simb::MCTrajectory::size().
Referenced by NuShowerEff::analyze(), lcvn::LArNuCVNZlibMaker::analyze(), sim::dump::DumpMCParticle(), sim::MCMiniPart::MCMiniPart(), sim::MCParticleLite::MCParticleLite(), and DUNE::NeutrinoShowerEff::processEff().
|
inline |
Definition at line 217 of file MCParticle.h.
References fendprocess.
Referenced by sim::dump::DumpMCParticle(), lcvn::AssignLabels::GetProtoDUNEBeamInteractionType(), ems::MCinfo::Info(), nnet::PointIdEffTest::isMuonDecaying(), and nnet::TrainingDataAlg::isMuonDecaying().
|
inline |
Definition at line 242 of file MCParticle.h.
References ftrajectory, Momentum(), simb::MCTrajectory::size(), and X.
|
inline |
Definition at line 243 of file MCParticle.h.
References ftrajectory, Momentum(), simb::MCTrajectory::size(), and Y.
|
inline |
Definition at line 244 of file MCParticle.h.
References ftrajectory, Momentum(), simb::MCTrajectory::size(), and Z.
|
inline |
Definition at line 230 of file MCParticle.h.
References ftrajectory, Position(), simb::MCTrajectory::size(), and T().
|
inline |
Definition at line 227 of file MCParticle.h.
References ftrajectory, Position(), simb::MCTrajectory::size(), and X.
Referenced by opdet::OpFlashMCTruthAna::analyze(), nnet::TrainingDataAlg::particleRange2(), and DUNE::NeutrinoShowerEff::processEff().
|
inline |
Definition at line 228 of file MCParticle.h.
References ftrajectory, Position(), simb::MCTrajectory::size(), and Y.
Referenced by opdet::OpFlashMCTruthAna::analyze(), nnet::TrainingDataAlg::particleRange2(), and DUNE::NeutrinoShowerEff::processEff().
|
inline |
Definition at line 229 of file MCParticle.h.
References ftrajectory, Position(), simb::MCTrajectory::size(), and Z.
Referenced by opdet::OpFlashMCTruthAna::analyze(), nnet::TrainingDataAlg::particleRange2(), and DUNE::NeutrinoShowerEff::processEff().
|
inline |
Definition at line 251 of file MCParticle.h.
References fdaughters.
Referenced by sim::dump::DumpMCParticle().
|
inline |
Definition at line 246 of file MCParticle.h.
References fGvtx.
Referenced by sim::dump::DumpMCParticle().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 252 of file MCParticle.h.
References fdaughters.
Referenced by sim::dump::DumpMCParticle().
|
inline |
Definition at line 240 of file MCParticle.h.
References fmass.
Referenced by pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), cluster::ClusterTrackAna::analyze(), trkf::TrackAna::analyze(), trkf::TrackAna::anaStitch(), sim::dump::DumpMCParticle(), simfilter::FilterGenInTime::filter(), opreco::OpticalRecoAna::get_MC_particle_list(), simfilter::FilterGenInTime::KeepParticle(), evd::SimulationDrawer::MCTruthLongText(), evd::SimulationDrawer::MCTruthVectors2D(), and simb::operator<<().
|
inline |
Definition at line 221 of file MCParticle.h.
References ftrajectory, and simb::MCTrajectory::Momentum().
Referenced by NuShowerEff::analyze(), sim::dump::DumpMCParticle(), E(), EndE(), EndMomentum(), EndPx(), EndPy(), EndPz(), larg4::MCTruthEventActionService::generatePrimaries(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), simfilter::FilterGenInTime::KeepParticle(), filt::LArG4ParticleFilter::MaxMomentumCheck(), sim::MCMiniPart::MCMiniPart(), sim::MCParticleLite::MCParticleLite(), filt::LArG4ParticleFilter::MinMomentumCheck(), P(), DUNE::NeutrinoShowerEff::processEff(), DUNE::MuonTrackingEff::processEff(), DUNE::NeutrinoTrackingEff::processEff(), wc::CellTree::processMC(), evgen::CosmicsGen::produce(), trkf::TrackKalmanCheater::produce(), evgen::CORSIKAGen::produce(), Pt(), Px(), Py(), and Pz().
|
inline |
Definition at line 214 of file MCParticle.h.
References fmother.
Referenced by pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), NuShowerEff::analyze(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), evdb_tool::DrawLArVoxel3D::Draw(), sim::dump::DumpMCParticle(), lar_pandora::LArPandoraHelper::GetFinalStateMCParticle(), lar_pandora::LArPandoraHelper::GetParentMCParticle(), lcvn::AssignLabels::GetTopology(), shower::LArPandoraShowerCheatingAlg::GetTrueChain(), filt::LArG4ParticleFilter::IsPrimaryCheck(), sim::MCMiniPart::MCMiniPart(), MCParticle(), sim::MCParticleLite::MCParticleLite(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthLongText(), simb::operator<<(), sim::ParticleHistory::ParticleHistory(), DUNE::NeutrinoShowerEff::processEff(), DUNE::MuonTrackingEff::processEff(), DUNE::NeutrinoTrackingEff::processEff(), larg4::LArG4::produce(), evgb::RetrieveGHEP(), and nnet::PointIdEffTest::testCNN().
|
inline |
Definition at line 218 of file MCParticle.h.
References fdaughters.
Referenced by ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement(), cheat::RecoCheckAna::CheckRecoEvents(), cheat::RecoCheckAna::CheckRecoVertices(), sim::dump::DumpMCParticle(), ClusteringValidation::ClusterAnalyser::FindPhotonAngle(), lcvn::AssignLabels::GetNeutralDaughterHitsRecursive(), lcvn::AssignLabels::GetProtoDUNEBeamInteractionType(), lcvn::AssignLabels::GetTopology(), ems::MCinfo::Info(), nnet::TrainingDataAlg::isElectronEnd(), nnet::PointIdEffTest::isMuonDecaying(), nnet::TrainingDataAlg::isMuonDecaying(), and MCParticle().
|
inline |
Definition at line 219 of file MCParticle.h.
References ftrajectory, and simb::MCTrajectory::size().
Referenced by ShowerRecoTools::ShowerStartPositionCheater::CalculateElement(), sim::dump::DumpMCParticle(), sim::DumpMCParticles::DumpMCParticle(), sim::dump::DumpMCTruth(), lar_pandora::PFParticleMonitoring::GetStartAndEndPoints(), lar_pandora::LArPandoraInput::GetTrueStartAndEndPoints(), simb::operator<<(), trkf::TrackCheater::produce(), evgb::RetrieveGHEP(), cosmic::BeamFlashTrackMatchTaggerAlg::RunHypothesisComparison(), filt::LArG4ParticleFilter::StopInTPCCheck(), filt::LArG4ParticleFilter::TPCTrajLengthCheck(), DUNE::NeutrinoTrackingEff::truthLength(), DUNE::MuonTrackingEff::truthLength(), opreco::OpticalRecoAna::update_MC_particle_time(), and larg4::ParticleListActionService::userSteppingAction().
|
inline |
|
default |
|
default |
|
inline |
Definition at line 235 of file MCParticle.h.
References E(), fmass, and Momentum().
Referenced by lar_pandora::PFParticleMonitoring::analyze(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), cheat::RecoCheckAna::FillResults(), ems::MCinfo::Info(), evd::SimulationDrawer::MCTruthLongText(), evd::SimulationDrawer::MCTruthShortText(), evd::SimulationDrawer::MCTruthVectors2D(), DUNE::NeutrinoShowerEff::processEff(), trkf::TrackCheater::produce(), and cluster::ClusterCheater::produce().
|
inline |
Definition at line 213 of file MCParticle.h.
References fpdgCode.
Referenced by opdet::OpFlashMCTruthAna::analyze(), shower::TCShowerAnalysis::analyze(), lar_pandora::PFParticleMonitoring::analyze(), shower::TCShowerElectronLikelihood::analyze(), shower::TCShowerTemplateMaker::analyze(), pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), cluster::DBclusterAna::analyze(), hit::HitFinderAna::analyze(), cluster::ClusterTrackAna::analyze(), NuShowerEff::analyze(), nnet::RawWaveformDump::analyze(), nnet::RawWaveformClnSigDump::analyze(), lar::example::AnalysisExample::analyze(), trkf::TrackAna::anaStitch(), ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement(), ShowerRecoTools::ShowerStartPositionCheater::CalculateElement(), DUNE::NeutrinoShowerEff::checkCNNtrkshw(), nnet::PointIdEffTest::countTruthDep(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), evdb_tool::DrawLArVoxel3D::Draw(), sim::dump::DumpMCParticle(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), cheat::RecoCheckAna::FillResults(), simfilter::FilterGenInTime::filter(), larg4::MCTruthEventActionService::generatePrimaries(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), opreco::OpticalRecoAna::get_MC_particle_list(), lcvn::AssignLabels::GetInteractionType(), lcvn::AssignLabels::GetNeutralDaughterHitsRecursive(), lcvn::AssignLabels::GetProtoDUNEBeamInteractionType(), lar_pandora::PFParticleValidation::GetSimpleMCPrimaryList(), lcvn::AssignLabels::GetTopology(), shower::LArPandoraShowerCheatingAlg::GetTrueChain(), ems::MCinfo::Info(), nnet::TrainingDataAlg::isElectronEnd(), nnet::PointIdEffTest::isMuonDecaying(), nnet::TrainingDataAlg::isMuonDecaying(), lar_pandora::LArPandoraHelper::IsVisible(), sim::MCMiniPart::MCMiniPart(), sim::MCParticleLite::MCParticleLite(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthLongText(), evd::SimulationDrawer::MCTruthOrtho(), evd::SimulationDrawer::MCTruthShortText(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), filt::LArG4ParticleFilter::PDGCheck(), DUNE::NeutrinoShowerEff::processEff(), DUNE::NeutrinoTrackingEff::processEff(), DUNE::MuonTrackingEff::processEff(), wc::CellTree::processMC(), evgen::CosmicsGen::produce(), trkf::TrackCheater::produce(), trkf::TrackKalmanCheater::produce(), evdb::ScanFrame::Record(), evgb::RetrieveGHEP(), simb::MCTruth::SetNeutrino(), shower::TCShowerTemplateMaker::showerProfileTrue(), and nnet::PointIdEffTest::testCNN().
|
inline |
Definition at line 215 of file MCParticle.h.
References fpolarization.
Referenced by sim::dump::DumpMCParticle(), larg4::MCTruthEventActionService::generatePrimaries(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), and evgb::RetrieveGHEP().
|
inline |
Definition at line 220 of file MCParticle.h.
References ftrajectory, and simb::MCTrajectory::Position().
Referenced by NuShowerEff::analyze(), lar::example::AnalysisExample::analyze(), ShowerRecoTools::ShowerStartPositionCheater::CalculateElement(), sim::dump::DumpMCParticle(), EndPosition(), EndT(), EndX(), EndY(), EndZ(), cosmic::BeamFlashTrackMatchTaggerAlg::GetMIPHypotheses(), ems::MCinfo::Info(), simfilter::FilterGenInTime::KeepParticle(), sim::MCMiniPart::MCMiniPart(), sim::MCParticleLite::MCParticleLite(), DUNE::NeutrinoShowerEff::processEff(), DUNE::NeutrinoTrackingEff::processEff(), DUNE::MuonTrackingEff::processEff(), wc::CellTree::processMC(), evgen::CosmicsGen::produce(), trkf::TrackKalmanCheater::produce(), evgen::CORSIKAGen::produce(), cosmic::BeamFlashTrackMatchTaggerAlg::RunHypothesisComparison(), filt::LArG4ParticleFilter::StartInTPCCheck(), filt::LArG4ParticleFilter::StopInTPCCheck(), T(), filt::LArG4ParticleFilter::TPCTrajLengthCheck(), DUNE::NeutrinoTrackingEff::truthLength(), DUNE::MuonTrackingEff::truthLength(), Vx(), Vy(), and Vz().
|
inline |
Definition at line 216 of file MCParticle.h.
References fprocess.
Referenced by lar_pandora::PFParticleMonitoring::analyze(), pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), nnet::RawWaveformDump::analyze(), nnet::RawWaveformClnSigDump::analyze(), lar::example::AnalysisExample::analyze(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), sim::dump::DumpMCParticle(), ems::MCinfo::Info(), sim::ParticleList::insert(), sim::MCMiniPart::MCMiniPart(), sim::MCParticleLite::MCParticleLite(), evd::SimulationDrawer::MCTruthLongText(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), larg4::ParticleListActionService::preUserTrackingAction(), DUNE::NeutrinoTrackingEff::processEff(), and cosmic::BeamFlashTrackMatchTaggerAlg::RunHypothesisComparison().
|
inline |
Definition at line 237 of file MCParticle.h.
References Momentum(), Px(), and Py().
Referenced by simb::MCNeutrino::Pt().
|
inline |
Definition at line 231 of file MCParticle.h.
References Momentum().
Referenced by lar_pandora::PFParticleMonitoring::analyze(), ShowerRecoTools::ShowerDirectionCheater::CalculateElement(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), evdb_tool::DrawLArVoxel3D::Draw(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), lar_pandora::LArPandoraInput::IsPrimaryMCParticle(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), DUNE::NeutrinoShowerEff::processEff(), Pt(), evgb::RetrieveGHEP(), shower::TCShowerTemplateMaker::showerProfileTrue(), and simb::MCNeutrino::Theta().
|
inline |
Definition at line 232 of file MCParticle.h.
References Momentum().
Referenced by lar_pandora::PFParticleMonitoring::analyze(), ShowerRecoTools::ShowerDirectionCheater::CalculateElement(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), evdb_tool::DrawLArVoxel3D::Draw(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), lar_pandora::LArPandoraInput::IsPrimaryMCParticle(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), DUNE::NeutrinoShowerEff::processEff(), cluster::ClusterCheater::produce(), Pt(), evgb::RetrieveGHEP(), shower::TCShowerTemplateMaker::showerProfileTrue(), and simb::MCNeutrino::Theta().
|
inline |
Definition at line 233 of file MCParticle.h.
References Momentum().
Referenced by lar_pandora::PFParticleMonitoring::analyze(), ShowerRecoTools::ShowerDirectionCheater::CalculateElement(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), evdb_tool::DrawLArVoxel3D::Draw(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), lar_pandora::LArPandoraInput::IsPrimaryMCParticle(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), DUNE::NeutrinoShowerEff::processEff(), cluster::ClusterCheater::produce(), evgb::RetrieveGHEP(), shower::TCShowerTemplateMaker::showerProfileTrue(), and simb::MCNeutrino::Theta().
|
inline |
Definition at line 253 of file MCParticle.h.
References frescatter.
Referenced by sim::dump::DumpMCParticle(), and evgb::RetrieveGHEP().
void simb::MCParticle::SetEndProcess | ( | std::string | s | ) |
Definition at line 111 of file MCParticle.cxx.
References fendprocess.
Referenced by larg4::ParticleListActionService::postUserTrackingAction().
void simb::MCParticle::SetGvtx | ( | double * | v | ) |
void simb::MCParticle::SetGvtx | ( | float * | v | ) |
void simb::MCParticle::SetGvtx | ( | TLorentzVector | v | ) |
Definition at line 142 of file MCParticle.cxx.
References fGvtx.
void simb::MCParticle::SetGvtx | ( | double | x, |
double | y, | ||
double | z, | ||
double | t | ||
) |
|
inline |
|
inline |
Definition at line 270 of file MCParticle.h.
References fpolarization.
Referenced by larg4::ParticleListActionService::preUserTrackingAction().
|
inline |
|
inline |
Definition at line 272 of file MCParticle.h.
References fWeight.
Referenced by larg4::ParticleListActionService::postUserTrackingAction().
|
inline |
Definition at line 266 of file MCParticle.h.
References ftrajectory, and simb::MCTrajectory::Sparsify().
Referenced by larg4::ParticleListActionService::postUserTrackingAction(), and larg4::LArG4::produce().
|
inline |
Definition at line 212 of file MCParticle.h.
References fstatus.
Referenced by evdb_tool::DrawLArVoxel3D::Draw(), sim::dump::DumpMCParticle(), larg4::MCTruthEventActionService::generatePrimaries(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), lcvn::AssignLabels::GetTopology(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthLongText(), evd::SimulationDrawer::MCTruthShortText(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), trkf::TrackKalmanCheater::produce(), larg4::LArG4::produce(), and evgb::RetrieveGHEP().
|
inline |
Definition at line 225 of file MCParticle.h.
References Position().
Referenced by opdet::OpFlashMCTruthAna::analyze(), trkf::TrackAna::anaStitch(), evdb_tool::DrawLArVoxel3D::Draw(), EndE(), EndT(), larg4::MCTruthEventActionService::generatePrimaries(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), lar_pandora::LArPandoraInput::GetTrueX0(), simfilter::FilterGenInTime::KeepParticle(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), simb::operator<<(), t0::MCTruthT0Matching::produce(), DUNE::NeutrinoTrackingEff::truthLength(), and opreco::OpticalRecoAna::update_MC_particle_time().
|
inline |
Definition at line 211 of file MCParticle.h.
References ftrackId.
Referenced by ClusteringValidation::ClusterAnalyser::Analyse(), pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), cluster::ClusterTrackAna::analyze(), NuShowerEff::analyze(), lar_pandora::LArPandoraHelper::BuildMCParticleHitMaps(), lar_pandora::LArPandoraHelper::BuildMCParticleMap(), ShowerRecoTools::ShowerTrackFinderCheater::CalculateElement(), shower::LArPandoraShowerCheatingAlg::CheatDebugEVD(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), sim::EveIdCalculator::DoCalculateEveId(), evdb_tool::DrawLArVoxel3D::Draw(), sim::dump::DumpMCParticle(), larg4::MCTruthEventActionService::generatePrimaries(), opreco::OpticalRecoAna::get_MC_particle_origin(), lar_pandora::LArPandoraHelper::GetFinalStateMCParticle(), lcvn::AssignLabels::GetNeutralDaughterHitsRecursive(), lar_pandora::LArPandoraHelper::GetParentMCParticle(), lcvn::AssignLabels::GetTopology(), shower::LArPandoraShowerCheatingAlg::GetTrueChain(), shower::LArPandoraShowerCheatingAlg::GetTrueParticleMap(), sim::MCMiniPart::MCMiniPart(), MCParticle(), sim::MCParticleLite::MCParticleLite(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthLongText(), evd::SimulationDrawer::MCTruthOrtho(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), sim::ParticleHistory::ParticleHistory(), cheat::PhotonBackTracker::ParticleToMCTruth(), cheat::ParticleInventoryService::ParticleToMCTruth_P(), cheat::ParticleInventory::ParticleToMCTruth_P(), larg4::ParticleListActionService::postUserTrackingAction(), DUNE::NeutrinoShowerEff::processEff(), DUNE::NeutrinoTrackingEff::processEff(), DUNE::MuonTrackingEff::processEff(), trkf::TrackKalmanCheater::produce(), t0::MCTruthT0Matching::produce(), larg4::LArG4::produce(), and simb::MCTruth::SetNeutrino().
|
inline |
Definition at line 254 of file MCParticle.h.
References ftrajectory.
Referenced by evdb_tool::DrawLArVoxel3D::Draw(), sim::dump::DumpMCParticle(), sim::DumpMCParticles::DumpMCParticle(), sim::dump::DumpMCTruth(), larg4::ParticleListAction::isDropped(), larg4::ParticleListActionService::isDropped(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthOrtho(), and cosmic::BeamFlashTrackMatchTaggerAlg::RunHypothesisComparison().
|
inline |
Definition at line 222 of file MCParticle.h.
References Position().
Referenced by quad::EvalVtx::analyze(), opdet::OpFlashMCTruthAna::analyze(), lar_pandora::PFParticleMonitoring::analyze(), pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), evdb_tool::DrawLArVoxel3D::Draw(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), evgb::FillMCTruth(), DUNE::MuonTrackingEff::FuncDistanceAndAngleBetweenTruthAndRecoTrack(), larg4::MCTruthEventActionService::generatePrimaries(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), lar_pandora::PFParticleMonitoring::GetLength(), lar_pandora::PFParticleMonitoring::GetStartAndEndPoints(), lar_pandora::LArPandoraInput::GetTrueStartAndEndPoints(), lar_pandora::LArPandoraInput::GetTrueX0(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), nnet::TrainingDataAlg::particleRange2(), DUNE::NeutrinoShowerEff::processEff(), trkf::TrackCheater::produce(), evdb::ScanFrame::Record(), shower::TCShowerTemplateMaker::showerProfileTrue(), DUNE::NeutrinoTrackingEff::truthLength(), DUNE::MuonTrackingEff::truthLength(), and opreco::OpticalRecoAna::update_MC_particle_time().
|
inline |
Definition at line 223 of file MCParticle.h.
References Position().
Referenced by quad::EvalVtx::analyze(), opdet::OpFlashMCTruthAna::analyze(), lar_pandora::PFParticleMonitoring::analyze(), pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), evdb_tool::DrawLArVoxel3D::Draw(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), DUNE::MuonTrackingEff::FuncDistanceAndAngleBetweenTruthAndRecoTrack(), larg4::MCTruthEventActionService::generatePrimaries(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), lar_pandora::PFParticleMonitoring::GetLength(), lar_pandora::PFParticleMonitoring::GetStartAndEndPoints(), lar_pandora::LArPandoraInput::GetTrueStartAndEndPoints(), lar_pandora::LArPandoraInput::GetTrueX0(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), nnet::TrainingDataAlg::particleRange2(), DUNE::NeutrinoShowerEff::processEff(), trkf::TrackCheater::produce(), cluster::ClusterCheater::produce(), evdb::ScanFrame::Record(), shower::TCShowerTemplateMaker::showerProfileTrue(), DUNE::NeutrinoTrackingEff::truthLength(), DUNE::MuonTrackingEff::truthLength(), and opreco::OpticalRecoAna::update_MC_particle_time().
|
inline |
Definition at line 224 of file MCParticle.h.
References Position().
Referenced by quad::EvalVtx::analyze(), opdet::OpFlashMCTruthAna::analyze(), lar_pandora::PFParticleMonitoring::analyze(), pfpf::PFPAna::analyze(), cluster::ClusterAna::analyze(), lar_pandora::LArPandoraInput::CreatePandoraMCParticles(), evdb_tool::DrawLArVoxel3D::Draw(), evgen::NDKGen::FillHistograms(), evgen::GENIEGen::FillHistograms(), DUNE::MuonTrackingEff::FuncDistanceAndAngleBetweenTruthAndRecoTrack(), larg4::MCTruthEventActionService::generatePrimaries(), g4b::ConvertMCTruthToG4::GeneratePrimaries(), lar_pandora::PFParticleMonitoring::GetLength(), lar_pandora::PFParticleMonitoring::GetStartAndEndPoints(), lar_pandora::LArPandoraInput::GetTrueStartAndEndPoints(), lar_pandora::LArPandoraInput::GetTrueX0(), evd::SimulationDrawer::MCTruth3D(), evd::SimulationDrawer::MCTruthVectors2D(), simb::operator<<(), nnet::TrainingDataAlg::particleRange2(), DUNE::NeutrinoShowerEff::processEff(), DUNE::MuonTrackingEff::processEff(), trkf::TrackCheater::produce(), cluster::ClusterCheater::produce(), evdb::ScanFrame::Record(), shower::TCShowerTemplateMaker::showerProfileTrue(), DUNE::NeutrinoTrackingEff::truthLength(), DUNE::MuonTrackingEff::truthLength(), and opreco::OpticalRecoAna::update_MC_particle_time().
|
inline |
Definition at line 255 of file MCParticle.h.
References fWeight.
Referenced by sim::dump::DumpMCParticle().
|
friend |
Definition at line 157 of file MCParticle.cxx.
|
protected |
Sorted list of daughters of this particle.
Definition at line 44 of file MCParticle.h.
Referenced by AddDaughter(), Daughter(), FirstDaughter(), LastDaughter(), MCParticle(), and NumberDaughters().
|
protected |
end process for the particle
Definition at line 40 of file MCParticle.h.
Referenced by EndProcess(), and SetEndProcess().
|
protected |
|
protected |
Mass; from PDG unless overridden Should be in GeV.
Definition at line 42 of file MCParticle.h.
Referenced by Mass(), MCParticle(), and P().
|
protected |
Mother.
Definition at line 38 of file MCParticle.h.
Referenced by MCParticle(), Mother(), and SetMother().
|
protected |
|
protected |
Polarization.
Definition at line 43 of file MCParticle.h.
Referenced by Polarization(), and SetPolarization().
|
protected |
Detector-simulation physics process that created the particle.
Definition at line 39 of file MCParticle.h.
Referenced by Process().
|
protected |
rescatter code
Definition at line 48 of file MCParticle.h.
Referenced by Rescatter(), and SetRescatter().
|
protected |
Status code from generator, geant, etc.
Definition at line 35 of file MCParticle.h.
Referenced by StatusCode().
|
protected |
TrackId.
Definition at line 36 of file MCParticle.h.
Referenced by MCParticle(), operator<(), and TrackId().
|
protected |
particle trajectory (position,momentum)
Definition at line 41 of file MCParticle.h.
Referenced by AddTrajectoryPoint(), EndE(), EndMomentum(), EndPosition(), EndPx(), EndPy(), EndPz(), EndT(), EndX(), EndY(), EndZ(), Momentum(), NumberTrajectoryPoints(), Position(), SparsifyTrajectory(), and Trajectory().
|
protected |
Assigned weight to this particle for MC tests.
Definition at line 45 of file MCParticle.h.
Referenced by SetWeight(), and Weight().
|
static |
How do we indicate an uninitialized variable? I don't want to use "0" for PDG, because that's potentially a valid value. Instead, let the compiler give us a value. The following template (from climits) evaluates the lower possible negative number that you can store in an int.
Definition at line 28 of file MCParticle.h.
Referenced by sim::dump::DumpMCParticle(), and sim::RescatteringName().