]>
Commit | Line | Data |
---|---|---|
7148817a | 1 | // Author: Dariusz Miskowiec <mailto:d.miskowiec@gsi.de> 2008 |
2 | ||
3 | #ifndef ALIDEVENTALICEESD_H | |
4 | #define ALIDEVENTALICEESD_H | |
5 | ||
6 | #include "TVector2.h" | |
7 | #include "AliDEvent.h" | |
8 | #include "AliESDEvent.h" | |
9 | #include "AliESDVertex.h" | |
10 | ||
11 | //============================================================================= | |
12 | class AliDEventAliceESD : public AliDEvent, public AliESDEvent { | |
13 | ||
14 | public: | |
15 | AliDEventAliceESD(); | |
16 | virtual ~AliDEventAliceESD(); | |
17 | Double_t Etamin() const {return -0.75;} | |
18 | Double_t Etamax() const {return 0.75;} | |
19 | void AttachTree(TTree *tr) {ReadFromTree(tr);} | |
20 | Bool_t Good() const; | |
21 | Double_t Centrality() {return 0.9999*exp(-NParticles()/20.0);} // OK for pp | |
22 | void RP(Double_t &qx, Double_t &qy) const {AliDEvent::RP(qx,qy,2);} | |
23 | Double_t RPphi() const {Double_t qx,qy; RP(qx,qy); return TMath::ATan2(qy,qx);} | |
24 | Double_t Zver() const {return AliESDEvent::GetPrimaryVertex()->GetZv()/10.0;} | |
25 | Int_t NParticles() const {return AliESDEvent::GetNumberOfTracks();} | |
26 | ||
27 | Bool_t ParticleGood(Int_t i, Int_t pidi=0) const; | |
28 | Double_t ParticleP(Int_t i) const {return AliESDEvent::GetTrack(i)->GetTPCInnerParam()->P();} | |
29 | Double_t ParticleTheta(Int_t i) const {return AliESDEvent::GetTrack(i)->GetTPCInnerParam()->Theta();} | |
30 | Double_t ParticlePhi(Int_t i) const {return TVector2::Phi_mpi_pi(AliESDEvent::GetTrack(i)->GetTPCInnerParam()->Phi());} | |
31 | Double_t ParticleDedx(Int_t i) const {return AliESDEvent::GetTrack(i)->GetTPCsignal()/47.0;} | |
32 | Bool_t PairGood(Double_t p0, Double_t the0, Double_t phi0, | |
33 | Double_t p1, Double_t the1, Double_t phi1) const; | |
34 | // alternative: GetTPCInnerParam, GetConstrainedParam | |
35 | ClassDef(AliDEventAliceESD,0) | |
36 | }; | |
37 | #endif | |
38 | //============================================================================= |