]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FASTSIM/AliFastResponse.cxx
New EMCAL cosmic trigger as defined by Federico A.
[u/mrichter/AliRoot.git] / FASTSIM / AliFastResponse.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 /* $Id$ */
17
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 //
25 #include "AliFastResponse.h"
26 #include "AliFastParticle.h"
27
28 ClassImp(AliFastResponse)
29
30
31 Float_t AliFastResponse::Evaluate(Float_t /*charge*/, Float_t /*pt*/, Float_t /*theta*/, Float_t /*phi*/)
32 {
33 //
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 //    
44 // Basic implementation of this method 
45 //
46     pS     = p;
47     thetaS = theta;
48     phiS   = phi;
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
62 void AliFastResponse::Copy(TObject&) const
63 {
64     //
65     // Copy 
66     //
67     Fatal("Copy","Not implemented!\n");
68 }
69