c391f9d9 |
1 | #if !defined(__CINT__) || defined(__MAKECINT__) |
7941072e |
2 | #include "AliRun.h" |
c391f9d9 |
3 | #include "AliITS.h" |
4 | #include "AliITSgeom.h" |
5 | #include "AliITSclustererV2.h" |
7941072e |
6 | #include "AliRawReaderRoot.h" |
7 | #include "AliRunLoader.h" |
c391f9d9 |
8 | #include <TFile.h> |
9 | #include <TTree.h> |
10 | #endif |
11 | |
7941072e |
12 | void AliITSRawClusterer(const char* fileNameRawData = "event.root", |
13 | Int_t iEvent = 0, |
14 | const char* fileNameGalice = "galice.root") |
c391f9d9 |
15 | { |
7941072e |
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); |
c391f9d9 |
21 | |
7941072e |
22 | AliRunLoader* runLoader = AliRunLoader::Open(fileNameGalice); |
23 | runLoader->CdGAFile(); |
24 | AliITSgeom* geom = (AliITSgeom*) gFile->Get("AliITSgeom"); |
25 | AliITSclustererV2 clusterer(geom); |
c391f9d9 |
26 | |
7941072e |
27 | runLoader->GetLoader("ITSLoader")->LoadRecPoints("recreate"); |
28 | runLoader->SetEventNumber(iEvent); |
c391f9d9 |
29 | |
7941072e |
30 | clusterer.Digits2Clusters(&rawReader); |
c391f9d9 |
31 | } |