CMS 3D CMS Logo

converter::StandAloneMuonTrackToCandidate Struct Reference

#include <PhysicsTools/RecoAlgos/src/StandAloneMuonTrackToCandidate.h>

Inheritance diagram for converter::StandAloneMuonTrackToCandidate:

converter::MassiveCandidateConverter

List of all members.

Public Types

typedef
reco::RecoStandAloneMuonCandidate 
Candidate
typedef reco::TrackCollection Components
typedef reco::Track value_type

Public Member Functions

void convert (reco::TrackRef trkRef, reco::RecoStandAloneMuonCandidate &c) const
 StandAloneMuonTrackToCandidate (const edm::ParameterSet &cfg)


Detailed Description

Definition at line 12 of file StandAloneMuonTrackToCandidate.h.


Member Typedef Documentation

typedef reco::RecoStandAloneMuonCandidate converter::StandAloneMuonTrackToCandidate::Candidate

Definition at line 15 of file StandAloneMuonTrackToCandidate.h.

typedef reco::TrackCollection converter::StandAloneMuonTrackToCandidate::Components

Definition at line 14 of file StandAloneMuonTrackToCandidate.h.

typedef reco::Track converter::StandAloneMuonTrackToCandidate::value_type

Definition at line 13 of file StandAloneMuonTrackToCandidate.h.


Constructor & Destructor Documentation

converter::StandAloneMuonTrackToCandidate::StandAloneMuonTrackToCandidate ( const edm::ParameterSet cfg  )  [inline]

Definition at line 16 of file StandAloneMuonTrackToCandidate.h.

00016                                                                 : 
00017       MassiveCandidateConverter(cfg) {
00018     }


Member Function Documentation

void converter::StandAloneMuonTrackToCandidate::convert ( reco::TrackRef  trkRef,
reco::RecoStandAloneMuonCandidate c 
) const [inline]

Definition at line 19 of file StandAloneMuonTrackToCandidate.h.

References reco::TrackBase::charge(), converter::MassiveCandidateConverter::massSqr_, reco::TrackBase::momentum(), p, converter::MassiveCandidateConverter::particle_, PdtEntry::pdgId(), reco::Particle::setCharge(), reco::Particle::setP4(), reco::Particle::setPdgId(), reco::RecoStandAloneMuonCandidate::setTrack(), reco::Particle::setVertex(), funct::sqrt(), t, and reco::TrackBase::vertex().

00019                                                                                  {
00020       const reco::Track & trk = * trkRef;
00021       c.setCharge(trk.charge());
00022       c.setVertex(trk.vertex());
00023       reco::Track::Vector p = trk.momentum();
00024       double t = sqrt(massSqr_ + p.mag2());
00025       c.setP4(reco::Candidate::LorentzVector(p.x(), p.y(), p.z(), t));
00026       c.setTrack(trkRef);
00027       c.setPdgId(particle_.pdgId());
00028     }  


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:36:54 2009 for CMSSW by  doxygen 1.5.4