From 5303c167a79403b82d96de858b6ffcecbdcdfc79 Mon Sep 17 00:00:00 2001 From: morsch Date: Mon, 20 Oct 2008 16:21:59 +0000 Subject: [PATCH] Changes needed for introduction of AliVVertex (A. Dainese) --- STEER/AliESDEvent.h | 2 ++ STEER/AliVEvent.h | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/STEER/AliESDEvent.h b/STEER/AliESDEvent.h index cc99b6759e7..04d0879c4a2 100644 --- a/STEER/AliESDEvent.h +++ b/STEER/AliESDEvent.h @@ -34,6 +34,8 @@ class TList; // AliESDtrack has to be included so that the compiler // knows its inheritance tree (= that it is a AliVParticle). #include "AliESDtrack.h" +// same for AliESDVertex (which is a AliVVertex) +#include "AliESDVertex.h" class AliESDfriend; class AliESDVZERO; diff --git a/STEER/AliVEvent.h b/STEER/AliVEvent.h index 4536c377464..dd09df27fa7 100644 --- a/STEER/AliVEvent.h +++ b/STEER/AliVEvent.h @@ -17,6 +17,7 @@ #include #include "AliVHeader.h" #include "AliVParticle.h" +#include "AliVVertex.h" class AliVEvent : public TObject { @@ -57,6 +58,11 @@ public: virtual UInt_t GetPeriodNumber() const = 0; virtual Double_t GetMagneticField() const = 0; + virtual Double_t GetDiamondX() const {return -999.;} + virtual Double_t GetDiamondY() const {return -999.;} + virtual void GetDiamondCovXY(Float_t cov[3]) const + {cov[0]=-999.; return;} + // Delegated methods for fHeader virtual void SetOrbitNumber(UInt_t n) = 0; virtual void SetBunchCrossNumber(UShort_t n) = 0; @@ -82,6 +88,9 @@ public: virtual Int_t GetNumberOfTracks() const = 0; virtual Int_t GetNumberOfV0s() const = 0; + // Primary vertex + virtual const AliVVertex *GetPrimaryVertex() const {return 0x0;} + //---------- end of new stuff @@ -91,7 +100,6 @@ public: *fPrimaryVertex = *vertex; fPrimaryVertex->SetName("PrimaryVertex");// error prone use class wide names? } - const AliESDVertex *GetPrimaryVertex() const {return fPrimaryVertex;} void SetMultiplicity(const AliMultiplicity *mul) { *fSPDMult = *mul; -- 2.39.3