]>
Commit | Line | Data |
---|---|---|
8bb5c9a6 | 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 | ||
803d1ab0 | 16 | /* $Id$ */ |
8bb5c9a6 | 17 | |
a42548b0 | 18 | // Basic implementation of a fast detector response. |
19 | // The 3-vector of the particle can be passes as | |
20 | // a TParticle or as | |
21 | // transverse momentum pt, polar angle theta and azimuthal angle phi | |
22 | // Author: Andreas Morsch | |
23 | // andreas.morsch@cern.ch | |
24 | // | |
8bb5c9a6 | 25 | #include "AliFastResponse.h" |
26 | #include "AliFastParticle.h" | |
27 | ||
28 | ClassImp(AliFastResponse) | |
29 | ||
30 | ||
20432218 | 31 | Float_t AliFastResponse::Evaluate(Float_t /*charge*/, Float_t /*pt*/, Float_t /*theta*/, Float_t /*phi*/) |
8bb5c9a6 | 32 | { |
33 | // | |
20432218 | 34 | // Dummy implementation of this method |
35 | // | |
36 | return 0.; | |
37 | } | |
38 | ||
39 | ||
40 | void AliFastResponse::Evaluate(Float_t /*charge*/, Float_t p, Float_t theta , Float_t phi, | |
41 | Float_t& pS, Float_t& thetaS, Float_t& phiS) | |
42 | { | |
43 | // | |
8bb5c9a6 | 44 | // Basic implementation of this method |
45 | // | |
20432218 | 46 | pS = p; |
47 | thetaS = theta; | |
48 | phiS = phi; | |
8bb5c9a6 | 49 | } |
50 | ||
51 | void AliFastResponse::Evaluate(Float_t p, Float_t theta , Float_t phi, | |
52 | Float_t& pS, Float_t& thetaS, Float_t& phiS) | |
53 | { | |
54 | // | |
55 | // Basic implementation of this method | |
56 | // | |
57 | pS = p; | |
58 | thetaS = theta; | |
59 | phiS = phi; | |
60 | } | |
61 | ||
a42548b0 | 62 | void AliFastResponse::Copy(TObject&) const |
63 | { | |
64 | // | |
65 | // Copy | |
66 | // | |
67 | Fatal("Copy","Not implemented!\n"); | |
68 | } | |
69 |