CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SimTrack.h
Go to the documentation of this file.
1 #ifndef SimTrack_H
2 #define SimTrack_H
3 
5 
6 class SimTrack : public CoreSimTrack
7 {
8 
9 public:
10 
11  typedef CoreSimTrack Core;
12 
14  SimTrack();
15  SimTrack(int ipart, const math::XYZTLorentzVectorD& p) ;
16 
20  SimTrack(int ipart, const math::XYZTLorentzVectorD& p, int iv, int ig);
21 
22  SimTrack(int ipart, const math::XYZTLorentzVectorD& p, int iv, int ig,
23  const math::XYZVectorD& tkp, const math::XYZTLorentzVectorD& tkm);
24 
26  SimTrack(const CoreSimTrack& t, int iv, int ig);
27 
29  int vertIndex() const { return ivert;}
30  bool noVertex() const { return ivert==-1;}
31 
33  int genpartIndex() const { return igenpart;}
34  bool noGenpart() const { return igenpart==-1;}
35 
37 
39 
40  inline void setTkPosition(const math::XYZVectorD& pos) { tkposition = pos; }
41 
42  inline void setTkMomentum(const math::XYZTLorentzVectorD& mom) { tkmomentum = mom; }
43 
44  inline void setVertexIndex(const int v) { ivert=v;}
45 
46 private:
47 
48  int ivert;
49  int igenpart;
50 
53 
54 };
55 
56 #include <iosfwd>
57 std::ostream & operator <<(std::ostream & o , const SimTrack& t);
58 
59 #endif
const math::XYZVectorD & trackerSurfacePosition() const
Definition: SimTrack.h:36
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:15
CoreSimTrack Core
Definition: SimTrack.h:11
SimTrack()
constructor
Definition: SimTrack.cc:3
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
bool noGenpart() const
Definition: SimTrack.h:34
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:9
int igenpart
Definition: SimTrack.h:49
int genpartIndex() const
index of the corresponding Generator particle in the Event container (-1 if no Genpart) ...
Definition: SimTrack.h:33
bool noVertex() const
Definition: SimTrack.h:30
void setVertexIndex(const int v)
Definition: SimTrack.h:44
int vertIndex() const
index of the vertex in the Event container (-1 if no vertex)
Definition: SimTrack.h:29
math::XYZTLorentzVectorD tkmomentum
Definition: SimTrack.h:52
const math::XYZTLorentzVectorD & trackerSurfaceMomentum() const
Definition: SimTrack.h:38
void setTkPosition(const math::XYZVectorD &pos)
Definition: SimTrack.h:40
int ivert
Definition: SimTrack.h:48
math::XYZVectorD tkposition
Definition: SimTrack.h:51
void setTkMomentum(const math::XYZTLorentzVectorD &mom)
Definition: SimTrack.h:42
mathSSE::Vec4< T > v