GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Tracking » [FIXED] Geane for luminosity monitor: TGeant3 not initialized
Re: Geane for luminosity monitor [message #10293 is a reply to message #10291] Wed, 24 February 2010 15:29 Go to previous messageGo to previous message
Mathias Michel is currently offline  Mathias Michel
Messages: 21
Registered: May 2009
Location: Mainz
occasional visitor

From: *kph.uni-mainz.de
I tried to find the newest macros, like in the pid package, so this is how my macro looks like:

FairRunAna *fRun= new FairRunAna();
fRun->SetInputFile(MCFile);
fRun->AddFriend(DigiFile);
...
fRun->SetOutputFile(outFile);

FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
FairParRootFileIo* parInput1 = new FairParRootFileIo(kTRUE);
parInput1->open(parFile.Data(),"UPDATE");
rtdb->setFirstInput(parInput1);

FairGeane *Geane = new FairGeane();
fRun->AddTask(Geane)

PndLmdGeaneTask* lmdgeane = new PndLmdGeaneTask();
fRun->AddTask(lmdgeane);

rtdb->setOutput(parInput1);
rtdb->print();

fRun->Init();
PndEmcMapper *emcMap = PndEmcMapper::Instance(6);
//Geane->SetField(fRun->GetField());
fRun->Run(0,nEvents);

[Updated on: Wed, 24 February 2010 15:30]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plane id in track candidate
Next Topic: GEANE documentation on WIKI
Goto Forum:
  


Current Time: Tue Nov 19 15:16:10 CET 2024

Total time taken to generate the page: 0.01245 seconds