1 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
4 // Short comment describing what this class does needed!
6 // $Id: AliJPiZero.h,v 1.4 2008/05/08 15:19:52 djkim Exp $
8 ////////////////////////////////////////////////////
12 \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
14 \version $Revision: 1.4 $
15 \date $Date: 2008/05/08 15:19:52 $
17 ////////////////////////////////////////////////////
27 #include <TLorentzVector.h>
31 // #include "AliJBaseTrack.h"
32 // #include "AliJPhoton.h"
37 class AliJPiZero : public AliJBaseTrack {
41 virtual ~AliJPiZero(){;} //destructor
42 AliJPiZero(const AliJPiZero& a);//{PhotSum.SetPxPyPzE(0,0,0,0);} //constructor
43 AliJPiZero& operator=(const AliJPiZero& pizero);
45 bool SetMass(AliJPhoton* g1, AliJPhoton* g2);
47 float GetInvMass() const {return M();}
48 float GetAsymm() const {return fAsymm;}
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; }
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() ); }
65 TVector3 GetP() const {return Vect();}
66 TLorentzVector GetSum() const {return *(TLorentzVector*)this;}
68 double DeltaConversion();
70 // double operator- (const AliJPiZero &pi0);
71 // AliJPiZero& operator= (const AliJPiZero& piz);
74 float fAsymm; //assymtery and inv. mass
75 int fMassBin; //mass bin
77 AliJPhoton *fPhoton[2]; //!
78 Double_t fConvPlaneDelta; //! plane delta form conversion plane
79 Int_t fPtBin; //! pt bin
81 ClassDef(AliJPiZero,1)