CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 {
7 
8  public:
9 
12  SimVertex();
13 
15  SimVertex(const CoreSimVertex & t, int it);
16 
17  SimVertex( const math::XYZVectorD& v, float tof ) ;
18 
20  SimVertex( const math::XYZVectorD& v, float tof, int it ) ;
21 
23  SimVertex(const CoreSimVertex & t, int it, unsigned int vId );
24 
25  SimVertex( const math::XYZVectorD& v, float tof, unsigned int vId ) ;
26 
28  SimVertex( const math::XYZVectorD& v, float tof, int it, unsigned int vId ) ;
29 
30 
33  int parentIndex() const { return itrack; }
34  bool noParent() const { return itrack==-1; }
35 
36  void setVertexId(unsigned int n) {vtxId = n;}
37  unsigned int vertexId() const { return vtxId; }
38 
39  void setProcessType(unsigned int ty) {procType = ty;}
40  unsigned int processType() const { return procType; }
41 
42 private:
43  int itrack;
44  unsigned int vtxId;
45  unsigned int procType;
46 };
47 
48 #include <iosfwd>
49 std::ostream & operator <<(std::ostream & o , const SimVertex& v);
50 
51 
52 #endif
void setVertexId(unsigned int n)
Definition: SimVertex.h:36
void setProcessType(unsigned int ty)
Definition: SimVertex.h:39
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
unsigned int processType() const
Definition: SimVertex.h:40
int itrack
Definition: SimVertex.h:43
unsigned int vtxId
Definition: SimVertex.h:44
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
int parentIndex() const
Definition: SimVertex.h:33
SimVertex()
constructor
Definition: SimVertex.cc:3
unsigned int vertexId() const
Definition: SimVertex.h:37
CoreSimVertex Core
Definition: SimVertex.h:10
unsigned int procType
Definition: SimVertex.h:45
bool noParent() const
Definition: SimVertex.h:34