]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCRawClusterer.C
Protecting if the events are not there
[u/mrichter/AliRoot.git] / TPC / AliTPCRawClusterer.C
1 #if !defined(__CINT__) || defined(__MAKECINT__)
2 #include "AliTPC.h"
3 #include "AliTPCclustererMI.h"
4 #include <TFile.h>
5 #include <TTree.h>
6 #endif
7
8 void AliTPCRawClusterer(const char* fileNameParam,
9                         const char* fileNameClusters = "tpc.clusters.root",
10                         const char* fileNameRawData = "AltroFormatDDL.dat")
11 {
12   TFile* fileParam = TFile::Open(fileNameParam);
13   AliTPCclustererMI clusterer(AliTPC::LoadTPCParam(fileParam));
14   TFile* fileClusters = TFile::Open(fileNameClusters, "recreate");
15   TTree* output = new TTree("TreeC_TPC_0", "TreeC_TPC_0"); 
16
17   clusterer.SetOutput(output);
18   clusterer.Digits2Clusters(fileNameRawData);
19
20   fileClusters->Close();
21   delete fileClusters;
22   fileParam->Close();
23   delete fileParam;
24 }