CMS 3D CMS Logo

makeMuon.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: CommonTools/BaseParticlePropagator
4 // Class : makeMuon
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Christopher Jones
10 // Created: Mon, 04 Mar 2019 17:36:54 GMT
11 //
12 
13 // system include files
14 
15 // user include files
17 
19 namespace rawparticle {
20  RawParticle makeMuon(bool isParticle, const math::XYZTLorentzVector& p,
21  const math::XYZTLorentzVector& xStart) {
22  constexpr double kMass = 0.10566; //taken from SimGeneral/HepPDTESSource/data/particle.tbl
23  if(isParticle) {
24  return RawParticle(13, p,xStart,kMass,-1.);
25  }
26  return RawParticle(-13,p,xStart, kMass, +1.);
27  }
28 }
const double kMass
RawParticle makeMuon(bool isParticle, const math::XYZTLorentzVector &p, const math::XYZTLorentzVector &xStart)
Definition: makeMuon.cc:20
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
#define constexpr