Skip to content

Commit

Permalink
Remove prov. reading function
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmccoll committed Sep 9, 2014
1 parent 4fe56a6 commit 45a2a5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
3 changes: 0 additions & 3 deletions DataFormats/TrackerCommon/interface/ClusterSummary.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@ class ClusterSummary {
int GetModuleLocation ( int mod, bool warn = true ) const;
unsigned int GetNumberOfModules() const {return modules.size();}
int GetModule(const int index) const { return modules[index];}

// Return a vector of the modules that summary infomation was requested for. This should come from the provenance information.
std::vector<std::string> DecodeProvInfo(std::string ProvInfo) const;

private:
std::vector<int> modules; // <Module1, Module2 ...>
Expand Down
28 changes: 0 additions & 28 deletions DataFormats/TrackerCommon/src/ClusterSummary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,32 +147,4 @@ void ClusterSummary::PrepairGenericVariable() {
nModules.erase(std::remove(nModules.begin(), nModules.end(), 0), nModules.end());
clusSize.erase(std::remove(clusSize.begin(), clusSize.end(), 0), clusSize.end());
clusCharge.erase(std::remove(clusCharge.begin(), clusCharge.end(), 0), clusCharge.end());
}


std::vector<std::string> ClusterSummary::DecodeProvInfo(std::string ProvInfo) const {

std::vector<std::string> v_moduleTypes;

std::string mod = ProvInfo;
std::string::size_type i = 0;
std::string::size_type j = mod.find(',');

if ( j == std::string::npos ){
v_moduleTypes.push_back(mod);
}
else{

while (j != std::string::npos) {
v_moduleTypes.push_back(mod.substr(i, j-i));
i = ++j;
j = mod.find(',', j);
if (j == std::string::npos)
v_moduleTypes.push_back(mod.substr(i, mod.length( )));
}

}

return v_moduleTypes;

}

0 comments on commit 45a2a5b

Please sign in to comment.