]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALWsuCosmicRaySetUp.cxx
fix for bug #66294
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALWsuCosmicRaySetUp.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16 /* $Id$ */
17
18 ///////////////////////////////////////////////////////////////////////////////
19 //                                                                           //
20 //  Wsu Cosmic Ray SetUp                                                     //
21 //  This class contains the description of the  Wsu Cosmic Ray SetUp         //
22 //  external volume                                                          //
23 //                                                                           //
24 //Begin_Html
25 /*
26 <img src="picts/AliEMCALWsuCosmicRaySetUpClass.gif">
27 </pre>
28 <br clear=left>
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>.
32 </font>
33 <pre>
34 */
35 //End_Html
36 //                                                                           //
37 //                                                                           //
38 ///////////////////////////////////////////////////////////////////////////////
39
40 #include <TVirtualMC.h>
41
42 #include "AliEMCALWsuCosmicRaySetUp.h"
43 //#include "AliMagF.h"
44 #include "AliRun.h"
45
46 ClassImp(AliEMCALWsuCosmicRaySetUp)
47  
48 //_____________________________________________________________________________
49 AliEMCALWsuCosmicRaySetUp::AliEMCALWsuCosmicRaySetUp()
50 {
51   //
52   // Default constructor
53   //
54 }
55  
56 //_____________________________________________________________________________
57 AliEMCALWsuCosmicRaySetUp::AliEMCALWsuCosmicRaySetUp(const char *name, const char *title)
58        : AliModule(name,title)
59 {
60   //
61   // Standard constructor of the  Wsu Cosmic Ray SetUp external volume
62   //
63   //PH  SetMarkerColor(7);
64   //PH  SetMarkerStyle(2);
65   //PH  SetMarkerSize(0.4);
66 }
67  
68 //_____________________________________________________________________________
69 void AliEMCALWsuCosmicRaySetUp::CreateGeometry()
70 {
71   //
72   // Create the geometry of the Alice external body
73   //
74   //Begin_Html
75   /*
76     <img src="picts/AliEMCALWsuCosmicRaySetUpTree.gif">
77   */
78   //End_Html
79
80   Float_t dASUC[3];
81   Int_t *idtmed = fIdtmed->GetArray()+1;
82   int idSC = idtmed[0];
83   //
84   dASUC[0]=50;
85   dASUC[1]=50;
86   dASUC[2]=50;
87   //  TString tmp(GetTitle());
88   gMC->Gsvolu(GetName(),"BOX",idSC, dASUC,3); // WSUC - Wsu Cosmic Ray SetUp
89 }
90  
91 //_____________________________________________________________________________
92 void AliEMCALWsuCosmicRaySetUp::CreateMaterials()
93 {
94 // Create materials and media
95   Int_t   isxfld = 0;
96   Float_t sxmgmx = 0.;
97   
98   // AIR
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;
104   //
105   AliMixture(1,"Air     $",aAir,zAir,dAir,4,wAir);
106   //
107   AliMedium(1,"Air     $",1,0,isxfld,sxmgmx,10,-1,-0.1,0.1 ,-10);
108 }
109  
110 //_____________________________________________________________________________
111 void AliEMCALWsuCosmicRaySetUp::DrawWSUC(float cxy) const
112 {
113   //
114   // Draw a view of the Wsu Cosmic Ray SetUp 
115   //
116   // Set everything unseen
117   gMC->Gsatt("*", "seen", -1);
118   // 
119   // Set WSUC mother visible
120   gMC->Gsatt("WSUC","SEEN",1);
121   //
122   // Set the volumes visible
123   //
124   gMC->Gdopt("hide","off");
125
126   gMC->Gdraw("WSUC", 40, 30, 0, 10, 9, cxy, cxy);
127   gMC->Gdhead(1111, "WSU Cosmic Ray Setup ");
128
129   gMC->Gdman(18, 4, "MAN");
130 }
131  
132