#include "Track.h"
#include "TMath.h"
///////////////////////////////////////////////////////////////////////////
//
// Track
//
// The Track class is used to store the data from the Track System of the
// detector. This includes the momentum, position, charge as well as a
// pointer to the corresponding McPart object.
//
///////////////////////////////////////////////////////////////////////////
ClassImp(Track)
///________________________________________________________________________
Track::Track(Float_t *momentum, Float_t *position, Float_t charge,
Int_t index) {
// Create a record of a track in the track system
for(Int_t i=0; i<3; i++){
m_momentum[i] = momentum[i];
m_position[i] = position[i];
}
m_charge = charge;
m_index = index;
}
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.