The Base DA executable for the FMD
[u/mrichter/AliRoot.git] / FMD / FMDBaseda.cxx
CommitLineData
cb45bad5 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: PHYSICS
8 DA Type: MON
9 Number of events needed: depending on the run, being run-level
10 Input Files: raw data
11 Output Files: conditions.csv
12 Trigger types used: PHYSICS_EVENT
13*/
14#include <TSystem.h>
15#include <AliCDBManager.h>
16#include <AliFMDParameters.h>
17#include <AliRawReader.h>
18#include <TStopwatch.h>
19#include <AliFMDBaseDA.h>
20#include <AliRawReaderDate.h>
21#include "TROOT.h"
22#include "TPluginManager.h"
23
24
25
26int main(int argc, char **argv)
27{
28
29#if 0
30 /* magic line from Rene - for future reference! */
31 gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo",
32 "*",
33 "TStreamerInfo",
34 "RIO",
35 "TStreamerInfo()");
36#endif
37
38
39 Char_t* fileName = argv[1];
40
41 Bool_t old = kTRUE;
42
43 AliCDBManager* cdb = AliCDBManager::Instance();
44 cdb->SetRun(0);
45 cdb->SetDefaultStorage("");
46
47 AliFMDParameters::Instance()->Init(kFALSE,0);
48 AliFMDParameters::Instance()->UseRcuTrailer(!old);
49 AliFMDParameters::Instance()->UseCompleteHeader(!old);
50
51 AliRawReader *reader = new AliRawReaderDate(fileName);
52 TStopwatch timer;
53 timer.Start();
54 AliFMDBaseDA baseDA;
55
56 baseDA.Run(reader);
57
58 timer.Stop();
59 timer.Print();
60
61
62
63
64}