TENDER becomes Tender
[u/mrichter/AliRoot.git] / PWGPP / TRD / macros / AliTRDmakeTrendDB.C
1 const Char_t *name[]={
2   "clResY", "clPullY", 
3   "trkltResY", "trkltPullY", "trkltResZ", "trkltPullZ", "trkltResPhi"
4 };
5 const Char_t *title[]={
6   "cluster resolution r-phi"
7  ,"cluster pulls r-phi"
8  ,"tracklet resolution r-phi"
9  ,"tracklet pulls r-phi"
10  ,"tracklet resolution z"
11  ,"tracklet pulls z"
12  ,"tracklet resolution phi"
13 };
14 void AliTRDmakeTrendDB()
15 {
16   gSystem->Load("libANALYSIS.so");
17   gSystem->Load("libANALYSISalice.so");
18   gSystem->Load("libTender.so");
19   gSystem->Load("libPWGPP.so");
20
21
22 /*  AliCDBManager *cdb(AliCDBManager::Instance());
23   cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
24   cdb->SetRun(0);*/
25   AliTRDtrendingManager *tm(AliTRDtrendingManager::Instance());
26   AliTRDtrendValue *val(NULL);
27
28   for(Int_t iv(0); iv<7; iv++){
29     Double_t limits[]={-1., 1., -2., 2., -3., 3., -4., 4., -5., 5.};
30     char *messages[]={
31       "acceptable"
32      ,"worrisome"
33      ,"far from normal"
34      ,"off the limits"
35      ,"totally off"
36     };
37     tm->AddValue("resolution", name[iv], title[iv], limits, messages, "Alex Bercuci/a.bercuci@gsi.de", "Markus Fasel/m.fasel@gsi.de,Ionut Arsene/I.C.Arsene@gsi.de,Christoph Blume/blume@ikf.uni-frankfurt.de");
38     val=tm->GetValue("resolution", name[iv]);
39     val->Set(0.5+iv);
40   }
41   tm->Print();
42   //tm->Save();
43 }