11#include <framework/datastore/RelationsObject.h>
12#include <Math/Vector3D.h>
13#include <Math/Point3D.h>
52 ROOT::Math::XYZPoint origin,
53 ROOT::Math::XYZPoint impact,
54 ROOT::Math::XYZVector momentum,
57 ROOT::Math::XYZPoint impactLoc,
64 m_x0 = (float) origin.X();
65 m_y0 = (float) origin.Y();
66 m_z0 = (float) origin.Z();
67 m_x = (float) impact.X();
68 m_y = (float) impact.Y();
69 m_z = (float) impact.Z();
70 m_px = (float) momentum.X();
71 m_py = (float) momentum.Y();
72 m_pz = (float) momentum.Z();
75 m_xloc = (float) impactLoc.X();
76 m_yloc = (float) impactLoc.Y();
77 m_zloc = (float) impactLoc.Z();
Defines interface for accessing relations of objects in StoreArray.
Class to store track parameters of incoming MC particles relation to MCParticle filled in top/simulat...
float m_z0
production point, z component
float m_xloc
impact point, x component in local (bar) frame
ROOT::Math::XYZPoint getLocalPosition() const
Returns impact point.
float m_zloc
impact point, z component in local (bar) frame
double getPhi() const
Returns azimuthal angle in local (bar) frame.
float m_phi
impact azimuthal angle in local (bar) frame
ROOT::Math::XYZPoint getPosition() const
Returns impact point.
int m_moduleID
TOP module ID.
int m_pdg
PDG code of particle.
float m_py
impact momentum, y component
float m_y0
production point, y component
TOPBarHit()
Default constructor.
int getModuleID() const
Returns module ID.
ROOT::Math::XYZPoint getProductionPoint() const
Returns production point.
float m_pz
impact momentum, z component
TOPBarHit(int moduleID, int PDG, ROOT::Math::XYZPoint origin, ROOT::Math::XYZPoint impact, ROOT::Math::XYZVector momentum, double time, double length, ROOT::Math::XYZPoint impactLoc, double theta, double phi)
Full constructor.
int getPDG() const
Returns PDG code of particle.
float m_x0
production point, x component
float m_px
impact momentum, x component
ClassDef(TOPBarHit, 3)
ClassDef.
float m_y
impact point, y component
ROOT::Math::XYZVector getMomentum() const
Returns impact momentum.
float m_length
length of particle trajectory to impact point
float m_yloc
impact point, y component in local (bar) frame
float m_z
impact point, z component
float m_x
impact point, x component
double getTheta() const
Returns polar angle in local (bar) frame.
double getLength() const
Returns tract length from production to impact point.
double getTime() const
Returns time of impact.
float m_theta
impact polar angle in local (bar) frame
Abstract base class for different kinds of events.