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