Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:18

0001 #ifndef BasicVertexState_H
0002 #define BasicVertexState_H
0003 
0004 #include "TrackingTools/TrajectoryState/interface/ProxyBase11.h"
0005 
0006 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0007 #include "DataFormats/GeometryCommonDetAlgo/interface/GlobalError.h"
0008 #include "DataFormats/GeometryCommonDetAlgo/interface/GlobalWeight.h"
0009 
0010 #include <vector>
0011 
0012 class VertexState;
0013 
0014 /** Class containing a measurement of a vertex.
0015  */
0016 
0017 class BasicVertexState {
0018 public:
0019   using Proxy = ProxyBase11<BasicVertexState>;
0020   using pointer = Proxy::pointer;
0021 
0022 public:
0023   virtual ~BasicVertexState() {}
0024 
0025   template <typename T, typename... Args>
0026   static std::shared_ptr<BasicVertexState> build(Args&&... args) {
0027     return std::make_shared<T>(std::forward<Args>(args)...);
0028   }
0029 
0030   virtual pointer clone() const = 0;
0031 
0032   /** Access methods
0033    */
0034   virtual GlobalPoint position() const = 0;
0035   virtual GlobalError error() const = 0;
0036   virtual GlobalError error4D() const = 0;
0037   virtual double time() const = 0;
0038   virtual double timeError() const = 0;
0039   virtual GlobalWeight weight() const = 0;
0040   virtual GlobalWeight weight4D() const = 0;
0041   virtual AlgebraicVector3 weightTimesPosition() const = 0;
0042   virtual AlgebraicVector4 weightTimesPosition4D() const = 0;
0043   virtual double weightInMixture() const = 0;
0044   virtual std::vector<VertexState> components() const;
0045   virtual bool isValid() const = 0;
0046   virtual bool is4D() const = 0;
0047 };
0048 
0049 #endif