Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:54

0001 // -*- C++ -*-
0002 //
0003 // Package:     CommonTools/BaseParticlePropagator
0004 // Class  :     makeMuon
0005 //
0006 // Implementation:
0007 //     [Notes on implementation]
0008 //
0009 // Original Author:  Christopher Jones
0010 //         Created:  Mon, 04 Mar 2019 17:36:54 GMT
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "CommonTools/BaseParticlePropagator/interface/makeMuon.h"
0017 
0018 #include "CommonTools/BaseParticlePropagator/interface/RawParticle.h"
0019 namespace rawparticle {
0020   RawParticle makeMuon(bool isParticle, const math::XYZTLorentzVector& p, const math::XYZTLorentzVector& xStart) {
0021     constexpr double kMass = 0.10566;  //taken from SimGeneral/HepPDTESSource/data/particle.tbl
0022     if (isParticle) {
0023       return RawParticle(13, p, xStart, kMass, -1.);
0024     }
0025     return RawParticle(-13, p, xStart, kMass, +1.);
0026   }
0027 }  // namespace rawparticle