]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Modified Float_t fPhosAngle(4) to Float_t * fPhosAngle //[fNModules]
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 May 2000 21:15:38 +0000 (21:15 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 May 2000 21:15:38 +0000 (21:15 +0000)
automatic streamer does not work !!!

PHOS/AliPHOSGeometry.cxx
PHOS/AliPHOSGeometry.h

index 01602968932defb632dae905dc4b0c7f2252c7a9..51d1b8f027d1e838bb6e28bd6ec4e526ca52a9b1 100644 (file)
@@ -48,6 +48,8 @@ AliPHOSGeometry::~AliPHOSGeometry(void)
 
   fRotMatrixArray->Delete() ; 
   delete fRotMatrixArray ; 
+
+  delete fPHOSAngle ; 
 }
 
 //____________________________________________________________________________
@@ -276,12 +278,12 @@ void AliPHOSGeometry::InitPHOS(void)
   fNPhi     = 64 ; 
   fNZ       = 64 ; 
   fNModules =  5 ; 
+
+  fPHOSAngle = new Float_t[fNModules] ;
+  Int_t index ;
+  for ( index = 0; index < fNModules; index++ )
+    fPHOSAngle[index] = 0.0 ; // Module position angles are set in CreateGeometry()
   
-  fPHOSAngle[0] = 0.0 ; // Module position angles are set in CreateGeometry()
-  fPHOSAngle[1] = 0.0 ;
-  fPHOSAngle[2] = 0.0 ;
-  fPHOSAngle[3] = 0.0 ;
   fXtlSize[0] =  2.2 ;
   fXtlSize[1] = 18.0 ;
   fXtlSize[2] =  2.2 ;
index 936810af6b880e0eeb5a9feb8e4177f9a4d8263d..6061be367263b3f8010a3cc3124e4cacc900e25b 100644 (file)
@@ -150,7 +150,7 @@ private:
   Int_t   fNZ ;                           // Number of crystal units in Z direction
   Float_t fOuterBoxSize[3] ;              // Size of the outer  thermo insulating foam box
   Float_t fOuterBoxThickness[3] ;         // Thickness of the outer thermo insulating foam box
-  Float_t fPHOSAngle[4] ;                 // Position angles of modules
+  Float_t * fPHOSAngle ;                  //[fNModules] Position angles of modules
   Float_t fPinDiodeSize[3] ;              // Size of the PIN Diode 
   TObjArray *  fRotMatrixArray ;          // Liste of rotation matrices (one per phos module)
   Float_t fSecondUpperPlateThickness ;    // Thickness of  upper polystyrene foam plate