]>
Commit | Line | Data |
---|---|---|
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: GAIN | |
8 | DA Type: LDC | |
9 | Number of events needed: usually 102400 | |
10 | Input Files: raw data | |
11 | Output Files: gains.csv | |
12 | Trigger types used: GAIN | |
13 | */ | |
14 | #include <AliFMDGainDA.h> | |
15 | #include <AliFMDParameters.h> | |
16 | #include "FMDUtilda.h" | |
17 | #include <iostream> | |
18 | ||
19 | int main(int argc, char **argv) | |
20 | { | |
21 | AliFMDBaseDA::Runner r; | |
22 | ||
23 | Int_t ret = r.Init(argc, argv); | |
24 | if (ret < 0) return -ret; | |
25 | if (ret > 0) return 0; | |
26 | ||
27 | AliFMDGainDA gainDA; | |
28 | #ifdef ALI_AMORE | |
29 | gainDA.SetMakeSummaries(kTRUE); | |
30 | #endif | |
31 | r.Exec(gainDA); | |
32 | ||
33 | const char* files[] = { "conditions.csv", | |
34 | "gains.csv", | |
35 | 0 }; | |
36 | const char* ids[] = { AliFMDParameters::Instance()->GetConditionsShuttleID(), | |
37 | AliFMDParameters::Instance()->GetGainShuttleID(), | |
38 | 0 }; | |
39 | ret = UploadFiles(files, ids); | |
40 | ||
41 | if(ret > 0) std::cerr << "Gain DA failed" << std::endl; | |
42 | ||
43 | PostSummaries(gainDA, "gain", r.RunNumber()); | |
44 | ||
45 | return ret; | |
46 | } | |
47 | // | |
48 | // EOF | |
49 | // | |
50 |