GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Limits on nEvents in CbmRunAna missing
Limits on nEvents in CbmRunAna missing [message #7505] Fri, 07 November 2008 15:23 Go to next message
Aleksandra Wronska is currently offline  Aleksandra Wronska
Messages: 38
Registered: May 2006
Location: Cracow
continuous participant
From: *if.uj.edu.pl
Dear colleagues,

by accident I ran an analysis macro setting fRun->Run(0,nEvents);
where nEvents exceeded number of events in the input file. The macro kept calculating something which was basically a nonsense. Is there a chance to put in a protection against this (foolproof)?

Thanks in advance,
ola
Re: Limits on nEvents in CbmRunAna missing [message #7568 is a reply to message #7505] Wed, 26 November 2008 15:46 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 Ola,

I put a protection in the run manager, it is now in the fairbase/trunk, I will move after some testing of other changes to the release, in case you would like to test this please do the following in your pandaroot/base directory:

> svn switch https://subversion.gsi.de/fairroot/fairbase/trunk/base .

the protection will give a warning in case you request more event than in file and will limit the no of event to that in the file.

-------------------Warning---------------------------
-W CbmRunAna : File has less events than requested!!
File contains : 10 Events
Requested number of events = 20 Events
The number of events is set to 10 Events
-----------------------------------------------------


regards

Mohammad
Previous Topic: Symbol G__exception is not defined in current scope
Next Topic: Error in EvtGen compilation
Goto Forum:
  


Current Time: Sun Apr 28 22:48:31 CEST 2024

Total time taken to generate the page: 0.00774 seconds