]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Put the checks on the version in the creator before the geometry is built
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Nov 1999 14:30:18 +0000 (14:30 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Nov 1999 14:30:18 +0000 (14:30 +0000)
TOF/AliTOFv0.cxx
TOF/AliTOFv1.cxx
TOF/AliTOFv2.cxx
TOF/AliTOFv3.cxx
TOF/AliTOFv4.cxx
TOF/AliTOFv5.cxx
TOF/AliTOFv6.cxx

index 7310c5f0f370609a31a18b7ca8aa7df496217e79..960c801949744e54121ab0b241795c3971aee376 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.14  1999/11/05 22:39:06  fca
+New hits structure
+
 Revision 1.13  1999/11/01 20:41:57  fca
 Added protections against using the wrong version of FRAME
 
@@ -84,6 +87,19 @@ AliTOFv0::AliTOFv0(const char *name, const char *title)
   //
   // Standard constructor
   //
+  //
+  // Check that FRAME is there otherwise we have no place where to
+  // put TOF
+  AliModule* FRAME=gAlice->GetModule("FRAME");
+  if(!FRAME) {
+    Error("Ctor","TOF needs FRAME to be present\n");
+    exit(1);
+  } else 
+    if(FRAME->IsVersion()!=0) {
+      Error("Ctor","FRAME version 0 needed with this version of TOF\n");
+      exit(1);
+    }
+
 }
  
 //_____________________________________________________________________________
@@ -487,19 +503,6 @@ void AliTOFv0::Init()
 
   AliTOF::Init();
 
-  //
-  // Check that FRAME is there otherwise we have no place where to
-  // put TOF
-  AliModule* FRAME=gAlice->GetModule("FRAME");
-  if(!FRAME) {
-    Error("Ctor","TOF needs FRAME to be present\n");
-    exit(1);
-  } else 
-    if(FRAME->IsVersion()!=0) {
-      Error("Ctor","FRAME version 0 needed with this version of TOF\n");
-      exit(1);
-    }
-
   fIdFTO2=gMC->VolId("FTO2");
   fIdFTO3=gMC->VolId("FTO3");
   fIdFLT1=gMC->VolId("FLT1");
index 1f04f5e5cdb3cc64f08e627944acb2b478b34545..3af1a9f3c5a67be20d8aa4f1e255558aca55fa41 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.14  1999/11/05 22:39:06  fca
+New hits structure
+
 Revision 1.13  1999/11/01 20:41:57  fca
 Added protections against using the wrong version of FRAME
 
@@ -84,6 +87,20 @@ AliTOFv1::AliTOFv1(const char *name, const char *title)
   //
   // Standard constructor
   //
+
+  //
+  // Check that FRAME is there otherwise we have no place where to
+  // put TOF
+  AliModule* FRAME=gAlice->GetModule("FRAME");
+  if(!FRAME) {
+    Error("Ctor","TOF needs FRAME to be present\n");
+    exit(1);
+  } else 
+    if(FRAME->IsVersion()!=0) {
+      Error("Ctor","FRAME version 0 needed with this version of TOF\n");
+      exit(1);
+    }
+
 }
  
 //_____________________________________________________________________________
@@ -495,19 +512,6 @@ void AliTOFv1::Init()
 
   AliTOF::Init();
 
-  //
-  // Check that FRAME is there otherwise we have no place where to
-  // put TOF
-  AliModule* FRAME=gAlice->GetModule("FRAME");
-  if(!FRAME) {
-    Error("Ctor","TOF needs FRAME to be present\n");
-    exit(1);
-  } else 
-    if(FRAME->IsVersion()!=0) {
-      Error("Ctor","FRAME version 0 needed with this version of TOF\n");
-      exit(1);
-    }
-
   fIdFTO2=gMC->VolId("FTO2");
   fIdFTO3=gMC->VolId("FTO3");
   fIdFLT1=gMC->VolId("FLT1");
index fed0ce8bbe11edbb152f99144a4286cb498988ce..4c57fa17552a5a597588cd8e634258147fd4d31c 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.14  1999/11/05 22:39:06  fca
+New hits structure
+
 Revision 1.13  1999/11/01 20:41:57  fca
 Added protections against using the wrong version of FRAME
 
@@ -85,6 +88,19 @@ AliTOFv2::AliTOFv2(const char *name, const char *title)
   //
   // Standard constructor
   //
+  //
+  // Check that FRAME is there otherwise we have no place where to
+  // put TOF
+  AliModule* FRAME=gAlice->GetModule("FRAME");
+  if(!FRAME) {
+    Error("Ctor","TOF needs FRAME to be present\n");
+    exit(1);
+  } else 
+    if(FRAME->IsVersion()!=1) {
+      Error("Ctor","FRAME version 1 needed with this version of TOF\n");
+      exit(1);
+    }
+
 }
  
 //_____________________________________________________________________________
@@ -494,19 +510,6 @@ void AliTOFv2::Init()
 
   AliTOF::Init();
 
-  //
-  // Check that FRAME is there otherwise we have no place where to
-  // put TOF
-  AliModule* FRAME=gAlice->GetModule("FRAME");
-  if(!FRAME) {
-    Error("Ctor","TOF needs FRAME to be present\n");
-    exit(1);
-  } else 
-    if(FRAME->IsVersion()!=1) {
-      Error("Ctor","FRAME version 1 needed with this version of TOF\n");
-      exit(1);
-    }
-
   fIdFTO2=gMC->VolId("FTO2");
   fIdFTO3=gMC->VolId("FTO3");
   fIdFLT1=gMC->VolId("FLT1");
index 1299abf007a81f31e1975aec72f8e8387eb03b25..b7691b94874f907247d9d1bc1a83c4e96c03b4a7 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.14  1999/11/05 22:39:06  fca
+New hits structure
+
 Revision 1.13  1999/11/02 11:26:39  fca
 added stdlib.h for exit
 
@@ -85,6 +88,19 @@ AliTOFv3::AliTOFv3(const char *name, const char *title)
   //
   // Standard constructor
   //
+  //
+  // Check that FRAME is there otherwise we have no place where to
+  // put TOF
+  AliModule* FRAME=gAlice->GetModule("FRAME");
+  if(!FRAME) {
+    Error("Ctor","TOF needs FRAME to be present\n");
+    exit(1);
+  } else 
+    if(FRAME->IsVersion()!=1) {
+      Error("Ctor","FRAME version 1 needed with this version of TOF\n");
+      exit(1);
+    }
+
 }
  
 //_____________________________________________________________________________
@@ -499,19 +515,6 @@ void AliTOFv3::Init()
 
   AliTOF::Init();
 
-  //
-  // Check that FRAME is there otherwise we have no place where to
-  // put TOF
-  AliModule* FRAME=gAlice->GetModule("FRAME");
-  if(!FRAME) {
-    Error("Ctor","TOF needs FRAME to be present\n");
-    exit(1);
-  } else 
-    if(FRAME->IsVersion()!=1) {
-      Error("Ctor","FRAME version 1 needed with this version of TOF\n");
-      exit(1);
-    }
-
   fIdFTO2=gMC->VolId("FTO2");
   fIdFTO3=gMC->VolId("FTO3");
   fIdFLT1=gMC->VolId("FLT1");
index c70e33e8c66339fc0954f4675264f17ed0c4dce9..b6a524f6917b9b5ed431abd0550607e03bf2cf3a 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  1999/11/05 22:39:06  fca
+New hits structure
+
 Revision 1.3  1999/11/01 20:41:57  fca
 Added protections against using the wrong version of FRAME
 
@@ -77,6 +80,19 @@ AliTOFv4::AliTOFv4(const char *name, const char *title)
   //
   // Standard constructor
   //
+  //
+  // Check that FRAME is there otherwise we have no place where to
+  // put TOF
+  AliModule* FRAME=gAlice->GetModule("FRAME");
+  if(!FRAME) {
+    Error("Ctor","TOF needs FRAME to be present\n");
+    exit(1);
+  } else 
+    if(FRAME->IsVersion()!=0) {
+      Error("Ctor","FRAME version 0 needed with this version of TOF\n");
+      exit(1);
+    }
+
 }
  
 //_____________________________________________________________________________
@@ -389,19 +405,6 @@ void AliTOFv4::Init()
 
   AliTOF::Init();
 
-  //
-  // Check that FRAME is there otherwise we have no place where to
-  // put TOF
-  AliModule* FRAME=gAlice->GetModule("FRAME");
-  if(!FRAME) {
-    Error("Ctor","TOF needs FRAME to be present\n");
-    exit(1);
-  } else 
-    if(FRAME->IsVersion()!=0) {
-      Error("Ctor","FRAME version 0 needed with this version of TOF\n");
-      exit(1);
-    }
-
   fIdFTO2=gMC->VolId("FTO2");
   fIdFTO3=gMC->VolId("FTO3");
   fIdFLT1=gMC->VolId("FLT1");
index 400b382649d27c9f28b81508e4a9d1618fcc1f82..83545cee79a4b7ce9886a961090c719e112dd4ed 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  1999/11/05 22:39:06  fca
+New hits structure
+
 Revision 1.3  1999/11/01 20:41:58  fca
 Added protections against using the wrong version of FRAME
 
@@ -78,6 +81,19 @@ AliTOFv5::AliTOFv5(const char *name, const char *title)
   //
   // Standard constructor
   //
+  //
+  // Check that FRAME is there otherwise we have no place where to
+  // put TOF
+  AliModule* FRAME=gAlice->GetModule("FRAME");
+  if(!FRAME) {
+    Error("Ctor","TOF needs FRAME to be present\n");
+    exit(1);
+  } else 
+    if(FRAME->IsVersion()!=1) {
+      Error("Ctor","FRAME version 1 needed with this version of TOF\n");
+      exit(1);
+    }
+
 }
  
 //_____________________________________________________________________________
@@ -390,19 +406,6 @@ void AliTOFv5::Init()
 
   AliTOF::Init();
 
-  //
-  // Check that FRAME is there otherwise we have no place where to
-  // put TOF
-  AliModule* FRAME=gAlice->GetModule("FRAME");
-  if(!FRAME) {
-    Error("Ctor","TOF needs FRAME to be present\n");
-    exit(1);
-  } else 
-    if(FRAME->IsVersion()!=1) {
-      Error("Ctor","FRAME version 1 needed with this version of TOF\n");
-      exit(1);
-    }
-
   fIdFTO2=gMC->VolId("FTO2");
   fIdFTO3=gMC->VolId("FTO3");
   fIdFLT1=gMC->VolId("FLT1");
index cdc31868b998a9c1e40901a4a127a0556aa86ac4..6d82d6c7cee712b985b87e0129d249a1947e2670 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  1999/11/05 22:39:06  fca
+New hits structure
+
 Revision 1.3  1999/11/01 20:41:58  fca
 Added protections against using the wrong version of FRAME
 
@@ -77,6 +80,18 @@ AliTOFv6::AliTOFv6(const char *name, const char *title)
   //
   // Standard constructor
   //
+  //
+  // Check that FRAME is there otherwise we have no place where to
+  // put TOF
+  AliModule* FRAME=gAlice->GetModule("FRAME");
+  if(!FRAME) {
+    Error("Ctor","TOF needs FRAME to be present\n");
+    exit(1);
+  } else 
+    if(FRAME->IsVersion()!=1) {
+      Error("Ctor","FRAME version 1 needed with this version of TOF\n");
+      exit(1);
+    }
 }
  
 //_____________________________________________________________________________
@@ -398,19 +413,6 @@ void AliTOFv6::Init()
 
   AliTOF::Init();
 
-  //
-  // Check that FRAME is there otherwise we have no place where to
-  // put TOF
-  AliModule* FRAME=gAlice->GetModule("FRAME");
-  if(!FRAME) {
-    Error("Ctor","TOF needs FRAME to be present\n");
-    exit(1);
-  } else 
-    if(FRAME->IsVersion()!=1) {
-      Error("Ctor","FRAME version 1 needed with this version of TOF\n");
-      exit(1);
-    }
-
   fIdFTO2=gMC->VolId("FTO2");
   fIdFTO3=gMC->VolId("FTO3");
   fIdFLT1=gMC->VolId("FLT1");