CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SimVertex.h
Go to the documentation of this file.
1 #ifndef SimVertex_H
2 #define SimVertex_H
3 
5 class SimVertex : public CoreSimVertex {
6 public:
7  typedef CoreSimVertex Core;
9  SimVertex();
10 
12  SimVertex(const CoreSimVertex& t, int it);
13 
14  SimVertex(const math::XYZVectorD& v, float tof);
15 
17  SimVertex(const math::XYZVectorD& v, float tof, int it);
18 
20  SimVertex(const CoreSimVertex& t, int it, unsigned int vId);
21 
22  SimVertex(const math::XYZVectorD& v, float tof, unsigned int vId);
23 
25  SimVertex(const math::XYZVectorD& v, float tof, int it, unsigned int vId);
26 
29  int parentIndex() const { return itrack; }
30  bool noParent() const { return itrack == -1; }
31 
32  void setVertexId(unsigned int n) { vtxId = n; }
33  unsigned int vertexId() const { return vtxId; }
34 
35  void setProcessType(unsigned int ty) { procType = ty; }
36  unsigned int processType() const { return procType; }
37 
38 private:
39  int itrack;
40  unsigned int vtxId;
41  unsigned int procType;
42 };
43 
44 #include <iosfwd>
45 std::ostream& operator<<(std::ostream& o, const SimVertex& v);
46 
47 #endif
void setVertexId(unsigned int n)
Definition: SimVertex.h:32
void setProcessType(unsigned int ty)
Definition: SimVertex.h:35
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
unsigned int processType() const
Definition: SimVertex.h:36
int itrack
Definition: SimVertex.h:39
unsigned int vtxId
Definition: SimVertex.h:40
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
int parentIndex() const
Definition: SimVertex.h:29
SimVertex()
constructor
Definition: SimVertex.cc:3
unsigned int vertexId() const
Definition: SimVertex.h:33
CoreSimVertex Core
Definition: SimVertex.h:7
unsigned int procType
Definition: SimVertex.h:41
bool noParent() const
Definition: SimVertex.h:30