/*
$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
*/
-#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)
//________________________________________________________________________
//
AliITSmodule::AliITSmodule() {
- // constructor
- fIndex = 0;
+ // constructor
+
fHitsM = 0;
fTrackIndex = 0;
fHitIndex = 0;
// 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;
////////////////////////////////////////////////////////////////////////
printf("AliITSmodule error: AliITSmodule class has not to be copied! Exit.\n");
exit(1);
+ return *this; // fake return neded on Sun
}
//_________________________________________________________________________
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;