Skip to content

Commit

Permalink
Code Check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Aug 22, 2019
1 parent e44b08b commit c57588f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions IOMC/ParticleGuns/src/BeamMomentumGunProducer.cc
Expand Up @@ -44,8 +44,8 @@ namespace edm {
yoff_ = pgun_params.getParameter<double>("YOffset");
zpos_ = pgun_params.getParameter<double>("ZPosition");
if (fVerbosity > 0)
edm::LogVerbatim("BeamMomentumGun") << "Beam vertex offset (cm) " << xoff_ << ":" << yoff_ << " and z position "
<< zpos_;
edm::LogVerbatim("BeamMomentumGun")
<< "Beam vertex offset (cm) " << xoff_ << ":" << yoff_ << " and z position " << zpos_;

edm::FileInPath fp = pgun_params.getParameter<edm::FileInPath>("FileName");
std::string infileName = fp.fullPath();
Expand All @@ -66,8 +66,8 @@ namespace edm {
int parpx = fTree_->SetBranchAddress("parPx", &parPx_, &b_parPx_);
int parpy = fTree_->SetBranchAddress("parPy", &parPy_, &b_parPy_);
int parpz = fTree_->SetBranchAddress("parPz", &parPz_, &b_parPz_);
if ((npart != 0) || (event != 0) || (pdgid != 0) || (parxx != 0) || (paryy != 0) ||
(parzz != 0) || (parpx != 0) || (parpy != 0) || (parpz != 0))
if ((npart != 0) || (event != 0) || (pdgid != 0) || (parxx != 0) || (paryy != 0) || (parzz != 0) || (parpx != 0) ||
(parpy != 0) || (parpz != 0))
throw cms::Exception("GenException") << "Branch address wrong in i/p file\n";

produces<HepMCProduct>("unsmeared");
Expand Down

0 comments on commit c57588f

Please sign in to comment.