#include <MELAParticle.h>
Definition at line 13 of file MELAParticle.h.
◆ MELAParticle() [1/4]
MELAParticle::MELAParticle |
( |
| ) |
|
◆ MELAParticle() [2/4]
MELAParticle::MELAParticle |
( |
int |
id_ | ) |
|
◆ MELAParticle() [3/4]
MELAParticle::MELAParticle |
( |
int |
id_, |
|
|
TLorentzVector |
p4_ |
|
) |
| |
◆ MELAParticle() [4/4]
MELAParticle::MELAParticle |
( |
const MELAParticle & |
particle_ | ) |
|
◆ ~MELAParticle()
virtual MELAParticle::~MELAParticle |
( |
| ) |
|
|
inlinevirtual |
◆ addDaughter()
◆ addMother()
◆ boost()
void MELAParticle::boost |
( |
const TVector3 & |
vec, |
|
|
bool |
boostAll = false |
|
) |
| |
Definition at line 100 of file MELAParticle.cc.
103 std::vector<MELAParticle*> particles;
105 for (std::vector<MELAParticle*>::iterator it = particles.begin(); it<particles.end(); it++) (*it)->boost(vec,
false);
110 <<
"MELAParticle::boost: "
111 <<
"|v|**2 = " << vec.Mag2() <<
" >=1 cannot be used to boost. "
112 <<
"v = ( " << vec.X() <<
" , " << vec.Y() <<
" , " << vec.Z() <<
" )"
◆ calculateTotalDisplacement()
TVector3 MELAParticle::calculateTotalDisplacement |
( |
| ) |
const |
Definition at line 127 of file MELAParticle.cc.
129 double const part_mass = this->
m();
130 TVector3
const part_vec = this->
vect();
133 if (part_mass>0.) res = part_vec * (
lifetime/part_mass);
◆ charge()
double MELAParticle::charge |
( |
| ) |
const |
Definition at line 90 of file MELAParticle.cc.
92 if (
isAWBoson(
id) || abs(
id)==37 || abs(
id)==2212 || abs(
id)==211 || abs(
id)==321 || abs(
id)==411 || abs(
id)==521) cpos = 1.;
96 if (
id<0) cpos *= -1.;
◆ checkDeepDaughtership()
Definition at line 119 of file MELAParticle.cc.
121 if (!part1 || !part2)
return res;
122 std::vector<MELAParticle*> daughters1; part1->getDaughterParticles(daughters1);
123 std::vector<MELAParticle*> daughters2; part2->getDaughterParticles(daughters2);
◆ checkParticleExists()
bool MELAParticle::checkParticleExists |
( |
MELAParticle const * |
myParticle, |
|
|
std::vector< MELAParticle * > const & |
particleArray |
|
) |
| |
|
static |
Definition at line 116 of file MELAParticle.cc.
117 return TUtilHelpers::checkElementExists<MELAParticle const*, MELAParticle*>(myParticle, particleArray);
◆ deltaR() [1/3]
double MELAParticle::deltaR |
( |
const MELAParticle & |
part | ) |
const |
|
inline |
◆ deltaR() [2/3]
double MELAParticle::deltaR |
( |
const MELAParticle * |
part | ) |
const |
|
inline |
◆ deltaR() [3/3]
double MELAParticle::deltaR |
( |
const TLorentzVector & |
v | ) |
const |
|
inline |
◆ dot() [1/3]
◆ dot() [2/3]
Definition at line 78 of file MELAParticle.h.
78 {
if (part)
return dot(*part);
else return 0; }
◆ dot() [3/3]
double MELAParticle::dot |
( |
const TLorentzVector & |
v | ) |
const |
|
inline |
◆ eta()
double MELAParticle::eta |
( |
| ) |
const |
|
inline |
◆ euclidean_dot() [1/3]
double MELAParticle::euclidean_dot |
( |
const MELAParticle & |
part | ) |
const |
|
inline |
◆ euclidean_dot() [2/3]
double MELAParticle::euclidean_dot |
( |
const MELAParticle * |
part | ) |
const |
|
inline |
◆ euclidean_dot() [3/3]
double MELAParticle::euclidean_dot |
( |
const TLorentzVector & |
v | ) |
const |
|
inline |
◆ getDaughter()
◆ getDaughterIds()
std::vector< int > MELAParticle::getDaughterIds |
( |
| ) |
const |
|
virtual |
◆ getDaughterParticles()
void MELAParticle::getDaughterParticles |
( |
std::vector< MELAParticle * > & |
particles | ) |
const |
|
virtual |
◆ getDaughters() [1/2]
◆ getDaughters() [2/2]
const std::vector<MELAParticle*>& MELAParticle::getDaughters |
( |
| ) |
const |
|
inline |
◆ getMother()
◆ getMothers() [1/2]
◆ getMothers() [2/2]
const std::vector<MELAParticle*>& MELAParticle::getMothers |
( |
| ) |
const |
|
inline |
◆ getNDaughters()
int MELAParticle::getNDaughters |
( |
| ) |
const |
|
inline |
◆ getNMothers()
int MELAParticle::getNMothers |
( |
| ) |
const |
|
inline |
◆ getRelatedParticles()
void MELAParticle::getRelatedParticles |
( |
std::vector< MELAParticle * > & |
particles | ) |
const |
|
virtual |
Reimplemented in MELACandidate.
Definition at line 77 of file MELAParticle.cc.
78 for (
auto* part:
mothers){
if (part) part->getRelatedParticles(particles); }
79 for (
auto* part:
daughters){
if (part) part->getRelatedParticles(particles); }
◆ hasDaughter()
bool MELAParticle::hasDaughter |
( |
MELAParticle const * |
part | ) |
const |
◆ hasMother()
bool MELAParticle::hasMother |
( |
MELAParticle const * |
part | ) |
const |
◆ m()
double MELAParticle::m |
( |
| ) |
const |
|
inline |
◆ operator+=() [1/2]
MELAParticle& MELAParticle::operator+= |
( |
const TLorentzVector & |
mom | ) |
|
|
inline |
◆ operator+=() [2/2]
◆ operator=()
◆ p()
double MELAParticle::p |
( |
| ) |
const |
|
inline |
◆ phi()
double MELAParticle::phi |
( |
| ) |
const |
|
inline |
◆ pt()
double MELAParticle::pt |
( |
| ) |
const |
|
inline |
◆ rapidity()
double MELAParticle::rapidity |
( |
| ) |
const |
|
inline |
◆ setGenStatus()
void MELAParticle::setGenStatus |
( |
int |
status_ | ) |
|
|
inline |
◆ setLifetime()
void MELAParticle::setLifetime |
( |
double |
life_ | ) |
|
|
inline |
◆ setSelected()
void MELAParticle::setSelected |
( |
bool |
isSelected = true | ) |
|
|
inline |
◆ swap()
◆ t()
double MELAParticle::t |
( |
| ) |
const |
|
inline |
◆ vect()
TVector3 MELAParticle::vect |
( |
| ) |
const |
|
inline |
◆ x()
double MELAParticle::x |
( |
| ) |
const |
|
inline |
◆ y()
double MELAParticle::y |
( |
| ) |
const |
|
inline |
◆ z()
double MELAParticle::z |
( |
| ) |
const |
|
inline |
◆ daughters
◆ genStatus
int MELAParticle::genStatus |
◆ id
◆ lifetime
double MELAParticle::lifetime |
◆ mothers
◆ p4
TLorentzVector MELAParticle::p4 |
◆ passSelection
bool MELAParticle::passSelection |
The documentation for this class was generated from the following files: