CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 18 of file MuonCandidate.h.

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

Definition at line 17 of file MuonCandidate.h.

Constructor & Destructor Documentation

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)),
27  theMuonTrack(muon),
28  theTrackerTrack(tracker),
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
Definition: eostools.py:511
MuonCandidate::MuonCandidate ( std::unique_ptr< Trajectory traj,
const reco::TrackRef muon,
const reco::TrackRef tracker 
)
inline

Definition at line 31 of file MuonCandidate.h.

32  : theTrajectory(std::move(traj)), theMuonTrack(muon), theTrackerTrack(tracker), theTrackerTrajectory(nullptr) {}
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
Definition: eostools.py:511
virtual MuonCandidate::~MuonCandidate ( )
inlinevirtual

destructor

Definition at line 35 of file MuonCandidate.h.

35 {}

Member Function Documentation

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
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
Definition: eostools.py:511
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
Definition: eostools.py:511
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
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 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

reco::TrackRef MuonCandidate::theMuonTrack
private

Definition at line 54 of file MuonCandidate.h.

Referenced by muonTrack().

reco::TrackRef MuonCandidate::theTrackerTrack
private

Definition at line 55 of file MuonCandidate.h.

Referenced by trackerTrack().

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

Definition at line 56 of file MuonCandidate.h.

Referenced by releaseTrackerTrajectory(), and trackerTrajectory().

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

Definition at line 53 of file MuonCandidate.h.

Referenced by releaseTrajectory(), and trajectory().