]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSmodule.cxx
Erased calls to SetPrimary, because it was erased in RecFastParticle
[u/mrichter/AliRoot.git] / ITS / AliITSmodule.cxx
index eebe390208dc47119c2457dbc7c6f5fc03437ae1..bc0d39c0462147995e98015d4f8036ccc22f26e1 100644 (file)
 
 /*
 $Log$
-Revision 1.3.4.4  2000/06/12 18:10:32  barbera
-fixed posible compilation errors on HP unix
+Revision 1.9  2000/10/04 19:46:39  barbera
+Corrected by F. Carminati for v3.04
 
-Revision 1.3.4.3  2000/06/11 20:34:20  barbera
-Update class for the new structures.
+Revision 1.8  2000/10/02 16:32:57  barbera
+Forward declarations added and formatting
+
+Revision 1.3.4.8  2000/10/02 15:55:26  barbera
+Forward declarations added and formatting
+
+Revision 1.7  2000/09/22 12:36:38  nilsen
+Minor changes to improve compilation and create less NOISE.
+
+Revision 1.6  2000/07/10 16:07:18  fca
+Release version of ITS code
 
 Revision 1.3.4.2  2000/03/02 21:42:29  nilsen 
 Linked AliDetector::fDigit to AliITSmodule::fDigitsM and AliITS::fITSRecPoints
@@ -43,11 +52,15 @@ Introduction of the Copyright and cvs Log
 
 */
 
-#include "AliITSmodule.h"
+#include <TArrayI.h>
+
+#include <stdlib.h>
 
 #include "AliRun.h"
 #include "AliITS.h"
 #include "AliITShit.h"
+#include "AliITSmodule.h"
+#include "AliITSgeom.h"
 
 ClassImp(AliITSmodule)
 
@@ -65,8 +78,8 @@ ClassImp(AliITSmodule)
 //________________________________________________________________________
 //
 AliITSmodule::AliITSmodule() {
-  // constructor
-    fIndex       = 0;
+    // constructor
+
     fHitsM       = 0;
     fTrackIndex  = 0;
     fHitIndex    = 0;
@@ -88,10 +101,8 @@ AliITSmodule::~AliITSmodule() {
     // The destructor for AliITSmodule. Before destoring AliITSmodule
     // we must first destroy all of it's members.
 
-    fIndex   = 0;
-    Int_t i;
     if(fHitsM){
-       for(i=0;i<fHitsM->GetEntriesFast();i++) 
+       for(Int_t i=0;i<fHitsM->GetEntriesFast();i++) 
            delete ((AliITShit *)(fHitsM->At(i)));
        // must delete each object in the TObjArray.
        delete fHitsM;
@@ -116,6 +127,7 @@ AliITSmodule& AliITSmodule::operator=(const AliITSmodule &source){
 ////////////////////////////////////////////////////////////////////////
   printf("AliITSmodule error: AliITSmodule class has not to be copied! Exit.\n");
   exit(1);
+  return *this; // fake return neded on Sun
 } 
 
 //_________________________________________________________________________
@@ -125,19 +137,19 @@ AliITSmodule& AliITSmodule::operator=(const AliITSmodule &source){
 Int_t AliITSmodule::AddHit(AliITShit* hit,Int_t t,Int_t h) {
 // Hits management
 
-    Int_t i;
+  //printf("AddHit: beginning hit %p t h %d %d\n",hit,t,h);
     fHitsM->AddLast(new AliITShit(*hit));
     Int_t fNhitsM = fHitsM->GetEntriesFast();
     if(fNhitsM-1>=fTrackIndex->GetSize()){ // need to expand the TArrayI
        TArrayI *p = new TArrayI(fNhitsM+64);
-       for(i=0;i<fTrackIndex->GetSize();i++) 
+       for(Int_t i=0;i<fTrackIndex->GetSize();i++) 
            (*p)[i] = fTrackIndex->At(i);
        delete fTrackIndex;
        fTrackIndex = p;
     } // end if
     if(fNhitsM-1>=fHitIndex->GetSize()){ // need to expand the TArrayI
        TArrayI *p = new TArrayI(fNhitsM+64);
-       for(i=0;i<fHitIndex->GetSize();i++) 
+       for(Int_t i=0;i<fHitIndex->GetSize();i++) 
            (*p)[i] = fHitIndex->At(i);
        delete fHitIndex;
        fHitIndex = p;