siscone is hosted by Hepforge, IPPP Durham

The SISCone Jet Algorithm

Version 3.0.6



SISCone 3.0.6
siscone::Cmomentum Class Reference

base class for dynamic coordinates management More...

#include <momentum.h>

Collaboration diagram for siscone::Cmomentum:

Public Member Functions

 Cmomentum ()
 default ctor More...
 
 Cmomentum (double _px, double _py, double _pz, double _E)
 ctor with initialisation More...
 
 Cmomentum (double _eta, double _phi, Creference _ref)
 ctor with detailed initialisation More...
 
 ~Cmomentum ()
 default dtor More...
 
double perp () const
 computes pT More...
 
double perp2 () const
 computes pT^2 More...
 
double mass () const
 computes m More...
 
double mass2 () const
 computes m^2 More...
 
double perpmass () const
 transverse mass, mt = sqrt(pt^2+m^2) = sqrt(E^2 - pz^2) More...
 
double perpmass2 () const
 transverse mass squared, mt^2 = pt^2+m^2 = E^2 - pz^2 More...
 
double Et () const
 computes transverse energy More...
 
double Et2 () const
 computes transverse energy (squared) More...
 
Cmomentumoperator= (const Cmomentum &v)
 assignment of vectors More...
 
const Cmomentum operator+ (const Cmomentum &v)
 addition of vectors !!! WARNING !!! no updating of eta and phi !!! More...
 
Cmomentumoperator+= (const Cmomentum &v)
 incrementation of vectors !!! WARNING !!! no updating of eta and phi !!! More...
 
Cmomentumoperator-= (const Cmomentum &v)
 decrementation of vectors !!! WARNING !!! no updating of eta and phi !!! More...
 
void build_etaphi ()
 build eta-phi from 4-momentum info !!! WARNING !!! !!! computing eta and phi is time-consuming !!! !!! use this whenever you need eta or phi !!! !!! automatically called for single-particle !!! More...
 

Public Attributes

double px
 x-momentum More...
 
double py
 y-momentum More...
 
double pz
 z-momentum More...
 
double E
 energy More...
 
double eta
 particle pseudo-rapidity More...
 
double phi
 particle azimuthal angle More...
 
int parent_index
 particle number in the parent list More...
 
int index
 internal particle number More...
 
Creference ref
 reference number for the vector More...
 

Detailed Description

base class for dynamic coordinates management

This class contains the information for particle or group of particles management. It includes all Lorentz properties as well as tools for summing them. Note: 'sums' over phi angles are indeed averages. This allows to deal with periodicity at each step

Definition at line 49 of file momentum.h.

Constructor & Destructor Documentation

◆ Cmomentum() [1/3]

siscone::Cmomentum::Cmomentum ( )

default ctor

Definition at line 42 of file momentum.cpp.

References E, eta, index, phi, px, py, pz, and ref.

◆ Cmomentum() [2/3]

siscone::Cmomentum::Cmomentum ( double  _px,
double  _py,
double  _pz,
double  _E 
)

ctor with initialisation

Definition at line 52 of file momentum.cpp.

References build_etaphi(), E, px, py, pz, and ref.

◆ Cmomentum() [3/3]

siscone::Cmomentum::Cmomentum ( double  _eta,
double  _phi,
Creference  _ref 
)

ctor with detailed initialisation

Definition at line 65 of file momentum.cpp.

References eta, phi, and ref.

◆ ~Cmomentum()

siscone::Cmomentum::~Cmomentum ( )

default dtor

Definition at line 74 of file momentum.cpp.

Member Function Documentation

◆ build_etaphi()

void siscone::Cmomentum::build_etaphi ( )

build eta-phi from 4-momentum info !!! WARNING !!! !!! computing eta and phi is time-consuming !!! !!! use this whenever you need eta or phi !!! !!! automatically called for single-particle !!!

Definition at line 134 of file momentum.cpp.

References E, eta, phi, px, py, and pz.

Referenced by Cmomentum(), siscone::hash_cones::insert(), and siscone::Csplit_merge::save_contents().

◆ Et()

double siscone::Cmomentum::Et ( ) const
inline

computes transverse energy

Definition at line 82 of file momentum.h.

References E, perp2(), and pz.

◆ Et2()

double siscone::Cmomentum::Et2 ( ) const
inline

computes transverse energy (squared)

Definition at line 85 of file momentum.h.

References E, perp2(), and pz.

◆ mass()

double siscone::Cmomentum::mass ( ) const
inline

computes m

Definition at line 70 of file momentum.h.

References mass2().

◆ mass2()

double siscone::Cmomentum::mass2 ( ) const
inline

computes m^2

Definition at line 73 of file momentum.h.

References perp2(), and perpmass2().

Referenced by mass().

◆ operator+()

const Cmomentum siscone::Cmomentum::operator+ ( const Cmomentum v)

addition of vectors !!! WARNING !!! no updating of eta and phi !!!

Definition at line 96 of file momentum.cpp.

◆ operator+=()

Cmomentum & siscone::Cmomentum::operator+= ( const Cmomentum v)

incrementation of vectors !!! WARNING !!! no updating of eta and phi !!!

Definition at line 104 of file momentum.cpp.

References E, px, py, pz, and ref.

◆ operator-=()

Cmomentum & siscone::Cmomentum::operator-= ( const Cmomentum v)

decrementation of vectors !!! WARNING !!! no updating of eta and phi !!!

Definition at line 118 of file momentum.cpp.

References E, px, py, pz, and ref.

◆ operator=()

Cmomentum & siscone::Cmomentum::operator= ( const Cmomentum v)

assignment of vectors

Definition at line 80 of file momentum.cpp.

References E, eta, phi, px, py, pz, and ref.

◆ perp()

double siscone::Cmomentum::perp ( ) const
inline

computes pT

Definition at line 64 of file momentum.h.

References perp2().

Referenced by siscone::Csplit_merge::save_contents().

◆ perp2()

double siscone::Cmomentum::perp2 ( ) const
inline

computes pT^2

Definition at line 67 of file momentum.h.

References px, and py.

Referenced by siscone::Csplit_merge::add_hardest_protocone_to_jets(), Et(), Et2(), mass2(), siscone::Csplit_merge_ptcomparison::operator()(), and perp().

◆ perpmass()

double siscone::Cmomentum::perpmass ( ) const
inline

transverse mass, mt = sqrt(pt^2+m^2) = sqrt(E^2 - pz^2)

Definition at line 76 of file momentum.h.

References E, and pz.

◆ perpmass2()

double siscone::Cmomentum::perpmass2 ( ) const
inline

transverse mass squared, mt^2 = pt^2+m^2 = E^2 - pz^2

Definition at line 79 of file momentum.h.

References E, and pz.

Referenced by mass2().

Member Data Documentation

◆ E

◆ eta

◆ index

int siscone::Cmomentum::index

◆ parent_index

int siscone::Cmomentum::parent_index

particle number in the parent list

Definition at line 116 of file momentum.h.

Referenced by siscone::Csplit_merge::add_hardest_protocone_to_jets(), and siscone::Csplit_merge::add_protocones().

◆ phi

◆ px

double siscone::Cmomentum::px

◆ py

double siscone::Cmomentum::py

◆ pz

◆ ref


The documentation for this class was generated from the following files:

The SISCone project has been developed by Gavin Salam and Gregory Soyez
Documentation generated on Tue Jun 20 2023 18:08:37 for SISCone by  Doxygen 1.9.4