Skip to content

Commit

Permalink
[!] bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BetterWang committed Oct 15, 2015
1 parent 3c18fcb commit 884d14b
Showing 1 changed file with 2 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

0 comments on commit 884d14b

Please sign in to comment.