]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/RESONANCES/AliRsnValueEvent.h
Modified macros for TOF analysis of K* in pA for possibility to use daughter's pt...
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnValueEvent.h
1 #ifndef ALIRSNVALUEEVENT_H
2 #define ALIRSNVALUEEVENT_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 pair.
10 //
11 ////////////////////////////////////////////////////////////////////////////////
12
13 #include "AliRsnValue.h"
14
15 class AliRsnValueEvent : public AliRsnValue {
16 public:
17
18    enum EType {
19       kLeadingPt,       // transverse momentum of the event leading particle
20       kMult,            // multiplicity computed as the number of tracks
21       kMultMC,          // multiplicity from MC
22       kMultESDCuts,     // multiplicity of good quality tracks
23       kMultSPD,         // multiplicity from SPD
24       kVz,              // Z position of event primary vertex
25       kCentralityV0,    // event centrality (V0 method)
26       kCentralityTrack, // event centrality (tracks method)
27       kCentralityCL1,   // event centrality (CL1 method)
28       kTypes
29    };
30
31    AliRsnValueEvent(const char *name = "valEvent", EType type = kTypes);
32    AliRsnValueEvent(const AliRsnValueEvent &copy);
33    AliRsnValueEvent &operator=(const AliRsnValueEvent &copy);
34    virtual ~AliRsnValueEvent() { }
35
36    void             SetType(EType type)  {fType = type;}
37    EType            GetType()     const  {return fType;}
38    const char      *GetTypeName() const;
39
40    virtual Bool_t   Eval(TObject *object);
41    void             ApplyCentralityPatchAOD049(TObject *object);
42
43 protected:
44
45    EType           fType;         //  type from enumeration
46
47    ClassDef(AliRsnValueEvent, 1)  // AliRsnValueEvent class
48 };
49
50 #endif