From 38e826adf98902499f08faba268aa3b79ad56482 Mon Sep 17 00:00:00 2001 From: morsch Date: Wed, 31 Oct 2001 15:56:54 +0000 Subject: [PATCH] Correction in OnionCone. --- STRUCT/AliALIFE.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/STRUCT/AliALIFE.cxx b/STRUCT/AliALIFE.cxx index 79822f0e290..9a61a122a87 100644 --- a/STRUCT/AliALIFE.cxx +++ b/STRUCT/AliALIFE.cxx @@ -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; -- 2.43.0