From: morsch Date: Tue, 8 Apr 2003 08:14:53 +0000 (+0000) Subject: AddTrackReference moved to AliModule. X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=151f4c41be39d8658b72c1d913f82abb45fbd1ff AddTrackReference moved to AliModule. --- diff --git a/TRD/AliTRD.cxx b/TRD/AliTRD.cxx index fab62976bc7..3640db5f76c 100644 --- a/TRD/AliTRD.cxx +++ b/TRD/AliTRD.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.45 2003/02/11 16:54:07 hristov +Updated AliTrackReference class (S.Radomski) + Revision 1.44 2003/01/28 14:38:18 cblume Add track length to track references @@ -366,23 +369,6 @@ void AliTRD::AddCluster(Float_t *pos, Int_t det, Float_t amp } -//_____________________________________________________________________________ -void AliTRD::AddTrackReference(Int_t label, TVirtualMC *vMC) -{ - // - // Add a trackrefernce to the list - // - - if (!fTrackReferences) { - Error("AddTrackReference","Container fTrackRefernce not active\n"); - return; - } - - Int_t nref = fTrackReferences->GetEntriesFast(); - TClonesArray &lref = *fTrackReferences; - new(lref[nref]) AliTrackReference(label, vMC); -} - //_____________________________________________________________________________ void AliTRD::Hits2Digits() { diff --git a/TRD/AliTRD.h b/TRD/AliTRD.h index 85033454888..775bf044f75 100644 --- a/TRD/AliTRD.h +++ b/TRD/AliTRD.h @@ -38,7 +38,6 @@ class AliTRD : public AliDetector { virtual void AddHit(Int_t track, Int_t det, Float_t *hits, Int_t q, Bool_t inDrift); virtual void AddCluster(Float_t *pos, Int_t det, Float_t amp, Int_t *tracks , Float_t *sig, Int_t iType); - virtual void AddTrackReference(Int_t label, TVirtualMC *vMC); virtual void BuildGeometry(); virtual void Copy(TObject &trd); virtual void CreateGeometry(); diff --git a/TRD/AliTRDv1.cxx b/TRD/AliTRDv1.cxx index f34ed09a772..8e77cc85790 100644 --- a/TRD/AliTRDv1.cxx +++ b/TRD/AliTRDv1.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.39 2003/02/11 16:54:07 hristov +Updated AliTrackReference class (S.Radomski) + Revision 1.38 2003/01/31 11:41:06 cblume Fix bug in StepManager in treating geometry with holes @@ -653,7 +656,7 @@ void AliTRDv1::StepManager() // momentum components of the particle if (gMC->IsTrackEntering() || gMC->IsTrackExiting()) { gMC->TrackMomentum(mom); - AddTrackReference(gAlice->CurrentTrack(),gMC); + AddTrackReference(gAlice->CurrentTrack()); } // Create the hits from TR photons