]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDarrayI.cxx
small correction for error calculation
[u/mrichter/AliRoot.git] / TRD / AliTRDarrayI.cxx
index 5293c057977b58ec04e0f94556e32b816f7ee273..605f6880ccb03d36273f3eb00a73520883ae8ea1 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.1.4.1  2000/05/08 14:35:54  cblume
-Update
-
-Revision 1.1  2000/02/28 18:57:18  cblume
-Add new TRD classes
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////
 //                                                                   //  
@@ -38,6 +30,15 @@ Add new TRD classes
 
 ClassImp(AliTRDarrayI)
 
+//_____________________________________________________________________________
+AliTRDarrayI::AliTRDarrayI():TArrayI()
+{
+  //
+  // Default constructor
+  //
+
+}
+
 //_____________________________________________________________________________
 AliTRDarrayI::~AliTRDarrayI()
 {
@@ -47,6 +48,18 @@ AliTRDarrayI::~AliTRDarrayI()
 
 }
 
+//_____________________________________________________________________________
+void AliTRDarrayI::Copy(TObject &a) const
+{
+  //
+  // Copy function
+  //
+
+  TObject::Copy(a);
+  TArrayI::Copy(((TArrayI &) a));
+
+}
+
 //_____________________________________________________________________________
 void AliTRDarrayI::Expand(Int_t n)
 {
@@ -57,11 +70,17 @@ void AliTRDarrayI::Expand(Int_t n)
   // The user is responsible for the appropriate size of the array.
   //
 
-  if (n < 0) return;  
-  fArray = (Int_t*) TStorage::ReAlloc(fArray
-                                     ,n  * sizeof(Int_t)
-                                     ,fN * sizeof(Int_t));
-  if (fArray != 0) fN = n;
+  if (n < 0) {
+    return;  
+  }
+
+  fArray = (Int_t *) TStorage::ReAlloc(fArray
+                                      ,n *sizeof(Int_t)
+                                      ,fN*sizeof(Int_t));
+
+  if (fArray != 0) {
+    fN = n;
+  }
  
 }