Skip to content

Commit

Permalink
removing macro constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrondol committed Oct 24, 2016
1 parent 30961bd commit 808099a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion RecoTracker/TkDetLayers/src/Phase2OTEndcapLayer.cc
Expand Up @@ -22,7 +22,7 @@ typedef GeometricSearchDet::DetWithState DetWithState;
const std::vector<const GeometricSearchDet*>& Phase2OTEndcapLayer::components() const{
if (not theComponents) {
auto temp = std::make_unique<std::vector<const GeometricSearchDet*>>();
temp->reserve(NOTECRINGS);
temp->reserve(15); // This number is just an upper bound
for ( auto c: theComps) temp->push_back(c);
std::vector<const GeometricSearchDet*>* expected = nullptr;
if(theComponents.compare_exchange_strong(expected,temp.get())) {
Expand Down Expand Up @@ -251,6 +251,7 @@ Phase2OTEndcapLayer::ringIndicesByCrossingProximity(const TrajectoryStateOnSurfa
Crossing myXing( startPos, startDir, rho, propDir );

std::vector<GlobalPoint> ringCrossings;
ringCrossings.reserve(theRingSize);
// vector<GlobalVector> ringXDirections;

for (int i = 0; i < theRingSize ; i++ ) {
Expand Down
2 changes: 0 additions & 2 deletions RecoTracker/TkDetLayers/src/Phase2OTEndcapLayer.h
@@ -1,8 +1,6 @@
#ifndef TkDetLayers_Phase2OTEndcapLayer_h
#define TkDetLayers_Phase2OTEndcapLayer_h

#define NOTECRINGS 15 // This number is just an upper bound

#include "TrackingTools/DetLayers/interface/RingedForwardLayer.h"
#include "Phase2OTEndcapRing.h"
#include <array>
Expand Down

0 comments on commit 808099a

Please sign in to comment.