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.
|
inlineprivate |
Checks if branching is forced by PHOTOS.
Definition at line 61 of file PhotosBranch.h.
References PhotosBranch::checkList().
|
private |
Algorithm used for suppression/forcing check
Definition at line 217 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 92 of file PhotosBranch.cxx.
References PhotosParticle::checkMomentumConservation(), PhotosBranch::mothers, and PhotosBranch::particle.
|
inlineprivate |
Checks if branching is suppressed by PHOTOS.
Definition at line 58 of file PhotosBranch.h.
References PhotosBranch::checkList().
|
static |
Create branches from particles list
Definition at line 99 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.
|
inline |
Get list of daughters
Definition at line 36 of file PhotosBranch.h.
References PhotosBranch::daughters.
|
inline |
Return decaying particle. NULL if branching does not have mid-particle
Definition at line 30 of file PhotosBranch.h.
References PhotosBranch::particle.
|
inline |
Check if branch is forced
Definition at line 45 of file PhotosBranch.h.
References PhotosBranch::forcing.
|
inline |
vector< PhotosParticle * > getParticles | ( | ) |
Get list of all particles used by branch
Definition at line 84 of file PhotosBranch.cxx.
References PhotosBranch::daughters, PhotosBranch::mothers, and PhotosBranch::particle.
|
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 68 of file PhotosBranch.cxx.
References PhotosBranch::checkMomentumConservation(), HEPEVT_struct::complete(), Log::Debug(), HEPEVT_struct::get(), PhotosParticle::getBarcode(), PhotosBranch::mothers, PhotosBranch::particle, HEPEVT_struct::prepare(), and HEPEVT_struct::set().
|
private |
List of daughters
Definition at line 75 of file PhotosBranch.h.
|
private |
State of branching forcing
Definition at line 69 of file PhotosBranch.h.
|
private |
List of mothers
Definition at line 73 of file PhotosBranch.h.
|
private |
Decaying particle
Definition at line 71 of file PhotosBranch.h.
|
private |
State of branching suppression
Definition at line 67 of file PhotosBranch.h.