#include "Tracker_Hit.h"
#include "TMath.h"

///////////////////////////////////////////////////////////////////////////
//                                                                        
// Tracker_Hit                                                            
//                                                                        
// The Tracker_Hit class is used to store the data from the Tracker
// section of the detector. The data includes a binary tag as well as
// position, energy deposit, and the index of the corresponding McPart
// object in the list of McParts in the Event class.
//                                                                        
///////////////////////////////////////////////////////////////////////////

ClassImp(Tracker_Hit)

///________________________________________________________________________
 Tracker_Hit::Tracker_Hit() {
  // Default constructor
  m_index = 0;
}
///________________________________________________________________________
 Tracker_Hit::Tracker_Hit(TkID* ID,Float_t *position, Float_t Eloss,
			 Float_t time, Int_t index) {
  // Create a record of an energy deposition in the tracker
    m_ID = TkID(ID->tag());
    for(Int_t i=0; i<3; i++){
      m_position[i] = position[i];
    }
    m_Eloss = Eloss;
    m_time = time;
    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.