From 528332bad87f56d2f3b1c21d1e04a35942691ae7 Mon Sep 17 00:00:00 2001 From: hristov Date: Fri, 13 Oct 2000 13:14:08 +0000 Subject: [PATCH] Bug fixes and code cleaning --- START/AliSTART.cxx | 5 ++++- START/AliSTARTdigit.cxx | 22 +++------------------- START/AliSTARTdigit.h | 12 ++++++++---- 3 files changed, 15 insertions(+), 24 deletions(-) diff --git a/START/AliSTART.cxx b/START/AliSTART.cxx index 03fb3479509..45893a3a09d 100755 --- a/START/AliSTART.cxx +++ b/START/AliSTART.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.10 2000/10/02 21:28:13 fca +Removal of useless dependecies via forward declarations + Revision 1.9 2000/07/13 16:41:29 fca New START corrected for coding conventions @@ -205,7 +208,7 @@ void AliSTART::MakeBranch(Option_t* option) TTree *td = gAlice->TreeD(); digits = new AliSTARTdigit(); - td->Branch(branchname,"AliSTARTdigit",&digits, buffersize); + td->Branch(branchname,"AliSTARTdigit",digits, buffersize); printf("Making Branch %s for digits\n",branchname); /* diff --git a/START/AliSTARTdigit.cxx b/START/AliSTARTdigit.cxx index 72fc1477484..f8a9da6ce7a 100644 --- a/START/AliSTARTdigit.cxx +++ b/START/AliSTARTdigit.cxx @@ -14,32 +14,16 @@ **************************************************************************/ /* $Log$ +Revision 1.3 2000/07/13 16:41:29 fca +New START corrected for coding conventions + Revision 1.2 2000/03/24 17:40:35 alla New AliSTART */ -#include -#include -#include "AliRun.h" -#include "AliSTART.h" #include "AliSTARTdigit.h" ClassImp(AliSTARTdigit) -AliSTARTdigit::AliSTARTdigit(Int_t Timeav, Int_t Timediff) - //: AliDigit(tracks) -{ - // - // Create START digit - // The creator for the AliSTARTdigit class. This routine fills the - // AliSTARTdigit data members from the array digits. The array of track - // numbers are passed to the AliDigit creator. The order of the elements - // in the digits array are fEvent = digits[0], fAmplitude = digits[1], - // fTimeAverage = digits[1], fTimeDiff = digits[1], and fDet = digits[4]. - // Therefore the array digits is expected to be at least 5 elements long. - // - Timeav = fTimeAverage; - Timediff = fTimeDiff; -} diff --git a/START/AliSTARTdigit.h b/START/AliSTARTdigit.h index 7070499eeb7..68544b048ec 100644 --- a/START/AliSTARTdigit.h +++ b/START/AliSTARTdigit.h @@ -5,7 +5,7 @@ /* $Id$ */ #include -#include "AliSTART.h" + //___________________________________________ class AliSTARTdigit: public TObject { //////////////////////////////////////////////////////////////////////// @@ -15,8 +15,7 @@ class AliSTARTdigit: public TObject { public: - AliSTARTdigit(); - AliSTARTdigit(Int_t , Int_t ); + AliSTARTdigit(Int_t Timeav=999999, Int_t Timediff=999999); virtual ~AliSTARTdigit() {} void Set(Int_t, Int_t); Int_t GetTime(); @@ -26,7 +25,12 @@ class AliSTARTdigit: public TObject { ClassDef(AliSTARTdigit,1) //Digit (Header) object for set:START }; -inline AliSTARTdigit::AliSTARTdigit(){fTimeAverage=999999;fTimeDiff=999999;} +inline AliSTARTdigit::AliSTARTdigit(Int_t Timeav, Int_t Timediff):fTimeAverage(Timeav),fTimeDiff(Timediff) +{ + // + // Create START digit + // +} inline Int_t AliSTARTdigit::GetTime(){return fTimeDiff;} inline void AliSTARTdigit::Set(Int_t Timeav, Int_t Timediff) {fTimeAverage=Timeav; fTimeDiff=Timediff;} -- 2.43.0