]>
Commit | Line | Data |
---|---|---|
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 | ||
17 | ||
18 | /////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // V-Zero Detector // | |
21 | // This class contains the base procedures for the VZERO detector // | |
22 | // All comments should be sent to Brigitte CHEYNIS : // | |
23 | // b.cheynis@ipnl.in2p3.fr // | |
24 | // // | |
25 | // // | |
26 | /////////////////////////////////////////////////////////////////////////// | |
27 | ||
28 | #include <Riostream.h> | |
29 | #include <Riostream.h> | |
30 | ||
31 | #include "TMath.h" | |
32 | #include "TTUBE.h" | |
33 | #include "TNode.h" | |
34 | #include "TGeometry.h" | |
35 | #include "AliRun.h" | |
36 | #include "AliVZERO.h" | |
37 | #include "AliVZEROdigit.h" | |
38 | #include "AliVZEROhit.h" | |
39 | ||
40 | ClassImp(AliVZERO) | |
41 | ||
42 | ||
43 | //_____________________________________________________________________________ | |
44 | AliVZERO::AliVZERO(const char *name, const char *title) | |
45 | : AliDetector(name,title) | |
46 | { | |
47 | // | |
48 | // Standard constructor for VZERO Detector | |
49 | // | |
50 | ||
51 | fIshunt = 1; // All hits are associated with primary particles | |
52 | ||
53 | fHits = new TClonesArray("AliVZEROhit", 400); | |
54 | fDigits = new TClonesArray("AliVZEROdigit",400); | |
55 | ||
56 | gAlice->AddHitList(fHits); | |
57 | ||
58 | // fDigits = new TClonesArray("AliVZEROdigit",400) ; | |
59 | ||
60 | fThickness = 4.1; // total thickness of the V0R box | |
61 | fThickness1 = 0.7; // thickness of the thickest cell (2.5 in version 0) | |
62 | ||
63 | fMaxStepQua = 0.05; | |
64 | fMaxStepAlu = 0.01; | |
65 | ||
66 | fMaxDestepQua = -1.0; | |
67 | fMaxDestepAlu = -1.0; | |
68 | ||
69 | SetMarkerColor(kRed); | |
70 | } | |
71 | ||
72 | //_____________________________________________________________________________ | |
73 | AliVZERO::~AliVZERO() | |
74 | { | |
75 | if (fHits) { | |
76 | fHits->Delete(); | |
77 | delete fHits; | |
78 | } | |
79 | } | |
80 | ||
81 | //_____________________________________________________________________________ | |
82 | void AliVZERO::BuildGeometry() | |
83 | { | |
84 | // | |
85 | // Build simple ROOT TNode geometry for event display | |
86 | // | |
87 | } | |
88 | ||
89 | //_____________________________________________________________________________ | |
90 | void AliVZERO::CreateGeometry() | |
91 | { | |
92 | // | |
93 | // Build simple ROOT TNode geometry for event display | |
94 | // | |
95 | } | |
96 | //_____________________________________________________________________________ | |
97 | void AliVZERO::CreateMaterials() | |
98 | { | |
99 | // | |
100 | // Build simple ROOT TNode geometry for event display | |
101 | // | |
102 | } | |
103 | ||
104 | ||
105 | ||
106 | //_____________________________________________________________________________ | |
107 | Int_t AliVZERO::DistanceToPrimitive(Int_t px, Int_t py) | |
108 | { | |
109 | // | |
110 | // Calculate the distance from the mouse to the VZERO on the screen | |
111 | // Dummy routine | |
112 | // | |
113 | ||
114 | return 9999; | |
115 | } | |
116 | ||
117 | //------------------------------------------------------------------------- | |
118 | void AliVZERO::Init() | |
119 | { | |
120 | // | |
121 | // Initialise the VZERO after it has been built | |
122 | // | |
123 | } | |
124 | ||
125 | ||
126 | //------------------------------------------------------------------------- | |
127 | ||
128 | void AliVZERO::SetMaxStepQua(Float_t p1) | |
129 | { | |
130 | fMaxStepQua = p1; | |
131 | } | |
132 | ||
133 | //___________________________________________ | |
134 | void AliVZERO::SetMaxStepAlu(Float_t p1) | |
135 | { | |
136 | fMaxStepAlu = p1; | |
137 | } | |
138 | ||
139 | //___________________________________________ | |
140 | void AliVZERO::SetMaxDestepQua(Float_t p1) | |
141 | { | |
142 | fMaxDestepQua = p1; | |
143 | } | |
144 | ||
145 | //___________________________________________ | |
146 | void AliVZERO::SetMaxDestepAlu(Float_t p1) | |
147 | { | |
148 | fMaxDestepAlu = p1; | |
149 | } |