]>
Commit | Line | Data |
---|---|---|
4a243071 | 1 | /* |
2 | ||
3 | FMD DA for online calibration of conditions | |
4 | ||
5 | Contact: canute@nbi.dk | |
6 | Link: fmd.nbi.dk/fmd/offline | |
7 | Run Type: PEDESTAL | |
8 | DA Type: Pedestal | |
9 | Number of events needed: 1000 | |
10 | Input Files: raw data | |
11 | Output Files: peds.csv | |
12 | Trigger types used: PEDESTAL | |
13 | */ | |
14 | #include <TSystem.h> | |
15 | #include <AliFMDParameters.h> | |
16 | #include <AliRawReader.h> | |
17 | #include <TStopwatch.h> | |
18 | #include <AliFMDPedestalDA.h> | |
19 | #include <AliRawReaderDate.h> | |
20 | #include "TROOT.h" | |
21 | #include "TPluginManager.h" | |
22 | ||
23 | ||
24 | ||
25 | int main(int argc, char **argv) | |
26 | { | |
27 | ||
28 | //#if 0 | |
29 | /* magic line from Rene - for future reference! */ | |
30 | gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo", | |
31 | "*", | |
32 | "TStreamerInfo", | |
33 | "RIO", | |
34 | "TStreamerInfo()"); | |
35 | //#endif | |
36 | ||
37 | ||
38 | Char_t* fileName = argv[1]; | |
39 | ||
40 | Bool_t old = kTRUE; | |
41 | ||
42 | ||
43 | AliFMDParameters::Instance()->Init(kFALSE,0); | |
44 | AliFMDParameters::Instance()->SetSampleRate(4); | |
45 | AliFMDParameters::Instance()->UseRcuTrailer(!old); | |
46 | AliFMDParameters::Instance()->UseCompleteHeader(old); | |
47 | ||
48 | AliRawReader *reader = new AliRawReaderDate(fileName); | |
49 | TStopwatch timer; | |
50 | timer.Start(); | |
51 | AliFMDPedestalDA pedDA; | |
52 | //pedDA.SetSaveDiagnostics(kTRUE); | |
53 | pedDA.Run(reader); | |
54 | ||
55 | timer.Stop(); | |
56 | timer.Print(); | |
57 | ||
58 | ||
59 | ||
60 | ||
61 | } |