variables initialized in the constructor
[u/mrichter/AliRoot.git] / PMD / AliPMDRaw2Digits.C
CommitLineData
da15c496 1// ----------------------------------------------------//
2// //
3// This macro does Raw to SDigits //
4// //
5// ----------------------------------------------------//
6
7
8void AliPMDRaw2Digits(Int_t nevt = 1)
9{
10 TStopwatch timer;
11 timer.Start();
12
13 // Open the AliRoot file
14
15 AliRunLoader *runLoader = AliRunLoader::Open("galice.root");
16 if (!runLoader)
17 {
18 cerr<<"Can't load RunLoader"<<endl;
19 return 1;
20 }
21
22 AliPMDRawToSDigits pmdr2sd;
23
24 Int_t ievt = 0;
25
26 for (ievt = 0; ievt < nevt; ievt++)
27 {
28 runLoader->GetEvent(ievt);
29 AliRawReaderFile reader(ievt);
30 pmdr2sd.Raw2Digits(runLoader, &reader);
31 }
32
33 timer.Stop();
34 timer.Print();
35}