Skip to content
Snippets Groups Projects
Commit 06fc5e14 authored by matta's avatar matta
Browse files

merge of '31aaed5b83e918b1472f4b1779d7843bd37edfc9'

     and 'b7a04db202b089e66ff768f951b47d4032bf35a6'
parents de6ac50a 98e5d8de
No related branches found
No related tags found
No related merge requests found
TTreeName
SimulatedTree
t1
RootFileName
../../Outputs/Simulation/myResult.root
/media/rc66_1/data/runROOT/20umTest/si20um_test0089.root
......@@ -270,3 +270,11 @@ RootInput::~RootInput()
delete pRootFile;
delete pRootChain;
}
/////////////////////////////////////////////////////////////////////
TChain* MakeFriendTrees(string RunToRead1,string RunToRead2)
{
RootInput:: getInstance(RunToRead1) ;
RootInput:: getInstance()->AddFriendChain(RunToRead2);
return RootInput:: getInstance()->GetChain();
}
......@@ -79,4 +79,7 @@ private:
int NumberOfFriend;
};
// A convenient function related to Root Input, coded Here so it can be called within ROOT CINT
TChain* MakeFriendTrees(string,string);
#endif // ROOTINPUT_HH
......@@ -69,6 +69,8 @@ void NPToolLogon(bool verbosemode = false)
}
}
gROOT->ProcessLine(".L $NPLIB/include/RootInput.h+");
// Since the libdir.GetListOfFiles() commands cds to the
// libidr directory, one has to return to the initial
// directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment