1 void writeAR(TFile * fin, TFile *fou);
2 void AliITSSD2D(TString inFile, TString outFile);
4 void AliITSSDigits2Digits(TString inFile= "galice.root", TString outFile = ""){
5 // This macro takes SDigits and produces Digits. No merging is done
6 // and only one galice.root file is used.
7 // Dynamically link some shared libs
14 cout << "Creating digits from summable digits for the ITS..." << endl;
15 AliITSSD2D(inFile,outFile);
20 void AliITSSD2D(TString inFile, TString outFile){
21 AliRunDigitizer * manager = new AliRunDigitizer(1,1);
23 sprintf(ftmp,"%s",inFile.Data());
24 manager->SetInputStream(0,ftmp);
25 if(outFile != "")manager->SetOutputFile(outFile);
26 AliITSDigitizer *dITS = new AliITSDigitizer(manager);
29 TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject(inFile);
30 TFile * file2 = new TFile(outFile,"UPDATE");
35 delete gAlice; gAlice=0;
38 void writeAR(TFile * fin, TFile *fou) {
39 TDirectory *current = gDirectory;
42 AliHeader *alhe = new AliHeader();
43 Te = (TTree*)fin->Get("TE");
44 Te->SetBranchAddress("Header",&alhe);
45 Te->SetBranchStatus("*",1);
47 TeNew = Te->CloneTree();
48 TeNew->Write(0,TObject::kOverwrite);
49 gAlice->Write(0,TObject::kOverwrite);
52 cout<<"AliRun object written to file\n";