]>
Commit | Line | Data |
---|---|---|
9dc4f671 | 1 | /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
4 | // Short comment describing what this class does needed! | |
5 | ||
6 | // $Id: AliJPiZero.h,v 1.4 2008/05/08 15:19:52 djkim Exp $ | |
7 | ||
8 | //////////////////////////////////////////////////// | |
9 | /*! | |
10 | \file AliJPiZero.h | |
11 | \brief | |
12 | \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla) | |
13 | \email: djkim@jyu.fi | |
14 | \version $Revision: 1.4 $ | |
15 | \date $Date: 2008/05/08 15:19:52 $ | |
16 | */ | |
17 | //////////////////////////////////////////////////// | |
18 | ||
19 | #ifndef ALIJPIZERO_H | |
20 | #define ALIJPIZERO_H | |
21 | ||
22 | #ifndef ROOT_TObject | |
23 | #include <TObject.h> | |
24 | #endif | |
25 | ||
26 | #include <TVector3.h> | |
27 | #include <TLorentzVector.h> | |
28 | ||
29 | class AliJBaseTrack; | |
30 | class AliJPhoton; | |
31 | // #include "AliJBaseTrack.h" | |
32 | // #include "AliJPhoton.h" | |
33 | ||
34 | //class AliJPhoton; | |
35 | //class TObject; | |
36 | ||
37 | class AliJPiZero : public AliJBaseTrack { | |
38 | ||
39 | public: | |
40 | AliJPiZero(); | |
41 | virtual ~AliJPiZero(){;} //destructor | |
42 | AliJPiZero(const AliJPiZero& a);//{PhotSum.SetPxPyPzE(0,0,0,0);} //constructor | |
43 | AliJPiZero& operator=(const AliJPiZero& pizero); | |
44 | ||
45 | bool SetMass(AliJPhoton* g1, AliJPhoton* g2); | |
46 | ||
47 | float GetInvMass() const {return M();} | |
48 | float GetAsymm() const {return fAsymm;} | |
49 | ||
50 | int GetMassBin() const {return fMassBin;} | |
51 | void SetMassBin(int im) {fMassBin=im;} | |
52 | void ResetToZero() {SetPxPyPzE(0, 0, 0, 0);fAsymm=0; fMassBin=-1; fIsGood=kFALSE; fConvPlaneDelta=-999; fPtBin=-1;} | |
53 | AliJPhoton *GetPhoton( Int_t i ) const { return fPhoton[i]; } | |
54 | void SetGood( Bool_t b ) { fIsGood = b;} | |
55 | Bool_t GetGood() const { return fIsGood; } | |
56 | void SetConvPlaneDelta( Double_t d ) {fConvPlaneDelta = d; } | |
57 | Double_t GetConvPlaneDelta() const { return fConvPlaneDelta; } | |
58 | void SetPtBin( Int_t b ) { fPtBin = b; } | |
59 | Int_t GetPtBin() const { return fPtBin; } | |
60 | ||
61 | Double_t Theta() { return fPhoton[0]->Angle( fPhoton[1]->Vect() ); } | |
62 | Double_t DPhi() { return TMath::Abs( fPhoton[0]->Phi() - fPhoton[1]->Phi() ); } | |
63 | Double_t DZ() { return TMath::Abs( fPhoton[0]->GetZ() - fPhoton[1]->GetZ() ); } | |
64 | ||
65 | TVector3 GetP() const {return Vect();} | |
66 | TLorentzVector GetSum() const {return *(TLorentzVector*)this;} | |
67 | ||
68 | double DeltaConversion(); | |
69 | ||
70 | // double operator- (const AliJPiZero &pi0); | |
71 | // AliJPiZero& operator= (const AliJPiZero& piz); | |
72 | ||
73 | protected: | |
74 | float fAsymm; //assymtery and inv. mass | |
75 | int fMassBin; //mass bin | |
76 | Bool_t fIsGood; //! | |
77 | AliJPhoton *fPhoton[2]; //! | |
78 | Double_t fConvPlaneDelta; //! plane delta form conversion plane | |
79 | Int_t fPtBin; //! pt bin | |
80 | ||
81 | ClassDef(AliJPiZero,1) | |
82 | }; | |
83 | ||
84 | #endif | |
85 |