* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.12 2002/10/14 14:57:39 hristov
-Merging the VirtualMC branch to the main development branch (HEAD)
-
-Revision 1.9.6.2 2002/07/24 10:08:27 alibrary
-Updating VirtualMC
-
-Revision 1.11 2002/06/13 09:54:40 morsch
-Some additional outer cross-bars removed.
-
-Revision 1.10 2002/05/28 08:13:51 morsch
-Cross-bars in front of RICH at 60+/- 30deg. removed.
-
-Revision 1.9 2001/12/05 12:10:26 morsch
-Rails for spaceframe included.
-
-Revision 1.8 2001/10/18 14:11:35 morsch
-Some changes/bug corrections for SetHole(1) option.
-
-Revision 1.7 2001/10/16 14:50:59 morsch
-... or better use modified IsVersion() method.
-
-Revision 1.6 2001/10/16 14:33:04 morsch
-Hole() method needed by TRD to find out wheter frame has holes.
-
-Revision 1.5 2001/08/28 15:54:29 morsch
-Web frame and inner rings pointing.
+/* $Id$ */
-Revision 1.4 2001/06/22 14:11:17 morsch
-Back to official z-positions of rings.
+//------------------------------------------------------------------------
+// AliFRAMEv2.cxx
+// symmetric space frame with possibility for holes
+// Author: A.Morsch
+//------------------------------------------------------------------------
-Revision 1.3 2001/06/22 12:02:20 morsch
-Ring locations matching TRD module positions.
-
-Revision 1.2 2001/05/25 07:59:54 morsch
-Initialization print-out in debug mode only.
-
-Revision 1.1 2001/05/11 13:18:05 morsch
-C++ version of spaceframe with specs according to Jan Bielski Feb. 2001
-
-*/
-
-////////////////////////////////////////////////
-// space frame class /
-///////////////////////////////////////////////
+#include <TSystem.h>
#include "AliFRAMEv2.h"
#include "AliMagF.h"
#include "AliRun.h"
-#include "TSystem.h"
ClassImp(AliFRAMEv2)
ppgon[2] = 18.;
ppgon[3] = 2.;
-
ppgon[4] = -376.;
ppgon[5] = 280.;
ppgon[6] = 421.;
// gMC->Gsvolu("B077", "TUBE", kAir, ptube, 3);
gMC->Gspos("B077", 1, "ALIC", 0., 0., 0., 0, "ONLY");
//
+// Reference plane for TRD
+//
+ ppgon[6] = ppgon[5] + 0.1;
+ ppgon[9] = ppgon[6];
+ gMC->Gsvolu("BREF", "PGON", kAir, ppgon, 10);
+ gMC->Gspos("BREF", 1, "B077", 0., 0., 0., 0, "ONLY");
+//
// The outer Frame
//
dx = rd * TMath::Sin(phi*kdeg2rad);
dy = rd * TMath::Cos(phi*kdeg2rad);
-// gMC->Gspos("B047", 1, "B076", -dx, dy, dz, idrotm[2004], "ONLY");
-// gMC->Gspos("B047", 2, "B076", -dx, dy, -dz, idrotm[2003], "ONLY");
-// gMC->Gspos("B047", 3, "B076", dx, dy, dz, idrotm[2017], "ONLY");
-// gMC->Gspos("B047", 4, "B076", dx, dy, -dz, idrotm[2018], "ONLY");
gMC->Gspos("B045", 1, "B076", -dx, dy, dz2, idrotm[2019], "ONLY");
gMC->Gspos("B045", 2, "B076", -dx, dy, -dz2, idrotm[2003], "ONLY"); // ?
gMC->Gspos("B045", 3, "B076", dx, dy, dz2, idrotm[2020], "ONLY");
gMC->Gspos("B045", 4, "B076", dx, dy, -dz2, idrotm[2027], "ONLY");
-// gMC->Gspos("BM49", 1, "B076", dx, dy, 0., idrotm[2020], "ONLY");
-// gMC->Gspos("BM49", 2, "B076", -dx, dy, 0., idrotm[2019], "ONLY");
//
// phi = 60
phi = 60;
dx = rd * TMath::Sin(phi*kdeg2rad);
dy = rd * TMath::Cos(phi*kdeg2rad);
-// gMC->Gspos("B047", 5, "B076", -dx, dy, dz, idrotm[2005], "ONLY");
-// gMC->Gspos("B047", 6, "B076", -dx, dy, -dz, idrotm[2006], "ONLY");
-// gMC->Gspos("B047", 7, "B076", dx, dy, dz, idrotm[2016], "ONLY");
-// gMC->Gspos("B047", 8, "B076", dx, dy, -dz, idrotm[2015], "ONLY");
gMC->Gspos("B045", 5, "B076", -dx, dy, dz2, idrotm[2021], "ONLY");
gMC->Gspos("B045", 6, "B076", -dx, dy, -dz2, idrotm[2028], "ONLY");
gMC->Gspos("B045", 7, "B076", dx, dy, dz2, idrotm[2022], "ONLY");
gMC->Gspos("B045", 8, "B076", dx, dy, -dz2, idrotm[2029], "ONLY");
-// gMC->Gspos("BM49", 3, "B076", dx, dy, 0., idrotm[2022], "ONLY");
-// gMC->Gspos("BM49", 4, "B076", -dx, dy, 0., idrotm[2021], "ONLY");
//
// phi = 80
//
phi = 80;
dx = rd * TMath::Sin(phi*kdeg2rad);
dy = rd * TMath::Cos(phi*kdeg2rad);
-// gMC->Gspos("B047", 9, "B076", -dx, dy, dz, idrotm[2009], "ONLY");
-// gMC->Gspos("B047", 10, "B076", -dx, dy, -dz, idrotm[2007], "ONLY");
-// gMC->Gspos("B047", 11, "B076", dx, dy, dz, idrotm[2013], "ONLY");
-// gMC->Gspos("B047", 12, "B076", dx, dy, -dz, idrotm[2014], "ONLY");
gMC->Gspos("B047", 13, "B076", -dx, -dy, dz, idrotm[2008], "ONLY");
gMC->Gspos("B047", 14, "B076", -dx, -dy, -dz, idrotm[2010], "ONLY");
gMC->Gspos("B045", 15, "B076", dx, -dy, dz2, idrotm[2025], "ONLY");
gMC->Gspos("B045", 16, "B076", dx, -dy, -dz2, idrotm[2033], "ONLY");
-// gMC->Gspos("BM49", 5, "B076", dx, dy, 0., idrotm[2026], "ONLY");
-// gMC->Gspos("BM49", 6, "B076", -dx, dy, 0., idrotm[2023], "ONLY");
gMC->Gspos("BM49", 7, "B076", dx, -dy, 0., idrotm[2025], "ONLY");
gMC->Gspos("BM49", 8, "B076", -dx, -dy, 0., idrotm[2024], "ONLY");
{
gMC->Gsvolu(module[jmod], "TRD1", kAir, ptrd1, 4);
}
-
- Int_t mod[18] = {1, 1, 1, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 1, 1};
+// Position of Holes for PHOS (P) and RICH (R) starting at 6h
+// P P P - - R R R - - - - - - - - P P
+ Int_t mod[18] = {1, 1, 1, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1};
Float_t r = 341.8;
ptrap[8] = ptrap[4];
ptrap[9] = ptrap[4];
ptrap[10] = 0;
- gMC->Gsvolu("B059", "TRAP", kSteel, ptrap, 11);
+// gMC->Gsvolu("B059", "TRAP", kSteel, ptrap, 11);
ptrap[0] = 2.2;
ptrap[4] = 2.15;
ptrap[5] = ptrap[4];
ptrap[7] = ptrap[3];
ptrap[8] = ptrap[4];
ptrap[9] = ptrap[4];
- gMC->Gsvolu("B062", "TRAP", kAir, ptrap, 11);
- gMC->Gspos("B062", 1, "B059", 0.0, -0.3, 0., 0, "ONLY");
+ //gMC->Gsvolu("B062", "TRAP", kAir, ptrap, 11);
+ //gMC->Gspos("B062", 1, "B059", 0.0, 0., 0., 0, "ONLY");
+
//
// longitudinal bars (no TPC rails attached)
// new specs: h x w x s = 60 x 60 x 3
//___________________________________________
void AliFRAMEv2::CreateMaterials()
{
-
+ // Creates the materials
Float_t epsil, stemax, tmaxfd, deemax, stmin;
epsil = 1.e-4; // Tracking precision,
" FRAME "
"**************************************\n",ClassName());
}
+//
+// The reference volume id
+ fRefVolumeId = gMC->VolId("BREF");
}
Int_t AliFRAMEv2::IsVersion() const
{
+ // Returns the version of the FRAME (1 if no holes, 0 otherwise)
Int_t version = 0;
if (fHoles == 0) version = 1;
return version;
}
+void AliFRAMEv2::StepManager()
+{
+//
+// Stepmanager of AliFRAMEv2.cxx
+// Used for recording of reference tracks entering the spaceframe mother volume
+//
+ Int_t copy, id;
+
+ //
+ // Only charged tracks
+ if( !(gMC->TrackCharge()) ) return;
+ //
+ // Only tracks entering mother volume
+ //
+
+ id=gMC->CurrentVolID(copy);
+
+ if (id != fRefVolumeId) return;
+ if(!gMC->IsTrackEntering()) return;
+ //
+ // Add the reference track
+ //
+ AddTrackReference(gAlice->GetCurrentTrackNumber());
+}
+