CMS 3D CMS Logo

Functions
CaloVectors.h File Reference
#include "RecoEcal/EgammaClusterAlgos/interface/EgammaSCEnergyCorrectionAlgo.h"
#include "DataFormats/Math/interface/LorentzVector.h"
#include "DataFormats/Math/interface/Vector3D.h"
#include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"

Go to the source code of this file.

Functions

math::XYZTLorentzVector DetectorVector (const GlobalPoint &pos, const math::XYZPoint &vertex, double energy)
 
math::XYZTLorentzVector DetectorVector (const reco::SuperCluster sc)
 
math::XYZTLorentzVector DetectorVector (const reco::SuperClusterRef &sc)
 
math::XYZTLorentzVector PhysicsVector (const math::XYZPoint &vertex, const reco::SuperCluster &sc)
 
math::XYZTLorentzVector PhysicsVectorRaw (const math::XYZPoint &vertex, const reco::SuperCluster &sc)
 

Function Documentation

◆ DetectorVector() [1/3]

math::XYZTLorentzVector DetectorVector ( const GlobalPoint pos,
const math::XYZPoint vertex,
double  energy 
)

Definition at line 16 of file CaloVectors.h.

16  {
17  math::XYZPoint hitPos(pos.x(), pos.y(), pos.z());
18  math::XYZVector Vec = hitPos - vertex;
19  double eta = Vec.Eta();
20  double phi = Vec.Phi();
21  double pt = energy / cosh(eta);
22  math::XYZTLorentzVector detVec(pt * cos(phi), pt * sin(phi), pt * sinh(eta), energy);
23  return detVec;
24 }

References funct::cos(), HCALHighEnergyHPDFilter_cfi::energy, PVValHelper::eta, PVValHelper::phi, DiDispStaMuonMonitor_cfi::pt, funct::sin(), and bphysicsOniaDQM_cfi::vertex.

◆ DetectorVector() [2/3]

math::XYZTLorentzVector DetectorVector ( const reco::SuperCluster  sc)

Definition at line 11 of file CaloVectors.h.

11  {
12  double pt = sc.energy() / cosh(sc.eta());
13  math::XYZTLorentzVector detVec(pt * cos(sc.phi()), pt * sin(sc.phi()), pt * sinh(sc.eta()), sc.energy());
14  return detVec;
15 }

References funct::cos(), reco::CaloCluster::energy(), reco::CaloCluster::eta(), reco::CaloCluster::phi(), DiDispStaMuonMonitor_cfi::pt, and funct::sin().

◆ DetectorVector() [3/3]

math::XYZTLorentzVector DetectorVector ( const reco::SuperClusterRef sc)

Definition at line 6 of file CaloVectors.h.

6  {
7  double pt = sc->energy() / cosh(sc->eta());
8  math::XYZTLorentzVector detVec(pt * cos(sc->phi()), pt * sin(sc->phi()), pt * sinh(sc->eta()), sc->energy());
9  return detVec;
10 }

References funct::cos(), DiDispStaMuonMonitor_cfi::pt, and funct::sin().

Referenced by ErsatzMEt::analyze().

◆ PhysicsVector()

math::XYZTLorentzVector PhysicsVector ( const math::XYZPoint vertex,
const reco::SuperCluster sc 
)

Definition at line 25 of file CaloVectors.h.

25  {
26  math::XYZVector Vec = sc.position() - vertex;
27  double eta = Vec.Eta();
28  double phi = Vec.Phi();
29  double pt = sc.energy() / cosh(eta);
30  math::XYZTLorentzVector probe(pt * cos(phi), pt * sin(phi), pt * sinh(eta), sc.energy());
31  return probe;
32 }

References funct::cos(), reco::CaloCluster::energy(), PVValHelper::eta, PVValHelper::phi, reco::CaloCluster::position(), DiDispStaMuonMonitor_cfi::pt, funct::sin(), and bphysicsOniaDQM_cfi::vertex.

◆ PhysicsVectorRaw()

math::XYZTLorentzVector PhysicsVectorRaw ( const math::XYZPoint vertex,
const reco::SuperCluster sc 
)

Definition at line 33 of file CaloVectors.h.

33  {
34  math::XYZVector Vec = sc.position() - vertex;
35  double eta = Vec.Eta();
36  double phi = Vec.Phi();
37  double pt = sc.rawEnergy() / cosh(eta);
38  math::XYZTLorentzVector probe(pt * cos(phi), pt * sin(phi), pt * sinh(eta), sc.rawEnergy());
39  return probe;
40 }

References funct::cos(), PVValHelper::eta, PVValHelper::phi, reco::CaloCluster::position(), DiDispStaMuonMonitor_cfi::pt, reco::SuperCluster::rawEnergy(), funct::sin(), and bphysicsOniaDQM_cfi::vertex.

Referenced by ErsatzMEt::ersatzFabrik().

reco::CaloCluster::phi
double phi() const
azimuthal angle of cluster centroid
Definition: CaloCluster.h:184
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
pos
Definition: PixelAliasList.h:18
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
PVValHelper::eta
Definition: PVValidationHelpers.h:69
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
bphysicsOniaDQM_cfi.vertex
vertex
Definition: bphysicsOniaDQM_cfi.py:7
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
reco::CaloCluster::eta
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:181
PVValHelper::phi
Definition: PVValidationHelpers.h:68
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
reco::CaloCluster::position
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:154
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
reco::SuperCluster::rawEnergy
double rawEnergy() const
raw uncorrected energy (sum of energies of component BasicClusters)
Definition: SuperCluster.h:58
reco::CaloCluster::energy
double energy() const
cluster energy
Definition: CaloCluster.h:149