Time stamps in MCEventHeader [message #6731] |
Thu, 15 May 2008 09:57 |
Mohammad Al-Turany
Messages: 518 Registered: April 2004 Location: GSI, Germany
|
first-grade participant |
From: *gsi.de
|
|
Hi,
I added time stamps to the MCEventHeader (r 2772), to use this in the simulation macro:
CbmPrimaryGenerator* primGen = new CbmPrimaryGenerator();
primGen->SetEventTimeInterval ( minTime, maxTime) ;
the event time will be a random number between minTime and maxTime in nano secounds, it will also be added for each event, i.e: each event will have the time of all previous events+ its own one!
regards
Mohammad
[Updated on: Thu, 15 May 2008 09:57] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Time stamps in MCEventHeader [message #6766 is a reply to message #6746] |
Fri, 23 May 2008 12:03 |
Mohammad Al-Turany
Messages: 518 Registered: April 2004 Location: GSI, Germany
|
first-grade participant |
From: *gsi.de
|
|
Hallo Oscar,
You are right, it gives the same results! it is not faster but more simple! so now we have two methods:
1. SetEventMeanTime(Double_t)
2. SetEventTimeInterval ( minTime, maxTime) ;
do we need a very general one as Stefano suggested !
regards
Mohammad
|
|
|