#if !defined( __CINT__) || defined(__MAKECINT__) #include #include #include #include #include #include #include #include #include #include <../TRD/AliTRDCalibra.h> #endif using namespace std; TTree *AliTRDMergeTwoTrees(const char* variablecali){ // // After having simulated and reconstructed events in subrepertories 000%d // this macro create a tree, "sum" of the tree in 0000/TRD.calibration.root and 0001/TRD.calibration.root // variablecali is the type: treeCH2d, treePH2d or treePRF2d // //Variables AliCDBManager *man = AliCDBManager::Instance(); man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); man->SetRun(0); AliTRDCalibra *calibra = AliTRDCalibra::Instance(); //Add TTree *tree = calibra->Sum2Trees("/d/alice06/bailhache/aliroottrd/cesoir/0019/TRD.calibration.root","/d/alice06/bailhache/aliroottrd/cesoir/0021/TRD.calibration.root",variablecali); return tree; }