Public Member Functions | Static Public Attributes | Protected Types | Protected Attributes | List of all members
sim::Particle Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-10-23/Simulation/Particle.h"

Inheritance diagram for sim::Particle:
simb::MCParticle

Public Member Functions

 Particle ()
 Don't write this as ROOT output. More...
 
 Particle (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...
 
 ~Particle ()
 Destructor. More...
 
int TrackId () const
 
int StatusCode () const
 
int PdgCode () const
 
int Mother () const
 
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::MCTrajectoryTrajectory () const
 
void AddTrajectoryPoint (TLorentzVector const &position, TLorentzVector const &momentum)
 
void AddTrajectoryPoint (TLorentzVector const &position, TLorentzVector const &momentum, std::string const &process)
 
double Weight () const
 
void SetWeight (double wt)
 
void SparsifyTrajectory ()
 
bool operator< (const simb::MCParticle &other) const
 

Static Public Attributes

static const int s_uninitialized = std::numeric_limits<int>::min()
 An indicator for an uninitialized variable (see Particle.cxx). More...
 

Protected Types

typedef std::set< intdaughters_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...
 

Detailed Description

Definition at line 21 of file Particle.h.

Member Typedef Documentation

typedef std::set<int> simb::MCParticle::daughters_type
protectedinherited

Definition at line 33 of file MCParticle.h.

Constructor & Destructor Documentation

sim::Particle::Particle ( )

Don't write this as ROOT output.

Standard constructor. If the mass is not supplied in the argument, then the PDG mass is used.

Definition at line 31 of file Particle.cxx.

32  {
33  }
sim::Particle::Particle ( 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 37 of file Particle.cxx.

sim::Particle::~Particle ( )

Destructor.

Definition at line 48 of file Particle.cxx.

49  {
50  }

Member Function Documentation

void simb::MCParticle::AddDaughter ( const int  trackID)
inlineinherited

Definition at line 264 of file MCParticle.h.

References simb::MCParticle::fdaughters.

Referenced by sim::ParticleNavigator::Add(), and g4n::UpdateDaughterInformation::operator()().

264 { fdaughters.insert(trackID); }
daughters_type fdaughters
Sorted list of daughters of this particle.
Definition: MCParticle.h:44
Int_t trackID
Definition: plot.C:84
void simb::MCParticle::AddTrajectoryPoint ( TLorentzVector const &  position,
TLorentzVector const &  momentum 
)
inlineinherited
void simb::MCParticle::AddTrajectoryPoint ( TLorentzVector const &  position,
TLorentzVector const &  momentum,
std::string const &  process 
)
inlineinherited

Definition at line 259 of file MCParticle.h.

References simb::MCTrajectory::Add(), and simb::MCParticle::ftrajectory.

void Add(TLorentzVector const &p, TLorentzVector const &m)
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
int simb::MCParticle::Daughter ( const int  i) const
inherited
double simb::MCParticle::E ( const int  i = 0) const
inlineinherited

Definition at line 232 of file MCParticle.h.

References simb::MCParticle::Momentum().

Referenced by caf::CAFMaker::AddMCTruthToVec(), caf::AddParticleToVec(), caf::AddTrueMichelEToVec(), cheat::TestTrackIds::analyze(), G4MismatchAna::analyze(), mcchk::ShowerAnaCheck::analyze(), remid::ReMIdTrain::analyze(), numue::NumuEAna::analyze(), mcchk::NeutrinoAna::analyze(), pa::ClusterEva::analyze(), testbeam::TestBeamCommissioning::analyze(), vf::TrackEva::analyze(), mcchk::LeptonAna::analyze(), showere::ShowerEnergyAna::analyze(), hough::HoughValidate::analyze(), slicer::SlicerAna::analyze(), bpf::BPFCVNAna::analyze(), bpfit::BreakPointProtonAna::analyze(), ncs::Xbeam::analyze(), ncs::GenieTruth::analyze(), ncs::Xeff::analyze(), upmuana::UpMuRecoAna::analyze(), ncs::NCAna::analyze(), mcchk::NeutrinoAna::AnalyzeNeutrinoInteraction(), cheat::BackTracker::CalcEscapingEnergy(), trk::KalmanTrackAna::CheckRecoTracks(), sim::ParticleNavigator::Cut(), murem::MRCCNeutrino::Energy(), murem::MRCCParticle::Energy(), trk::CosmicTrackAna::FilldEdxHistogram(), caf::FillParticleTruth(), calib::EnergyStandardCandles::FillTrueMichelInfo(), calib::EnergyStandardCandles::FillTruthInfo(), filter::Filter::FillTruthVariables(), nuesand::FillNueSandbox::FillTruthVars(), lem::BackgroundEnricher::filter(), showere::ShowerEnergyFilterMC::filter(), calib::EnergyStandardCandles::FindStoppingMuons(), cvn::Get2DProngEnergyByPDG(), nuesand::FillNueSandbox::GetECF(), gibuu::GiBUURegen::GetEvent(), gibuu::GiBUURegen::GetGenieXSec(), cvn::GetMultiplicityMap(), cvn::GetProngEnergyByPDG(), evd::MCTrueView::LoadEvent(), cvn::MakeParticleLabel(), numue::NumuEAlg::MCTruthEnergyVariables(), rwgt::NeutrinoHasher::operator()(), simb::operator<<(), simb::MCParticle::P(), cvn::ParticlesSliceClassify(), mmc::Validation::print_truth_info(), mono::SlowMonopoleAna::print_truth_info(), evd::SimulationDrawer::PrintParticleAndOffspring(), lem::MakeLibrary::produce(), murem::MRE::produce(), evgen::CORSIKAGen::produce(), cheat::MCCheater::produce(), evgen::CosmicsGen::ProjectCosmicsToSurface(), evgen::CosmicsGen::ProjectMuonsToDetectorBigBox(), evdb::ScanFrame::Record(), bpfit::BPFEnergyAna::setTruthVars(), bpfit::BPFTmvaTrainer::setTruthVars(), ncs::NCAna::SimpleOscProb(), caf::CAFMaker::SimpleOscProb(), and cvn::SliceClassify().

232 { return Momentum(i).E(); }
const TLorentzVector & Momentum(const int i=0) const
Definition: MCParticle.h:219
double simb::MCParticle::EndE ( ) const
inlineinherited

Definition at line 243 of file MCParticle.h.

References simb::MCParticle::ftrajectory, simb::MCParticle::Momentum(), simb::MCTrajectory::size(), and simb::MCParticle::T().

Referenced by upmuana::UpMuRecoAna::analyze(), and calib::EnergyStandardCandles::FillTrueMichelInfo().

243 { return Momentum(ftrajectory.size()-1).T(); }
double T(const int i=0) const
Definition: MCParticle.h:223
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
size_type size() const
Definition: MCTrajectory.h:165
const TLorentzVector & Momentum(const int i=0) const
Definition: MCParticle.h:219
const TLorentzVector & simb::MCParticle::EndMomentum ( ) const
inlineinherited

Definition at line 239 of file MCParticle.h.

References simb::MCParticle::ftrajectory, simb::MCParticle::Momentum(), and simb::MCTrajectory::size().

Referenced by caf::IsTrueDiF(), and novaddt::UpMuAna::populateFLSmap().

239 { return Momentum(ftrajectory.size()-1); }
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
size_type size() const
Definition: MCTrajectory.h:165
const TLorentzVector & Momentum(const int i=0) const
Definition: MCParticle.h:219
const TLorentzVector & simb::MCParticle::EndPosition ( ) const
inlineinherited
std::string simb::MCParticle::EndProcess ( ) const
inlineinherited

Definition at line 215 of file MCParticle.h.

References simb::MCParticle::fendprocess.

215 { return fendprocess; }
std::string fendprocess
end process for the particle
Definition: MCParticle.h:40
double simb::MCParticle::EndPx ( ) const
inlineinherited

Definition at line 240 of file MCParticle.h.

References simb::MCParticle::ftrajectory, simb::MCParticle::Momentum(), simb::MCTrajectory::size(), and X.

240 { return Momentum(ftrajectory.size()-1).X(); }
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
size_type size() const
Definition: MCTrajectory.h:165
const TLorentzVector & Momentum(const int i=0) const
Definition: MCParticle.h:219
Float_t X
Definition: plot.C:38
double simb::MCParticle::EndPy ( ) const
inlineinherited

Definition at line 241 of file MCParticle.h.

References simb::MCParticle::ftrajectory, simb::MCParticle::Momentum(), simb::MCTrajectory::size(), and Y.

241 { return Momentum(ftrajectory.size()-1).Y(); }
Float_t Y
Definition: plot.C:38
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
size_type size() const
Definition: MCTrajectory.h:165
const TLorentzVector & Momentum(const int i=0) const
Definition: MCParticle.h:219
double simb::MCParticle::EndPz ( ) const
inlineinherited

Definition at line 242 of file MCParticle.h.

References simb::MCParticle::ftrajectory, simb::MCParticle::Momentum(), simb::MCTrajectory::size(), and Z.

242 { return Momentum(ftrajectory.size()-1).Z(); }
Float_t Z
Definition: plot.C:38
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
size_type size() const
Definition: MCTrajectory.h:165
const TLorentzVector & Momentum(const int i=0) const
Definition: MCParticle.h:219
double simb::MCParticle::EndT ( ) const
inlineinherited

Definition at line 228 of file MCParticle.h.

References simb::MCParticle::ftrajectory, simb::MCParticle::Position(), simb::MCTrajectory::size(), and simb::MCParticle::T().

Referenced by upmuana::UpMuRecoAna::analyze().

228 { return Position(ftrajectory.size()-1).T(); }
const TLorentzVector & Position(const int i=0) const
Definition: MCParticle.h:218
double T(const int i=0) const
Definition: MCParticle.h:223
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
size_type size() const
Definition: MCTrajectory.h:165
double simb::MCParticle::EndX ( ) const
inlineinherited
double simb::MCParticle::EndY ( ) const
inlineinherited
double simb::MCParticle::EndZ ( ) const
inlineinherited
int simb::MCParticle::FirstDaughter ( ) const
inlineinherited

Definition at line 249 of file MCParticle.h.

References simb::MCParticle::fdaughters.

249 { return *(fdaughters.begin()); }
daughters_type fdaughters
Sorted list of daughters of this particle.
Definition: MCParticle.h:44
TLorentzVector simb::MCParticle::GetGvtx ( ) const
inlineinherited

Definition at line 244 of file MCParticle.h.

References simb::MCParticle::fGvtx.

Referenced by g4n::G4Alg::CollectFLSHitsAndParticles().

244 { return fGvtx; }
TLorentzVector fGvtx
Definition: MCParticle.h:46
double simb::MCParticle::Gvt ( ) const
inlineinherited

Definition at line 248 of file MCParticle.h.

References simb::MCParticle::fGvtx.

Referenced by MergeCollections::MergeCollections::produce(), and MergeG4Collections::MergeG4Collections::produce().

248 { return fGvtx.T(); }
TLorentzVector fGvtx
Definition: MCParticle.h:46
double simb::MCParticle::Gvx ( ) const
inlineinherited

Definition at line 245 of file MCParticle.h.

References simb::MCParticle::fGvtx.

Referenced by MergeCollections::MergeCollections::produce(), and MergeG4Collections::MergeG4Collections::produce().

245 { return fGvtx.X(); }
TLorentzVector fGvtx
Definition: MCParticle.h:46
double simb::MCParticle::Gvy ( ) const
inlineinherited

Definition at line 246 of file MCParticle.h.

References simb::MCParticle::fGvtx.

Referenced by MergeCollections::MergeCollections::produce(), and MergeG4Collections::MergeG4Collections::produce().

246 { return fGvtx.Y(); }
TLorentzVector fGvtx
Definition: MCParticle.h:46
double simb::MCParticle::Gvz ( ) const
inlineinherited

Definition at line 247 of file MCParticle.h.

References simb::MCParticle::fGvtx.

Referenced by MergeCollections::MergeCollections::produce(), and MergeG4Collections::MergeG4Collections::produce().

247 { return fGvtx.Z(); }
TLorentzVector fGvtx
Definition: MCParticle.h:46
int simb::MCParticle::LastDaughter ( ) const
inlineinherited

Definition at line 250 of file MCParticle.h.

References simb::MCParticle::fdaughters.

250 { return *(fdaughters.rbegin()); }
daughters_type fdaughters
Sorted list of daughters of this particle.
Definition: MCParticle.h:44
double simb::MCParticle::Mass ( ) const
inlineinherited
const TLorentzVector & simb::MCParticle::Momentum ( const int  i = 0) const
inlineinherited

Definition at line 219 of file MCParticle.h.

References simb::MCParticle::ftrajectory, and simb::MCTrajectory::Momentum().

Referenced by sim::ParticleNavigator::Add(), caf::AddCosmicTruthToVec(), caf::CAFMaker::AddMCTruthToVec(), caf::AddParticleToVec(), caf::AddTrueMichelEToVec(), mcchk::CosmicAna::analyze(), beamlinerecoana::WCTrackRecoAnalysis::analyze(), earms::ElasticArmsValidate::analyze(), mono::Monopole::analyze(), fuzz::FuzzyKValidate::analyze(), slid::LIDTraining::analyze(), htk::HoughTrack::analyze(), gibuu::GiBUURegen::CopyGenieEvent(), evgen::CosmicsGen::DetectorBigBoxCut(), evgen::CORSIKAGen::DetectorBigBoxCut(), simb::MCParticle::E(), simb::MCParticle::EndE(), simb::MCParticle::EndMomentum(), simb::MCParticle::EndPx(), simb::MCParticle::EndPy(), simb::MCParticle::EndPz(), evgen::CosmicsGen::Enhance(), caf::FillParticleTruth(), nuesand::FillNueSandbox::FillTruthVars(), jmshower::RecoJMShowerFilter::filter(), mono::EventSelector::filter(), bsf::BremShowerFilter::findShowerByTruth(), gibuu::GiBUURegen::GetEvent(), evg::MCTruthToDk2NuHackItr::match_mctruth_nuchoice(), simb::MCParticle::P(), novaddt::UpMuAna::populateFLSmap(), MergeG4Collections::MergeG4Collections::produce(), MergeCollections::MergeCollections::produce(), murem::MRE::produce(), simb::MCParticle::Pt(), simb::MCParticle::Px(), simb::MCParticle::Py(), simb::MCParticle::Pz(), and evgen::CosmicsGen::SeparateMCTruth().

219 { return ftrajectory.Momentum(i); }
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
const TLorentzVector & Momentum(const size_type) const
int simb::MCParticle::Mother ( ) const
inlineinherited

Definition at line 212 of file MCParticle.h.

References simb::MCParticle::fmother.

Referenced by sim::ParticleNavigator::Add(), caf::CAFMaker::AddMCTruthToVec(), cheat::TestTrackIds::analyze(), remid::ReMIdValidate::analyze(), ncs::GenieTruth::analyze(), upmuana::UpMuRecoAna::analyze(), cheat::CheckBackTracking::CheckTrackIdToParticle(), g4n::G4Alg::CollectFLSHitsAndParticles(), evd::MCTrueView::CompMother(), gibuu::GiBUURegen::CopyGenieEvent(), evgen::CosmicsGen::DetectorBigBoxCut(), evgen::CORSIKAGen::DetectorBigBoxCut(), evd::MCTrueView::Draw(), evgen::CosmicsGen::Enhance(), caf::FillParticleTruth(), calib::EnergyStandardCandles::FillTruthInfo(), murem::MuonRemove::FillTruthInfo(), nuesand::FillNueSandbox::FillTruthVars(), evgen::GENIEFilter::filter(), bsf::BremShowerFilter::findShowerByTruth(), gibuu::GiBUURegen::GetEvent(), g4n::UpdateDaughterInformation::operator()(), simb::operator<<(), sim::ParticleHistory::ParticleHistory(), novaddt::UpMuAna::populateFLSmap(), g4n::ParticleListAction::PostTrackingAction(), MergeG4Collections::MergeG4Collections::produce(), MergeCollections::MergeCollections::produce(), lem::MakeLibrary::produce(), cheat::MCCheater::produce(), murem::MergeTruth::produce(), evgen::CosmicsGen::ProjectCosmicsToSurface(), evgen::CosmicsGen::ProjectMuonsToDetectorBigBox(), murem::MuonRemove::RemoveByEfficiency(), murem::MuonRemove::RemoveByTruth(), and evgen::CosmicsGen::SeparateMCTruth().

212 { return fmother; }
int fmother
Mother.
Definition: MCParticle.h:38
int simb::MCParticle::NumberDaughters ( ) const
inlineinherited
unsigned int simb::MCParticle::NumberTrajectoryPoints ( ) const
inlineinherited
bool simb::MCParticle::operator< ( const simb::MCParticle other) const
inlineinherited

Definition at line 270 of file MCParticle.h.

References simb::MCParticle::ftrackId.

270 { return ftrackId < other.ftrackId; }
int ftrackId
TrackId.
Definition: MCParticle.h:36
double simb::MCParticle::P ( const int  i = 0) const
inlineinherited

Definition at line 233 of file MCParticle.h.

References simb::MCParticle::E(), simb::MCParticle::fmass, simb::MCParticle::Momentum(), cet::pow(), and std::sqrt().

Referenced by ddt::SMMEff::analyze(), ddt::SMMADC::analyze(), mmc::Validation::analyze(), mcchk::ShowerAnaCheck::analyze(), zcl::SMMTriggerAna::analyze(), mcchk::MonopoleAna::analyze(), mcchk::RockAna::analyze(), mcchk::NeutrinoAna::analyze(), beamlinerecoana::WCTrackRecoAnalysis::analyze(), zcl::MMCheater::analyze(), mcchk::LeptonAna::analyze(), zcl::FmmTriggerAna::analyze(), ddt::SlicerEva::analyze(), zcl::FmmTrackerValidation::analyze(), mono::SlowMonopoleAna::analyze(), zcl::FastMMStudy::analyze(), evgen::CosmicsGen::DetectorBigBoxCut(), evgen::CORSIKAGen::DetectorBigBoxCut(), evd::MCTrueView::Draw(), calib::CosmicTrends::FillHistograms(), evd::SimulationDrawer::MCTruthShortText(), evd::SimulationDrawer::MCTruthVectors2D(), evd::SimulationDrawer::MCTruthVectors3D(), mmc::Validation::print_truth_info(), mono::SlowMonopoleAna::print_truth_info(), evd::SimulationDrawer::PrintParticleAndOffspring(), zcl::SMMCluster::produce(), murem::MergeTruth::produce(), evgen::CosmicsGen::ProjectCosmicsToSurface(), and evgen::CosmicsGen::ProjectMuonsToDetectorBigBox().

233  { return std::sqrt(std::pow(Momentum(i).E(),2.)
234  - std::pow(fmass,2.)); }
double E(const int i=0) const
Definition: MCParticle.h:232
T sqrt(T number)
Definition: d0nt_math.hpp:156
constexpr T pow(T x)
Definition: pow.h:75
double fmass
Mass; from PDG unless overridden Should be in GeV.
Definition: MCParticle.h:42
const TLorentzVector & Momentum(const int i=0) const
Definition: MCParticle.h:219
int simb::MCParticle::PdgCode ( void  ) const
inlineinherited

Definition at line 211 of file MCParticle.h.

References simb::MCParticle::fpdgCode.

Referenced by sim::ParticleNavigator::Add(), caf::AddCosmicTruthToVec(), caf::CAFMaker::AddMCTruthToVec(), caf::AddParticleToVec(), cheat::TestTrackIds::analyze(), ve::VertexEva::analyze(), remid::ReMIdValidate::analyze(), ddt::SMMEff::analyze(), calib::ParticleCorrections::analyze(), ddt::SMMADC::analyze(), calib::TestParticleCorrections::analyze(), G4MismatchAna::analyze(), mcchk::ShowerAnaCheck::analyze(), remid::ReMIdTrain::analyze(), zcl::SMMTriggerAna::analyze(), mcchk::MonopoleAna::analyze(), mcchk::CosmicAna::analyze(), mcchk::RockAna::analyze(), numue::NumuEAna::analyze(), mcchk::NeutrinoAna::analyze(), murem::MuonRemoveAna::analyze(), testbeam::TestBeamCommissioning::analyze(), vf::TrackEva::analyze(), zcl::MMCheater::analyze(), remid::ReMIdDedx::analyze(), mcchk::LeptonAna::analyze(), zcl::FmmTriggerAna::analyze(), ddt::SlicerEva::analyze(), zcl::FmmTrackerValidation::analyze(), showere::ShowerEnergyAna::analyze(), hough::HoughValidate::analyze(), earms::ElasticArmsValidate::analyze(), slicer::SlicerAna::analyze(), fuzz::FuzzyKValidate::analyze(), remid::ReMIdDedxStudies::analyze(), zcl::FastMMStudy::analyze(), bpf::BPFCVNAna::analyze(), bpfit::BreakPointProtonAna::analyze(), CerenkovResponse::analyze(), ncs::Xbeam::analyze(), ncs::GenieTruth::analyze(), ncs::Xeff::analyze(), ddt::SuperDDTEva::analyze(), slid::LIDTraining::analyze(), upmuana::UpMuRecoAna::analyze(), ncs::NCAna::analyze(), htk::HoughTrack::analyze(), sn::SupernovaMCCluster::BuildInteractionTrackIDMap(), cheat::BackTracker::CalcTotalEscapingEnergy(), cheat::RecoCheckAna::CheckRecoClusters(), trk::KalmanTrackAna::CheckRecoTracks(), cheat::BackTracker::ClusterToParticle(), evd::MCTrueView::CompParticle(), novarwgt::ConvertNuToolsEvent(), gibuu::GiBUURegen::CopyGenieEvent(), evgen::CosmicsGen::DetectorBigBoxCut(), evgen::CORSIKAGen::DetectorBigBoxCut(), evd::MCTrueView::Draw(), evgen::CosmicsGen::Enhance(), trk::CosmicTrackAna::FillEventMCTruthHistograms(), caf::FillParticleTruth(), calib::EnergyStandardCandles::FillTruthInfo(), murem::MuonRemove::FillTruthInfo(), filter::Filter::FillTruthVariables(), nuesand::FillNueSandbox::FillTruthVars(), lem::BackgroundEnricher::filter(), tut::TutFilter::filter(), jmshower::RecoJMShowerFilter::filter(), evgen::GENIEFilter::filter(), filter::TruthContain::filter(), showere::ShowerEnergyFilterMC::filter(), caf::FindAndAddMichels(), bsf::BremShowerFilter::findShowerByTruth(), calib::EnergyStandardCandles::FindStoppingMuons(), calib::EnergyStandardCandles::FixPhotonAncestry(), cvn::Get2DProngEfficiencyByPDG(), cvn::Get2DProngEnergyByPDG(), cvn::Get2DProngPurityByPDG(), nuesand::FillNueSandbox::GetECF(), gibuu::GiBUURegen::GetEvent(), gibuu::GiBUURegen::GetGenieXSec(), cvn::GetInteractionType(), gibuu::GiBUURegen::GetKey(), cvn::GetMultiplicityMap(), cvn::GetProngEfficiencyByPDG(), cvn::GetProngEnergyByPDG(), cvn::GetProngPurityByPDG(), cvn::HitClassify(), caf::IsTrueDiF(), calib::RockMuonStopperSelection::IsTrulyContainedStopper(), calib::StopperSelection::IsTrulyContainedStopper(), calib::RockMuonStopperSelection::IsTrulyInFiducial(), calib::ThroughgoingSelection::IsTrulyUncontained(), skim::EvaluatorNumuCCpi::KeepEventSlices(), evd::MCTrueView::LoadEvent(), comi::Cana::LoadMCInfo(), cvn::MakeParticleLabel(), numue::NumuEAlg::MCTruthEnergyVariables(), evd::SimulationDrawer::MCTruthShortText(), evd::SimulationDrawer::MCTruthTrajectoriesAnyD(), evd::SimulationDrawer::MCTruthVectors2D(), evd::SimulationDrawer::MCTruthVectors3D(), rwgt::NeutrinoHasher::operator()(), simb::operator<<(), skim::ParametersNumuCCpi::ParametersNumuCCpi(), cvn::ParticlesSliceClassify(), novaddt::UpMuAna::populateFLSmap(), evd::SimulationDrawer::PrintParticleAndOffspring(), tut::TutProducer::produce(), filter::TruthFilter::produce(), MergeG4Collections::MergeG4Collections::produce(), MergeCollections::MergeCollections::produce(), lem::MakeLibrary::produce(), zcl::SMMCluster::produce(), evgen::CORSIKAGen::produce(), cheat::MCCheater::produce(), caf::CAFMaker::produce(), evgen::CosmicsGen::ProjectCosmicsToSurface(), evgen::CosmicsGen::ProjectMuonsToDetectorBigBox(), cvn::ProngClassify(), evdb::ScanFrame::Record(), murem::MuonRemove::RemoveByEfficiency(), murem::MuonRemove::RemoveByTruth(), evgen::CosmicsGen::SeparateMCTruth(), simb::MCTruth::SetNeutrino(), bpfit::BPFEnergyAna::setTruthVars(), bpfit::BPFTmvaTrainer::setTruthVars(), ncs::NCAna::SimpleOscProb(), caf::CAFMaker::SimpleOscProb(), cvn::SliceClassify(), and cheat::BackTracker::TracksToParticles().

211 { return fpdgCode; }
int fpdgCode
PDG code.
Definition: MCParticle.h:37
const TVector3 & simb::MCParticle::Polarization ( ) const
inlineinherited
const TLorentzVector & simb::MCParticle::Position ( const int  i = 0) const
inlineinherited

Definition at line 218 of file MCParticle.h.

References simb::MCParticle::ftrajectory, and simb::MCTrajectory::Position().

Referenced by sim::ParticleNavigator::Add(), caf::AddCosmicTruthToVec(), caf::CAFMaker::AddMCTruthToVec(), cheat::TestTrackIds::analyze(), G4MismatchAna::analyze(), mcchk::CosmicAna::analyze(), htk::HoughTrack::analyze(), upmuana::UpMuRecoAna::containmentType(), gibuu::GiBUURegen::CopyGenieEvent(), simb::MCParticle::EndPosition(), simb::MCParticle::EndT(), simb::MCParticle::EndX(), simb::MCParticle::EndY(), simb::MCParticle::EndZ(), evgen::CosmicsGen::Enhance(), trk::CosmicTrackAna::FilldEdxHistogram(), caf::FillParticleTruth(), nuesand::FillNueSandbox::FillTruthVars(), bsf::BremShowerFilter::findShowerByTruth(), gibuu::GiBUURegen::GetEvent(), calib::RockMuonStopperSelection::IsTrulyContainedStopper(), calib::RockMuonStopperSelection::IsTrulyInFiducial(), evd::SimulationDrawer::MCTruthTrajectoriesAnyD(), tut::TutProducer::produce(), MergeG4Collections::MergeG4Collections::produce(), MergeCollections::MergeCollections::produce(), lem::MakeLibrary::produce(), cheat::MCCheater::produce(), fuzz::FuzzyKVertex::produce(), gibuu::GiBUURegen::produce(), evgen::CosmicsGen::SeparateMCTruth(), simb::MCParticle::T(), numue::NumuEAna::TotalLengthInDetector(), cheat::RecoCheckAna::TotalLengthInDetector(), trk::KalmanTrackAna::TotalLengthInDetector(), simb::MCParticle::Vx(), simb::MCParticle::Vy(), and simb::MCParticle::Vz().

218 { return ftrajectory.Position(i); }
const TLorentzVector & Position(const size_type) const
The accessor methods described above.
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
std::string simb::MCParticle::Process ( ) const
inlineinherited
double simb::MCParticle::Pt ( const int  i = 0) const
inlineinherited

Definition at line 235 of file MCParticle.h.

References simb::MCParticle::Momentum(), cet::pow(), simb::MCParticle::Px(), simb::MCParticle::Py(), and std::sqrt().

Referenced by simb::MCNeutrino::Pt().

235  { return std::sqrt( std::pow(Momentum(i).Px(),2.)
236  + std::pow(Momentum(i).Py(),2.)); }
double Py(const int i=0) const
Definition: MCParticle.h:230
T sqrt(T number)
Definition: d0nt_math.hpp:156
constexpr T pow(T x)
Definition: pow.h:75
double Px(const int i=0) const
Definition: MCParticle.h:229
const TLorentzVector & Momentum(const int i=0) const
Definition: MCParticle.h:219
double simb::MCParticle::Px ( const int  i = 0) const
inlineinherited
double simb::MCParticle::Py ( const int  i = 0) const
inlineinherited
double simb::MCParticle::Pz ( const int  i = 0) const
inlineinherited
int simb::MCParticle::Rescatter ( ) const
inlineinherited
void simb::MCParticle::SetEndProcess ( std::string  s)
inherited

Definition at line 105 of file MCParticle.cxx.

References simb::MCParticle::fendprocess.

106  {
107  fendprocess = s;
108  }
std::string fendprocess
end process for the particle
Definition: MCParticle.h:40
const XML_Char * s
Definition: expat.h:262
void simb::MCParticle::SetGvtx ( double *  v)
inherited
void simb::MCParticle::SetGvtx ( float *  v)
inherited

Definition at line 128 of file MCParticle.cxx.

References simb::MCParticle::fGvtx, and MECModelEnuComparisons::i.

129  {
130  for(int i = 0; i < 4; i++) {
131  fGvtx[i] = v[i];
132  }
133  }
TLorentzVector fGvtx
Definition: MCParticle.h:46
void simb::MCParticle::SetGvtx ( TLorentzVector  v)
inherited

Definition at line 136 of file MCParticle.cxx.

References simb::MCParticle::fGvtx, and registry_explorer::v.

137  {
138  fGvtx = v;
139  }
TLorentzVector fGvtx
Definition: MCParticle.h:46
void simb::MCParticle::SetGvtx ( double  x,
double  y,
double  z,
double  t 
)
inherited

Definition at line 142 of file MCParticle.cxx.

References simb::MCParticle::fGvtx.

143  {
144  fGvtx.SetX(x);
145  fGvtx.SetY(y);
146  fGvtx.SetZ(z);
147  fGvtx.SetT(t);
148  }
TLorentzVector fGvtx
Definition: MCParticle.h:46
z
Definition: test.py:28
void simb::MCParticle::SetPolarization ( const TVector3 &  p)
inlineinherited

Definition at line 265 of file MCParticle.h.

References simb::MCParticle::fpolarization.

Referenced by sim::ParticleNavigator::Add(), g4n::G4Alg::CollectFLSHitsAndParticles(), and g4n::ParticleListAction::PreTrackingAction().

265 { fpolarization = p; }
const char * p
Definition: xmltok.h:285
TVector3 fpolarization
Polarization.
Definition: MCParticle.h:43
void simb::MCParticle::SetRescatter ( int  code)
inlineinherited

Definition at line 266 of file MCParticle.h.

References simb::MCParticle::frescatter.

266 { frescatter = code; }
int frescatter
rescatter code
Definition: MCParticle.h:48
Definition: inftrees.h:24
void simb::MCParticle::SetWeight ( double  wt)
inlineinherited

Definition at line 267 of file MCParticle.h.

References simb::MCParticle::fWeight.

267 { fWeight = wt; }
double fWeight
Assigned weight to this particle for MC tests.
Definition: MCParticle.h:45
void simb::MCParticle::SparsifyTrajectory ( )
inlineinherited

Definition at line 263 of file MCParticle.h.

References simb::MCParticle::ftrajectory, and simb::MCTrajectory::Sparsify().

263 { ftrajectory.Sparsify(); }
void Sparsify(double margin=.1)
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
int simb::MCParticle::StatusCode ( ) const
inlineinherited
double simb::MCParticle::T ( const int  i = 0) const
inlineinherited
int simb::MCParticle::TrackId ( ) const
inlineinherited

Definition at line 209 of file MCParticle.h.

References simb::MCParticle::ftrackId.

Referenced by sim::ParticleNavigator::Add(), caf::AddParticleToVec(), caf::AddTrueMichelEToVec(), ddt::SMMEff::analyze(), mmc::Validation::analyze(), remid::ReMIdTrain::analyze(), zcl::SMMTriggerAna::analyze(), mcchk::ShowerAnaCheck::analyze(), mcchk::MonopoleAna::analyze(), numue::NumuEAna::analyze(), mcchk::CosmicAna::analyze(), pa::ClusterEva::analyze(), vf::TrackEva::analyze(), zcl::MMCheater::analyze(), zcl::FmmTriggerAna::analyze(), mcchk::LeptonAna::analyze(), zcl::FmmTrackerValidation::analyze(), ddt::SlicerEva::analyze(), mono::SlowMonopoleAna::analyze(), zcl::FastMMStudy::analyze(), mono::Monopole::analyze(), ncs::GenieTruth::analyze(), ddt::SuperDDTEva::analyze(), upmuana::UpMuRecoAna::analyze(), htk::HoughTrack::analyze(), murem::MRCCAna::analyze(), sn::SupernovaMCCluster::BuildInteractionHitMap(), sn::SupernovaMCCluster::BuildInteractionTrackIDMap(), cheat::BackTracker::CalcEscapingEnergy(), cheat::BackTracker::CalcTotalEscapingEnergy(), trk::KalmanTrackAna::CheckRecoTracks(), cheat::BackTracker::ClusterByTruth(), g4n::G4Alg::CollectFLSHitsAndParticles(), evd::MCTrueView::CompEDep(), evd::MCTrueView::CompMomentum(), evd::MCTrueView::CompNHit(), evd::MCTrueView::CompTime(), evd::MCTrueView::CompTrackId(), evgen::CosmicsGen::DetectorBigBoxCut(), evgen::CORSIKAGen::DetectorBigBoxCut(), sim::EveIdCalculator::DoCalculateEveId(), evd::MCTrueView::Draw(), evgen::CosmicsGen::Enhance(), trk::CosmicTrackAna::FillEventMCTruthHistograms(), caf::FillParticleTruth(), calib::EnergyStandardCandles::FillTrueMichelInfo(), murem::MuonRemove::FillTruthInfo(), evgen::GENIEFilter::filter(), filter::TruthContain::filter(), caf::FindDaughterVisE(), caf::FindDaughterVisENonRecur(), bsf::BremShowerFilter::findShowerByTruth(), evd::MCTrueView::HiLite(), sim::ParticleNavigator::insert(), evd::MCTrueView::LoadEvent(), numue::NumuEAlg::MCTruthEnergyVariables(), cheat::BackTracker::MCTruthToCluster(), g4n::UpdateDaughterInformation::operator()(), simb::operator<<(), sim::ParticleHistory::ParticleHistory(), cheat::BackTracker::ParticleToMCTruth(), novaddt::UpMuAna::populateFLSmap(), g4n::ParticleListAction::PostTrackingAction(), mmc::Validation::print_truth_info(), mono::SlowMonopoleAna::print_truth_info(), evd::SimulationDrawer::PrintParticleAndOffspring(), tut::TutProducer::produce(), MergeCollections::MergeCollections::produce(), MergeG4Collections::MergeG4Collections::produce(), lem::MakeLibrary::produce(), zcl::SMMCluster::produce(), murem::MRE::produce(), g4n::G4Gen::produce(), cheat::MCCheater::produce(), murem::MergeTruth::produce(), evgen::CosmicsGen::ProjectCosmicsToSurface(), evgen::CosmicsGen::ProjectMuonsToDetectorBigBox(), murem::MuonRemove::RemoveByEfficiency(), murem::MuonRemove::RemoveByTruth(), evgen::CosmicsGen::SeparateMCTruth(), simb::MCTruth::SetNeutrino(), and evd::MCTrueView::Update().

209 { return ftrackId; }
int ftrackId
TrackId.
Definition: MCParticle.h:36
const simb::MCTrajectory & simb::MCParticle::Trajectory ( ) const
inlineinherited

Definition at line 252 of file MCParticle.h.

References simb::MCParticle::ftrajectory.

Referenced by vf::TrackEva::analyze(), calib::EnergyStandardCandles::FillTrueMichelInfo(), and trk::CosmicTrackUtilities::TrueLengthEndPoints().

252 { return ftrajectory; }
simb::MCTrajectory ftrajectory
particle trajectory (position,momentum)
Definition: MCParticle.h:41
double simb::MCParticle::Vx ( const int  i = 0) const
inlineinherited

Definition at line 220 of file MCParticle.h.

References simb::MCParticle::Position().

Referenced by cheat::TestTrackIds::analyze(), ve::VertexEva::analyze(), tut::RecoValidationTutorial::analyze(), mcchk::ShowerAnaCheck::analyze(), mcchk::MonopoleAna::analyze(), mcchk::RockAna::analyze(), mcchk::NeutrinoAna::analyze(), mcchk::LeptonAna::analyze(), zcl::FmmTrackerValidation::analyze(), hough::HoughValidate::analyze(), earms::ElasticArmsValidate::analyze(), mcchk::DetSimAna::analyze(), slicer::SlicerAna::analyze(), fuzz::FuzzyKValidate::analyze(), ncs::Xbeam::analyze(), ncs::GenieTruth::analyze(), ncs::Xeff::analyze(), ncs::NCAna::analyze(), upmuana::UpMuRecoAna::analyze(), mcchk::NeutrinoAna::AnalyzeNeutrinoInteraction(), mcchk::ShowerAnaCheck::EMMoliereRadius(), mcchk::ShowerAnaCheck::EMShowerWidth(), filter::Filter::FillTruthVariables(), filter::TruthContain::filter(), nuesand::FillNueSandbox::GetECF(), evd::SimulationDrawer::GetVertexPoints(), cheat::BackTracker::InterceptsDetector(), comi::Cana::LoadMCInfo(), evd::SimulationDrawer::MCTruthVectors2D(), evd::SimulationDrawer::MCTruthVectors3D(), earms::ElasticArmsHS::MCVertex(), simb::operator<<(), MergeG4Collections::MergeG4Collections::ParticleIsInMCTruth(), cvn::ParticlesSliceClassify(), mmc::Validation::print_truth_info(), mono::SlowMonopoleAna::print_truth_info(), evd::SimulationDrawer::PrintParticleAndOffspring(), evgen::GENIERockGen::produce(), murem::MRE::produce(), murem::MergeTruth::produce(), fuzz::FuzzyKVertex::produce(), evgen::CosmicsGen::ProjectCosmicsToSurface(), evgen::CosmicsGen::ProjectMuonsToDetectorBigBox(), evdb::ScanFrame::Record(), MergeG4Collections::MergeG4Collections::SameMCTruth(), and cvn::SliceClassify().

220 { return Position(i).X(); }
const TLorentzVector & Position(const int i=0) const
Definition: MCParticle.h:218
double simb::MCParticle::Vy ( const int  i = 0) const
inlineinherited

Definition at line 221 of file MCParticle.h.

References simb::MCParticle::Position().

Referenced by cheat::TestTrackIds::analyze(), ve::VertexEva::analyze(), tut::RecoValidationTutorial::analyze(), mcchk::ShowerAnaCheck::analyze(), mcchk::MonopoleAna::analyze(), mcchk::RockAna::analyze(), mcchk::NeutrinoAna::analyze(), mcchk::LeptonAna::analyze(), zcl::FmmTrackerValidation::analyze(), hough::HoughValidate::analyze(), earms::ElasticArmsValidate::analyze(), mcchk::DetSimAna::analyze(), slicer::SlicerAna::analyze(), fuzz::FuzzyKValidate::analyze(), ncs::Xbeam::analyze(), ncs::Xeff::analyze(), ncs::GenieTruth::analyze(), ncs::NCAna::analyze(), upmuana::UpMuRecoAna::analyze(), mcchk::NeutrinoAna::AnalyzeNeutrinoInteraction(), mcchk::ShowerAnaCheck::EMMoliereRadius(), mcchk::ShowerAnaCheck::EMShowerWidth(), filter::Filter::FillTruthVariables(), filter::TruthContain::filter(), nuesand::FillNueSandbox::GetECF(), evd::SimulationDrawer::GetVertexPoints(), cheat::BackTracker::InterceptsDetector(), comi::Cana::LoadMCInfo(), evd::SimulationDrawer::MCTruthVectors2D(), evd::SimulationDrawer::MCTruthVectors3D(), simb::operator<<(), MergeG4Collections::MergeG4Collections::ParticleIsInMCTruth(), cvn::ParticlesSliceClassify(), mmc::Validation::print_truth_info(), mono::SlowMonopoleAna::print_truth_info(), evd::SimulationDrawer::PrintParticleAndOffspring(), evgen::GENIERockGen::produce(), murem::MRE::produce(), murem::MergeTruth::produce(), fuzz::FuzzyKVertex::produce(), evgen::CosmicsGen::ProjectCosmicsToSurface(), evgen::CosmicsGen::ProjectMuonsToDetectorBigBox(), evdb::ScanFrame::Record(), MergeG4Collections::MergeG4Collections::SameMCTruth(), and cvn::SliceClassify().

221 { return Position(i).Y(); }
const TLorentzVector & Position(const int i=0) const
Definition: MCParticle.h:218
double simb::MCParticle::Vz ( const int  i = 0) const
inlineinherited

Definition at line 222 of file MCParticle.h.

References simb::MCParticle::Position().

Referenced by cheat::TestTrackIds::analyze(), ve::VertexEva::analyze(), tut::RecoValidationTutorial::analyze(), mcchk::ShowerAnaCheck::analyze(), mcchk::MonopoleAna::analyze(), mcchk::RockAna::analyze(), mcchk::NeutrinoAna::analyze(), mcchk::LeptonAna::analyze(), zcl::FmmTrackerValidation::analyze(), hough::HoughValidate::analyze(), earms::ElasticArmsValidate::analyze(), mcchk::DetSimAna::analyze(), slicer::SlicerAna::analyze(), fuzz::FuzzyKValidate::analyze(), ncs::Xbeam::analyze(), ncs::GenieTruth::analyze(), ncs::Xeff::analyze(), ncs::NCAna::analyze(), upmuana::UpMuRecoAna::analyze(), mcchk::NeutrinoAna::AnalyzeNeutrinoInteraction(), evd::MCTrueView::CompVtxZ(), evd::MCTrueView::Draw(), mcchk::ShowerAnaCheck::EMMoliereRadius(), mcchk::ShowerAnaCheck::EMShowerWidth(), filter::Filter::FillTruthVariables(), filter::TruthContain::filter(), nuesand::FillNueSandbox::GetECF(), evd::SimulationDrawer::GetVertexPoints(), cheat::BackTracker::InterceptsDetector(), comi::Cana::LoadMCInfo(), evd::SimulationDrawer::MCTruthVectors2D(), evd::SimulationDrawer::MCTruthVectors3D(), simb::operator<<(), MergeG4Collections::MergeG4Collections::ParticleIsInMCTruth(), cvn::ParticlesSliceClassify(), mmc::Validation::print_truth_info(), mono::SlowMonopoleAna::print_truth_info(), evd::SimulationDrawer::PrintParticleAndOffspring(), evgen::GENIERockGen::produce(), murem::MRE::produce(), murem::MergeTruth::produce(), fuzz::FuzzyKVertex::produce(), evgen::CosmicsGen::ProjectCosmicsToSurface(), evgen::CosmicsGen::ProjectMuonsToDetectorBigBox(), evdb::ScanFrame::Record(), MergeG4Collections::MergeG4Collections::SameMCTruth(), and cvn::SliceClassify().

222 { return Position(i).Z(); }
const TLorentzVector & Position(const int i=0) const
Definition: MCParticle.h:218
double simb::MCParticle::Weight ( void  ) const
inlineinherited

Member Data Documentation

daughters_type simb::MCParticle::fdaughters
protectedinherited
std::string simb::MCParticle::fendprocess
protectedinherited

end process for the particle

Definition at line 40 of file MCParticle.h.

Referenced by simb::MCParticle::EndProcess(), and simb::MCParticle::SetEndProcess().

TLorentzVector simb::MCParticle::fGvtx
protectedinherited

Vertex needed by generater (genie) to rebuild genie::EventRecord for event reweighting

Definition at line 46 of file MCParticle.h.

Referenced by simb::MCParticle::GetGvtx(), simb::MCParticle::Gvt(), simb::MCParticle::Gvx(), simb::MCParticle::Gvy(), simb::MCParticle::Gvz(), and simb::MCParticle::SetGvtx().

double simb::MCParticle::fmass
protectedinherited

Mass; from PDG unless overridden Should be in GeV.

Definition at line 42 of file MCParticle.h.

Referenced by simb::MCParticle::Mass(), simb::MCParticle::MCParticle(), and simb::MCParticle::P().

int simb::MCParticle::fmother
protectedinherited

Mother.

Definition at line 38 of file MCParticle.h.

Referenced by simb::MCParticle::Mother().

int simb::MCParticle::fpdgCode
protectedinherited

PDG code.

Definition at line 37 of file MCParticle.h.

Referenced by simb::MCParticle::PdgCode().

TVector3 simb::MCParticle::fpolarization
protectedinherited

Polarization.

Definition at line 43 of file MCParticle.h.

Referenced by simb::MCParticle::Polarization(), and simb::MCParticle::SetPolarization().

std::string simb::MCParticle::fprocess
protectedinherited

Detector-simulation physics process that created the particle.

Definition at line 39 of file MCParticle.h.

Referenced by simb::MCParticle::Process().

int simb::MCParticle::frescatter
protectedinherited

rescatter code

Definition at line 48 of file MCParticle.h.

Referenced by simb::MCParticle::Rescatter(), and simb::MCParticle::SetRescatter().

int simb::MCParticle::fstatus
protectedinherited

Status code from generator, geant, etc.

Definition at line 35 of file MCParticle.h.

Referenced by simb::MCParticle::StatusCode().

int simb::MCParticle::ftrackId
protectedinherited

TrackId.

Definition at line 36 of file MCParticle.h.

Referenced by simb::MCParticle::operator<(), and simb::MCParticle::TrackId().

simb::MCTrajectory simb::MCParticle::ftrajectory
protectedinherited
double simb::MCParticle::fWeight
protectedinherited

Assigned weight to this particle for MC tests.

Definition at line 45 of file MCParticle.h.

Referenced by simb::MCParticle::SetWeight(), and simb::MCParticle::Weight().

const int sim::Particle::s_uninitialized = std::numeric_limits<int>::min()
static

An indicator for an uninitialized variable (see Particle.cxx).

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 25 of file Particle.h.


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