]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/FMDPedestalda.cxx
Starting a collection of QA/Comparison macros
[u/mrichter/AliRoot.git] / FMD / FMDPedestalda.cxx
CommitLineData
4a243071 1/*
4a243071 2 FMD DA for online calibration of conditions
3
4 Contact: canute@nbi.dk
5 Link: fmd.nbi.dk/fmd/offline
6 Run Type: PEDESTAL
8bd95799 7 DA Type: LDC
4a243071 8 Number of events needed: 1000
9 Input Files: raw data
10 Output Files: peds.csv
11 Trigger types used: PEDESTAL
12*/
4a243071 13#include <AliFMDPedestalDA.h>
a31ea3ce 14#include <AliFMDParameters.h>
15#include "FMDUtilda.h"
16#include <iostream>
4a243071 17
18int main(int argc, char **argv)
19{
a31ea3ce 20 AliFMDBaseDA::Runner r;
4a243071 21
a31ea3ce 22 Int_t ret = r.Init(argc, argv);
23 if (ret < 0) return -ret;
24 if (ret > 0) return 0;
4a243071 25
4a243071 26 AliFMDPedestalDA pedDA;
2a082c96 27#ifdef ALI_AMORE
28 pedDA.SetMakeSummaries(kTRUE);
29#endif
a31ea3ce 30 r.Exec(pedDA);
4a243071 31
a31ea3ce 32 const char* files[] = { "conditions.csv",
33 "peds.csv",
34 0 };
35 const char* ids[] = { AliFMDParameters::Instance()->GetConditionsShuttleID(),
36 AliFMDParameters::Instance()->GetPedestalShuttleID(),
37 0 };
38 ret = UploadFiles(files, ids);
2a082c96 39
a31ea3ce 40 if(ret > 0) std::cerr << "Pedestal DA failed" << std::endl;
2a082c96 41
a31ea3ce 42 PostSummaries(pedDA, "ped", r.RunNumber());
43
44 return ret;
4a243071 45}
a31ea3ce 46//
47// EOF
48//
49