#include <G4VUserTrackInformation.hh>
#include <G4TrackingManager.hh>
#include <G4SteppingManager.hh>
+#include <G4UImanager.hh>
// static data members
AliTrackingAction* AliTrackingAction::fgInstance = 0;
+//_____________________________________________________________________________
AliTrackingAction::AliTrackingAction()
: fPrimaryTrackID(0),
fVerboseLevel(2),
fgInstance = this;
}
+//_____________________________________________________________________________
AliTrackingAction::AliTrackingAction(const AliTrackingAction& right) {
//
AliGlobals::Exception("AliTrackingAction is protected from copying.");
}
+//_____________________________________________________________________________
AliTrackingAction::~AliTrackingAction() {
//
delete fMessenger;
// operators
+//_____________________________________________________________________________
AliTrackingAction&
AliTrackingAction::operator=(const AliTrackingAction &right)
{
// private methods
+//_____________________________________________________________________________
AliTrackInformation* AliTrackingAction::GetTrackInformation(
const G4Track* track,
const G4String& method) const
// public methods
+//_____________________________________________________________________________
void AliTrackingAction::PrepareNewEvent()
{
// Called by G4 kernel at the beginning of event.
stepManager->SetSteppingManager(fpTrackingManager->GetSteppingManager());
}
-#include <G4UImanager.hh>
+//_____________________________________________________________________________
void AliTrackingAction::PreTrackingAction(const G4Track* aTrack)
{
// Called by G4 kernel before starting tracking.
gAlice->PreTrack();
}
+//_____________________________________________________________________________
void AliTrackingAction::PostTrackingAction(const G4Track* aTrack)
{
// Called by G4 kernel after finishing tracking.
gAlice->PostTrack();
}
+//_____________________________________________________________________________
void AliTrackingAction::FinishPrimaryTrack()
{
// Calls AliRun::PurifyKine and fills trees of hits
fPrimaryTrackID = 0;
}
+//_____________________________________________________________________________
void AliTrackingAction::SaveTrack(const G4Track* track)
{
// Get all needed parameters from G4track and pass them
}
+//_____________________________________________________________________________
void AliTrackingAction::SetNewVerboseLevel(G4int level)
{
// Set the new verbose level that will be set when the track with
fNewVerboseLevel = level;
}
+//_____________________________________________________________________________
void AliTrackingAction::SetNewVerboseTrackID(G4int trackID)
{
// Set the trackID for which the new verbose level (fNewVerboseLevel)