]>
Commit | Line | Data |
---|---|---|
d88f97cc | 1 | #ifndef ALISIGNAL_H |
2 | #define ALISIGNAL_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
d88f97cc | 8 | /////////////////////////////////////////////////////////////////////////// |
9 | // Class AliSignal | |
10 | // Handling of ALICE (extrapolated) signals. | |
11 | // | |
12 | // Note : | |
13 | // ------ | |
14 | // Signal positions (r) and reference frames (f) are specified via | |
15 | // SetPosition(r,f) under the following conventions : | |
16 | // | |
17 | // f="car" ==> r is Cartesian (x,y,z) | |
18 | // f="sph" ==> r is Spherical (r,theta,phi) | |
19 | // f="cyl" ==> r is Cylindrical (rho,phi,z) | |
20 | // | |
21 | // All angles are in radians. | |
22 | // | |
23 | // Example : | |
24 | // --------- | |
25 | // | |
26 | // AliSignal s; | |
27 | // Float_t pos[3]={-1,25,7}; | |
28 | // Float_t signal=120.8; | |
29 | // s.SetPosition(pos,"car"); | |
30 | // s.SetSignal(signal); | |
31 | // Float_t loc[3]; | |
32 | // s.GetPosition(loc,"sph"); | |
33 | // Float_t adc=s.GetSignal(); | |
34 | // | |
35 | //--- NvE 23-jan-1999 UU-SAP Utrecht | |
36 | /////////////////////////////////////////////////////////////////////////// | |
37 | ||
38 | #include "AliPosition.h" | |
39 | ||
40 | class AliSignal : public TObject,public AliPosition | |
41 | { | |
42 | public: | |
43 | AliSignal(); // Default constructor | |
44 | ~AliSignal(); // Destructor | |
45 | virtual void SetSignal(Float_t sig); // Store signal value | |
46 | virtual Float_t GetSignal(); // Provide signal value | |
47 | virtual void Reset(); // Reset all values to 0 | |
48 | ||
49 | protected: | |
50 | Float_t fSignal; // Signal value | |
51 | ||
52 | ClassDef(AliSignal,1) // Class definition to enable ROOT I/O | |
53 | }; | |
54 | #endif |