da documentation page is defined in the Link
[u/mrichter/AliRoot.git] / PMD / AliPMDHits2Digits.C
CommitLineData
dc627cea 1// ----------------------------------------------------//
2// //
3// This macro does Hits to Digits //
4// //
5// ----------------------------------------------------//
6
7#include <stdlib.h>
8#include "Riostream.h"
9#include "TROOT.h"
10#include "TFile.h"
11#include "TNetFile.h"
12#include "TRandom.h"
13#include "TTree.h"
14#include "TBranch.h"
15#include "TClonesArray.h"
16#include "TStopwatch.h"
17
18void AliPMDHits2Digits(Int_t nevt=1)
19{
20 // Input file name
21 Char_t *alifile = "galice.root";
22
23 // Create the PMD digitzer
24 AliPMDDigitizer *digitizer = new AliPMDDigitizer();
25
26 // Open the AliRoot file
27 digitizer->OpengAliceFile(alifile,"HS");
28
29 // Create the digits
30 for (Int_t ievt=0; ievt<nevt; ievt++)
31 {
32 digitizer->Hits2Digits(ievt);
33 }
34 digitizer->UnLoad("S");
35}
36