/*
$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.
*/
+#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;
if(fHitsM){
for(Int_t i=0;i<fHitsM->GetEntriesFast();i++)
delete ((AliITShit *)(fHitsM->At(i)));
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