Public Member Functions | Public Attributes | List of all members
evgendp::Track Class Reference

Public Member Functions

 Track ()
 
 ~Track ()
 
TLorentzVector getPosition ()
 
TLorentzVector getMomentum ()
 

Public Attributes

int run
 
int subrun
 
int event
 
int trackID
 
int pdg
 
double m
 
double startDirectionX
 
double startDirectionY
 
double startDirectionZ
 
double length
 
double startX
 
double startY
 
double startZ
 
double energy
 

Detailed Description

Definition at line 59 of file DataGen311_module.cc.

Constructor & Destructor Documentation

evgendp::Track::Track ( )

Definition at line 90 of file DataGen311_module.cc.

90  {
91 
92  }
evgendp::Track::~Track ( )

Definition at line 93 of file DataGen311_module.cc.

93 {}

Member Function Documentation

TLorentzVector evgendp::Track::getMomentum ( )

Definition at line 100 of file DataGen311_module.cc.

100  {
101  static TDatabasePDG pdgt;
102  TParticlePDG* pdgp = pdgt.GetParticle(pdg);
103  if (pdgp) m = pdgp->Mass();
104 
105  double mom = sqrt( energy*energy - m*m );
106  double momX = mom*startDirectionX;
107  double momY = mom*startDirectionY;
108  double momZ = mom*startDirectionZ;
109 
110  TLorentzVector momentum( momX, momY, momZ, energy );
111  return momentum;
112  }
def momentum(x1, x2, x3, scale=1.)
TLorentzVector evgendp::Track::getPosition ( )

Definition at line 95 of file DataGen311_module.cc.

95  {
96  TLorentzVector position(startX, startY, startZ, 0);
97  return position;
98  }

Member Data Documentation

double evgendp::Track::energy

Definition at line 86 of file DataGen311_module.cc.

int evgendp::Track::event

Definition at line 72 of file DataGen311_module.cc.

double evgendp::Track::length

Definition at line 81 of file DataGen311_module.cc.

double evgendp::Track::m

Definition at line 75 of file DataGen311_module.cc.

int evgendp::Track::pdg

Definition at line 74 of file DataGen311_module.cc.

int evgendp::Track::run

Definition at line 70 of file DataGen311_module.cc.

double evgendp::Track::startDirectionX

Definition at line 78 of file DataGen311_module.cc.

double evgendp::Track::startDirectionY

Definition at line 79 of file DataGen311_module.cc.

double evgendp::Track::startDirectionZ

Definition at line 80 of file DataGen311_module.cc.

double evgendp::Track::startX

Definition at line 82 of file DataGen311_module.cc.

double evgendp::Track::startY

Definition at line 83 of file DataGen311_module.cc.

double evgendp::Track::startZ

Definition at line 84 of file DataGen311_module.cc.

int evgendp::Track::subrun

Definition at line 71 of file DataGen311_module.cc.

int evgendp::Track::trackID

Definition at line 73 of file DataGen311_module.cc.


The documentation for this class was generated from the following file: