JHUGen MELA
v2.4.1
Matrix element calculations as used in JHUGen. MELA is an important tool that was used for the Higgs boson discovery and for precise measurements of its structure and interactions. Please see the website https://spin.pha.jhu.edu/ and papers cited there for more details, and kindly cite those papers when using this code.
|
#include <MELACandidate.h>
Public Member Functions | |
MELACandidate () | |
MELACandidate (int id_, bool associatedByHighestPt_=false) | |
MELACandidate (int id_, TLorentzVector p4_, bool associatedByHighestPt_=false) | |
MELACandidate (const MELACandidate &particle_) | |
MELACandidate & | operator= (const MELACandidate &particle_) |
~MELACandidate () | |
MELACandidate * | shallowCopy () |
void | swap (MELACandidate &particle_) |
MELAParticle * | getSortedDaughter (int index) const |
MELAParticle * | getSortedV (int index) const |
MELAParticle * | getAssociatedLepton (int index) const |
MELAParticle * | getAssociatedNeutrino (int index) const |
MELAParticle * | getAssociatedPhoton (int index) const |
MELAParticle * | getAssociatedJet (int index) const |
MELATopCandidate_t * | getAssociatedTop (int index) const |
std::vector< MELAParticle * > & | getSortedDaughters () |
std::vector< MELAParticle * > & | getSortedVs () |
std::vector< MELAParticle * > & | getAssociatedLeptons () |
std::vector< MELAParticle * > & | getAssociatedNeutrinos () |
std::vector< MELAParticle * > & | getAssociatedPhotons () |
std::vector< MELAParticle * > & | getAssociatedJets () |
std::vector< MELATopCandidate_t * > & | getAssociatedTops () |
const std::vector< MELAParticle * > & | getSortedDaughters () const |
const std::vector< MELAParticle * > & | getSortedVs () const |
const std::vector< MELAParticle * > & | getAssociatedLeptons () const |
const std::vector< MELAParticle * > & | getAssociatedNeutrinos () const |
const std::vector< MELAParticle * > & | getAssociatedPhotons () const |
const std::vector< MELAParticle * > & | getAssociatedJets () const |
const std::vector< MELATopCandidate_t * > & | getAssociatedTops () const |
std::vector< MELAParticle * > | getAssociatedSortedVs () |
std::vector< MELAParticle * > | getAssociatedSortedVs () const |
void | getRelatedParticles (std::vector< MELAParticle * > &particles) const |
void | getDaughterParticles (std::vector< MELAParticle * > &particles) const |
TLorentzVector | getAlternativeVMomentum (int index) const |
virtual std::vector< int > | getDaughterIds () const |
std::vector< int > | getAssociatedParticleIds () const |
TVar::CandidateDecayMode | getDecayMode () const |
int | getNAssociatedLeptons () const |
int | getNAssociatedNeutrinos () const |
int | getNAssociatedPhotons () const |
int | getNAssociatedJets () const |
int | getNAssociatedTops () const |
int | getNSortedVs () const |
void | addAssociatedLepton (MELAParticle *myParticle) |
void | addAssociatedNeutrino (MELAParticle *myParticle) |
void | addAssociatedPhoton (MELAParticle *myParticle) |
void | addAssociatedJet (MELAParticle *myParticle) |
void | addAssociatedTop (MELATopCandidate_t *myParticle) |
void | addSortedV (MELAParticle *myParticle) |
void | addAssociatedVs () |
void | resetVs () |
void | recreateVs () |
void | sortDaughters () |
void | testPreSelectedDaughters () |
bool | testShallowCopy () |
bool | daughtersInterfere () const |
void | setDecayMode (TVar::CandidateDecayMode flag) |
void | setAddAssociatedByHighestPt (bool associatedByHighestPt_) |
void | setShallowCopy (bool flag) |
Public Member Functions inherited from MELAParticle | |
MELAParticle () | |
MELAParticle (int id_) | |
MELAParticle (int id_, TLorentzVector p4_) | |
MELAParticle (const MELAParticle &particle_) | |
MELAParticle & | operator= (const MELAParticle &particle_) |
virtual | ~MELAParticle () |
void | swap (MELAParticle &particle_) |
void | setSelected (bool isSelected=true) |
void | setGenStatus (int status_) |
void | setLifetime (double life_) |
void | addMother (MELAParticle *myParticle) |
void | addDaughter (MELAParticle *myParticle) |
int | getNMothers () const |
int | getNDaughters () const |
MELAParticle * | getMother (int index) const |
MELAParticle * | getDaughter (int index) const |
std::vector< MELAParticle * > & | getMothers () |
std::vector< MELAParticle * > & | getDaughters () |
const std::vector< MELAParticle * > & | getMothers () const |
const std::vector< MELAParticle * > & | getDaughters () const |
bool | hasMother (MELAParticle const *part) const |
bool | hasDaughter (MELAParticle const *part) const |
double | charge () const |
double | m () const |
double | x () const |
double | y () const |
double | z () const |
double | t () const |
double | p () const |
double | pt () const |
double | eta () const |
double | phi () const |
double | rapidity () const |
double | dot (const TLorentzVector &v) const |
double | dot (const MELAParticle &part) const |
double | dot (const MELAParticle *part) const |
double | euclidean_dot (const TLorentzVector &v) const |
double | euclidean_dot (const MELAParticle &part) const |
double | euclidean_dot (const MELAParticle *part) const |
double | deltaR (const TLorentzVector &v) const |
double | deltaR (const MELAParticle &part) const |
double | deltaR (const MELAParticle *part) const |
void | boost (const TVector3 &vec, bool boostAll=false) |
TVector3 | vect () const |
TVector3 | calculateTotalDisplacement () const |
MELAParticle & | operator+= (MELAParticle *part) |
MELAParticle & | operator+= (const TLorentzVector &mom) |
Static Public Member Functions | |
static void | addUnordered (MELAParticle *myParticle, std::vector< MELAParticle * > &particleArray) |
static void | addUnordered (MELAThreeBodyDecayCandidate *myParticle, std::vector< MELAThreeBodyDecayCandidate * > &particleArray) |
static void | addByHighestPt (MELAParticle *myParticle, std::vector< MELAParticle * > &particleArray) |
static void | addByHighestPt (MELAThreeBodyDecayCandidate *myParticle, std::vector< MELAThreeBodyDecayCandidate * > &particleArray) |
Static Public Member Functions inherited from MELAParticle | |
static bool | checkParticleExists (MELAParticle const *myParticle, std::vector< MELAParticle * > const &particleArray) |
static bool | checkDeepDaughtership (MELAParticle const *part1, MELAParticle const *part2) |
Protected Member Functions | |
void | sortDaughtersInitial () |
void | sortDaughtersByBestZ1 () |
void | createSortedVs () |
bool | checkDaughtership (MELAParticle const *myParticle) const |
void | createAssociatedVs (std::vector< MELAParticle * > &particleArray) |
void | addAssociatedParticleToArray (MELAParticle *myParticle, std::vector< MELAParticle * > &particleArray) |
void | addAssociatedParticleToArray (MELAThreeBodyDecayCandidate *myParticle, std::vector< MELAThreeBodyDecayCandidate * > &particleArray) |
Protected Attributes | |
bool | associatedByHighestPt |
bool | isShallowCopy |
TVar::CandidateDecayMode | selfDecayMode |
std::vector< MELAParticle * > | associatedLeptons |
std::vector< MELAParticle * > | associatedNeutrinos |
std::vector< MELAParticle * > | associatedPhotons |
std::vector< MELAParticle * > | associatedJets |
std::vector< MELATopCandidate_t * > | associatedTops |
std::vector< MELAParticle * > | sortedDaughters |
std::vector< MELAParticle * > | sortedVs |
Protected Attributes inherited from MELAParticle | |
std::vector< MELAParticle * > | mothers |
std::vector< MELAParticle * > | daughters |
Additional Inherited Members | |
Public Attributes inherited from MELAParticle | |
int | id |
TLorentzVector | p4 |
bool | passSelection |
int | genStatus |
double | lifetime |
Definition at line 7 of file MELACandidate.h.
MELACandidate::MELACandidate | ( | ) |
Definition at line 12 of file MELACandidate.cc.
MELACandidate::MELACandidate | ( | int | id_, |
bool | associatedByHighestPt_ = false |
||
) |
Definition at line 18 of file MELACandidate.cc.
MELACandidate::MELACandidate | ( | int | id_, |
TLorentzVector | p4_, | ||
bool | associatedByHighestPt_ = false |
||
) |
Definition at line 24 of file MELACandidate.cc.
MELACandidate::MELACandidate | ( | const MELACandidate & | particle_ | ) |
Definition at line 30 of file MELACandidate.cc.
MELACandidate::~MELACandidate | ( | ) |
Definition at line 51 of file MELACandidate.cc.
void MELACandidate::addAssociatedJet | ( | MELAParticle * | myParticle | ) |
Definition at line 616 of file MELACandidate.cc.
void MELACandidate::addAssociatedLepton | ( | MELAParticle * | myParticle | ) |
Definition at line 606 of file MELACandidate.cc.
void MELACandidate::addAssociatedNeutrino | ( | MELAParticle * | myParticle | ) |
Definition at line 609 of file MELACandidate.cc.
|
protected |
Definition at line 622 of file MELACandidate.cc.
|
protected |
Definition at line 627 of file MELACandidate.cc.
void MELACandidate::addAssociatedPhoton | ( | MELAParticle * | myParticle | ) |
Definition at line 613 of file MELACandidate.cc.
void MELACandidate::addAssociatedTop | ( | MELATopCandidate_t * | myParticle | ) |
Definition at line 619 of file MELACandidate.cc.
void MELACandidate::addAssociatedVs | ( | ) |
Definition at line 639 of file MELACandidate.cc.
|
static |
Definition at line 727 of file MELACandidate.cc.
|
static |
Definition at line 740 of file MELACandidate.cc.
|
inline |
Definition at line 70 of file MELACandidate.h.
|
static |
Definition at line 719 of file MELACandidate.cc.
|
static |
Definition at line 723 of file MELACandidate.cc.
|
protected |
Definition at line 602 of file MELACandidate.cc.
|
protected |
Definition at line 643 of file MELACandidate.cc.
|
protected |
Definition at line 487 of file MELACandidate.cc.
bool MELACandidate::daughtersInterfere | ( | ) | const |
Definition at line 590 of file MELACandidate.cc.
TLorentzVector MELACandidate::getAlternativeVMomentum | ( | int | index | ) | const |
Definition at line 547 of file MELACandidate.cc.
MELAParticle * MELACandidate::getAssociatedJet | ( | int | index | ) | const |
Definition at line 168 of file MELACandidate.cc.
const std::vector< MELAParticle * > & MELACandidate::getAssociatedJets | ( | ) |
Definition at line 182 of file MELACandidate.cc.
const std::vector<MELAParticle*>& MELACandidate::getAssociatedJets | ( | ) | const |
MELAParticle * MELACandidate::getAssociatedLepton | ( | int | index | ) | const |
Definition at line 156 of file MELACandidate.cc.
const std::vector< MELAParticle * > & MELACandidate::getAssociatedLeptons | ( | ) |
Definition at line 179 of file MELACandidate.cc.
const std::vector<MELAParticle*>& MELACandidate::getAssociatedLeptons | ( | ) | const |
MELAParticle * MELACandidate::getAssociatedNeutrino | ( | int | index | ) | const |
Definition at line 160 of file MELACandidate.cc.
const std::vector< MELAParticle * > & MELACandidate::getAssociatedNeutrinos | ( | ) |
Definition at line 180 of file MELACandidate.cc.
const std::vector<MELAParticle*>& MELACandidate::getAssociatedNeutrinos | ( | ) | const |
std::vector< int > MELACandidate::getAssociatedParticleIds | ( | ) | const |
Definition at line 135 of file MELACandidate.cc.
MELAParticle * MELACandidate::getAssociatedPhoton | ( | int | index | ) | const |
Definition at line 164 of file MELACandidate.cc.
const std::vector< MELAParticle * > & MELACandidate::getAssociatedPhotons | ( | ) |
Definition at line 181 of file MELACandidate.cc.
const std::vector<MELAParticle*>& MELACandidate::getAssociatedPhotons | ( | ) | const |
std::vector< MELAParticle * > MELACandidate::getAssociatedSortedVs | ( | ) |
Definition at line 193 of file MELACandidate.cc.
std::vector<MELAParticle*> MELACandidate::getAssociatedSortedVs | ( | ) | const |
MELATopCandidate_t * MELACandidate::getAssociatedTop | ( | int | index | ) | const |
Definition at line 172 of file MELACandidate.cc.
const std::vector< MELATopCandidate_t * > & MELACandidate::getAssociatedTops | ( | ) |
Definition at line 183 of file MELACandidate.cc.
const std::vector<MELATopCandidate_t*>& MELACandidate::getAssociatedTops | ( | ) | const |
|
virtual |
|
virtual |
Reimplemented from MELAParticle.
Definition at line 708 of file MELACandidate.cc.
|
inline |
Definition at line 55 of file MELACandidate.h.
|
inline |
Definition at line 60 of file MELACandidate.h.
|
inline |
Definition at line 57 of file MELACandidate.h.
|
inline |
Definition at line 58 of file MELACandidate.h.
|
inline |
Definition at line 59 of file MELACandidate.h.
|
inline |
Definition at line 61 of file MELACandidate.h.
|
inline |
Definition at line 62 of file MELACandidate.h.
|
virtual |
Reimplemented from MELAParticle.
Definition at line 699 of file MELACandidate.cc.
MELAParticle * MELACandidate::getSortedDaughter | ( | int | index | ) | const |
Definition at line 148 of file MELACandidate.cc.
const std::vector< MELAParticle * > & MELACandidate::getSortedDaughters | ( | ) |
Definition at line 177 of file MELACandidate.cc.
const std::vector<MELAParticle*>& MELACandidate::getSortedDaughters | ( | ) | const |
MELAParticle * MELACandidate::getSortedV | ( | int | index | ) | const |
Definition at line 152 of file MELACandidate.cc.
const std::vector< MELAParticle * > & MELACandidate::getSortedVs | ( | ) |
Definition at line 178 of file MELACandidate.cc.
const std::vector<MELAParticle*>& MELACandidate::getSortedVs | ( | ) | const |
MELACandidate & MELACandidate::operator= | ( | const MELACandidate & | particle_ | ) |
Definition at line 46 of file MELACandidate.cc.
void MELACandidate::recreateVs | ( | ) |
Definition at line 105 of file MELACandidate.cc.
void MELACandidate::resetVs | ( | ) |
Definition at line 98 of file MELACandidate.cc.
void MELACandidate::setAddAssociatedByHighestPt | ( | bool | associatedByHighestPt_ | ) |
Definition at line 113 of file MELACandidate.cc.
void MELACandidate::setDecayMode | ( | TVar::CandidateDecayMode | flag | ) |
Definition at line 112 of file MELACandidate.cc.
void MELACandidate::setShallowCopy | ( | bool | flag | ) |
Definition at line 114 of file MELACandidate.cc.
MELACandidate * MELACandidate::shallowCopy | ( | ) |
Definition at line 61 of file MELACandidate.cc.
void MELACandidate::sortDaughters | ( | ) |
Definition at line 117 of file MELACandidate.cc.
|
protected |
Definition at line 324 of file MELACandidate.cc.
|
protected |
Definition at line 218 of file MELACandidate.cc.
void MELACandidate::swap | ( | MELACandidate & | particle_ | ) |
Definition at line 84 of file MELACandidate.cc.
void MELACandidate::testPreSelectedDaughters | ( | ) |
Definition at line 690 of file MELACandidate.cc.
bool MELACandidate::testShallowCopy | ( | ) |
Definition at line 115 of file MELACandidate.cc.
|
protected |
Definition at line 91 of file MELACandidate.h.
|
protected |
Definition at line 98 of file MELACandidate.h.
|
protected |
Definition at line 95 of file MELACandidate.h.
|
protected |
Definition at line 96 of file MELACandidate.h.
|
protected |
Definition at line 97 of file MELACandidate.h.
|
protected |
Definition at line 99 of file MELACandidate.h.
|
protected |
Definition at line 92 of file MELACandidate.h.
|
protected |
Definition at line 93 of file MELACandidate.h.
|
protected |
Definition at line 101 of file MELACandidate.h.
|
protected |
Definition at line 102 of file MELACandidate.h.