Correction in OnionCone.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2001 15:56:54 +0000 (15:56 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2001 15:56:54 +0000 (15:56 +0000)
STRUCT/AliALIFE.cxx

index 79822f0e2903495f76f31148c98a3609834bfb1f..9a61a122a876c9b1bee998a445d8f5a300a4ef26 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.2  2000/10/10 06:40:25  hristov
+Bug fixes
+
 Revision 1.1  2000/07/26 15:10:57  morsch
 Helper class to write geometry in ALIFE format in parallel with Geant geometry definition.
 
@@ -363,9 +366,11 @@ void AliALIFE::OnionCone (Float_t* r1, Float_t* r2, Int_t nr,
            fprintf(fFile2,"EMFCUT=%s\n", "$UNSHIELDED");
            fprintf(fFile2,"WW-FACTOR=%s\n", "$UNSHIELDED");
        }
-       if (hasInner) {
-           fprintf(fFile2,"+%5s-%5s+%5s-%5s\n", 
+       if (hasInner || isCylinder) {
+           if (!isCylinder) fprintf(fFile2,"+%5s-%5s+%5s-%5s\n", 
                    nameCou, nameCin, nameZou, nameZin);
+           if (isCylinder)  fprintf(fFile2,"+%5s+%5s-%5s\n",
+                   nameCou, nameZou, nameZin); 
        } else {
            fprintf(fFile2,"+%5s\n", nameCou);
            hasInner=kTRUE;