]>
Commit | Line | Data |
---|---|---|
8470c96e | 1 | #if !defined( __CINT__) || defined(__MAKECINT__) |
2 | ||
3 | #include <vector> | |
4 | #include <TChain.h> | |
5 | #include <TFile.h> | |
6 | #include <TTree.h> | |
7 | #include <TString.h> | |
8 | #include <Riostream.h> | |
9 | #include <TSystem.h> | |
10 | #include <TH1F.h> | |
11 | #include <AliCDBManager.h> | |
8dd46aaa | 12 | #include <../TRD/AliTRDCalibra.h> |
8470c96e | 13 | |
14 | #endif | |
15 | using namespace std; | |
16 | ||
17 | TTree *AliTRDMergeTwoTrees(const char* variablecali){ | |
18 | // | |
19 | // After having simulated and reconstructed events in subrepertories 000%d | |
20 | // this macro create a tree, "sum" of the tree in 0000/TRD.calibration.root and 0001/TRD.calibration.root | |
21 | // variablecali is the type: treeCH2d, treePH2d or treePRF2d | |
22 | // | |
23 | ||
24 | ||
25 | ||
26 | //Variables | |
27 | AliCDBManager *man = AliCDBManager::Instance(); | |
8dd46aaa | 28 | man->SetDefaultStorage("local://$ALICE_ROOT"); |
8470c96e | 29 | man->SetRun(0); |
30 | AliTRDCalibra *calibra = AliTRDCalibra::Instance(); | |
31 | ||
32 | //Add | |
8dd46aaa | 33 | TTree *tree = calibra->Sum2Trees("/d/alice06/bailhache/aliroottrd/cesoir/0019/TRD.calibration.root","/d/alice06/bailhache/aliroottrd/cesoir/0021/TRD.calibration.root",variablecali); |
8470c96e | 34 | |
35 | return tree; | |
36 | ||
37 | } |