CMS 3D CMS Logo

Functions
makeParticle.cc File Reference
#include "FastSimulation/Particle/interface/makeParticle.h"
#include "CommonTools/BaseParticlePropagator/interface/RawParticle.h"

Go to the source code of this file.

Functions

RawParticle makeParticle (HepPDT::ParticleDataTable const *table, int id, const math::XYZTLorentzVector &p)
 
RawParticle makeParticle (HepPDT::ParticleDataTable const *table, int id, const math::XYZTLorentzVector &p, const math::XYZTLorentzVector &xStart)
 
RawParticle unchecked_makeParticle (int id, const math::XYZTLorentzVector &p, const math::XYZTLorentzVector &xStart, double mass, double charge)
 
RawParticle unchecked_makeParticle (int id, const math::XYZTLorentzVector &p, double mass, double charge)
 

Function Documentation

◆ makeParticle() [1/2]

RawParticle makeParticle ( HepPDT::ParticleDataTable const *  table,
int  id,
const math::XYZTLorentzVector p 
)

◆ makeParticle() [2/2]

RawParticle makeParticle ( HepPDT::ParticleDataTable const *  table,
int  id,
const math::XYZTLorentzVector p,
const math::XYZTLorentzVector xStart 
)

Definition at line 40 of file makeParticle.cc.

43  {
44  double charge = 0.;
45  double mass = 0.;
46  auto info = table->particle(HepPDT::ParticleID(id));
47  if (info) {
48  charge = info->charge();
49  mass = info->mass().value();
50  }
51  return unchecked_makeParticle(id, p, xStart, mass, charge);
52 }

References ALCARECOTkAlJpsiMuMu_cff::charge, info(), EgHLTOffHistBins_cfi::mass, AlCaHLTBitMon_ParallelJobs::p, LHEGenericFilter_cfi::ParticleID, TableParser::table, and unchecked_makeParticle().

◆ unchecked_makeParticle() [1/2]

RawParticle unchecked_makeParticle ( int  id,
const math::XYZTLorentzVector p,
const math::XYZTLorentzVector xStart,
double  mass,
double  charge 
)
inline

Definition at line 23 of file makeParticle.cc.

24  {
25  return RawParticle(id, p, xStart, mass, charge);
26 }

References ALCARECOTkAlJpsiMuMu_cff::charge, EgHLTOffHistBins_cfi::mass, and AlCaHLTBitMon_ParallelJobs::p.

◆ unchecked_makeParticle() [2/2]

RawParticle unchecked_makeParticle ( int  id,
const math::XYZTLorentzVector p,
double  mass,
double  charge 
)
inline

Definition at line 19 of file makeParticle.cc.

19  {
20  return RawParticle(id, p, mass, charge);
21 }

References ALCARECOTkAlJpsiMuMu_cff::charge, EgHLTOffHistBins_cfi::mass, and AlCaHLTBitMon_ParallelJobs::p.

Referenced by makeParticle().

RawParticle
Definition: RawParticle.h:37
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:152
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
unchecked_makeParticle
RawParticle unchecked_makeParticle(int id, const math::XYZTLorentzVector &p, double mass, double charge)
Definition: makeParticle.cc:19
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34
TableParser.table
table
Definition: TableParser.py:111
LHEGenericFilter_cfi.ParticleID
ParticleID
Definition: LHEGenericFilter_cfi.py:6