Skip to content

Commit

Permalink
fixing excluding the string all from bank list
Browse files Browse the repository at this point in the history
  • Loading branch information
maureeungaro committed Aug 7, 2020
1 parent 4284f79 commit cc61366
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/evio2root.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ int main(int argc, char **argv)
userBankList.push_back(bank);
}

for(auto &bank: userBankList) {
cout << " Bank found: " << bank << endl;
}

vector<string> userRawBankList = getStringVectorFromStringWithDelimiter(gemcOpt.optMap["R"].args, " ");

// list of true info variables
Expand All @@ -73,15 +77,14 @@ int main(int argc, char **argv)
string factories = "TEXT";

// loading veriables definitions from factories db
vector<string> whichSystems = get_strings_except(banklist, "all");
vector<string> whichSystems = get_strings_except(banklist, " all");
map<string, string> allSystems;

for(unsigned b=0; b<whichSystems.size(); b++) {
cout << " Bank file to be loaded: " << whichSystems[b] << endl;
allSystems[whichSystems[b]] = factories;
}



map<string, gBank> banksMap = read_banks(gemcOpt, allSystems);

// selecting input, output file
Expand Down

0 comments on commit cc61366

Please sign in to comment.