]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Initialization of pointers, exclamation mark for non-persistent pointers, corrected...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Sep 2004 19:27:20 +0000 (19:27 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Sep 2004 19:27:20 +0000 (19:27 +0000)
START/AliSTARTDigitizer.cxx
START/AliSTARTDigitizer.h
START/AliSTARTdigit.cxx
START/AliSTARTdigit.h

index a182eee1f6b2561d70fe98a4a316f2e3dee0b17c..66327acfa228b0048918a701516b461e179421ef 100644 (file)
@@ -48,13 +48,24 @@ ClassImp(AliSTARTDigitizer)
 
 //___________________________________________
 AliSTARTDigitizer::AliSTARTDigitizer(AliRunDigitizer* manager) 
-    :AliDigitizer(manager) 
+  :AliDigitizer(manager),
+   fSTART(0),
+   fHits(0),
+   fdigits(0),
+   ftimeTDC(0),
+   fADC(0),
+   fEff(0)
 {
   //   cout<<"AliSTARTDigitizer::AliSTARTDigitizer"<<endl;
 // ctor which should be used
 
   AliDebug(1,"processed");
 
+  fSTART = 0;
+  fPhotons = 0;
+  fHits = 0;
+  fdigits = 0;
+
   ftimeTDC = new TArrayI(24); 
   fADC = new TArrayI(24); 
 
@@ -70,7 +81,8 @@ AliSTARTDigitizer::~AliSTARTDigitizer()
 {
 // Destructor
 
-  AliDebug(1,"START"); 
+  AliDebug(1,"START");
+
   delete ftimeTDC;
   delete fADC;
   delete fEff;
index decc25bc238cf9e28016fb190644c979a6cd2d7d..14869933bcbdf291efe30beb6a117773dacc502d 100644 (file)
@@ -29,13 +29,13 @@ class AliSTARTDigitizer : public AliDigitizer {
 
 private:
 
-  AliSTART *fSTART;
-  TClonesArray *fPhotons   ; //Number of Cherenkov photons                   
-  TClonesArray *fHits      ; // List of hits
-  AliSTARTdigit *fdigits   ; // digits
-  TArrayI *ftimeTDC    ; //array of TDC signal from right side
-  TArrayI *fADC     ;//array of ADC signal from left sida
-  TH1*     fEff;    // efficiency histogram
+  AliSTART *fSTART;          //!
+  TClonesArray *fPhotons   ; //! Number of Cherenkov photons                 
+  TClonesArray *fHits      ; //! List of hits
+  AliSTARTdigit *fdigits   ; //! digits
+  TArrayI *ftimeTDC    ; //array of TDC signal from right side
+  TArrayI *fADC     ;//array of ADC signal from left sida
+  TH1*     fEff;    //! efficiency histogram
   
     ClassDef(AliSTARTDigitizer,1)
 };    
index 753607aa870e46673a8784bbd9ba58b7abebf0b7..c2ef8c1d197699d9c9ce1f968303c3b659a3d742 100644 (file)
@@ -41,11 +41,18 @@ ClassImp(AliSTARTdigit)
   fTimeAverage=9999;
   fTimeBestRight=9999;
   fTimeBestLeft=9999;
+  fSumADCRight=0;
 
   fTime = new TArrayI(24);  
   fADC  = new TArrayI(24);  
 }
 //-----------------------------------
+AliSTARTdigit::~AliSTARTdigit() {
+  // destructor
+  delete fTime;
+  delete fADC;
+}
+//-----------------------------------
 void AliSTARTdigit::SetTime (TArrayI &o)
 {
   ////////////////////////////////////////
index 97cc24b075c9e668a6cfa947d2ab321f46162bfe..6bdc84136905a493a4455422939e33458b5ba453 100644 (file)
@@ -12,7 +12,7 @@ class AliSTARTdigit: public TObject  {
 ////////////////////////////////////////////////////////////////////////
  public:
     AliSTARTdigit();
-    virtual ~AliSTARTdigit() {}
+    virtual ~AliSTARTdigit();
     void SetMeanTime(Int_t time) {fTimeAverage=time;}
     Int_t  GetMeanTime() {return fTimeAverage;}
     Int_t  GetBestTimeRight() {return fTimeBestRight ;}