Skip to content

Commit

Permalink
Merge pull request #227 from ebecheva/corrMergeToMastergit
Browse files Browse the repository at this point in the history
Simplify filling outputVector
  • Loading branch information
jbsauvan committed Oct 11, 2018
2 parents bfb8837 + afe7d73 commit d305d85
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions L1Trigger/L1THGCal/interface/HGCalTriggerTools.h
Expand Up @@ -65,10 +65,7 @@ class HGCalTriggerTools {
std::vector<T> bxVectorToVector(const BXVector<T>& inputBXVector){
std::vector<T> outputVector;
//loop over collection for a given bx and put the objects into a std::vector
for( typename std::vector<T>::const_iterator it = inputBXVector.begin(0) ; it != inputBXVector.end(0) ; ++it )
{
outputVector.push_back(*it);
}
outputVector.insert(outputVector.end(), inputBXVector.begin(0), inputBXVector.end(0));
return outputVector;
}

Expand Down

0 comments on commit d305d85

Please sign in to comment.