Skip to content
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: 4 additions & 2 deletions EventGenerator/src/LeadingLog_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include "Offline/SeedService/inc/SeedService.hh"
#include "Offline/GlobalConstantsService/inc/GlobalConstantsHandle.hh"
#include "Offline/GlobalConstantsService/inc/ParticleDataList.hh"
#include "Offline/GlobalConstantsService/inc/PhysicsParams.hh"
#include "Offline/DataProducts/inc/PDGCode.hh"
#include "Offline/MCDataProducts/inc/StageParticle.hh"
Expand Down Expand Up @@ -63,6 +64,8 @@ namespace mu2e {
void addParticles(StageParticleCollection* output, art::Ptr<SimParticle> mustop, double time);
//----------------------------------------------------------------
private:
const PDGCode::type electronId_ = PDGCode::e_minus; // for mass only

double muonLifeTime_;
art::ProductToken<SimParticleCollection> const simsToken_;
unsigned verbosity_;
Expand Down Expand Up @@ -90,8 +93,8 @@ namespace mu2e {
, eng_{createEngine(art::ServiceHandle<SeedService>()->getSeed())}
, randExp_{eng_}
, pdgId_(conf().pdgId())
,_mass(GlobalConstantsHandle<ParticleDataList>()->particle(electronId_).mass())
, spectrum_(BinnedSpectrum(conf().spectrum.get<fhicl::ParameterSet>()))

{
produces<mu2e::StageParticleCollection>();
pid_ = static_cast<PDGCode::type>(pdgId_);
Expand Down Expand Up @@ -140,7 +143,6 @@ namespace mu2e {
CLHEP::Hep3Vector p3 = randomUnitSphere_->fire(p);
CLHEP::HepLorentzVector fourmom(p3, energy);


output->emplace_back(mustop,
process_,
pid_,
Expand Down