]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSRawClusterer.C
Fix in AliITS::MakeBranchR since fRecPoints is no longer persistent
[u/mrichter/AliRoot.git] / ITS / AliITSRawClusterer.C
1 #if !defined(__CINT__) || defined(__MAKECINT__)
2 #include "AliITS.h"
3 #include "AliITSgeom.h"
4 #include "AliITSclustererV2.h"
5 #include <TFile.h>
6 #include <TTree.h>
7 #endif
8
9 void AliITSRawClusterer(const char* fileNameParam = "its.digits.root",
10                         const char* fileNameClusters = "its.clusters.root")
11 {
12   delete gAlice;
13   TFile* file = TFile::Open(fileNameParam);
14   AliRun* gAlice = (AliRun*) file->Get("gAlice");
15   AliITS* its = (AliITS*) gAlice->GetModule("ITS");
16   AliITSgeom* geom = (AliITSgeom*) its->GetITSgeom();
17   AliITSclustererV2 clusterer(geom);
18
19   TFile* out = TFile::Open(fileNameClusters, "recreate");
20   geom->Write();
21
22   clusterer.Digits2Clusters(out);
23
24   out->Close();
25   delete out;
26   file->Close();
27   delete file;
28 }