]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSRawClusterer.C
removed unused variables warnings
[u/mrichter/AliRoot.git] / ITS / AliITSRawClusterer.C
1 #if !defined(__CINT__) || defined(__MAKECINT__)
2 #include "AliRun.h"
3 #include "AliITS.h"
4 #include "AliITSgeom.h"
5 #include "AliITSclustererV2.h"
6 #include "AliRawReaderRoot.h"
7 #include "AliRunLoader.h"
8 #include <TFile.h>
9 #include <TTree.h>
10 #endif
11
12 void AliITSRawClusterer(const char* fileNameRawData = "event.root",
13                         Int_t iEvent = 0,
14                         const char* fileNameGalice = "galice.root")
15 {
16 // To run the cluster finder on raw data a galice.root file is needed.
17 // This file has to contain a run loader, a loader for ITS and
18 // the geometry of the ITS
19
20   AliRawReaderRoot rawReader(fileNameRawData, iEvent);
21
22   AliRunLoader* runLoader = AliRunLoader::Open(fileNameGalice);
23   runLoader->CdGAFile();
24   AliITSgeom* geom = (AliITSgeom*) gFile->Get("AliITSgeom");
25   AliITSclustererV2 clusterer(geom);
26
27   runLoader->GetLoader("ITSLoader")->LoadRecPoints("recreate");
28   runLoader->SetEventNumber(iEvent);
29
30   clusterer.Digits2Clusters(&rawReader);
31 }