]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Modifications for the HP-compiler
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Dec 2000 13:00:45 +0000 (13:00 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Dec 2000 13:00:45 +0000 (13:00 +0000)
TRD/AliTRDsim.cxx
TRD/AliTRDsim.h
TRD/AliTRDtracker.cxx

index 30b51a8a90ae1e0191da9e370eb9db5102c54301..9b166cf554f106e8cf192e96c9f444faae65a72a 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2000/12/12 10:20:10  cblume
+Initialize fSepctrum = 0 in ctors
+
 Revision 1.5  2000/10/15 23:40:01  cblume
 Remove AliTRDconst
 
@@ -62,6 +65,7 @@ AliTRDsim::AliTRDsim():TObject()
   // 
 
   fSpectrum = 0;
+  fSigma    = 0;
 
   Init();
 
@@ -83,6 +87,7 @@ AliTRDsim::AliTRDsim(AliModule *mod, Int_t foil, Int_t gap)
   Char_t  name[21];
 
   fSpectrum = 0;
+  fSigma    = 0;
 
   Init();
 
index 0d1f1ffc848ca90ba2398de1d48802b970d8b578..0b45a1064782b7e3e4a9ae65bf1084fbd480dd5c 100644 (file)
@@ -102,7 +102,7 @@ class AliTRDsim : public TObject {
   Float_t   fSpLower;              // Lower border of the TR spectrum
   Float_t   fSpUpper;              // Upper border of the TR spectrum
 
-  Double_t *fSigma;                // Array of sigma values
+  Double_t *fSigma;                //[fSpNBins] Array of sigma values
 
   TH1D     *fSpectrum;             // TR photon energy spectrum
 
index 6d0136ab095f6d7b9446af2089461eaf1008a338..00868663a762ab635182745aff576d9a531cd4cb 100644 (file)
@@ -15,6 +15,9 @@
                                                       
 /*
 $Log$
+Revision 1.7  2000/12/08 16:07:02  cblume
+Update of the tracking by Sergei
+
 Revision 1.6  2000/11/30 17:38:08  cblume
 Changes to get in line with new STEER and EVGEN
 
@@ -209,7 +212,7 @@ inline Double_t f3trd(Double_t x1,Double_t y1,
 //___________________________________________________________________
 
 Int_t AliTRDtracker::FindProlongation(AliTRDtrack& t, AliTRDtrackingSector *sec,
-                            Int_t s, Int_t rf=0)
+                            Int_t s, Int_t rf)
 {
   // Starting from current position on track=t this function tries 
   // to extrapolate the track up to timeBin=rf and to confirm prolongation
@@ -567,7 +570,11 @@ Int_t AliTRDtracker::GetTrackLabel(AliTRDtrack t) {
   const Int_t range = AliTRDgeometry::kNplan * fGeom->GetTimeMax();
   Bool_t label_added;
 
-  Int_t s[range][2];
+  //  Int_t s[range][2];
+  Int_t **s = new Int_t* [range];
+  for (i=0; i<range; i++) {
+    s[i] = new Int_t[2];
+  }
   for (i=0; i<range; i++) {
     s[i][0]=-1;
     s[i][1]=0;
@@ -609,6 +616,7 @@ Int_t AliTRDtracker::GetTrackLabel(AliTRDtrack t) {
       max=s[i][1]; label=s[i][0];
     }
   }
+  delete []s;
   if(max > ncl*fLabelFraction) return label;
   else return -1;
 }
@@ -646,7 +654,7 @@ Int_t AliTRDtracker::WriteTracks(const Char_t *filename) {
 
 //_____________________________________________________________________________
 void AliTRDtracker::ReadClusters(TObjArray *array, const Char_t *filename, 
-Int_t option = 1
+Int_t option) 
 {
   //
   // Reads AliTRDclusters (option >= 0) or AliTRDrecPoints (option < 0)