AliPhysics  608b256 (608b256)
AliDalitzAODESD.h
Go to the documentation of this file.
1 #ifndef ALIDALITZAODESD_H
2 #define ALIDALITZAODESD_H
3 /**************************************************************************
4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * *
6 * Author: Edgar Dominguez Rosas, Pedro Gonzalez Zamora *
7 * Version 1 *
8 * *
9 * Permission to use, copy, modify and distribute this software and its *
10 * documentation strictly for non-commercial purposes is hereby granted *
11 * without fee, provided that the above copyright notice appears in all *
12 * copies and that both the copyright notice and this permission notice *
13 * appear in the supporting documentation. The authors make no claims *
14 * about the suitability of this software for any purpose. It is *
15 * provided "as is" without express or implied warranty. *
16 **************************************************************************/
17 
18 // This class is to support AOD and ESD data
19 
20 #include "AliVTrack.h"
21 #include "AliVVertex.h"
22 #include "AliESDEvent.h"
23 #include "AliAODEvent.h"
24 #include "AliExternalTrackParam.h"
25 #include "AliESDtrack.h"
26 #include "AliAODTrack.h"
27 #include "AliESDInputHandler.h"
28 
29 class AliESDtrack;
30 class AliESDVertex;
31 class AliAODtrack;
32 class AliAODVertex;
33 
34 class AliVEvent;
35 class AliVTrack;
36 class AliESDEvent;
37 class AliESDtrack;
38 class AliAODEvent;
39 class AliAODtrack;
40 
41 
42 class AliDalitzAODESD : public TObject{
43 public:
44 
45  AliDalitzAODESD(AliESDtrack* lESDtrack):
46  TObject()
47  {
48  fIsESD=kTRUE;
49  fESDtrack=lESDtrack;
50  };
51  AliDalitzAODESD(AliAODTrack* lAODtrack):
52  TObject()
53  {
54  fIsESD=kFALSE;
55  fAODtrack=lAODtrack;
56  };
57  virtual ~AliDalitzAODESD() {}
58  //ESD
60  void ComputeImpactParameter(const AliVVertex* vx,Double_t bmag);
61  Double_t GetPtG();
62  Double_t GetPxG();
63  Double_t GetPyG();
64  Double_t GetPzG();
65  Double_t GetPhiG();
66  Int_t GetLabelG();
67  Bool_t GetPxPyPzG(Double_t* p) const;
68  const AliExternalTrackParam* GetParamG();
69  void GetImpactParametersG(Float_t* p,Float_t* cov) const;
71  Double_t GetEtaG();
75  Int_t GetITSclsG();
78  Double_t GetDCAz();
80  return fIsESD;
81  }
82  AliVTrack* GetDalitzVTrack(){
83  if (fIsESD==kTRUE) return dynamic_cast<AliVTrack*>(fESDtrack);
84  else return dynamic_cast<AliVTrack*>(fAODtrack);
85  };
86  AliESDtrack* GetDalitzESDTrack(){
87  return fESDtrack;
88  };
89  AliAODTrack* GetDalitzAODTrack(){
90  return fAODtrack;
91  };
92 
93 private:
94 
95  AliESDtrack* fESDtrack;
96  AliAODTrack* fAODtrack;
98  Double_t b[2];
100  ClassDef( AliDalitzAODESD, 1 );
101  };
102 
103 
104 #endif // ALIDALITZAODESD_H
105 
106 // //
Double_t bCov[3]
double Double_t
Definition: External.C:58
AliESDtrack * fESDtrack
AliAODTrack * GetDalitzAODTrack()
Bool_t HasPointOnITSLayerG(Int_t i)
AliAODTrack * fAODtrack
virtual ~AliDalitzAODESD()
AliDalitzAODESD(AliESDtrack *lESDtrack)
AliESDtrack * GetDalitzESDTrack()
const AliExternalTrackParam * GetParamG()
int Int_t
Definition: External.C:63
AliVTrack * GetDalitzVTrack()
Double_t GetTPCNclsFG()
float Float_t
Definition: External.C:68
Bool_t GetPxPyPzG(Double_t *p) const
void GetImpactParametersG(Float_t *p, Float_t *cov) const
Double_t GetTPCCrossedRowsG()
AliDalitzAODESD(AliAODTrack *lAODtrack)
bool Bool_t
Definition: External.C:53
void ComputeImpactParameter()