Skip to content

Commit

Permalink
Merge CMSSW_7_6_X into CMSSW_8_0_X.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Oct 19, 2015
2 parents 1719387 + d32f19e commit 6b15662
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecoHI/HiEvtPlaneAlgos/src/HiEvtPlaneFlatProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ HiEvtPlaneFlatProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetu
edm::ESHandle<RPFlatParams> flatparmsDB_;
iSetup.get<HeavyIonRPRcd>().get(flatparmsDB_);
LoadEPDB db(flatparmsDB_,flat);
if(db.IsSuccess()) return;
if(!db.IsSuccess()) return;
}
//
//Get Centrality
Expand Down Expand Up @@ -280,7 +280,7 @@ HiEvtPlaneFlatProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetu
if(useOffsetPsi_) {
soff = flat[indx]->getSoffset(s, vzr_sell, bin);
coff = flat[indx]->getCoffset(c, vzr_sell, bin);
psiOffset = flat[indx]->getOffsetPsi(s, c);
psiOffset = flat[indx]->getOffsetPsi(soff, coff);
}
double psiFlat = flat[indx]->getFlatPsi(psiOffset,vzr_sell,bin);
ep[indx]= new EvtPlane(indx, 2, psiFlat, soff, coff,rp->sumw(), rp->sumw2(), rp->sumPtOrEt(), rp->sumPtOrEt2(), m);
Expand Down
4 changes: 4 additions & 0 deletions RecoTracker/TkDetLayers/src/Phase2OTECRingedLayer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ Phase2OTECRingedLayer::groupedCompatibleDetsV( const TrajectoryStateOnSurface& s
}

//order is odd rings in front of even rings
#ifdef __INTEL_COMPILER
const int ringOrder[NOTECRINGS]{0,1,0,1,0,1,0,1,0,1,0,1,0,1,0};
#else
constexpr int ringOrder[NOTECRINGS]{0,1,0,1,0,1,0,1,0,1,0,1,0,1,0};
#endif
auto index = [&ringIndices,& ringOrder](int i) { return ringOrder[ringIndices[i]];};

std::vector<DetGroup> closestResult;
Expand Down
4 changes: 4 additions & 0 deletions RecoTracker/TkDetLayers/src/TIDLayer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ TIDLayer::groupedCompatibleDetsV( const TrajectoryStateOnSurface& startingState,
std::array<vector<DetGroup>,3> groupsAtRingLevel;
//order is ring3,ring1,ring2 i.e. 2 0 1
// 0 1 2
#ifdef __INTEL_COMPILER
const int ringOrder[3]{1,2,0};
#else
constexpr int ringOrder[3]{1,2,0};
#endif
auto index = [&ringIndices,& ringOrder](int i) { return ringOrder[ringIndices[i]];};

auto & closestResult = groupsAtRingLevel[index(0)];
Expand Down

0 comments on commit 6b15662

Please sign in to comment.