]> 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 3891594f1f6d8e3b79d20de402c2aa750cc1ad7c..bc0d39c0462147995e98015d4f8036ccc22f26e1 100644 (file)
 
 /*
 $Log$
+Revision 1.9  2000/10/04 19:46:39  barbera
+Corrected by F. Carminati for v3.04
+
+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
 to AliITSmodule::fRecPointsM. Renamed AliITSmodule::fPointsM to fRecPointsM.
@@ -37,9 +52,15 @@ Introduction of the Copyright and cvs Log
 
 */
 
+#include <TArrayI.h>
+
+#include <stdlib.h>
 
 #include "AliRun.h"
 #include "AliITS.h"
+#include "AliITShit.h"
+#include "AliITSmodule.h"
+#include "AliITSgeom.h"
 
 ClassImp(AliITSmodule)
 
@@ -57,8 +78,8 @@ ClassImp(AliITSmodule)
 //________________________________________________________________________
 //
 AliITSmodule::AliITSmodule() {
-  // constructor
-    fIndex       = 0;
+    // constructor
+
     fHitsM       = 0;
     fTrackIndex  = 0;
     fHitIndex    = 0;
@@ -80,7 +101,6 @@ AliITSmodule::~AliITSmodule() {
     // The destructor for AliITSmodule. Before destoring AliITSmodule
     // we must first destroy all of it's members.
 
-    fIndex   = 0;
     if(fHitsM){
        for(Int_t i=0;i<fHitsM->GetEntriesFast();i++) 
            delete ((AliITShit *)(fHitsM->At(i)));
@@ -117,6 +137,7 @@ AliITSmodule& AliITSmodule::operator=(const AliITSmodule &source){
 Int_t AliITSmodule::AddHit(AliITShit* hit,Int_t t,Int_t h) {
 // Hits management
 
+  //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