CMS 3D CMS Logo

CaloVectors.h
Go to the documentation of this file.
5 
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 }
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 }
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 }
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 }
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 }
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:153
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
T y() const
Definition: PV3DBase.h:60
math::XYZTLorentzVector DetectorVector(const reco::SuperClusterRef &sc)
Definition: CaloVectors.h:6
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:180
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
T z() const
Definition: PV3DBase.h:61
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
double energy() const
cluster energy
Definition: CaloCluster.h:148
math::XYZTLorentzVector PhysicsVectorRaw(const math::XYZPoint &vertex, const reco::SuperCluster &sc)
Definition: CaloVectors.h:33
double rawEnergy() const
raw uncorrected energy (sum of energies of component BasicClusters)
Definition: SuperCluster.h:58
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
double phi() const
azimuthal angle of cluster centroid
Definition: CaloCluster.h:183
T x() const
Definition: PV3DBase.h:59
math::XYZTLorentzVector PhysicsVector(const math::XYZPoint &vertex, const reco::SuperCluster &sc)
Definition: CaloVectors.h:25