]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG1/AliGenV0Info.h
Bug fix by Alex
[u/mrichter/AliRoot.git] / PWG1 / AliGenV0Info.h
1 #ifndef ALIGENV0INFO_H
2 #define ALIGENV0INFO_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6
7
8 //////////////////////////////////////////////////////////////////////////////
9 //                          Class AliGenV0Info                               //
10 //   collect together MC info for comparison purposes - effieciency studies and so on//                                                                 //
11 //   marian.ivanov@cern.ch                                                  //
12 //////////////////////////////////////////////////////////////////////////////
13
14
15
16 ////////////////////////////////////////////////////////////////////////
17 //
18 // Start of implementation of the class AliTPCdigitRow
19 //
20 ////////////////////////////////////////////////////////////////////////
21
22 #include <TParticle.h>
23 #include "AliMCInfo.h"
24
25 class TFile;
26 class AliRunLoader;
27 class AliStack;
28 class AliTPCParam;
29
30
31
32
33 class AliGenV0Info: public TObject {
34 public:
35   AliGenV0Info();       //
36   void Update(Float_t vertex[3]);       
37   AliMCInfo &  GetPlus()      {return fMCd;}
38   AliMCInfo &  GetMinus()     {return fMCm;}
39   TParticle &  GetMopther()   {return fMotherP;}
40   Double_t    GetMCDist1() const { return fMCDist1;}
41   Double_t    GetMCDist2() const {return fMCDist2;}  
42   const Double_t*  GetMCPdr() const {return fMCPdr;}
43   const Double_t*  GetMCPd()  const {return fMCPd;}
44   const Double_t*  GetMCX()  const {return fMCX;}
45   //  const Double_t    fMCXr;
46   //
47 //   Double_t     fMCPm[3];    
48 //   Double_t     fMCAngle[3]; 
49 //   Double_t     fMCRr;       
50 //   Double_t     fMCR;       
51 //   Int_t        fPdg[2];   
52 //   Int_t        fLab[2];   
53 //   //
54 //   Double_t       fInvMass;  
55 //   Float_t        fPointAngleFi;
56 //   Float_t        fPointAngleTh;
57 //   Float_t        fPointAngle;  
58
59   void SetInfoP(AliMCInfo &plus) {fMCd=plus;}
60   void SetInfoM(AliMCInfo &minus){fMCm=minus;}
61   void SetMother(TParticle&mother){fMotherP=mother;}
62 private:
63   AliMCInfo   fMCd;       //info about daughter particle - second particle for V0
64   AliMCInfo   fMCm;       //info about mother particle   - first particle for V0
65   TParticle   fMotherP;   //particle info about mother particle
66   Double_t    fMCDist1;    //info about closest distance according closest MC - linear DCA
67   Double_t    fMCDist2;    //info about closest distance parabolic DCA
68   //
69   Double_t    fMCPdr[3];    //momentum at vertex daughter  - according approx at DCA
70   Double_t    fMCPd[4];     //exact momentum from MC info
71   Double_t    fMCX[3];      //exact position of the vertex
72   Double_t    fMCXr[3];     //rec. position according helix
73   //
74   Double_t     fMCPm[3];    //momentum at the vertex mother
75   Double_t     fMCAngle[3]; //three angels
76   Double_t     fMCRr;       // rec position of the vertex 
77   Double_t     fMCR;        //exact r position of the vertex
78   Int_t        fPdg[2];   //pdg code of mother and daugter particles
79   Int_t        fLab[2];   //MC label of the partecle  
80   //
81   Double_t       fInvMass;  //reconstructed invariant mass -
82   Float_t        fPointAngleFi; //point angle fi
83   Float_t        fPointAngleTh; //point angle theta
84   Float_t        fPointAngle;   //point angle full
85   //
86   ClassDef(AliGenV0Info,1)  // container for  
87 };
88
89
90
91 #endif