TENDER becomes Tender
[u/mrichter/AliRoot.git] / PWGPP / TRD / macros / makeTrending.C
CommitLineData
8f0c38cf 1void makeTrending(const Char_t *fl, Bool_t relative=kFALSE, const Char_t *db = "$ALICE_ROOT/PWGPP/TRD/data/TRD.Trend.root")
e02d9eb3 2{
847569f2 3 gSystem->Load("libANALYSIS.so");
4 gSystem->Load("libANALYSISalice.so");
af472fff 5 gSystem->Load("libTender.so");
847569f2 6 gSystem->Load("libCORRFW.so");
7 gSystem->Load("libPWGPP.so");
8 gSystem->Load("libPWGmuon.so");
9
10 AliTRDtrendingManager *tm = AliTRDtrendingManager::Instance();
60dd7ffe 11 tm->Load(db);
668a0654 12 tm->SetRelativeMeanSigma(relative);
dffc3357 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();
60dd7ffe 21 return;
847569f2 22}
e02d9eb3 23