GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Time stamps in MCEventHeader
Re: Time stamps in MCEventHeader [message #6746 is a reply to message #6741] Mon, 19 May 2008 20:41 Go to previous messageGo to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *dip.t-dialin.net
Hi,

So, I added a new method SetEventMeanTime(Double_t) to the CbmPrimaryGenerator,
setting this value will create a TF1 function:

TF1 *f1 = TF1("f1", "1/meanTime * Exp (-t/meanTime)", 0, meanTime*10 )

Then the event time is taken randomly from this distribution (f1->GetRandom()) and will be added for each event!

Please test it and let me know!

regards

Mohammad
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SVN stable branch!
Next Topic: How to store only MCTrack in a root file?
Goto Forum:
  


Current Time: Mon Apr 29 15:09:59 CEST 2024

Total time taken to generate the page: 0.01051 seconds