Skip to content

Commit

Permalink
Merge pull request #11835 from BetterWang/EP_fix
Browse files Browse the repository at this point in the history
EP code bug fix
  • Loading branch information
cmsbuild committed Oct 19, 2015
2 parents 96377c8 + 884d14b commit d32f19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecoHI/HiEvtPlaneAlgos/src/HiEvtPlaneFlatProducer.cc
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

0 comments on commit d32f19e

Please sign in to comment.