// $Id$
// Category: run
//
+// Author: I. Hrivnacova
+//
+// Class AliRunAction
+// ------------------
// See the class description in the header file.
#include <G4Timer.hh>
// times system function this include must be the first
#include "AliRunAction.h"
-#include "AliRunActionMessenger.h"
#include "AliSDConstruction.h"
#include "AliGlobals.h"
#include "AliRun.h"
#include "AliHeader.h"
#include "AliLego.h"
-#include "TG4GeometryManager.h"
#include "TG4SDManager.h"
#include "TG4VSDConstruction.h"
//_____________________________________________________________________________
AliRunAction::AliRunAction()
- : fRunID(-1),
+ : fMessenger(this),
+ fRunID(-1),
fVerboseLevel(0)
{
//
- fMessenger = new AliRunActionMessenger(this);
fTimer = new G4Timer;
}
//_____________________________________________________________________________
-AliRunAction::AliRunAction(const AliRunAction& right) {
+AliRunAction::AliRunAction(const AliRunAction& right)
+ : fMessenger(this) {
//
AliGlobals::Exception("AliRunAction is protected from copying.");
}
//_____________________________________________________________________________
AliRunAction::~AliRunAction() {
//
- delete fMessenger;
delete fTimer;
}
// store runID in the event header
gAlice->GetHeader()->SetRun(fRunID);
- // clear remaining G3 tables
- if (fRunID == 0)
- TG4GeometryManager::Instance()->ClearG3TablesFinal();
-
// create lego sensitive detectors
// if lego is instantiated
AliLego* lego = gAlice->Lego();