]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant3/TGeant3Dummy.cxx
b20350e2c465a4ccf2d4ccafd9a2aac0da678b93
[u/mrichter/AliRoot.git] / TGeant3 / TGeant3Dummy.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 /*
17 $Log$
18 Revision 1.22  2000/07/11 18:25:00  fca
19 Coding convention corrections + few minor bug fixes
20
21 Revision 1.21  2000/06/27 09:26:18  fca
22 Adding dummy SetSTRA
23
24 Revision 1.20  2000/05/16 13:10:41  fca
25 New method IsNewTrack and fix for a problem in Father-Daughter relations
26
27 Revision 1.19  2000/04/09 19:00:26  fca
28 Small corrections left over from removal of AliVMC for G4 compatibility
29
30 Revision 1.18  2000/02/28 21:03:57  fca
31 Some additions to improve the compatibility with G4
32
33 Revision 1.17  2000/02/23 16:25:25  fca
34 AliVMC and AliGeant3 classes introduced
35 ReadEuclid moved from AliRun to AliModule
36
37 Revision 1.16  2000/01/18 16:27:18  morsch
38 Dummy definition of Gftmat, Gbrelm and Gprelm added.
39
40 Revision 1.15  2000/01/17 19:41:17  fca
41 Add SetERAN function
42
43 Revision 1.14  1999/11/03 16:31:36  fca
44 Dummy ProdProcess should return a value
45
46 Revision 1.13  1999/11/03 13:17:08  fca
47 Have ProdProcess return const char*
48
49 Revision 1.12  1999/11/02 17:05:06  fca
50 Update GetSecondary arguments
51
52 Revision 1.11  1999/09/29 09:24:31  fca
53 Introduction of the Copyright and cvs Log
54
55 */
56
57 //////////////////////////////////////////////////////
58 //  C++ dummy interface to Geant3 basic routines    //
59 //////////////////////////////////////////////////////
60
61 #include "TGeant3.h"
62
63 //---------------------------------------------------------
64
65 ClassImp(TGeant3)
66
67 //___________________________________________
68 TGeant3::TGeant3(){}
69
70 //___________________________________________
71 TGeant3::TGeant3(const char *title, Int_t)
72        :AliMC("TGeant3",title){}
73
74 //___________________________________________ 
75 void TGeant3::DefaultRange() {}
76  
77 //___________________________________________
78 void TGeant3::LoadAddress() {}
79
80 //=======================functions from GBASE
81
82 //___________________________________________
83 void    TGeant3::FinishGeometry() {}
84 void    TGeant3::Gfile(const char*, const char*) {}
85 void    TGeant3::GeomIter() {}
86 Int_t   TGeant3::CurrentMaterial(Float_t &, Float_t &, Float_t &, Float_t &, Float_t &) const {return 0;}
87 Int_t   TGeant3::NextVolUp(Text_t*, Int_t&) {return 0;}
88 Int_t   TGeant3::CurrentVolID(Int_t&) const {return 0;}
89 const char*  TGeant3::CurrentVolName() const {return 0;}
90 Float_t TGeant3::Xsec(char*, Float_t, Int_t, Int_t) {return 0;}
91 Int_t   TGeant3::NofVolumes() const {return 0;}
92 Int_t   TGeant3::CurrentVolOffID(Int_t, Int_t&) const {return 0;}
93 const char *TGeant3::CurrentVolOffName(Int_t) const {return 0;}
94 void    TGeant3::TrackPosition(TLorentzVector&) const {}
95 void    TGeant3::TrackMomentum(TLorentzVector&) const {}
96 Int_t   TGeant3::IdFromPDG(Int_t) const {return -1;}
97 Int_t   TGeant3::PDGFromId(Int_t) const {return -1;}
98 void    TGeant3::DefineParticles() {}
99 Int_t   TGeant3::VolId(const Text_t*) const {return 0;}
100 void    TGeant3::SetCut(const char* , Float_t ) {}
101 void    TGeant3::SetProcess(const char* , Int_t ) {}
102 const char*   TGeant3::VolName(Int_t ) const {return 0;}
103 Float_t TGeant3::TrackCharge() const {return 0;}
104 Float_t TGeant3::TrackMass() const {return 0;}
105 Bool_t  TGeant3::IsNewTrack() const {return 0;}
106 Bool_t  TGeant3::IsTrackInside() const {return 0;}
107 Bool_t  TGeant3::IsTrackEntering() const {return 0;}
108 Bool_t  TGeant3::IsTrackExiting() const {return 0;}
109 Bool_t  TGeant3::IsTrackOut() const {return 0;}
110 Bool_t  TGeant3::IsTrackDisappeared() const {return 0;}
111 Bool_t  TGeant3::IsTrackStop() const {return 0;}
112 Int_t   TGeant3::NSecondaries() const {return 0;}
113 const char* TGeant3::ProdProcess() const {return 0;}
114 void    TGeant3::GetSecondary(Int_t, Int_t&, 
115                               TLorentzVector&, TLorentzVector&){}
116 Float_t TGeant3::MaxStep() const {return 0;}
117 void    TGeant3::SetMaxStep(Float_t ) {}
118 Int_t   TGeant3::CurrentEvent() const {return 0;}
119 Int_t   TGeant3::GetMedium() const {return 0;}
120 Float_t TGeant3::Edep() const {return 0;}
121 Float_t TGeant3::Etot() const {return 0;}
122 void    TGeant3::Rndm(Float_t*, const Int_t) const {}
123 Float_t TGeant3::TrackStep() const {return 0;}
124 Float_t TGeant3::TrackLength() const {return 0;}
125 Float_t TGeant3::TrackTime() const {return 0;}
126 Int_t   TGeant3::TrackPid() const {return 0;}
127 Bool_t  TGeant3::IsTrackAlive() const {return 0;}
128 void    TGeant3::StopTrack() {}
129 void    TGeant3::StopEvent() {}
130 void    TGeant3::SetMaxNStep(Int_t) {}
131 Int_t   TGeant3::GetMaxNStep() const {return 0;}
132 void    TGeant3::Material(Int_t&, const char*, Float_t, Float_t, Float_t, Float_t,
133                           Float_t, Float_t*, Int_t){}
134 void    TGeant3::Mixture(Int_t&, const char*, Float_t*, Float_t*, Float_t, Int_t, Float_t*){}
135 void    TGeant3::Medium(Int_t&, const char*, Int_t, Int_t, Int_t, Float_t, Float_t, 
136                         Float_t, Float_t, Float_t, Float_t, Float_t*, Int_t){}
137 void    TGeant3::Matrix(Int_t&, Float_t, Float_t, Float_t, Float_t, Float_t, Float_t){}
138 void    TGeant3::WriteEuclid(const char*, const char*, Int_t, Int_t) {}
139
140
141 void  TGeant3::Gpcxyz() {}
142 void  TGeant3::Ggclos() {}
143 void  TGeant3::Glast() {}
144 void  TGeant3::Gprint(const char*) {}
145 void  TGeant3::Grun() {}
146 void  TGeant3::Gtrig() {}
147 void  TGeant3::Gtrigc() {}
148 void  TGeant3::Gtrigi() {}
149 void  TGeant3::Gwork(Int_t) {}
150 void  TGeant3::Gzinit() {}
151
152
153 //=======================functions from GCONS
154 //___________________________________________
155 void  TGeant3::Gfmate(Int_t, char*, Float_t&, Float_t&, Float_t&, Float_t&,
156                       Float_t&, Float_t*, Int_t&){}
157
158 //___________________________________________
159 void  TGeant3::Gfpart(Int_t, char*, Int_t&, Float_t&, Float_t&, Float_t&){}
160
161 //___________________________________________
162 void  TGeant3::Gftmed(Int_t, char*, Int_t&, Int_t&, Int_t&, Float_t&, Float_t&,
163                     Float_t&, Float_t&, Float_t&, Float_t&, Float_t*, Int_t*){}
164 void  TGeant3::Gftmat(Int_t, Int_t, char*, Int_t, Float_t*, Float_t*, 
165                       Float_t*, Int_t&){}
166 Float_t TGeant3::Gbrelm(Float_t, Float_t, Float_t){return (Float_t) 0;}
167 Float_t TGeant3::Gprelm(Float_t, Float_t, Float_t){return (Float_t) 0;}
168
169
170 //___________________________________________
171 void  TGeant3::Gmate() {}
172 void  TGeant3::Gpart() {}
173 void  TGeant3::Gsdk(Int_t, Float_t*, Int_t*) {}
174 void  TGeant3::Gsmate(Int_t, const char*, Float_t, Float_t, Float_t, Float_t, Float_t) {}
175 void  TGeant3::Gsmixt(Int_t, const char*, Float_t*, Float_t*, Float_t, Int_t, Float_t*) {}
176 void  TGeant3::Gspart(Int_t, const char*, Int_t,   Float_t, Float_t, Float_t) {}
177 void  TGeant3::Gstmed(Int_t, const char*, Int_t, Int_t, 
178                    Int_t, Float_t, Float_t, Float_t, Float_t, Float_t, Float_t) {}
179 void  TGeant3::Gstpar(Int_t, const char*, Float_t) {}
180 void  TGeant3::Gsckov(Int_t, Int_t, Float_t *, Float_t *, Float_t *, Float_t *) {}
181
182
183 //=======================functions from GKINE
184 //___________________________________________
185 void  TGeant3::Gfkine(Int_t, Float_t*, Float_t*, Int_t&, Int_t&) {}
186 void  TGeant3::Gfvert(Int_t, Float_t*, Int_t&, Int_t&, Float_t&) {}
187 Int_t TGeant3::Gskine(Float_t*, Int_t, Int_t, Float_t*, Int_t){return 0;}
188
189 //___________________________________________
190 Int_t TGeant3::Gsvert(Float_t*, Int_t, Int_t, Float_t*, Int_t){return 0;}
191
192 //=======================functions from GPHYS
193 //___________________________________________
194 void  TGeant3::Gphysi() {}
195
196
197 //=======================functions from GTRAK
198 //___________________________________________
199 void  TGeant3::Gdebug() {}
200 void  TGeant3::Gekbin() {}
201 void  TGeant3::Gfinds() {}
202 void  TGeant3::Gsking(Int_t) {}
203 void  TGeant3::Gskpho(Int_t) {}
204 void  TGeant3::Gsstak(Int_t) {}
205 void  TGeant3::Gsxyz() {}
206 void  TGeant3::Gtrack() {}
207 void  TGeant3::Gtreve() {}
208 void  TGeant3::GtreveRoot() {}
209 void  TGeant3::Grndm(Float_t*, const Int_t) const {}
210 void  TGeant3::Grndmq(Int_t&, Int_t&, const Int_t, const Text_t*) {}
211
212 //=======================functions from GDRAW
213 //___________________________________________
214 void  TGeant3::Gdxyz(Int_t ) {}
215 void  TGeant3::Gdcxyz() {}
216
217
218 //=======================functions from GGEOM
219 //___________________________________________
220 void  TGeant3::Gdtom(Float_t*, Float_t*, Int_t) {}
221 void  TGeant3::Glmoth(const char*, Int_t, Int_t&, Int_t*, Int_t*) {}
222 void  TGeant3::Gmedia(Float_t*, Int_t&) {}
223 void  TGeant3::Gmtod(Float_t*, Float_t*, Int_t) {}
224 void  TGeant3::Gsdvn(const char*, const char*, Int_t, Int_t) {}
225 void  TGeant3::Gsdvn2(const char*, const char*, Int_t, Int_t, Float_t, Int_t) {}
226 void  TGeant3::Gsdvs(const char*, const char*, Float_t, Int_t, Int_t) {}
227 void  TGeant3::Gsdvs2(const char*, const char*, Float_t, Int_t, Float_t, Int_t) {}
228 void  TGeant3::Gsdvt(const char*, const char*, Float_t, Int_t, Int_t, Int_t) {}
229 void  TGeant3::Gsdvt2(const char *, const char *, Float_t, Int_t, Float_t, Int_t, Int_t) {}
230 void  TGeant3::Gsord(const char*, Int_t) {}
231 void  TGeant3::Gspos(const char*, Int_t, const char*, Float_t, Float_t, Float_t, Int_t, const char*) {}
232 void  TGeant3::Gsposp(const char*, Int_t, const char*, Float_t, Float_t, Float_t, Int_t, const char*, Float_t*, Int_t) {}
233 void  TGeant3::Gsrotm(Int_t, Float_t, Float_t, Float_t, Float_t, Float_t, Float_t)  {}
234 void  TGeant3::Gprotm(Int_t)  {}
235 Int_t TGeant3::Gsvolu(const char*, const char*, Int_t, Float_t*, Int_t){return 0;}
236 void  TGeant3::Gsatt(const char*, const char*, Int_t) {}
237 void  TGeant3::Gfpara(const char*, Int_t, Int_t, Int_t&, Int_t&, Float_t*, Float_t*) {}
238 void  TGeant3::Gckpar(Int_t, Int_t, Float_t*) {}
239 void  TGeant3::Gckmat(Int_t, char*) {}
240 void  TGeant3::BuildPhysics() {}
241
242 //______________________________________________________________________________
243 void TGeant3::Streamer(TBuffer &R__b)
244 {
245    // Stream an object of class TGeant3.
246
247    if (R__b.IsReading()) {
248       Version_t R__v = R__b.ReadVersion(); if (R__v) { }
249       AliMC::Streamer(R__b);
250       R__b >> fNextVol;
251    } else {
252       R__b.WriteVersion(TGeant3::IsA());
253       AliMC::Streamer(R__b);
254       R__b << fNextVol;
255    }
256 }
257
258 //=======================DRAW functions
259 //____________________________________
260 void  TGeant3::InitHIGZ() {}
261 void  TGeant3::Gdopen(Int_t) {}
262 void  TGeant3::Gdclose() {}
263 void  TGeant3::Gdelete(Int_t) {}
264 void  TGeant3::Gdshow(Int_t) {}
265 void  TGeant3::Gdopt(const char *,const char *) {}
266 void  TGeant3::Gdraw(const char *,Float_t, Float_t, Float_t,Float_t,Float_t,Float_t,Float_t) {}
267 void  TGeant3::Gdrawc(const char *,Int_t, Float_t,Float_t,Float_t,Float_t,Float_t) {}
268 void  TGeant3::Gdrawx(const char *,Float_t, Float_t, Float_t,
269                          Float_t, Float_t,Float_t,Float_t,Float_t,Float_t) {}
270 void  TGeant3::Gdhead(Int_t, const char *, Float_t) {}
271 void  TGeant3::Gdman(Float_t, Float_t, const char *) {}
272 void  TGeant3::Gdspec(const char *) {}
273 void  TGeant3::DrawOneSpec(const char *) {}
274 void  TGeant3::Gdtree(const char *,Int_t,Int_t) {}
275 void  TGeant3::GdtreeParent(const char *,Int_t,Int_t) {}
276
277 //=======================Set functions
278 //____________________________________
279 void TGeant3::SetABAN(Int_t)  {}
280 void TGeant3::SetANNI(Int_t)  {}
281 void TGeant3::SetAUTO(Int_t)  {}
282 void TGeant3::SetBOMB(Float_t)  {}
283 void TGeant3::SetBREM(Int_t)  {}
284 void TGeant3::SetCKOV(Int_t)  {}
285 void TGeant3::SetClipBox(const char *,Float_t,Float_t, Float_t,Float_t,Float_t,Float_t) {}
286 void TGeant3::SetCOMP(Int_t)  {}
287 void TGeant3::SetCUTS(Float_t,Float_t,Float_t,Float_t,
288                       Float_t,Float_t,Float_t,Float_t,
289                       Float_t,Float_t, Float_t)  {}
290 void TGeant3::SetDCAY(Int_t)  {}
291 void TGeant3::SetDEBU(Int_t, Int_t, Int_t)  {}
292 void TGeant3::SetDRAY(Int_t)  {}
293 void TGeant3::SetERAN(Float_t, Float_t, Int_t) {}
294 void TGeant3::SetHADR(Int_t)  {}
295 void TGeant3::SetKINE(Int_t, Float_t, Float_t, Float_t, Float_t,
296                      Float_t, Float_t, Float_t, Float_t, Float_t,
297                      Float_t)  {}
298 void TGeant3::SetLOSS(Int_t)  {}
299 void TGeant3::SetMULS(Int_t)  {}
300 void TGeant3::SetMUNU(Int_t)  {}
301 void TGeant3::SetOPTI(Int_t)  {}
302 void TGeant3::SetPAIR(Int_t)  {}
303 void TGeant3::SetPFIS(Int_t)  {}
304 void TGeant3::SetPHOT(Int_t)  {}
305 void TGeant3::SetRAYL(Int_t)  {}
306 void TGeant3::SetSTRA(Int_t)  {}
307 void TGeant3::SetSWIT(Int_t , Int_t)  {}
308 void TGeant3::SetTRIG(Int_t)  {}
309 void TGeant3::SetUserDecay(Int_t) {}
310 void TGeant3::Vname(const char *, char *) {}
311 void TGeant3::InitLego() {}
312 void TGeant3::Ertrgo() {}
313 void TGeant3::Ertrak(const Float_t *const , const Float_t *const , 
314                      const Float_t *, const Float_t *,
315                      Int_t ,  Option_t *) {}
316
317         
318
319
320 #include "AliCallf77.h"
321  
322
323 extern "C" type_of_call {
324
325   // This is only for ITS
326
327   void type_of_call gsvolu_(){}
328   void type_of_call gspos_(){}
329   void type_of_call gsatt_(){}
330   void type_of_call gsdvn_(){}
331   void type_of_call gsposp_(){}
332   void type_of_call atg_(){}
333   void type_of_call sxsrot_(){}
334
335   // All this for ZDC
336
337   void type_of_call grndm_(){}
338   void type_of_call gphits_(){}
339   void type_of_call gfhits_() {}
340   void type_of_call gsvert_(){}
341   void type_of_call gskine_(){}
342   void type_of_call gfpart_(){}
343   void type_of_call lorenf_(){}
344   void type_of_call gpvert_(){}
345   void type_of_call gpkine_(){}
346   void type_of_call rnorml_(){}
347   void type_of_call gfpath_() {}
348   void type_of_call uctoh_() {}
349   void type_of_call glvolu_() {}
350   void type_of_call gmtod_() {}
351   void type_of_call gfkine_() {}
352   void type_of_call vmod_() {}
353   void type_of_call gsahit_() {}
354   void type_of_call gschit_() {}
355   void type_of_call gdtom_() {}
356   void type_of_call rnpssn_() {}
357   void type_of_call ucopy_() {}
358 }