Public Member Functions | |
PhotosBranch (PhotosParticle *p) | |
PhotosParticle * | getDecayingParticle () |
vector< PhotosParticle * > | getMothers () |
vector< PhotosParticle * > | getDaughters () |
vector< PhotosParticle * > | getParticles () |
int | getSuppressionStatus () |
int | getForcingStatus () |
bool | checkMomentumConservation () |
void | process () |
Static Public Member Functions | |
static vector< PhotosBranch * > | createBranches (vector< PhotosParticle * > particles) |
Private Member Functions | |
int | checkSuppressionLevel () |
int | checkForcingLevel () |
int | checkList (bool forceOrSuppress) |
Private Attributes | |
int | suppression |
int | forcing |
PhotosParticle * | particle |
vector< PhotosParticle * > | mothers |
vector< PhotosParticle * > | daughters |
Definition at line 23 of file PhotosBranch.h.
PhotosBranch | ( | PhotosParticle * | p | ) |
Create branch out of decaying particle
Definition at line 15 of file PhotosBranch.cxx.
References PhotosBranch::checkForcingLevel(), PhotosBranch::checkMomentumConservation(), PhotosBranch::checkSuppressionLevel(), PhotosBranch::daughters, Log::Debug(), PhotosParticle::findProductionMothers(), PhotosBranch::forcing, PhotosParticle::getDaughters(), PhotosBranch::mothers, PhotosBranch::particle, and PhotosBranch::suppression.
int checkForcingLevel | ( | ) | [inline, private] |
Checks if branching is forced by PHOTOS.
Definition at line 61 of file PhotosBranch.h.
References PhotosBranch::checkList().
int checkList | ( | bool | forceOrSuppress | ) | [private] |
Algorithm used for suppression/forcing check
Definition at line 206 of file PhotosBranch.cxx.
References PhotosBranch::daughters, Photos::forceBremList, PhotosParticle::getPdgID(), PhotosBranch::mothers, PhotosBranch::particle, and Photos::supBremList.
bool checkMomentumConservation | ( | ) |
Checks momentum conservation of decaying particle. If it does not exist, checks momentum of first mother passed to photos
Definition at line 85 of file PhotosBranch.cxx.
References PhotosParticle::checkMomentumConservation(), PhotosBranch::mothers, and PhotosBranch::particle.
int checkSuppressionLevel | ( | ) | [inline, private] |
Checks if branching is suppressed by PHOTOS.
Definition at line 58 of file PhotosBranch.h.
References PhotosBranch::checkList().
vector< PhotosBranch * > createBranches | ( | vector< PhotosParticle * > | particles | ) | [static] |
Create branches from particles list
Definition at line 92 of file PhotosBranch.cxx.
References Log::Debug(), Photos::forceBremList, PhotosBranch::forcing, PhotosParticle::getBarcode(), PhotosBranch::getDecayingParticle(), PhotosParticle::getDecayTree(), PhotosBranch::getForcingStatus(), PhotosBranch::getMothers(), PhotosParticle::getPdgID(), PhotosBranch::getSuppressionStatus(), Photos::isSuppressed, PhotosBranch::mothers, PhotosBranch::particle, PhotosBranch::PhotosBranch(), and PhotosBranch::suppression.
vector<PhotosParticle *> getDaughters | ( | ) | [inline] |
Get list of daughters
Definition at line 36 of file PhotosBranch.h.
References PhotosBranch::daughters.
PhotosParticle* getDecayingParticle | ( | ) | [inline] |
Return decaying particle. NULL if branching does not have mid-particle
Definition at line 30 of file PhotosBranch.h.
References PhotosBranch::particle.
int getForcingStatus | ( | ) | [inline] |
Check if branch is forced
Definition at line 45 of file PhotosBranch.h.
References PhotosBranch::forcing.
vector<PhotosParticle *> getMothers | ( | ) | [inline] |
vector< PhotosParticle * > getParticles | ( | ) |
Get list of all particles used by branch
Definition at line 77 of file PhotosBranch.cxx.
References PhotosBranch::daughters, PhotosBranch::mothers, and PhotosBranch::particle.
int getSuppressionStatus | ( | ) | [inline] |
Check if branch is suppressed
Definition at line 42 of file PhotosBranch.h.
References PhotosBranch::suppression.
void process | ( | ) |
Process single branch
Definition at line 61 of file PhotosBranch.cxx.
References PhotosBranch::checkMomentumConservation(), PH_HEPEVT_Interface::complete(), Log::Debug(), PH_HEPEVT_Interface::get(), PhotosParticle::getBarcode(), PhotosBranch::mothers, PhotosBranch::particle, PH_HEPEVT_Interface::prepare(), and PH_HEPEVT_Interface::set().
vector<PhotosParticle *> daughters [private] |
List of daughters
Definition at line 75 of file PhotosBranch.h.
int forcing [private] |
State of branching forcing
Definition at line 69 of file PhotosBranch.h.
vector<PhotosParticle *> mothers [private] |
List of mothers
Definition at line 73 of file PhotosBranch.h.
PhotosParticle* particle [private] |
Decaying particle
Definition at line 71 of file PhotosBranch.h.
int suppression [private] |
State of branching suppression
Definition at line 67 of file PhotosBranch.h.