From: nick Date: Tue, 11 Oct 2005 14:42:36 +0000 (+0000) Subject: 11-oct-2005 NvE SetMJD invoked at the end of AliTimestamp::Add instead of just updati... X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=6a7b0c733548f3360a8093e99c48fabada80378b;p=u%2Fmrichter%2FAliRoot.git 11-oct-2005 NvE SetMJD invoked at the end of AliTimestamp::Add instead of just updating the various datamembers. In this way the TTimeStamp parameters are brought in sync with the (modified) AliTimestamp values. --- diff --git a/RALICE/AliTimestamp.cxx b/RALICE/AliTimestamp.cxx index dc346e83abd..bfba2c1fe39 100644 --- a/RALICE/AliTimestamp.cxx +++ b/RALICE/AliTimestamp.cxx @@ -873,11 +873,6 @@ void AliTimestamp::Add(Int_t d,Int_t s,Int_t ns,Int_t ps) // // Note : ps=0 is the default value. -// Int_t days=fMJD; -// Int_t secs=fJsec; -// Int_t nsec=fJns; -// Int_t psec=fJps; - Int_t days=0; Int_t secs=0; Int_t nsec=0; @@ -923,10 +918,7 @@ void AliTimestamp::Add(Int_t d,Int_t s,Int_t ns,Int_t ps) days+=d; - fMJD=days; - fJsec=secs; - fJns=nsec; - fJps=psec; + SetMJD(days,secs,nsec,psec); } /////////////////////////////////////////////////////////////////////////// Int_t AliTimestamp::GetDifference(AliTimestamp* t,Int_t& d,Int_t& s,Int_t& ns,Int_t& ps) diff --git a/RALICE/history.txt b/RALICE/history.txt index b9a7ddd3caa..a7f981923b1 100644 --- a/RALICE/history.txt +++ b/RALICE/history.txt @@ -642,3 +642,6 @@ Note : For DisplayHits this new signal correction mode replaces the marker style specification parameter. Also new memberfunction GetDevices introduced in AliEvent. +11-oct-2005 NvE SetMJD invoked at the end of AliTimestamp::Add instead of just updating the + various datamembers. In this way the TTimeStamp parameters are brought in sync + with the (modified) AliTimestamp values.