From: cvetan Date: Wed, 22 Jul 2009 11:11:44 +0000 (+0000) Subject: Follow up of r33878. Propagation of event-info object to the trackers. X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=1f26f3e7e7143ad9601ceae959bd7c922cd50606 Follow up of r33878. Propagation of event-info object to the trackers. --- diff --git a/STEER/AliReconstruction.cxx b/STEER/AliReconstruction.cxx index 176980e2539..d9628df3251 100644 --- a/STEER/AliReconstruction.cxx +++ b/STEER/AliReconstruction.cxx @@ -1918,6 +1918,7 @@ Bool_t AliReconstruction::ProcessEvent(Int_t iEvent) fReconstructor[iDet]->SetRecoParam(NULL); fReconstructor[iDet]->SetEventInfo(NULL); } + if (fTracker[iDet]) fTracker[iDet]->SetEventInfo(NULL); } if (fRunQA || fRunGlobalQA) @@ -2347,7 +2348,16 @@ Bool_t AliReconstruction::RunTracking(AliESDEvent*& esd) AliInfo("running tracking"); - + // Set the event info which is used + // by the trackers in order to obtain + // information about read-out detectors, + // trigger etc. + AliDebug(1, "Setting event info"); + for (Int_t iDet = 0; iDet < kNDetectors; iDet++) { + if (!fTracker[iDet]) continue; + fTracker[iDet]->SetEventInfo(&fEventInfo); + } + //Fill the ESD with the T0 info (will be used by the TOF) if (fReconstructor[11] && fLoader[11]) { fLoader[11]->LoadRecPoints("READ"); diff --git a/STEER/AliTracker.cxx b/STEER/AliTracker.cxx index 37b65e6d749..269f15ff08f 100644 --- a/STEER/AliTracker.cxx +++ b/STEER/AliTracker.cxx @@ -48,7 +48,8 @@ AliTracker::AliTracker(): fZ(0), fSigmaX(0.005), fSigmaY(0.005), - fSigmaZ(0.010) + fSigmaZ(0.010), + fEventInfo(NULL) { //-------------------------------------------------------------------- // The default constructor. @@ -65,7 +66,8 @@ AliTracker::AliTracker(const AliTracker &atr): fZ(atr.fZ), fSigmaX(atr.fSigmaX), fSigmaY(atr.fSigmaY), - fSigmaZ(atr.fSigmaZ) + fSigmaZ(atr.fSigmaZ), + fEventInfo(atr.fEventInfo) { //-------------------------------------------------------------------- // The default constructor. diff --git a/STEER/AliTracker.h b/STEER/AliTracker.h index a9127285f99..ca5c8d5ac8b 100644 --- a/STEER/AliTracker.h +++ b/STEER/AliTracker.h @@ -25,6 +25,7 @@ class AliESDtrack; class AliExternalTrackParam; class AliTrackPoint; class AliKalmanTrack; +class AliEventInfo; class AliTracker : public TObject { public: AliTracker(); @@ -79,6 +80,9 @@ public: static void SetResidualsArray(TObjArray **arr) { fResiduals=arr; } static TObjArray ** GetResidualsArray() { return fResiduals; } + void SetEventInfo(AliEventInfo *evInfo) {fEventInfo = evInfo;} + const AliEventInfo* GetEventInfo() const {return fEventInfo;} + protected: AliTracker(const AliTracker &atr); private: @@ -95,8 +99,9 @@ private: Double_t fSigmaZ; // error of the primary vertex position in Z static AliRecoParam::EventSpecie_t fEventSpecie ; //! event specie, see AliRecoParam + AliEventInfo* fEventInfo; //! pointer to the event info object - ClassDef(AliTracker,4) //abstract tracker + ClassDef(AliTracker,5) //abstract tracker }; //__________________________________________________________________________