GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » The way of set field in pandaroot
The way of set field in pandaroot [message #9757] Mon, 23 November 2009 10:51 Go to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Dear Collegues,

I have a simple question for setting of magnet field at reconstruction level with GEANE.
In reconstruction macro, I put Geane with setfield function like below, and get a suspious message


// ----- Intialise and run --------------------------------------------
fRun->Init();
Geane->SetField(fRun->GetField());
PndEmcMapper *emcMap = PndEmcMapper::Instance(2);
fRun->Run(0,nEvents);
rtdb->saveOutput();
rtdb->print();


Quote:

-W- FairGeane::SetField This method is not used anymore, use FairRunAna::SetField instead


Do I write in the macro only
fRun->GetField();

Could you explain how both the SetField of FairRunAna and Geane are related? and actually worked?

Best wishes,
Donghee Kang



Re: The way of set field in pandaroot [message #9758 is a reply to message #9757] Mon, 23 November 2009 11:19 Go to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hallo,

This change was done with moving the geometry to the parameters, in case you need the same fields as in the simulation you do not need to do anything, Geane will get the field from the parameters file.

Only if you want to use a field other than the one used in the simulation session you can set it to the FairRunAna, and Geane will use it.

The Geane::SetField method will be removed in near future bit now we kept it with the warning so that everybody migrate his macros slowly without crashes.

I hope it is clear now.

regards

Mohammad

Previous Topic: Geometry modification
Next Topic: Panda Magnet Field Map
Goto Forum:
  


Current Time: Mon Nov 25 10:19:33 CET 2024

Total time taken to generate the page: 0.00542 seconds