]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STRUCT/AliFRAMEv0.cxx
Adding the class for specifiing cut criterias
[u/mrichter/AliRoot.git] / STRUCT / AliFRAMEv0.cxx
index 98dc4ee16696af903ce6b62e8d8b92077db9d817..ca472e5e3e1199bd4e56d9cc4a5ee784b2e3a139 100644 (file)
@@ -1,30 +1,46 @@
-////////////////////////////////////////////////
-//  space frame class                            /
-////////////////////////////////////////////////
-
-#include <stdio.h> 
-#include <TMath.h>
-#include <TRandom.h>
-#include <TVector.h>
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/* $Id$ */
+
+//-------------------------------------------------------------------------
+//  Space frame class
+//  Reads the geometry from an Euclid file
+//  Author: A.Morsch
+//-------------------------------------------------------------------------
+
 #include "AliFRAMEv0.h"
 #include "AliRun.h"
-#include "stdlib.h"
-#include "AliMC.h"
 #include "TSystem.h"
+#include <TVirtualMC.h>
  
 ClassImp(AliFRAMEv0)
  
 //_____________________________________________________________________________
 AliFRAMEv0::AliFRAMEv0()
 {
+// Constructor
 }
 
 //_____________________________________________________________________________
 AliFRAMEv0::AliFRAMEv0(const char *name, const char *title)
   : AliFRAME(name,title)
 {
+// Constructor
   printf("Create FRAMEv0 object\n");  
-  fEuclidGeometry="$(ALICE_ROOT)/Euclid/frame0799nobar.euc";
+  fEuclidGeometry="$(ALICE_ROOT)/Euclid/frame1099h.euc";
   fEuclidMaterial="$(ALICE_ROOT)/Euclid/frame.tme";
 }
 
@@ -56,7 +72,7 @@ void AliFRAMEv0::CreateGeometry()
   if(file) {
     fclose(file);
     printf(" Reading FRAME geometry\n");
-    gAlice->ReadEuclid(fEuclidGeometry.Data(),this,topvol);
+    ReadEuclid(fEuclidGeometry.Data(),topvol);
   } else {
     Warning("CreateGeometry","The Euclid file %s does not exist!\n",
            fEuclidGeometry.Data());
@@ -77,6 +93,8 @@ void AliFRAMEv0::CreateGeometry()
 //___________________________________________
 void AliFRAMEv0::CreateMaterials()
 {
+// Create Geant materials
+//
   char *filetmp;
   printf("Create FRAMEv0 materials\n");
   filetmp = gSystem->ExpandPathName(fEuclidMaterial.Data());
@@ -84,7 +102,7 @@ void AliFRAMEv0::CreateMaterials()
   delete [] filetmp;
   if(file) {
     fclose(file);
-    gAlice->ReadEuclidMedia(fEuclidMaterial.Data(),this);
+    ReadEuclidMedia(fEuclidMaterial.Data());
   } else {
     Warning("CreateMaterials","The material file %s does not exist!\n",
            fEuclidMaterial.Data());
@@ -92,6 +110,23 @@ void AliFRAMEv0::CreateMaterials()
   }
 }
 
+//_____________________________________________________________________________
+void AliFRAMEv0::Init()
+{
+  //
+  // Initialise the module after the geometry has been defined
+  //
+
+  printf("**************************************"
+        " FRAME "
+        "**************************************\n");
+  printf("\n     Version 0 of FRAME initialised, "
+        "with openings for PHOS and HMPID\n\n");
+  printf("**************************************"
+        " FRAME "
+        "**************************************\n");
+
+}