add new mergeable classes for chamber status and trigger statistics
[u/mrichter/AliRoot.git] / PWGPP / TRD / macros / makeTrending.C
1 void makeTrending(const Char_t *fl, Bool_t relative=kFALSE, const Char_t *db = "$ALICE_ROOT/PWGPP/TRD/data/TRD.Trend.root")
2 {
3   gSystem->Load("libANALYSIS.so");
4   gSystem->Load("libANALYSISalice.so");
5   gSystem->Load("libTENDER.so");
6   gSystem->Load("libCORRFW.so");
7   gSystem->Load("libPWGPP.so");
8   gSystem->Load("libPWGmuon.so");
9
10   AliTRDtrendingManager *tm = AliTRDtrendingManager::Instance();
11   tm->Load(db);
12   tm->SetRelativeMeanSigma(relative);
13
14   TH1 *h1(NULL); TObjArray *trend = new TObjArray(100);
15   h1 = tm->MakeTrends(fl, trend);
16
17   TFile *fOut = TFile::Open("Trend_TRDgraph.root", "RECREATE");
18   h1->SetDirectory(fOut); h1->Write();
19   trend->Write();
20   fOut->Close();
21   return;
22 }
23