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, std::unique_ptr< Trajectory > trackerTraj)
 constructor More...
 
 MuonCandidate (std::unique_ptr< Trajectory > traj, const reco::TrackRef &muon, const reco::TrackRef &tracker)
 
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)) {}
std::unique_ptr< Trajectory > theTrackerTrajectory
Definition: MuonCandidate.h:56
std::unique_ptr< Trajectory > theTrajectory
Definition: MuonCandidate.h:53
reco::TrackRef theTrackerTrack
Definition: MuonCandidate.h:55
reco::TrackRef theMuonTrack
Definition: MuonCandidate.h:54
def move(src, dest)
Definition: eostools.py:511

◆ 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.

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

◆ ~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.

References theMuonTrack.

43 { return theMuonTrack; }
reco::TrackRef theMuonTrack
Definition: MuonCandidate.h:54

◆ releaseTrackerTrajectory()

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

Definition at line 50 of file MuonCandidate.h.

References eostools::move(), and theTrackerTrajectory.

std::unique_ptr< Trajectory > theTrackerTrajectory
Definition: MuonCandidate.h:56
def move(src, dest)
Definition: eostools.py:511

◆ releaseTrajectory()

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

Definition at line 40 of file MuonCandidate.h.

References eostools::move(), and theTrajectory.

40 { return std::move(theTrajectory); }
std::unique_ptr< Trajectory > theTrajectory
Definition: MuonCandidate.h:53
def move(src, dest)
Definition: eostools.py:511

◆ trackerTrack()

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

return tracker track

Definition at line 46 of file MuonCandidate.h.

References theTrackerTrack.

46 { return theTrackerTrack; }
reco::TrackRef theTrackerTrack
Definition: MuonCandidate.h:55

◆ trackerTrajectory()

Trajectory const* MuonCandidate::trackerTrajectory ( ) const
inline

return tracker trajectory

Definition at line 49 of file MuonCandidate.h.

References theTrackerTrajectory.

49 { return theTrackerTrajectory.get(); }
std::unique_ptr< Trajectory > theTrackerTrajectory
Definition: MuonCandidate.h:56

◆ trajectory()

Trajectory const* MuonCandidate::trajectory ( ) const
inline

return trajectory

Definition at line 38 of file MuonCandidate.h.

References theTrajectory.

38 { return theTrajectory.get(); }
std::unique_ptr< Trajectory > theTrajectory
Definition: MuonCandidate.h:53

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().