ROOTPWA
|
#include <NParticleEvent.h>
Public Member Functions | |
NParticleEvent (TClonesArray *fs_momenta, std::vector< int > *fs_charges, TLorentzVector *beam, int *beam_charge, TVector3 *vertex) | |
~NParticleEvent () | |
void | refresh (bool doBuild=true) |
unsigned int | build () |
TLorentzVector | p () |
double | tprime () |
void | toGJ () |
TLorentzVector | getHelicityFrame (TLorentzVector pMother, TLorentzVector pX, TLorentzVector p1) |
void | writeGAMP (std::ostream &out) |
unsigned int | nStates () const |
unsigned int | nParticles () const |
const NParticleState & | getState (unsigned int i) const |
FSParticle & | getParticle (unsigned int i) |
const TLorentzVector & | getBeam () const |
Private Member Functions | |
void | permute (int n, int k, int *permu, int x=-1, int i=1) |
Private Attributes | |
TClonesArray * | _fsmomenta |
std::vector< int > * | _fs_charges |
TLorentzVector * | _beam |
TLorentzVector | _pbeam |
int * | _qbeam |
TVector3 * | _vertex |
std::vector< NParticleState > | _NPStates |
std::vector< FSParticle > | _fsparticles |
Definition at line 41 of file NParticleEvent.h.
NParticleEvent::NParticleEvent | ( | TClonesArray * | fs_momenta, |
std::vector< int > * | fs_charges, | ||
TLorentzVector * | beam, | ||
int * | beam_charge, | ||
TVector3 * | vertex | ||
) |
Definition at line 29 of file NParticleEvent.cc.
|
inline |
Definition at line 49 of file NParticleEvent.h.
unsigned int NParticleEvent::build | ( | ) |
Definition at line 217 of file NParticleEvent.cc.
References _fsparticles, _NPStates, n, and permute().
Referenced by refresh().
|
inline |
Definition at line 92 of file NParticleEvent.h.
References _beam.
TLorentzVector NParticleEvent::getHelicityFrame | ( | TLorentzVector | pMother, |
TLorentzVector | pX, | ||
TLorentzVector | p1 | ||
) |
Definition at line 87 of file NParticleEvent.cc.
References a.
|
inline |
Definition at line 89 of file NParticleEvent.h.
References _fsparticles, and i.
Referenced by plotEvts(), plotWeightedEvts_3pin(), plotWeightedEvts_Kpipi(), and toGJ().
|
inline |
Definition at line 88 of file NParticleEvent.h.
|
inline |
|
inline |
Definition at line 82 of file NParticleEvent.h.
References _NPStates.
TLorentzVector NParticleEvent::p | ( | ) |
Definition at line 61 of file NParticleEvent.cc.
References _fsparticles, and i.
Referenced by plotEvts(), toGJ(), tprime(), and writeGAMP().
Definition at line 235 of file NParticleEvent.cc.
References _fsparticles, _NPStates, _pbeam, NParticleState::addParticle(), i, and NParticleState::setBeam().
Referenced by build().
void NParticleEvent::refresh | ( | bool | doBuild = true | ) |
Definition at line 41 of file NParticleEvent.cc.
References _beam, _fs_charges, _fsmomenta, _fsparticles, _NPStates, _pbeam, _vertex, and build().
void NParticleEvent::toGJ | ( | ) |
Definition at line 154 of file NParticleEvent.cc.
References _fsparticles, _pbeam, a, getParticle(), i, p(), and FSParticle::Transform().
double NParticleEvent::tprime | ( | ) |
void NParticleEvent::writeGAMP | ( | std::ostream & | out | ) |
Definition at line 262 of file NParticleEvent.cc.
References _beam, _fsparticles, _qbeam, i, nParticles(), FSParticle::p(), p(), pi, FSParticle::q(), and q().
|
private |
Definition at line 99 of file NParticleEvent.h.
Referenced by getBeam(), refresh(), tprime(), and writeGAMP().
|
private |
Definition at line 98 of file NParticleEvent.h.
Referenced by refresh().
|
private |
Definition at line 97 of file NParticleEvent.h.
Referenced by refresh().
|
private |
Definition at line 109 of file NParticleEvent.h.
Referenced by build(), getParticle(), nParticles(), p(), permute(), refresh(), toGJ(), and writeGAMP().
|
private |
Definition at line 108 of file NParticleEvent.h.
Referenced by build(), getState(), nStates(), permute(), and refresh().
|
private |
Definition at line 100 of file NParticleEvent.h.
|
private |
Definition at line 101 of file NParticleEvent.h.
Referenced by writeGAMP().
|
private |
Definition at line 102 of file NParticleEvent.h.
Referenced by refresh().