CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
InvariantMassFromVertex.h
Go to the documentation of this file.
1 #ifndef InvariantMassFromVertex_H
2 #define InvariantMassFromVertex_H
3 
4 // #include "RecoVertex/KinematicFitPrimitives/interface/RefCountedKinematicTree.h"
5 // #include "RecoVertex/KinematicFitPrimitives/interface/KinematicVertexFactory.h"
6 // #include "RecoVertex/KinematicFitPrimitives/interface/VirtualKinematicParticleFactory.h"
8 // #include "RecoVertex/KinematicFitPrimitives/interface/KinematicRefittedTrackState.h"
9 // #include "RecoVertex/KinematicFitPrimitives/interface/Matrices.h"
12 #include "Math/Vector4D.h"
14 
21 public:
22  typedef ROOT::Math::PxPyPzMVector LorentzVector;
23 
24  Measurement1D invariantMass(const CachingVertex<5>& vertex, const std::vector<double>& masses) const;
25 
26  Measurement1D invariantMass(const CachingVertex<5>& vertex, const double mass) const;
27 
31  LorentzVector p4(const CachingVertex<5>& vertex, const std::vector<double>& masses) const;
32 
36  LorentzVector p4(const CachingVertex<5>& vertex, const double mass) const;
37 
38  GlobalVector momentum(const CachingVertex<5>& vertex) const;
39 
40 private:
44 
45  double uncertainty(const LorentzVector& p4, const CachingVertex<5>& vertex, const std::vector<double>& masses) const;
46 };
47 
48 #endif
ROOT::Math::PxPyPzMVector LorentzVector
ReferenceCountingPointer< VertexTrack< 5 > > RefCountedVertexTrack
ReferenceCountingPointer< RefittedTrackState< 5 > > RefCountedRefittedTrackState
LorentzVector p4(const CachingVertex< 5 > &vertex, const std::vector< double > &masses) const
double uncertainty(const LorentzVector &p4, const CachingVertex< 5 > &vertex, const std::vector< double > &masses) const
GlobalVector momentum(const CachingVertex< 5 > &vertex) const
ReferenceCountingPointer< LinearizedTrackState< 5 > > RefCountedLinearizedTrackState
Measurement1D invariantMass(const CachingVertex< 5 > &vertex, const std::vector< double > &masses) const