Skip to content
Merged
Prev Previous commit
[TDF] Rename GetUsedBranchNames -> FindUsedColumnNames. Complete ROOT…
…-8879.
  • Loading branch information
eguiraud committed Jul 13, 2017
commit e22b85c71fb648652161d9d98188787009fec3ee
2 changes: 1 addition & 1 deletion tree/treeplayer/inc/ROOT/TDFInterface.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void CallBuildAndBook(PrevNodeType &prevNode, const ColumnNames_t &bl, unsigned
delete rOnHeap;
}

std::vector<std::string> GetUsedBranchesNames(const std::string, TObjArray *, const std::vector<std::string> &);
std::vector<std::string> FindUsedColumnNames(const std::string, TObjArray *, const std::vector<std::string> &);

using TmpBranchBasePtr_t = std::shared_ptr<TCustomColumnBase>;

Expand Down
6 changes: 3 additions & 3 deletions tree/treeplayer/src/TDFInterface.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ namespace Internal {
namespace TDF {
// Match expression against names of branches passed as parameter
// Return vector of names of the branches used in the expression
std::vector<std::string> GetUsedBranchesNames(const std::string expression, TObjArray *branches,
const std::vector<std::string> &tmpBranches)
std::vector<std::string> FindUsedColumnNames(const std::string expression, TObjArray *branches,
const std::vector<std::string> &tmpBranches)
{
// Check what branches and temporary branches are used in the expression
// To help matching the regex
Expand Down Expand Up @@ -68,7 +68,7 @@ Long_t JitTransformation(void *thisPtr, const std::string &methodName, const std
const std::vector<std::string> &tmpBranches,
const std::map<std::string, TmpBranchBasePtr_t> &tmpBookedBranches, TTree *tree)
{
auto usedBranches = GetUsedBranchesNames(expression, branches, tmpBranches);
auto usedBranches = FindUsedColumnNames(expression, branches, tmpBranches);
auto exprNeedsVariables = !usedBranches.empty();

// Move to the preparation of the jitting
Expand Down