Skip to content
New issue

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

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

Already on GitHub? # to your account

move to new ParticleDataList #38

Merged
merged 1 commit into from
Jan 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/InfoMCStructHelper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "BTrk/TrkBase/TrkHelixUtils.hh"

#include "Offline/GlobalConstantsService/inc/GlobalConstantsHandle.hh"
#include "Offline/GlobalConstantsService/inc/ParticleDataTable.hh"
#include "Offline/GlobalConstantsService/inc/ParticleDataList.hh"
#include "Offline/GeometryService/inc/GeomHandle.hh"
#include "Offline/GeometryService/inc/DetectorSystem.hh"
#include "Offline/BFieldGeom/inc/BFieldManager.hh"
Expand Down Expand Up @@ -163,7 +163,7 @@ namespace mu2e {

GeomHandle<BFieldManager> bfmgr;
GeomHandle<DetectorSystem> det;
GlobalConstantsHandle<ParticleDataTable> pdt;
GlobalConstantsHandle<ParticleDataList> pdt;
static CLHEP::Hep3Vector vpoint_mu2e = det->toMu2e(CLHEP::Hep3Vector(0.0,0.0,0.0));
static double bz = bfmgr->getBField(vpoint_mu2e).z();

Expand All @@ -187,7 +187,7 @@ namespace mu2e {
double hflt(0.0);
HepPoint ppos(trkinfomcstep._pos.x(), trkinfomcstep._pos.y(), trkinfomcstep._pos.z());
CLHEP::Hep3Vector mom = GenVector::Hep3Vec(i_mcstep._mom);
double charge = pdt->particle(kseedmc.simParticle()._pdg).ref().charge();
double charge = pdt->particle(kseedmc.simParticle()._pdg).charge();
TrkHelixUtils::helixFromMom( parvec, hflt,ppos, mom,charge,bz);
trkinfomcstep._hpar = helixpar(parvec);
}
Expand Down