ATLAS Offline Software
|
Evaluate cell kinematics with a different vertex. More...
#include <CaloVertexedCell.h>
Classes | |
struct | compE |
Helper to compare two of these objects by energy. More... | |
Public Types | |
enum | Kind { P4EETAPHIM, P4IPTCOTTHPHIM, P4PTETAPHIM, P4PXPYPZE, UNKNOWN } |
Public Member Functions | |
CaloVertexedCell (const CaloCell &cell) | |
Constructor. More... | |
CaloVertexedCell (const CaloCell &cell, const Amg::Vector3D &vx) | |
Constructor. More... | |
const CaloCell & | cell () const |
Return the cell being proxied,. More... | |
virtual double | eta () const final |
The pseudorapidity of the particle. More... | |
virtual double | phi () const final |
The aximuthal angle of the particle. More... | |
virtual double | e () const final |
The energy of the particle. More... | |
virtual double | m () const final |
The mass of the particle. More... | |
virtual double | sinTh () const final |
The sine of the polar angle of the particle. More... | |
virtual double | cosTh () const final |
The cosine of the polar angle of the particle. More... | |
virtual double | sinPhi () const final |
The sine of the azimuthal angle of the particle. More... | |
virtual double | cosPhi () const final |
The cosine of the azimuthal angle of the particle. More... | |
double | energy () const |
The energy of the particle. More... | |
virtual double | px () const |
x component of momentum More... | |
virtual double | py () const |
y component of momentum More... | |
virtual double | pz () const |
z component of momentum More... | |
virtual double | et () const |
transverse energy defined to be e*sin(theta) More... | |
virtual double | p () const |
magnitude of 3-momentum. More... | |
virtual double | p2 () const |
square of momentum magnitude More... | |
virtual double | m2 () const |
mass squared More... | |
virtual double | pt () const |
transverse momentum More... | |
virtual double | iPt () const |
inverse of transverse momentum More... | |
virtual double | rapidity () const |
rapidity More... | |
virtual double | cotTh () const |
cottan theta More... | |
virtual double | tanTh () const |
tan theta More... | |
virtual CLHEP::HepLorentzVector | hlv () const |
HepLorentzVector Special implementation from Frank Paige : if negative energy, points in opposite direction but eta and phi still the same More... | |
virtual const I4MomentumError * | errors () const |
Access to errors, if available; returns 0 if no errors. More... | |
virtual void | set4Mom (const I4Momentum &theI4Mom) |
set all 4-mom from another I4Momentum reference DUMMY IMPLEMENTATION More... | |
virtual void | set4Mom (const I4Momentum *const theI4Mom) |
set all 4-mom from another I4Momentum pointer DUMMY IMPLEMENTATION More... | |
virtual void | set4Mom (const CLHEP::HepLorentzVector &theHlv) |
set all 4-mom from a CLHEP HepLorentzVector DUMMY IMPLEMENTATION More... | |
I4Momentum::Kind | kind () const |
tells what kind of P4XYZT this is More... | |
virtual std::ostream & | dump (std::ostream &out=std::cout) const |
Print I4Momentum content. More... | |
Private Member Functions | |
void | computeVertexCorr (const Amg::Vector3D &vx) |
Calculate cell kinematics for a given vertex. More... | |
Private Attributes | |
const CaloCell * | m_cell |
The cell being proxied. More... | |
double | m_eta |
The recalculated cell eta. More... | |
double | m_phi |
The recalculated cell phi. More... | |
double | m_sinth |
The recalculated cell sin(theta). More... | |
double | m_costh |
The recalculated cell cos(theta). More... | |
double | m_sinph |
The recalculated cell sin(phi). More... | |
double | m_cosph |
The recalculated cell cos(phi). More... | |
Evaluate cell kinematics with a different vertex.
This class acts as a proxy for a cell object. It the same I4Momentum
interface, except that the cell kinematics are recalculated for a different vertex.
Definition at line 35 of file CaloVertexedCell.h.
|
inherited |
Enumerator | |
---|---|
P4EETAPHIM | |
P4IPTCOTTHPHIM | |
P4PTETAPHIM | |
P4PXPYPZE | |
UNKNOWN |
Definition at line 33 of file I4Momentum.h.
Constructor.
cell | The cell to proxy. |
In this case, we'll return unchanged the kinematics of the cell.
Definition at line 24 of file CaloVertexedCell.cxx.
CaloVertexedCell::CaloVertexedCell | ( | const CaloCell & | cell, |
const Amg::Vector3D & | vx | ||
) |
Constructor.
cell | The cell to proxy. |
vx | The vertex to use for calculating cell kinematics. |
In this case, we'll return the kinematics of the cell relative to vertex vx
.
Definition at line 44 of file CaloVertexedCell.cxx.
|
private |
Calculate cell kinematics for a given vertex.
vx | The vertex to use for calculating cell kinematics. |
Definition at line 63 of file CaloVertexedCell.cxx.
|
inlinefinalvirtual |
The cosine of the azimuthal angle of the particle.
Reimplemented from P4EEtaPhiMBase.
Definition at line 86 of file CaloVertexedCell.h.
|
inlinefinalvirtual |
The cosine of the polar angle of the particle.
Reimplemented from P4EEtaPhiMBase.
Definition at line 80 of file CaloVertexedCell.h.
|
virtualinherited |
cottan theta
Implements I4Momentum.
Reimplemented in CaloCell.
Definition at line 77 of file P4EEtaPhiMBase.cxx.
|
virtualinherited |
|
inlinefinalvirtual |
The energy of the particle.
Implements I4Momentum.
Definition at line 71 of file CaloVertexedCell.h.
|
inline |
The energy of the particle.
Definition at line 89 of file CaloVertexedCell.h.
|
virtualinherited |
Access to errors, if available; returns 0 if no errors.
Implements I4Momentum.
Reimplemented in P4EEtaPhiM.
Definition at line 175 of file P4EEtaPhiMBase.cxx.
|
virtualinherited |
transverse energy defined to be e*sin(theta)
Implements I4Momentum.
Reimplemented in CaloCell.
Definition at line 106 of file P4EEtaPhiMBase.cxx.
|
inlinefinalvirtual |
The pseudorapidity of the particle.
Implements I4Momentum.
Definition at line 65 of file CaloVertexedCell.h.
|
virtualinherited |
HepLorentzVector Special implementation from Frank Paige : if negative energy, points in opposite direction but eta and phi still the same
Implements I4Momentum.
Reimplemented in CaloCluster.
Definition at line 134 of file P4EEtaPhiMBase.cxx.
|
virtualinherited |
inverse of transverse momentum
Implements I4Momentum.
Definition at line 111 of file P4EEtaPhiMBase.cxx.
|
inlinevirtualinherited |
tells what kind of P4XYZT this is
Implements I4Momentum.
Definition at line 65 of file P4EEtaPhiMBase.h.
|
inlinefinalvirtual |
|
virtualinherited |
|
virtualinherited |
magnitude of 3-momentum.
Special implementation from Frank Paige : if negative energy p is negative but eta and phi still the same.
Implements I4Momentum.
Definition at line 21 of file P4EEtaPhiMBase.cxx.
|
virtualinherited |
square of momentum magnitude
This p2() implementaion is derived from the (somewhat unusual) Frank Paige implementation used to calculate p() above. What we do is look at what would happen if we were to square the answer returned by Frank's algorithm:
(1) The "eSign" would square to +1 and disappear, (2) The sqrt would disappear leaving theE*theE-theM*theM (3) In the event that theM==0, this theE*theE would indeed still equal theE*theE-theM*theM, so we simply return this quantity.
Implements I4Momentum.
Definition at line 39 of file P4EEtaPhiMBase.cxx.
|
inlinefinalvirtual |
The aximuthal angle of the particle.
Implements I4Momentum.
Definition at line 68 of file CaloVertexedCell.h.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
set all 4-mom from a CLHEP HepLorentzVector DUMMY IMPLEMENTATION
Implements I4Momentum.
Reimplemented in CaloCell, P4EEtaPhiM, and CaloCluster.
Definition at line 194 of file P4EEtaPhiMBase.cxx.
|
virtualinherited |
set all 4-mom from another I4Momentum reference DUMMY IMPLEMENTATION
Implements I4Momentum.
Reimplemented in CaloCell, P4EEtaPhiM, and CaloCluster.
Definition at line 181 of file P4EEtaPhiMBase.cxx.
|
virtualinherited |
set all 4-mom from another I4Momentum pointer DUMMY IMPLEMENTATION
Implements I4Momentum.
Reimplemented in CaloCell, P4EEtaPhiM, and CaloCluster.
Definition at line 187 of file P4EEtaPhiMBase.cxx.
|
inlinefinalvirtual |
The sine of the azimuthal angle of the particle.
Reimplemented from P4EEtaPhiMBase.
Definition at line 83 of file CaloVertexedCell.h.
|
inlinefinalvirtual |
The sine of the polar angle of the particle.
Reimplemented from P4EEtaPhiMBase.
Definition at line 77 of file CaloVertexedCell.h.
|
virtualinherited |
The cell being proxied.
Definition at line 113 of file CaloVertexedCell.h.
|
private |
The recalculated cell cos(phi).
Definition at line 131 of file CaloVertexedCell.h.
|
private |
The recalculated cell cos(theta).
Definition at line 125 of file CaloVertexedCell.h.
|
private |
The recalculated cell eta.
Definition at line 116 of file CaloVertexedCell.h.
|
private |
The recalculated cell phi.
Definition at line 119 of file CaloVertexedCell.h.
|
private |
The recalculated cell sin(phi).
Definition at line 128 of file CaloVertexedCell.h.
|
private |
The recalculated cell sin(theta).
Definition at line 122 of file CaloVertexedCell.h.