#include "AliRawReaderRoot.h"
#include <AliMagF.h>
-#include <AliMagFMaps.h>
#include <AliKalmanTrack.h>
#include <AliITSgeom.h>
+#include <AliESDVertex.h>
ClassImp(AliHoughFilter)
AliError("HLT initialization failed!");
// Init magnetic field
- AliMagF* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., AliMagFMaps::k5kG);
+ AliMagF* field = (AliMagF*)TGeoGlobalMagField::Instance();
AliTracker::SetFieldMap(field,kTRUE);
fPtmin = 0.1*AliHLTTransform::GetSolenoidField();
}
//_____________________________________________________________________________
-Bool_t AliHoughFilter::Filter(AliRawEvent* event, AliESD* esd)
+Bool_t AliHoughFilter::Filter(AliRawVEvent* event, AliESDEvent* esd)
{
// Run fast online reconstruction
// based on the HLT tracking algorithms
}
//_____________________________________________________________________________
-void AliHoughFilter::RunITSclusterer(AliRawEvent* event, TTree *treeClusters)
+void AliHoughFilter::RunITSclusterer(AliRawVEvent* event, TTree *treeClusters)
{
// Run ITS Clusterer
// The clusters are stored in a tree
TStopwatch timer;
timer.Start();
- if(!fITSgeom)
- AliError("ITS geometry not created!");
- AliHLTITSclusterer clusterer(fITSgeom);
+ AliHLTITSclusterer clusterer(0);
AliRawReader *itsrawreader=new AliRawReaderRoot(event);
clusterer.Digits2Clusters(itsrawreader,treeClusters);
delete itsrawreader;
//_____________________________________________________________________________
-void AliHoughFilter::RunITSvertexer(AliESD* esd, TTree *treeClusters)
+void AliHoughFilter::RunITSvertexer(AliESDEvent* esd, TTree *treeClusters)
{
// Run SPD vertexerZ
// Store the result in the ESD
}
//_____________________________________________________________________________
-void AliHoughFilter::RunTPCtracking(AliRawEvent* event, AliESD* esd)
+void AliHoughFilter::RunTPCtracking(AliRawVEvent* event, AliESDEvent* esd)
{
// Run hough transform tracking in TPC
// The z of the vertex is taken from the ESD
timer.Start();
const AliESDVertex *vertex = esd->GetVertex();
- Float_t zvertex = vertex->GetZv();
+ Float_t zvertex = vertex->GetZ();
AliHLTHough *hough1 = new AliHLTHough();
}
//_____________________________________________________________________________
-void AliHoughFilter::RunITStracking(AliESD* esd, TTree *treeClusters)
+void AliHoughFilter::RunITStracking(AliESDEvent* esd, TTree *treeClusters)
{
// Run the ITS tracker
// The tracks from the HT TPC tracking are used as seeds