-/****************************************************************************
- * This macro is supposed to do reconstruction in the ITS via Kalman *
- * tracker V2. The ITStracker is feeded with parametrized TPC tracks *
- * *
- * It does the following steps: *
- * 1) TPC tracking parameterization *
- * 2) ITS cluster finding V2 (via fast points !) *
- * 3) ITS track finding V2 *
- * 4) Create a reference file with simulation info (p,PDG...) *
- * *
- * (Origin: A.Dainese, Padova, andrea.dainese@pd,infn.it *
- * from AliBarrelReconstruction.C I.Belikov, CERN, Jouri.Belikov@cern.ch) *
- ****************************************************************************/
-
-#ifndef __CINT__
-#include <iostream.h>
-#include <TFile.h>
-#include <TStopwatch.h>
-#include <TObject.h>
-#include "alles.h"
-#include "AliRun.h"
-#include "AliHeader.h"
-#include "AliGenEventHeader.h"
-#include "AliMagF.h"
-#include "AliModule.h"
-#include "AliArrayI.h"
-#include "AliDigits.h"
-#include "AliITS.h"
-#include "AliTPC.h"
-#include "AliITSgeom.h"
-#include "AliITSRecPoint.h"
-#include "AliITSclusterV2.h"
-#include "AliITSsimulationFastPoints.h"
-#include "AliITStrackerV2.h"
-#include "AliKalmanTrack.h"
-#include "AliTPCtrackerParam.h"
-#endif
-
-typedef struct {
- Int_t lab;
- Int_t pdg;
- Int_t mumlab;
- Int_t mumpdg;
- Float_t Vx,Vy,Vz;
- Float_t Px,Py,Pz;
-} RECTRACK;
-
-
-Int_t TPCParamTracks(const Char_t *galice,const Char_t *outname,const Int_t coll,const Double_t Bfield,Int_t n);
-Int_t ITSFindClusters(const Char_t *inname,const Char_t *outname,Int_t n);
-Int_t ITSFindTracks(const Char_t *galice,const Char_t *inname,const Char_t *inname2,const Char_t *outname,Int_t n);
-Int_t ITSMakeRefFile(const Char_t *galice, const Char_t *inname, const Char_t *outname, Int_t n);
-
-Int_t AliBarrelRec_TPCparam(Int_t n=1) {
-
- const Char_t *name=" AliBarrelRec_TPCparam";
- cerr<<'\n'<<name<<"...\n";
- gBenchmark->Start(name);
-
-
- const Char_t *TPCtrkNameS="AliTPCtracksParam.root";
- const Char_t *galiceName="galice.root";
- const Char_t *ITSclsName="AliITSclustersV2.root";
- const Char_t *ITStrkName="AliITStracksV2.root";
- const Char_t *ITSrefName="ITStracksRefFile.root";
-
- // set here the code for the type of collision (needed for TPC tracking
- // parameterization). available collisions:
+void AliBarrelRec_TPCparam(Int_t firstEvent=0,Int_t lastEvent=0) {
+ //
+ // Macro to create AliESDs.root using parametrized TPC tracking
+ // and AliITStrackerSA (MI + SA)
+ //
+ // Input files:
+ // - galice.root
+ // - Kinematics.root
+ // - TrackReferences.root
+ // - ITS.RecPoints.root (use AliRecontruction class)
+ // - ITS.Vertex.root (use $ALICE_ROOT/ITS/AliITSVertexerZTest.C)
+ //
+ // A. Dainese - INFN Legnaro