-#ifndef AliAODv0_H
-#define AliAODv0_H
+#ifndef ALIAODV0_H
+#define ALIAODV0_H
/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
AliAODv0& operator=(const AliAODv0& rAliAODv0);
void Fill(AliAODVertex *rAODVertex, Double_t rDcaV0Daughters, Double_t rDcaV0ToPrimVertex,
- const Double_t *rMomPos, const Double_t *rMomNeg, Double_t *rDcaDaughterToPrimVertex);
+ const Double_t *rMomPos, const Double_t *rMomNeg, const Double_t *rDcaDaughterToPrimVertex);
void ResetV0();
void Print(Option_t* option = "") const;
Short_t GetPosID() const;
Short_t GetNegID() const;
- Int_t GetLabel() const {return -1;} // Dummy
+ Int_t GetLabel() const {return -1;} // Dummy
+ Int_t PdgCode() const {return 0;} // Dummy
+
+ virtual Bool_t GetPxPyPz(Double_t */*p*/) const { return kFALSE; }
+ virtual void SetID(Short_t /*id*/) {;}
+
protected:
Double32_t fDcaV0ToPrimVertex; // dca of V0 to primary vertex
Bool_t fOnFlyStatus; // if kTRUE, then this V0 is recontructed
}
inline Double_t AliAODv0::OpenAngleV0() const {
- Double_t lPtot1xPtot2 = PxProng(0)*PxProng(1)+PyProng(0)*PyProng(1)+PzProng(0)*PzProng(1);
- Double_t lPtot1Ptot2_2 = Ptot2Pos()*Ptot2Neg();
- return ::acos(lPtot1xPtot2/::sqrt(lPtot1Ptot2_2) );
+ Double_t lScalPtot1Ptot2 = PxProng(0)*PxProng(1)+PyProng(0)*PyProng(1)+PzProng(0)*PzProng(1);
+ Double_t lPtot1xPtot2 = Ptot2Pos()*Ptot2Neg();
+ return ::acos(lScalPtot1Ptot2/::sqrt(lPtot1xPtot2) );
}
inline Double_t AliAODv0::MomPosX() const {return fPx[0];}