]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/RESONANCES/AliRsnValuePair.h
Updated macro for K* pA analysis
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnValuePair.h
1 #ifndef ALIRSNVALUEPAIR_H
2 #define ALIRSNVALUEPAIR_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 AliRsnValuePair : public AliRsnValue {
16 public:
17
18    enum EType {
19       kPt,            // pair transverse momentum
20       kPz,            // pair longitudinal momentum
21       kInvMass,       // pair invariant mass (with reconstructed momenta)
22       kInvMassRes,    // pair invariant mass resolution
23       kEta,           // pair pseudo-rapidity
24       kMt,            // pair transverse mass (need a reference mass)
25       kY,             // pair rapidity (need a reference mass)
26       kPtRatio,       // ratio |pt1 - pt2|/(pt1 + pt2) of daughter transverse momenta
27       kDipAngle,      // inverse cosine of the angle between daughter vector momenta
28       kCosThetaStar,  // polarization angle
29       kAngleLeading,  // angle to leading particle
30       kTypes
31    };
32
33    AliRsnValuePair(const char *name = "valPair", EType type = kTypes);
34    AliRsnValuePair(const AliRsnValuePair &copy);
35    AliRsnValuePair &operator=(const AliRsnValuePair &copy);
36    virtual ~AliRsnValuePair() { }
37
38    void             SetType(EType type)  {fType = type;}
39    EType            GetType()     const  {return fType;}
40    const char      *GetTypeName() const;
41
42    virtual Bool_t   Eval(TObject *object);
43
44 protected:
45
46    EType           fType;                //  type from enumeration
47
48    ClassDef(AliRsnValuePair, 1)  // AliRsnValuePair class
49 };
50
51 #endif