GSI Forum - RDF feed
type: channel
description: GSI Helmholtzzentrum für Schwerionenforschung
items: Tasks in Simulation session
items: Re: Tasks in Simulation session

Tasks in Simulation session
type: item
description: Hallo, I added a macro to the /macro/emc (sim_hit_emc.C) showing how to add tasks with parameters to a simulation session, this macro will analyze the EmcPoint directly after simulation and write the EmcHit to the tree. the only change in the Task needed to do this is in the SetParContainers() method one should use the base class CbmRun and not the CbmRunAna, (which will work also for an analysis session). // Get run and runtime database CbmRun* run = CbmRun::Instance(); CbmRuntimeDb* db = run->GetRuntimeDb(); For this example both points and hits are saved to the file, so may be one should implement a method to switch off writing the points to the file, or an extra argument to the detector constructor! technically one need only to switch off saving to file in the register call, i.e: CbmRootManager::Instance()->Register("EmcPoint","Emc", fEmcCollection, kFALSE); regards Mohammad
creator: Mohammad Al-Turany
date: 2008-12-17T09:48:11-00:00

Re: Tasks in Simulation session
type: item
description: Mohammad Al-Turany wrote on Wed, 17 December 2008 10:48 For this example both points and hits are saved to the file, so may be one should implement a method to switch off writing the points to the file, or an extra argument to the detector constructor! technically one need only to switch off saving to file in the register call, i.e: done and done (well, only for the EMC it is...). Johan.
creator: Johan Messchendorp
date: 2008-12-17T22:34:54-00:00

Re: Tasks in Simulation session
type: item
description: Dear all, I modified various "SetParContainers()" pieces of code throughout the complete PandaRoot trunk (rev 4468), following the earlier thread by Mohammad. I compiled, tested randomly and successfully some example macros. If you encounter any problems, let me know. Johan
creator: Johan Messchendorp
date: 2009-02-02T20:39:17-00:00