CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/ElectroWeakAnalysis/ZEE/interface/CaloVectors.h File Reference

#include "RecoEcal/EgammaClusterAlgos/interface/EgammaSCEnergyCorrectionAlgo.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 3 of file CaloVectors.h.

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

Referenced by ErsatzMEt::analyze().

{
        double pt = sc->energy()/cosh(sc->eta());
        math::XYZTLorentzVector detVec(pt*cos(sc->phi()), pt*sin(sc->phi()), pt*sinh(sc->eta()), sc->energy());
        return detVec;
}
math::XYZTLorentzVector DetectorVector ( const reco::SuperCluster  sc)

Definition at line 9 of file CaloVectors.h.

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

{
        double pt = sc.energy()/cosh(sc.eta());
        math::XYZTLorentzVector detVec(pt*cos(sc.phi()), pt*sin(sc.phi()), pt*sinh(sc.eta()), sc.energy());
        return detVec;
}
math::XYZTLorentzVector DetectorVector ( const GlobalPoint pos,
const math::XYZPoint vertex,
double  energy 
)

Definition at line 15 of file CaloVectors.h.

References funct::cos(), eta(), phi, funct::sin(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

{
        math::XYZPoint hitPos(pos.x(), pos.y(), pos.z());
        math::XYZVector Vec = hitPos - vertex;
        double eta = Vec.Eta();
        double phi = Vec.Phi();
        double pt = energy/cosh(eta);
        math::XYZTLorentzVector detVec(pt*cos(phi), pt*sin(phi), pt*sinh(eta), energy);
        return detVec;
}
math::XYZTLorentzVector PhysicsVector ( const math::XYZPoint vertex,
const reco::SuperCluster sc 
)

Definition at line 25 of file CaloVectors.h.

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

{
        math::XYZVector Vec = sc.position() - vertex;
        double eta = Vec.Eta();
        double phi = Vec.Phi();
        double pt = sc.energy()/cosh(eta);
        math::XYZTLorentzVector probe(pt*cos(phi), pt*sin(phi), pt*sinh(eta), sc.energy());
        return probe;
}
math::XYZTLorentzVector PhysicsVectorRaw ( const math::XYZPoint vertex,
const reco::SuperCluster sc 
)

Definition at line 34 of file CaloVectors.h.

References funct::cos(), eta(), phi, reco::CaloCluster::position(), reco::SuperCluster::rawEnergy(), and funct::sin().

Referenced by ErsatzMEt::ersatzFabrik().

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