]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/macros/PeakFinder/readpf.C
suggestion by Chiara to add TestPreprocessor macro to svn
[u/mrichter/AliRoot.git] / EMCAL / macros / PeakFinder / readpf.C
1
2 void readpf()
3 {
4   cout << "HELLO WORLD" << endl;
5   TFile *f = new TFile("peakfindervectors2.root", "read");
6   
7   //   f->ls();
8   //   f->Print();
9   //   AliCaloRawAnalyzerPeakFinder *p = (AliCaloRawAnalyzerPeakFinder*)f->GetKey("AliCaloRawAnalyzerPeakFinder");
10   
11   AliCaloPeakFinderVectors *p = f->Get("AliCaloPeakFinderVectors");
12
13   if ( p == 0 )
14     {
15       cout << "ERROR, P == 0" << endl;
16     }
17   else
18     {
19       cout << "INFO, p = "<< p  << endl;
20       p->PrintVectors();
21     }
22
23   cout << endl <<  "********** !!!!!!!!!!!!!! " << endl;
24   
25   
26   // AliCaloRawAnalyzerPeakFinder *p2 =  new AliCaloRawAnalyzerPeakFinder();
27   //  p2->PrintVectors();
28 }
29
30