Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EP code update #14847

Merged
merged 1 commit into from
Jun 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 4 additions & 5 deletions RecoHI/HiEvtPlaneAlgos/interface/HiEvtPlaneList.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ Index Name Detector Order hmin1 hmax1 hmin2 hmax2 minpt maxpt nsub mcw
24 trackp4 Tracker 4 1.00 2.00 0.00 0.00 0.30 3.00 3sub no HFm4 HFp4
25 HFm1mc HF 1 -5.00 -3.00 0.00 0.00 0.01 30.00 3sub yes HFp1mc trackp1mc
26 HFp1mc HF 1 3.00 5.00 0.00 0.00 0.01 30.00 3sub yes HFm1mc trackm1mc
27 trackm1mc Tracker 1 -2.20 -1.40 0.00 0.00 0.30 3.00 3sub yes HFm1mc HFp1mc
28 trackp1mc Tracker 1 1.40 2.20 0.00 0.00 0.30 3.00 3sub yes HFm1mc HFp1mc
29 Castor1mc Castor 1 -6.55 -5.10 0.00 0.00 0.01 50.00 3sub yes HFp1mc trackp1mc
27 trackm1mc Tracker 1 -2.00 -1.00 0.00 0.00 0.30 3.00 3sub yes HFm1mc HFp1mc
28 trackp1mc Tracker 1 1.00 2.00 0.00 0.00 0.30 3.00 3sub yes HFm1mc HFp1mc
*/
#include <string>

Expand Down Expand Up @@ -81,7 +80,7 @@ namespace hi{
-2.00, 1.00, -6.55, -5.00, 3.00,
-5.00, -0.75, -2.00, 1.00, -5.00,
3.00, -5.00, -0.75, -2.00, 1.00,
-5.00, 3.00, -2.20, 1.40
-5.00, 3.00, -2.00, 1.00
};

const double EPEtaMax1[] = {
Expand All @@ -90,7 +89,7 @@ namespace hi{
-1.00, 2.00, -5.10, -3.00, 5.00,
-3.00, 0.75, -1.00, 2.00, -3.00,
5.00, -3.00, 0.75, -1.00, 2.00,
-3.00, 5.00, -1.40, 2.20
-3.00, 5.00, -1.00, 2.00
};

const double EPEtaMin2[] = {
Expand Down
6 changes: 3 additions & 3 deletions RecoHI/HiEvtPlaneAlgos/src/EvtPlaneProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ EvtPlaneProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)
if(MomConsWeight[i][0]=='y' && loadDB_ ) {
w = flat[i]->getW(tower_energyet, vzr_sell, bin);
}
if(tower_eta<0 ) w=-w;
if(tower_eta<0 && MomConsWeight[i][0]=='n') w=-w;
}
rp[i]->addParticle(w,tower_energyet,sin(EPOrder[i]*tower_phi),cos(EPOrder[i]*tower_phi),tower_eta);
}
Expand Down Expand Up @@ -409,7 +409,7 @@ EvtPlaneProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)
if(MomConsWeight[i][0]=='y' && loadDB_ ) {
w = flat[i]->getW(tower_energyet, vzr_sell, bin);
}
if(tower_eta<0 ) w=-w;
if(tower_eta<0 && MomConsWeight[i][0]=='n') w=-w;
}
rp[i]->addParticle(w,tower_energyet,sin(EPOrder[i]*tower_phi),cos(EPOrder[i]*tower_phi),tower_eta);
}
Expand Down Expand Up @@ -481,7 +481,7 @@ EvtPlaneProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)
if(MomConsWeight[i][0]=='y' && loadDB_) {
w = flat[i]->getW(track_pt, vzr_sell, bin);
}
if(track_eta<0) w=-w;
if(track_eta<0 && MomConsWeight[i][0]=='n') w=-w;
}
rp[i]->addParticle(w,track_pt,sin(EPOrder[i]*track_phi),cos(EPOrder[i]*track_phi),track_eta);
}
Expand Down