Switching from CMAKE_SOURCE_DIR to AliRoot_SOURCE_DIR
[u/mrichter/AliRoot.git] / FMD / FMDGainda.cxx
CommitLineData
0e9547f1 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
8bd95799 8 DA Type: LDC
0e9547f1 9 Number of events needed: usually 102400
10 Input Files: raw data
11 Output Files: gains.csv
12 Trigger types used: GAIN
13*/
0e9547f1 14#include <AliFMDGainDA.h>
a31ea3ce 15#include <AliFMDParameters.h>
16#include "FMDUtilda.h"
17#include <iostream>
0e9547f1 18
19int main(int argc, char **argv)
20{
a31ea3ce 21 AliFMDBaseDA::Runner r;
0e9547f1 22
a31ea3ce 23 Int_t ret = r.Init(argc, argv);
24 if (ret < 0) return -ret;
25 if (ret > 0) return 0;
0e9547f1 26
0e9547f1 27 AliFMDGainDA gainDA;
2a082c96 28#ifdef ALI_AMORE
29 gainDA.SetMakeSummaries(kTRUE);
30#endif
a31ea3ce 31 r.Exec(gainDA);
0e9547f1 32
a31ea3ce 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);
2a082c96 40
a31ea3ce 41 if(ret > 0) std::cerr << "Gain DA failed" << std::endl;
2a082c96 42
a31ea3ce 43 PostSummaries(gainDA, "gain", r.RunNumber());
2a082c96 44
a31ea3ce 45 return ret;
0e9547f1 46}
2a082c96 47//
48// EOF
49//
50