diff --git a/NPAnalysis/Gaspard/RunToTreat.txt b/NPAnalysis/Gaspard/RunToTreat.txt index 008354fd1b9fa2d1c15477a463be1e2bf76a6b7e..e62f637769279e8a972af2a550e7f754bab7b0ca 100644 --- a/NPAnalysis/Gaspard/RunToTreat.txt +++ b/NPAnalysis/Gaspard/RunToTreat.txt @@ -1,4 +1,6 @@ TTreeName SimulatedTree RootFileName + ../../Outputs/Simulation/mySimul_test.root +% ../../Outputs/Simulation/mySimul.root ../../Outputs/Simulation/mySimul.root diff --git a/NPLib/IORoot/RootInput.cxx b/NPLib/IORoot/RootInput.cxx index d48d101bded2fe2d7e6a6bfa73a24f3f4cbae17b..816fb3dc0713ef8d86713296edc927d4cc1aad49 100644 --- a/NPLib/IORoot/RootInput.cxx +++ b/NPLib/IORoot/RootInput.cxx @@ -89,7 +89,12 @@ RootInput::RootInput(string configFileName) while (!inputConfigFile.eof()) { inputConfigFile >> dataBuffer; - if (!inputConfigFile.eof()) { + // ignore comment Line + if (dataBuffer.compare(0, 1, "%") == 0) { + inputConfigFile.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); + } + + else if (!inputConfigFile.eof()) { pRootChain->Add(dataBuffer.c_str()); cout << "Adding file " << dataBuffer << " to TChain" << endl; }