CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
MuonCandidate Class Reference

#include <MuonCandidate.h>

Public Types

typedef std::vector< std::unique_ptr< MuonCandidate > > CandidateContainer
 
typedef std::vector< std::unique_ptr< Trajectory > > TrajectoryContainer
 

Public Member Functions

 MuonCandidate (std::unique_ptr< Trajectory > traj, const reco::TrackRef &muon, const reco::TrackRef &tracker)
 
 MuonCandidate (std::unique_ptr< Trajectory > traj, const reco::TrackRef &muon, const reco::TrackRef &tracker, std::unique_ptr< Trajectory > trackerTraj)
 constructor More...
 
const reco::TrackRef muonTrack () const
 return muon track More...
 
std::unique_ptr< TrajectoryreleaseTrackerTrajectory ()
 
std::unique_ptr< TrajectoryreleaseTrajectory ()
 
const reco::TrackRef trackerTrack () const
 return tracker track More...
 
Trajectory const * trackerTrajectory () const
 return tracker trajectory More...
 
Trajectory const * trajectory () const
 return trajectory More...
 
virtual ~MuonCandidate ()
 destructor More...
 

Private Attributes

reco::TrackRef theMuonTrack
 
reco::TrackRef theTrackerTrack
 
std::unique_ptr< TrajectorytheTrackerTrajectory
 
std::unique_ptr< TrajectorytheTrajectory
 

Detailed Description

Auxiliary class for muon candidates

Author
N. Neumeister Purdue University

Definition at line 15 of file MuonCandidate.h.

Member Typedef Documentation

◆ CandidateContainer

typedef std::vector<std::unique_ptr<MuonCandidate> > MuonCandidate::CandidateContainer

Definition at line 18 of file MuonCandidate.h.

◆ TrajectoryContainer

typedef std::vector<std::unique_ptr<Trajectory> > MuonCandidate::TrajectoryContainer

Definition at line 17 of file MuonCandidate.h.

Constructor & Destructor Documentation

◆ MuonCandidate() [1/2]

MuonCandidate::MuonCandidate ( std::unique_ptr< Trajectory traj,
const reco::TrackRef muon,
const reco::TrackRef tracker,
std::unique_ptr< Trajectory trackerTraj 
)
inline

constructor

Definition at line 22 of file MuonCandidate.h.

26  : theTrajectory(std::move(traj)),
29  theTrackerTrajectory(std::move(trackerTraj)) {}

◆ MuonCandidate() [2/2]

MuonCandidate::MuonCandidate ( std::unique_ptr< Trajectory traj,
const reco::TrackRef muon,
const reco::TrackRef tracker 
)
inline

Definition at line 31 of file MuonCandidate.h.

◆ ~MuonCandidate()

virtual MuonCandidate::~MuonCandidate ( )
inlinevirtual

destructor

Definition at line 35 of file MuonCandidate.h.

35 {}

Member Function Documentation

◆ muonTrack()

const reco::TrackRef MuonCandidate::muonTrack ( ) const
inline

return muon track

Definition at line 43 of file MuonCandidate.h.

43 { return theMuonTrack; }

References theMuonTrack.

◆ releaseTrackerTrajectory()

std::unique_ptr<Trajectory> MuonCandidate::releaseTrackerTrajectory ( )
inline

Definition at line 50 of file MuonCandidate.h.

References eostools::move(), and theTrackerTrajectory.

◆ releaseTrajectory()

std::unique_ptr<Trajectory> MuonCandidate::releaseTrajectory ( )
inline

Definition at line 40 of file MuonCandidate.h.

40 { return std::move(theTrajectory); }

References eostools::move(), and theTrajectory.

◆ trackerTrack()

const reco::TrackRef MuonCandidate::trackerTrack ( ) const
inline

return tracker track

Definition at line 46 of file MuonCandidate.h.

46 { return theTrackerTrack; }

References theTrackerTrack.

◆ trackerTrajectory()

Trajectory const* MuonCandidate::trackerTrajectory ( ) const
inline

return tracker trajectory

Definition at line 49 of file MuonCandidate.h.

49 { return theTrackerTrajectory.get(); }

References theTrackerTrajectory.

◆ trajectory()

Trajectory const* MuonCandidate::trajectory ( ) const
inline

return trajectory

Definition at line 38 of file MuonCandidate.h.

38 { return theTrajectory.get(); }

References theTrajectory.

Member Data Documentation

◆ theMuonTrack

reco::TrackRef MuonCandidate::theMuonTrack
private

Definition at line 54 of file MuonCandidate.h.

Referenced by muonTrack().

◆ theTrackerTrack

reco::TrackRef MuonCandidate::theTrackerTrack
private

Definition at line 55 of file MuonCandidate.h.

Referenced by trackerTrack().

◆ theTrackerTrajectory

std::unique_ptr<Trajectory> MuonCandidate::theTrackerTrajectory
private

Definition at line 56 of file MuonCandidate.h.

Referenced by releaseTrackerTrajectory(), and trackerTrajectory().

◆ theTrajectory

std::unique_ptr<Trajectory> MuonCandidate::theTrajectory
private

Definition at line 53 of file MuonCandidate.h.

Referenced by releaseTrajectory(), and trajectory().

MuonCandidate::theMuonTrack
reco::TrackRef theMuonTrack
Definition: MuonCandidate.h:54
muon
Definition: MuonCocktails.h:17
MuonCandidate::theTrajectory
std::unique_ptr< Trajectory > theTrajectory
Definition: MuonCandidate.h:53
PbPb_ZMuSkimMuonDPG_cff.tracker
tracker
Definition: PbPb_ZMuSkimMuonDPG_cff.py:60
MuonCandidate::theTrackerTrack
reco::TrackRef theTrackerTrack
Definition: MuonCandidate.h:55
eostools.move
def move(src, dest)
Definition: eostools.py:511
MuonCandidate::theTrackerTrajectory
std::unique_ptr< Trajectory > theTrackerTrajectory
Definition: MuonCandidate.h:56