]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnValue.h
fix for bug #70582 (change from L. Molnar)
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnValue.h
CommitLineData
b9bbd271 1//
2// Class AliRsnValue
3//
4// Definition of a single value which can be computed
5// from any of the defined input objects implemented
6// in the resonance package.
7//
8
9#ifndef ALIRSNVALUE_H
10#define ALIRSNVALUE_H
11
12class AliRsnPairDef;
13
14class AliRsnValue : public TObject
15{
16 public:
17
18 enum EAxisType
19 {
20 kTrackPt,
21 kTrackEta,
22 kTrack1P,
23 kTrack2P,
24 kTrack1Pt,
25 kTrack2Pt,
26 kPairInvMass,
27 kPairInvMassMC,
28 kPairInvMassRes,
29 kPairPt,
30 kPairEta,
31 kPairMt,
32 kPairY,
33 kEventMult,
34 kAxisTypes
35 };
36
37 enum EAxisObject
38 {
39 kParticle,
40 kPair,
41 kEvent,
42 kNone
43 };
44
45 AliRsnValue(EAxisType type = kAxisTypes);
46 virtual ~AliRsnValue() { }
47
48 virtual const char* GetName() const;
49 EAxisObject GetAxisObject() const;
50 void SetType(EAxisType type) {fType = type;}
51 EAxisType GetAxisType() {return fType;}
52 Double_t Eval(TObject * const obj, const AliRsnPairDef *pairDef = 0x0) const;
53
54 private:
55
56 EAxisType fType; // value type
57
58 // ROOT dictionary
59 ClassDef(AliRsnValue, 1)
60};
61
62#endif