Commit 32c67f5a authored by Olivier Stezowski's avatar Olivier Stezowski
Browse files

chain as friend to have proof running

parent f74511b8
...@@ -79,6 +79,7 @@ TChain *GetChain() ...@@ -79,6 +79,7 @@ TChain *GetChain()
if ( fUsePSAFriend ) if ( fUsePSAFriend )
{ {
/*
TFile *f = TFile::Open(fNedaFriend); TFile *f = TFile::Open(fNedaFriend);
if (f){ if (f){
TTree *tfriend = (TTree *)f->Get("PSATreeFriend"); TTree *tfriend = (TTree *)f->Get("PSATreeFriend");
...@@ -86,6 +87,13 @@ TChain *GetChain() ...@@ -86,6 +87,13 @@ TChain *GetChain()
MyChain->AddFriend(tfriend); MyChain->AddFriend(tfriend);
std::cout << "\033[1;36m\t>>> A Friend " << fNedaFriend << " has been added to the chain ! <<<\033[0m " << std::endl; std::cout << "\033[1;36m\t>>> A Friend " << fNedaFriend << " has been added to the chain ! <<<\033[0m " << std::endl;
} }
} */
TChain *fr = new TChain("PSATreeFriend");
fr->Add(fNedaFriend);
if (fr) {
MyChain->AddFriend(fr);
std::cout << "\033[1;36m\t>>> A Friend " << fNedaFriend << " has been added to the chain ! <<<\033[0m " << std::endl;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment