Skip to content
Snippets Groups Projects

Change doubles to floats in calo event model

Merged Carla Marin Benito requested to merge cmb_calo_floats into master
Files
19
@@ -23,6 +23,7 @@
#include "GaudiKernel/Point3DTypes.h"
#include "GaudiKernel/SymmetricMatrixTypes.h"
#include "GaudiKernel/Vector4DTypes.h"
#include "LHCbMath/Kinematics.h"
// ============================================================================
// Eevnt
// ============================================================================
@@ -49,19 +50,19 @@ namespace LHCb {
public:
// ========================================================================
/// 4-momentum (px,py,pz,e)
typedef Gaudi::LorentzVector Vector;
using Vector = Gaudi::LorentzVector;
/// 3D point (x0,y0,z0)
typedef Gaudi::XYZPoint Point;
using Point = Gaudi::XYZPoint;
/// 4x4 Covariance matrix (px,py,pz,e)
typedef Gaudi::SymMatrix4x4 MomCovariance;
using MomCovariance = Gaudi::SymMatrix4x4;
/// 3x3 Covariance matrix (x0,y0,z0)
typedef Gaudi::SymMatrix3x3 PointCovariance;
using PointCovariance = Gaudi::SymMatrix3x3;
/// 4x3 pos-mom covariance matrix off-diagonal block
typedef Gaudi::Matrix4x3 MomPointCovariance;
using MomPointCovariance = Gaudi::Matrix4x3;
/// vector of CaloPositions
typedef std::vector<LHCb::CaloPosition> CaloPositions;
using CaloPositions = std::vector<LHCb::CaloPosition>;
/// vector of CaloHypos
typedef std::vector<const LHCb::CaloHypo*> CaloHypos;
using CaloHypos = std::vector<const LHCb::CaloHypo*>;
// ========================================================================
public:
// ========================================================================
@@ -177,13 +178,16 @@ namespace LHCb {
// ========================================================================
// Shortcuts
// ========================================================================
double e() { return momentum().E(); }
double px() { return momentum().Px(); }
double py() { return momentum().Py(); }
double pz() { return momentum().Pz(); }
double pt() { return momentum().Pt(); }
double mass() { return momentum().M(); }
double emass();
auto e() { return momentum().E(); }
auto px() { return momentum().Px(); }
auto py() { return momentum().Py(); }
auto pz() { return momentum().Pz(); }
auto pt() { return momentum().Pt(); }
auto mass() { return momentum().M(); }
auto emass() {
evaluate();
return Gaudi::Math::sigmamass( m_momentum, m_momCovMatrix );
}
// ========================================================================
public:
// ========================================================================
Loading