]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDsimple.cxx
Fix bugs reported by Rene
[u/mrichter/AliRoot.git] / TRD / AliTRDsimple.cxx
index 1cb09ff374f96e173cd44498680189ef23e1b943..62abfb09c352e5eb2ce996acb8dd390ea25999ea 100644 (file)
  **************************************************************************/
  
 /*
-$Log$                                                          
+$Log$
+Revision 1.1  2001/11/06 17:19:41  cblume
+Add detailed geometry and simple simulator
+                                                          
 */
  
 ///////////////////////////////////////////////////////////////////////////////
@@ -38,10 +41,7 @@ AliTRDsimple::AliTRDsimple():TObject()
   // AliTRDsimple default constructor
   //
 
-  fGenerator = new AliTRDsimpleGen();
-
-  // Create the MC object
-  new AliTRDsimpleMC("simple","Simplified Monte Carlo");
+  fGenerator = NULL;
                                                          
 }                                                                               
  
@@ -81,6 +81,20 @@ AliTRDsimple &AliTRDsimple::operator=(const AliTRDsimple &s)
  
 }
  
+//_____________________________________________________________________________
+void AliTRDsimple::Init()
+{
+  //
+  // Initialization
+  //
+
+  fGenerator = new AliTRDsimpleGen();
+
+  // Create the MC object
+  new AliTRDsimpleMC("simple","Simplified Monte Carlo");
+                                                         
+}
 //_____________________________________________________________________________
 void AliTRDsimple::Copy(TObject &s)
 {