#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 |
| 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.
|
default |
|
default |
| simb::MCParticle::MCParticle | ( | MCParticle const & | p, |
| int | offset | ||
| ) |
Definition at line 86 of file MCParticle.cxx.
|
inline |
Definition at line 268 of file MCParticle.h.
|
inline |
Definition at line 257 of file MCParticle.h.
|
inline |
Definition at line 260 of file MCParticle.h.
| int simb::MCParticle::Daughter | ( | const int | i | ) | const |
Definition at line 112 of file MCParticle.cxx.
|
inline |
Definition at line 233 of file MCParticle.h.
|
inline |
Definition at line 244 of file MCParticle.h.
|
inline |
Definition at line 240 of file MCParticle.h.
|
inline |
Definition at line 225 of file MCParticle.h.
|
inline |
Definition at line 216 of file MCParticle.h.
|
inline |
Definition at line 241 of file MCParticle.h.
|
inline |
Definition at line 242 of file MCParticle.h.
|
inline |
Definition at line 243 of file MCParticle.h.
|
inline |
Definition at line 229 of file MCParticle.h.
|
inline |
Definition at line 226 of file MCParticle.h.
|
inline |
Definition at line 227 of file MCParticle.h.
|
inline |
Definition at line 228 of file MCParticle.h.
|
inline |
Definition at line 250 of file MCParticle.h.
|
inline |
Definition at line 245 of file MCParticle.h.
|
inline |
Definition at line 249 of file MCParticle.h.
|
inline |
Definition at line 246 of file MCParticle.h.
|
inline |
Definition at line 247 of file MCParticle.h.
|
inline |
Definition at line 248 of file MCParticle.h.
|
inline |
Definition at line 251 of file MCParticle.h.
|
inline |
Definition at line 239 of file MCParticle.h.
|
inline |
Definition at line 220 of file MCParticle.h.
|
inline |
Definition at line 213 of file MCParticle.h.
|
inline |
Definition at line 217 of file MCParticle.h.
|
inline |
Definition at line 218 of file MCParticle.h.
|
inline |
Definition at line 274 of file MCParticle.h.
|
default |
|
default |
|
inline |
Definition at line 234 of file MCParticle.h.
|
inline |
Definition at line 212 of file MCParticle.h.
|
inline |
Definition at line 214 of file MCParticle.h.
|
inline |
Definition at line 219 of file MCParticle.h.
|
inline |
Definition at line 215 of file MCParticle.h.
|
inline |
Definition at line 236 of file MCParticle.h.
|
inline |
Definition at line 230 of file MCParticle.h.
|
inline |
Definition at line 231 of file MCParticle.h.
|
inline |
Definition at line 232 of file MCParticle.h.
|
inline |
Definition at line 252 of file MCParticle.h.
| void simb::MCParticle::SetEndProcess | ( | std::string | s | ) |
Definition at line 105 of file MCParticle.cxx.
| void simb::MCParticle::SetGvtx | ( | double * | v | ) |
Definition at line 120 of file MCParticle.cxx.
| void simb::MCParticle::SetGvtx | ( | float * | v | ) |
Definition at line 128 of file MCParticle.cxx.
| void simb::MCParticle::SetGvtx | ( | TLorentzVector | v | ) |
Definition at line 136 of file MCParticle.cxx.
| void simb::MCParticle::SetGvtx | ( | double | x, |
| double | y, | ||
| double | z, | ||
| double | t | ||
| ) |
Definition at line 142 of file MCParticle.cxx.
|
inline |
Definition at line 269 of file MCParticle.h.
|
inline |
Definition at line 270 of file MCParticle.h.
|
inline |
Definition at line 271 of file MCParticle.h.
|
inline |
Definition at line 265 of file MCParticle.h.
|
inline |
Definition at line 211 of file MCParticle.h.
|
inline |
Definition at line 224 of file MCParticle.h.
|
inline |
Definition at line 210 of file MCParticle.h.
|
inline |
Definition at line 253 of file MCParticle.h.
|
inline |
Definition at line 221 of file MCParticle.h.
|
inline |
Definition at line 222 of file MCParticle.h.
|
inline |
Definition at line 223 of file MCParticle.h.
|
inline |
Definition at line 254 of file MCParticle.h.
|
friend |
Definition at line 151 of file MCParticle.cxx.
|
protected |
Sorted list of daughters of this particle.
Definition at line 44 of file MCParticle.h.
|
protected |
end process for the particle
Definition at line 40 of file MCParticle.h.
|
protected |
Vertex needed by generater (genie) to rebuild genie::EventRecord for event reweighting
Definition at line 46 of file MCParticle.h.
|
protected |
Mass; from PDG unless overridden Should be in GeV.
Definition at line 42 of file MCParticle.h.
|
protected |
Mother.
Definition at line 38 of file MCParticle.h.
|
protected |
PDG code.
Definition at line 37 of file MCParticle.h.
|
protected |
Polarization.
Definition at line 43 of file MCParticle.h.
|
protected |
Detector-simulation physics process that created the particle.
Definition at line 39 of file MCParticle.h.
|
protected |
rescatter code
Definition at line 48 of file MCParticle.h.
|
protected |
Status code from generator, geant, etc.
Definition at line 35 of file MCParticle.h.
|
protected |
TrackId.
Definition at line 36 of file MCParticle.h.
|
protected |
particle trajectory (position,momentum)
Definition at line 41 of file MCParticle.h.
|
protected |
Assigned weight to this particle for MC tests.
Definition at line 45 of file MCParticle.h.
|
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.
1.8.11