1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // Wsu Cosmic Ray SetUp //
21 // This class contains the description of the Wsu Cosmic Ray SetUp //
26 <img src="picts/AliEMCALWsuCosmicRaySetUpClass.gif">
29 <font size=+2 color=red>
30 <p>The responsible person for this module is
31 <a href="mailto:pavlinov@physics.wayne.edu">Aleksei Pavlino, WSU</a>.
38 ///////////////////////////////////////////////////////////////////////////////
40 #include <TVirtualMC.h>
42 #include "AliEMCALWsuCosmicRaySetUp.h"
43 //#include "AliMagF.h"
46 ClassImp(AliEMCALWsuCosmicRaySetUp)
48 //_____________________________________________________________________________
49 AliEMCALWsuCosmicRaySetUp::AliEMCALWsuCosmicRaySetUp()
52 // Default constructor
56 //_____________________________________________________________________________
57 AliEMCALWsuCosmicRaySetUp::AliEMCALWsuCosmicRaySetUp(const char *name, const char *title)
58 : AliModule(name,title)
61 // Standard constructor of the Wsu Cosmic Ray SetUp external volume
63 //PH SetMarkerColor(7);
64 //PH SetMarkerStyle(2);
65 //PH SetMarkerSize(0.4);
68 //_____________________________________________________________________________
69 void AliEMCALWsuCosmicRaySetUp::CreateGeometry()
72 // Create the geometry of the Alice external body
76 <img src="picts/AliEMCALWsuCosmicRaySetUpTree.gif">
81 Int_t *idtmed = fIdtmed->GetArray()+1;
87 // TString tmp(GetTitle());
88 gMC->Gsvolu(GetName(),"BOX",idSC, dASUC,3); // WSUC - Wsu Cosmic Ray SetUp
91 //_____________________________________________________________________________
92 void AliEMCALWsuCosmicRaySetUp::CreateMaterials()
94 // Create materials and media
99 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
100 Float_t zAir[4]={6.,7.,8.,18.};
101 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
102 Float_t dAir = 1.20479E-3;
103 // Float_t dAir1 = 1.20479E-10;
105 AliMixture(1,"Air $",aAir,zAir,dAir,4,wAir);
107 AliMedium(1,"Air $",1,0,isxfld,sxmgmx,10,-1,-0.1,0.1 ,-10);
110 //_____________________________________________________________________________
111 void AliEMCALWsuCosmicRaySetUp::DrawWSUC(float cxy) const
114 // Draw a view of the Wsu Cosmic Ray SetUp
116 // Set everything unseen
117 gMC->Gsatt("*", "seen", -1);
119 // Set WSUC mother visible
120 gMC->Gsatt("WSUC","SEEN",1);
122 // Set the volumes visible
124 gMC->Gdopt("hide","off");
126 gMC->Gdraw("WSUC", 40, 30, 0, 10, 9, cxy, cxy);
127 gMC->Gdhead(1111, "WSU Cosmic Ray Setup ");
129 gMC->Gdman(18, 4, "MAN");