11 #include <framework/datastore/RelationsObject.h>
63 m_x0 = (float) origin.x();
64 m_y0 = (float) origin.y();
65 m_z0 = (float) origin.z();
66 m_x = (float) impact.x();
67 m_y = (float) impact.y();
68 m_z = (float) impact.z();
69 m_px = (float) momentum.x();
70 m_py = (float) momentum.y();
71 m_pz = (float) momentum.z();
74 m_xloc = (float) impactLoc.x();
75 m_yloc = (float) impactLoc.y();
76 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
float m_zloc
impact point, z component in local (bar) frame
TOPBarHit(int moduleID, int PDG, TVector3 origin, TVector3 impact, TVector3 momentum, double time, double length, TVector3 impactLoc, double theta, double phi)
Full constructor.
double getPhi() const
Returns azimuthal angle in local (bar) frame.
TVector3 getLocalPosition() const
Returns impact point.
float m_phi
impact azimuthal angle in local (bar) frame
TVector3 getMomentum() const
Returns impact momentum.
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.
float m_pz
impact momentum, z component
int getPDG() const
Returns PDG code of particle.
TVector3 getPosition() const
Returns impact point.
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
TVector3 getProductionPoint() const
Returns production point.
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.