]>
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 | ||
31 | Float_t AliFastResponse::Evaluate(AliFastParticle* part) | |
32 | { | |
33 | // | |
34 | // Basic implementation of this method | |
35 | // | |
36 | Float_t theta = part->Theta(); | |
37 | Float_t phi = part->Phi(); | |
38 | Float_t pt = part->Pt(); | |
39 | Float_t eff = Evaluate(pt, theta, phi); | |
40 | return eff; | |
41 | } | |
42 | ||
43 | void AliFastResponse::Evaluate(Float_t p, Float_t theta , Float_t phi, | |
44 | Float_t& pS, Float_t& thetaS, Float_t& phiS) | |
45 | { | |
46 | // | |
47 | // Basic implementation of this method | |
48 | // | |
49 | pS = p; | |
50 | thetaS = theta; | |
51 | phiS = phi; | |
52 | } | |
53 | ||
a42548b0 | 54 | void AliFastResponse::Copy(TObject&) const |
55 | { | |
56 | // | |
57 | // Copy | |
58 | // | |
59 | Fatal("Copy","Not implemented!\n"); | |
60 | } | |
61 |