]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fixes and code cleaning
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Oct 2000 13:14:08 +0000 (13:14 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Oct 2000 13:14:08 +0000 (13:14 +0000)
START/AliSTART.cxx
START/AliSTARTdigit.cxx
START/AliSTARTdigit.h

index 03fb3479509c597b74d11bbc8d061eed84c58c6a..45893a3a09da1c2706995b859710b7138390865d 100755 (executable)
@@ -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);
     
 /*
index 72fc1477484299bf1327cb9f3c8c11d17ae61014..f8a9da6ce7aa14f137993354c926241ece0f044a 100644 (file)
  **************************************************************************/
 /*
 $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 <iostream.h>
-#include <fstream.h>
 
-#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;
 
-}
index 7070499eeb7cd970c224dc319a447a8708cb6bf5..68544b048ec5549d454568efa5f04eb9b2abf13c 100644 (file)
@@ -5,7 +5,7 @@
 
 /* $Id$ */
 #include <TObject.h>
-#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;}