Hello Felix.
Quote: |
#0 0xb647bcfa in TGeoManager::GetListOfVolumes (this=0x0) at include/TGeoManager.h:432
|
The gGeoManager is not present.
The geometry moved. It is no longer in the simulation file, but rather in the root parameter file. You need to load it as well as you need to initialize the run. E.g:
FairRunAna *fRun= new FairRunAna();
fRun->SetInputFile(inSimuFile);
fRun->AddFriend(inDigiFile);
fRun->AddFriend(inRecoFile);
fRun->SetOutputFile(outFile.Data());
FairGeane *Geane = new FairGeane();
fRun->AddTask(Geane);
FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
FairParRootFileIo* parIO = new FairParRootFileIo();
parIO->open(parFile.Data());
rtdb->setFirstInput(parIO);
rtdb->setOutput(parIO);
//...
fRun->Init();
PndEmcMapper *emcMap = PndEmcMapper::Instance(2,inSimuFile);
Geane->SetField(fRun->GetField());
fRun->Run(0,nEvents);
Cheers, Ralf.
[Updated on: Thu, 01 October 2009 11:44]
Report message to a moderator