]>
Commit | Line | Data |
---|---|---|
2895972e | 1 | #ifndef ALIRSNVALUEDAUGHTER_H |
2 | #define ALIRSNVALUEDAUGHTER_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //////////////////////////////////////////////////////////////////////////////// | |
8 | // | |
9 | // Values which depend on 4-momentum of the daughters. | |
10 | // | |
11 | //////////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | #include "AliRsnValue.h" | |
14 | ||
15 | class AliRsnValueDaughter : public AliRsnValue { | |
16 | public: | |
17 | ||
18 | enum EType { | |
19 | kP, // total momentum | |
20 | kPt, // transverse momentum | |
21 | kPtpc, // total momentum in the TPC inner wall | |
22 | kEta, // pseudo-rapidity | |
23 | kITSsignal, // ITS signal | |
24 | kTPCsignal, // TPC signal | |
25 | kTOFsignal, // TOF signal | |
b63357a0 | 26 | kTOFnsigmaPi,// TOF number of sigmas pion |
27 | kTOFnsigmaK, // TOF number of sigmas kaon | |
28 | kTOFnsigmaP, // TOF number of sigmas proton | |
2895972e | 29 | kTypes |
30 | }; | |
31 | ||
32 | AliRsnValueDaughter(const char *name = "valDaughter", EType type = kTypes); | |
33 | AliRsnValueDaughter(const AliRsnValueDaughter& copy); | |
34 | AliRsnValueDaughter& operator=(const AliRsnValueDaughter& copy); | |
35 | virtual ~AliRsnValueDaughter() { } | |
36 | ||
37 | void SetType(EType type) {fType = type;} | |
38 | EType GetType() const {return fType;} | |
39 | const char* GetTypeName() const; | |
40 | ||
41 | virtual Bool_t Eval(TObject *object); | |
42 | ||
43 | protected: | |
44 | ||
45 | EType fType; // type from enumeration | |
46 | ||
47 | ClassDef(AliRsnValueDaughter, 1) // AliRsnValueDaughter class | |
48 | }; | |
49 | ||
50 | #endif |