CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VertexState.h
Go to the documentation of this file.
1 #ifndef VertexState_H
2 #define VertexState_H
3 
6 #include <vector>
7 
13 {
14 
16 
17 public:
18  VertexState();
20  VertexState(const GlobalPoint & pos, const GlobalError & posErr,
21  const double & weightInMix = 1.0);
22  VertexState(const GlobalPoint & pos, const GlobalWeight & posWeight,
23  const double & weightInMix = 1.0);
25  const GlobalWeight & posWeight,
26  const double & weightInMix = 1.0);
28 
30  {
31  return data().position();
32  }
33 
35  {
36  return data().error();
37  }
38 
40  {
41  return data().weight();
42  }
43 
45  {
46  return data().weightTimesPosition();
47  }
48 
49  double weightInMixture() const
50  {
51  return data().weightInMixture();
52  }
53 
56 // RefCountedVertexSeed seedWithoutTracks() const
57 // {
58 // return data().seedWithoutTracks();
59 // }
60 
61  std::vector<VertexState> components() const
62  {
63  return data().components();
64  }
65 
67  bool isValid() const {return Base::isValid() && data().isValid();}
68 
69 };
70 
71 #endif
72 
GlobalPoint position() const
Definition: VertexState.h:29
double weightInMixture() const
Definition: VertexState.h:49
AlgebraicVector3 weightTimesPosition() const
Definition: VertexState.h:44
ROOT::Math::SVector< double, 3 > AlgebraicVector3
std::vector< VertexState > components() const
Definition: VertexState.h:61
GlobalWeight weight() const
Definition: VertexState.h:39
BasicVertexState::Proxy Base
Definition: VertexState.h:15
const T & data() const
Definition: ProxyBase.h:67
bool isValid() const
Make the ReferenceCountingProxy method to check validity public.
Definition: VertexState.h:67
bool isValid() const
Definition: ProxyBase.h:81
GlobalError error() const
Definition: VertexState.h:34