STDHEP-like event record entry that can fit a particle or a nucleus. More...
#include <GHepParticle.h>
Public Member Functions | |
GHepParticle () | |
GHepParticle (const GHepParticle &particle) | |
GHepParticle (int pdg, GHepStatus_t status, int mother1, int mother2, int daughter1, int daughter2, const TLorentzVector &p, const TLorentzVector &v) | |
GHepParticle (int pdg, GHepStatus_t status, int mother1, int mother2, int daughter1, int daughter2, double px, double py, double pz, double E, double x, double y, double z, double t) | |
GHepParticle (TRootIOCtor *) | |
~GHepParticle () | |
int | Pdg (void) const |
GHepStatus_t | Status (void) const |
int | RescatterCode (void) const |
int | FirstMother (void) const |
int | LastMother (void) const |
int | FirstDaughter (void) const |
int | LastDaughter (void) const |
bool | HasDaughters (void) const |
bool | IsBound (void) const |
string | Name (void) const |
Name that corresponds to the PDG code. More... | |
double | Mass (void) const |
Mass that corresponds to the PDG code. More... | |
double | Charge (void) const |
Chrg that corresponds to the PDG code. More... | |
const TLorentzVector * | P4 (void) const |
const TLorentzVector * | X4 (void) const |
TLorentzVector * | P4 (void) |
TLorentzVector * | X4 (void) |
TLorentzVector * | GetP4 (void) const |
TLorentzVector * | GetX4 (void) const |
double | Px (void) const |
Get Px. More... | |
double | Py (void) const |
Get Py. More... | |
double | Pz (void) const |
Get Pz. More... | |
double | E (void) const |
Get energy. More... | |
double | Energy (void) const |
Get energy. More... | |
double | KinE (bool mass_from_pdg=false) const |
Get kinetic energy. More... | |
double | Vx (void) const |
Get production x. More... | |
double | Vy (void) const |
Get production y. More... | |
double | Vz (void) const |
Get production z. More... | |
double | Vt (void) const |
Get production time. More... | |
double | RemovalEnergy (void) const |
Get removal energy. More... | |
bool | Compare (const GHepParticle *p) const |
bool | ComparePdgCodes (const GHepParticle *p) const |
bool | CompareStatusCodes (const GHepParticle *p) const |
bool | CompareFamily (const GHepParticle *p) const |
bool | CompareMomentum (const GHepParticle *p) const |
bool | IsOnMassShell (void) const |
bool | IsOffMassShell (void) const |
int | Z (void) const |
int | A (void) const |
double | PolzPolarAngle (void) const |
double | PolzAzimuthAngle (void) const |
bool | PolzIsSet (void) const |
void | GetPolarization (TVector3 &polz) |
void | SetPdgCode (int c) |
void | SetStatus (GHepStatus_t s) |
void | SetRescatterCode (int code) |
void | SetFirstMother (int m) |
void | SetLastMother (int m) |
void | SetFirstDaughter (int d) |
void | SetLastDaughter (int d) |
void | SetMomentum (const TLorentzVector &p4) |
void | SetPosition (const TLorentzVector &v4) |
void | SetMomentum (double px, double py, double pz, double E) |
void | SetPosition (double x, double y, double z, double t) |
void | SetEnergy (double E) |
void | SetPx (double px) |
void | SetPy (double py) |
void | SetPz (double pz) |
void | SetPolarization (double theta, double phi) |
void | SetPolarization (const TVector3 &polz) |
void | SetBound (bool bound) |
void | SetRemovalEnergy (double Erm) |
void | CleanUp (void) |
void | Reset (void) |
void | Clear (Option_t *option) |
void | Copy (const GHepParticle &particle) |
void | Print (ostream &stream) const |
void | Print (Option_t *opt) const |
bool | operator== (const GHepParticle &p) const |
GHepParticle & | operator= (const GHepParticle &p) |
Private Member Functions | |
void | Init (void) |
void | AssertIsKnownParticle (void) const |
Private Attributes | |
int | fPdgCode |
particle PDG code More... | |
GHepStatus_t | fStatus |
particle status More... | |
int | fRescatterCode |
rescattering code More... | |
int | fFirstMother |
first mother idx More... | |
int | fLastMother |
last mother idx More... | |
int | fFirstDaughter |
first daughter idx More... | |
int | fLastDaughter |
last daughter idx More... | |
TLorentzVector * | fP4 |
momentum 4-vector (GeV) More... | |
TLorentzVector * | fX4 |
position 4-vector (in the target nucleus coordinate system / x,y,z in fm / t from the moment of the primary interaction in ys(yocto second = 10^-24 s) More... | |
double | fPolzTheta |
polar polarization angle (rad) More... | |
double | fPolzPhi |
azimuthal polarization angle (rad) More... | |
double | fRemovalEnergy |
removal energy for bound nucleons (GeV) More... | |
bool | fIsBound |
'is it a bound particle?' flag More... | |
Friends | |
ostream & | operator<< (ostream &stream, const GHepParticle &p) |
STDHEP-like event record entry that can fit a particle or a nucleus.
November 18, 2004
Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org
Definition at line 39 of file GHepParticle.h.
GHepParticle::GHepParticle | ( | ) |
Definition at line 50 of file GHepParticle.cxx.
GHepParticle::GHepParticle | ( | const GHepParticle & | particle | ) |
Definition at line 104 of file GHepParticle.cxx.
GHepParticle::GHepParticle | ( | int | pdg, |
GHepStatus_t | status, | ||
int | mother1, | ||
int | mother2, | ||
int | daughter1, | ||
int | daughter2, | ||
const TLorentzVector & | p, | ||
const TLorentzVector & | v | ||
) |
Definition at line 57 of file GHepParticle.cxx.
GHepParticle::GHepParticle | ( | int | pdg, |
GHepStatus_t | status, | ||
int | mother1, | ||
int | mother2, | ||
int | daughter1, | ||
int | daughter2, | ||
double | px, | ||
double | py, | ||
double | pz, | ||
double | E, | ||
double | x, | ||
double | y, | ||
double | z, | ||
double | t | ||
) |
Definition at line 80 of file GHepParticle.cxx.
GHepParticle::GHepParticle | ( | TRootIOCtor * | ) |
Definition at line 111 of file GHepParticle.cxx.
GHepParticle::~GHepParticle | ( | ) |
Definition at line 130 of file GHepParticle.cxx.
int GHepParticle::A | ( | void | ) | const |
Definition at line 184 of file GHepParticle.cxx.
|
private |
Definition at line 535 of file GHepParticle.cxx.
double GHepParticle::Charge | ( | void | ) | const |
Chrg that corresponds to the PDG code.
Definition at line 151 of file GHepParticle.cxx.
void GHepParticle::CleanUp | ( | void | ) |
Definition at line 405 of file GHepParticle.cxx.
void GHepParticle::Clear | ( | Option_t * | option | ) |
Definition at line 423 of file GHepParticle.cxx.
bool GHepParticle::Compare | ( | const GHepParticle * | p | ) | const |
Definition at line 463 of file GHepParticle.cxx.
bool GHepParticle::CompareFamily | ( | const GHepParticle * | p | ) | const |
Definition at line 491 of file GHepParticle.cxx.
bool GHepParticle::CompareMomentum | ( | const GHepParticle * | p | ) | const |
Definition at line 502 of file GHepParticle.cxx.
bool GHepParticle::ComparePdgCodes | ( | const GHepParticle * | p | ) | const |
Definition at line 481 of file GHepParticle.cxx.
bool GHepParticle::CompareStatusCodes | ( | const GHepParticle * | p | ) | const |
Definition at line 486 of file GHepParticle.cxx.
void GHepParticle::Copy | ( | const GHepParticle & | particle | ) |
Definition at line 515 of file GHepParticle.cxx.
|
inline |
Get energy.
Definition at line 91 of file GHepParticle.h.
|
inline |
Get energy.
Definition at line 92 of file GHepParticle.h.
|
inline |
Definition at line 68 of file GHepParticle.h.
|
inline |
Definition at line 66 of file GHepParticle.h.
TLorentzVector * GHepParticle::GetP4 | ( | void | ) | const |
Definition at line 194 of file GHepParticle.cxx.
void GHepParticle::GetPolarization | ( | TVector3 & | polz | ) |
Definition at line 315 of file GHepParticle.cxx.
TLorentzVector * GHepParticle::GetX4 | ( | void | ) | const |
Definition at line 212 of file GHepParticle.cxx.
|
inline |
Definition at line 70 of file GHepParticle.h.
|
private |
Definition at line 388 of file GHepParticle.cxx.
|
inline |
Definition at line 71 of file GHepParticle.h.
bool GHepParticle::IsOffMassShell | ( | void | ) | const |
Definition at line 303 of file GHepParticle.cxx.
bool GHepParticle::IsOnMassShell | ( | void | ) | const |
Definition at line 289 of file GHepParticle.cxx.
double GHepParticle::KinE | ( | bool | mass_from_pdg = false | ) | const |
Get kinetic energy.
Definition at line 159 of file GHepParticle.cxx.
|
inline |
Definition at line 69 of file GHepParticle.h.
|
inline |
Definition at line 67 of file GHepParticle.h.
double GHepParticle::Mass | ( | void | ) | const |
Mass that corresponds to the PDG code.
Definition at line 143 of file GHepParticle.cxx.
string GHepParticle::Name | ( | void | ) | const |
Name that corresponds to the PDG code.
Definition at line 135 of file GHepParticle.cxx.
GHepParticle & GHepParticle::operator= | ( | const GHepParticle & | p | ) |
Definition at line 554 of file GHepParticle.cxx.
bool GHepParticle::operator== | ( | const GHepParticle & | p | ) | const |
Definition at line 549 of file GHepParticle.cxx.
|
inline |
Definition at line 78 of file GHepParticle.h.
|
inline |
Definition at line 80 of file GHepParticle.h.
|
inline |
Definition at line 63 of file GHepParticle.h.
|
inline |
Definition at line 120 of file GHepParticle.h.
bool GHepParticle::PolzIsSet | ( | void | ) | const |
Definition at line 308 of file GHepParticle.cxx.
|
inline |
Definition at line 119 of file GHepParticle.h.
void GHepParticle::Print | ( | ostream & | stream | ) | const |
Definition at line 432 of file GHepParticle.cxx.
void GHepParticle::Print | ( | Option_t * | opt | ) | const |
Definition at line 456 of file GHepParticle.cxx.
|
inline |
Get Px.
Definition at line 88 of file GHepParticle.h.
|
inline |
Get Py.
Definition at line 89 of file GHepParticle.h.
|
inline |
Get Pz.
Definition at line 90 of file GHepParticle.h.
|
inline |
Get removal energy.
Definition at line 100 of file GHepParticle.h.
|
inline |
Definition at line 65 of file GHepParticle.h.
void GHepParticle::Reset | ( | void | ) |
Definition at line 415 of file GHepParticle.cxx.
void GHepParticle::SetBound | ( | bool | bound | ) |
Definition at line 361 of file GHepParticle.cxx.
void GHepParticle::SetEnergy | ( | double | E | ) |
Definition at line 269 of file GHepParticle.cxx.
|
inline |
Definition at line 134 of file GHepParticle.h.
|
inline |
Definition at line 132 of file GHepParticle.h.
|
inline |
Definition at line 135 of file GHepParticle.h.
|
inline |
Definition at line 133 of file GHepParticle.h.
void GHepParticle::SetMomentum | ( | const TLorentzVector & | p4 | ) |
Definition at line 236 of file GHepParticle.cxx.
void GHepParticle::SetMomentum | ( | double | px, |
double | py, | ||
double | pz, | ||
double | E | ||
) |
Definition at line 244 of file GHepParticle.cxx.
void GHepParticle::SetPdgCode | ( | int | c | ) |
Definition at line 230 of file GHepParticle.cxx.
void GHepParticle::SetPolarization | ( | double | theta, |
double | phi | ||
) |
Definition at line 328 of file GHepParticle.cxx.
void GHepParticle::SetPolarization | ( | const TVector3 & | polz | ) |
Definition at line 344 of file GHepParticle.cxx.
void GHepParticle::SetPosition | ( | const TLorentzVector & | v4 | ) |
Definition at line 252 of file GHepParticle.cxx.
void GHepParticle::SetPosition | ( | double | x, |
double | y, | ||
double | z, | ||
double | t | ||
) |
Definition at line 257 of file GHepParticle.cxx.
void GHepParticle::SetPx | ( | double | px | ) |
Definition at line 274 of file GHepParticle.cxx.
void GHepParticle::SetPy | ( | double | py | ) |
Definition at line 279 of file GHepParticle.cxx.
void GHepParticle::SetPz | ( | double | pz | ) |
Definition at line 284 of file GHepParticle.cxx.
void GHepParticle::SetRemovalEnergy | ( | double | Erm | ) |
Definition at line 380 of file GHepParticle.cxx.
|
inline |
Definition at line 129 of file GHepParticle.h.
|
inline |
Definition at line 126 of file GHepParticle.h.
|
inline |
Definition at line 64 of file GHepParticle.h.
|
inline |
Get production time.
Definition at line 97 of file GHepParticle.h.
|
inline |
Get production x.
Definition at line 94 of file GHepParticle.h.
|
inline |
Get production y.
Definition at line 95 of file GHepParticle.h.
|
inline |
Get production z.
Definition at line 96 of file GHepParticle.h.
|
inline |
Definition at line 79 of file GHepParticle.h.
|
inline |
Definition at line 81 of file GHepParticle.h.
int GHepParticle::Z | ( | void | ) | const |
Definition at line 174 of file GHepParticle.cxx.
|
friend |
|
private |
first daughter idx
Definition at line 179 of file GHepParticle.h.
|
private |
first mother idx
Definition at line 177 of file GHepParticle.h.
|
private |
'is it a bound particle?' flag
Definition at line 186 of file GHepParticle.h.
|
private |
last daughter idx
Definition at line 180 of file GHepParticle.h.
|
private |
last mother idx
Definition at line 178 of file GHepParticle.h.
|
private |
momentum 4-vector (GeV)
Definition at line 181 of file GHepParticle.h.
|
private |
particle PDG code
Definition at line 174 of file GHepParticle.h.
|
private |
azimuthal polarization angle (rad)
Definition at line 184 of file GHepParticle.h.
|
private |
polar polarization angle (rad)
Definition at line 183 of file GHepParticle.h.
|
private |
removal energy for bound nucleons (GeV)
Definition at line 185 of file GHepParticle.h.
|
private |
rescattering code
Definition at line 176 of file GHepParticle.h.
|
private |
particle status
Definition at line 175 of file GHepParticle.h.
|
private |
position 4-vector (in the target nucleus coordinate system / x,y,z in fm / t from the moment of the primary interaction in ys(yocto second = 10^-24 s)
Definition at line 182 of file GHepParticle.h.