- run matching between TRD GTU tracks and global tracks during reconstruction
authorjklein <jklein@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 May 2013 12:11:27 +0000 (12:11 +0000)
committerjklein <jklein@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 May 2013 12:11:27 +0000 (12:11 +0000)
TRD/AliTRDReconstructor.cxx
TRD/AliTRDReconstructor.h

index 9dd4b6f..36e4c8c 100644 (file)
@@ -45,6 +45,7 @@
 #include "AliESDTrdTrigger.h"
 #include "AliTRDtrackletWord.h"
 #include "AliTRDtrackletMCM.h"
+#include "AliTRDonlineTrackMatching.h"
 
 #define SETFLG(n,f) ((n) |= f)
 #define CLRFLG(n,f) ((n) &= ~f)
@@ -52,6 +53,7 @@
 ClassImp(AliTRDReconstructor)
 
 AliESDTrdTrigger AliTRDReconstructor::fgTriggerFlags;
+AliTRDonlineTrackMatching AliTRDReconstructor::fgOnlineTrackMatcher;
 TClonesArray *AliTRDReconstructor::fgClusters = NULL;
 TClonesArray *AliTRDReconstructor::fgTracklets = NULL;
 TClonesArray *AliTRDReconstructor::fgTracks = NULL;
@@ -312,6 +314,11 @@ void AliTRDReconstructor::FillESD(TTree* /*digitsTree*/
     }
   }
   esd->SetTrdTrigger(&fgTriggerFlags);
+
+  // ----- matching GTU tracks to global tracks -----
+  AliDebug(1, Form("TRD track matching with %i ESD, %i TRD tracks",
+                  esd->GetNumberOfTracks(), esd->GetNumberOfTrdTracks()));
+  fgOnlineTrackMatcher.ProcessEvent(esd);
 }
 
 //_____________________________________________________________________________
index 4504405..afb02c1 100644 (file)
@@ -23,6 +23,7 @@ class TClonesArray;
 class TTreeSRedirector;
 class AliRawReader;
 class AliTRDclusterizer;
+class AliTRDonlineTrackMatching;
 class AliTRDReconstructor: public AliReconstructor 
 {
 public:
@@ -107,6 +108,7 @@ private:
   static TClonesArray *fgTracks;      //  list of GTU tracks for local reconstructor
   static Int_t         fgNTimeBins;   //  number of time bins as given by the clusterizer
   AliTRDclusterizer   *fClusterizer;  //! instance of TRD clusterizer
+  static AliTRDonlineTrackMatching fgOnlineTrackMatcher; // track matcher between on-line and off-line track
   static AliESDTrdTrigger fgTriggerFlags; //  L1 trigger flags
 
   ClassDef(AliTRDReconstructor, 5)    //  Class for the TRD reconstruction