CMS 3D CMS Logo

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

#include <TrajectorySeed.h>

Inheritance diagram for TrajectorySeed:
L2MuonTrajectorySeed L3MuonTrajectorySeed reco::ConvBremSeed reco::ElectronSeed

Public Types

typedef edm::OwnVector< TrackingRecHitRecHitContainer
 
typedef edm::Range< RecHitContainer::const_iterator > RecHitRange
 

Public Member Functions

virtual TrajectorySeedclone () const
 
PropagationDirection direction () const
 
unsigned int nHits () const
 
TrajectorySeedoperator= (TrajectorySeed const &o)=default
 
TrajectorySeedoperator= (TrajectorySeed &&o) noexcept=default
 
RecHitRange recHits () const
 
PTrajectoryStateOnDet const & startingState () const
 
void swap (PTrajectoryStateOnDet &ptsos, RecHitContainer &rh, PropagationDirection &dir) noexcept
 
void swap (TrajectorySeed &rh) noexcept
 
 TrajectorySeed ()
 
 TrajectorySeed (PTrajectoryStateOnDet const &ptsos, RecHitContainer const &rh, PropagationDirection dir)
 
 TrajectorySeed (PTrajectoryStateOnDet const &ptsos, RecHitContainer &&rh, PropagationDirection dir) noexcept
 
 TrajectorySeed (TrajectorySeed const &o)=default
 
 TrajectorySeed (TrajectorySeed &&o) noexcept=default
 
virtual ~TrajectorySeed ()
 

Private Attributes

PropagationDirection dir_ = invalidDirection
 
RecHitContainer hits_
 
PTrajectoryStateOnDet tsos_
 

Detailed Description

TrajectorySeed contains

Definition at line 18 of file TrajectorySeed.h.

Member Typedef Documentation

◆ RecHitContainer

Definition at line 20 of file TrajectorySeed.h.

◆ RecHitRange

typedef edm::Range<RecHitContainer::const_iterator> TrajectorySeed::RecHitRange

Definition at line 21 of file TrajectorySeed.h.

Constructor & Destructor Documentation

◆ TrajectorySeed() [1/5]

TrajectorySeed::TrajectorySeed ( )
inline

Definition at line 23 of file TrajectorySeed.h.

Referenced by clone().

23 {}

◆ ~TrajectorySeed()

virtual TrajectorySeed::~TrajectorySeed ( )
inlinevirtual

Definition at line 24 of file TrajectorySeed.h.

24 {}

◆ TrajectorySeed() [2/5]

TrajectorySeed::TrajectorySeed ( PTrajectoryStateOnDet const &  ptsos,
RecHitContainer const &  rh,
PropagationDirection  dir 
)
inline

Definition at line 26 of file TrajectorySeed.h.

27  : hits_(rh), tsos_(ptsos), dir_(dir) {}
RecHitContainer hits_
PropagationDirection dir_
PTrajectoryStateOnDet tsos_

◆ TrajectorySeed() [3/5]

TrajectorySeed::TrajectorySeed ( PTrajectoryStateOnDet const &  ptsos,
RecHitContainer &&  rh,
PropagationDirection  dir 
)
inlinenoexcept

Definition at line 29 of file TrajectorySeed.h.

30  : hits_(std::move(rh)), tsos_(ptsos), dir_(dir) {}
RecHitContainer hits_
PropagationDirection dir_
PTrajectoryStateOnDet tsos_
def move(src, dest)
Definition: eostools.py:511

◆ TrajectorySeed() [4/5]

TrajectorySeed::TrajectorySeed ( TrajectorySeed const &  o)
default

◆ TrajectorySeed() [5/5]

TrajectorySeed::TrajectorySeed ( TrajectorySeed &&  o)
defaultnoexcept

Member Function Documentation

◆ clone()

virtual TrajectorySeed* TrajectorySeed::clone ( void  ) const
inlinevirtual

Reimplemented in reco::ElectronSeed, and reco::ConvBremSeed.

Definition at line 57 of file TrajectorySeed.h.

References TrajectorySeed().

57 { return new TrajectorySeed(*this); }

◆ direction()

PropagationDirection TrajectorySeed::direction ( ) const
inline

◆ nHits()

unsigned int TrajectorySeed::nHits ( ) const
inline

◆ operator=() [1/2]

TrajectorySeed& TrajectorySeed::operator= ( TrajectorySeed const &  o)
default

◆ operator=() [2/2]

TrajectorySeed& TrajectorySeed::operator= ( TrajectorySeed &&  o)
defaultnoexcept

◆ recHits()

RecHitRange TrajectorySeed::recHits ( void  ) const
inline

◆ startingState()

PTrajectoryStateOnDet const& TrajectorySeed::startingState ( ) const
inline

◆ swap() [1/2]

void TrajectorySeed::swap ( PTrajectoryStateOnDet ptsos,
RecHitContainer rh,
PropagationDirection dir 
)
inlinenoexcept

Definition at line 32 of file TrajectorySeed.h.

References DeadROC_duringRun::dir, dir_, hits_, edm::OwnVector< T, P >::swap(), std::swap(), and tsos_.

32  {
33  hits_.swap(rh);
34  std::swap(tsos_, ptsos);
35  std::swap(dir_, dir);
36  }
RecHitContainer hits_
PropagationDirection dir_
void swap(OwnVector< T, P > &other) noexcept
Definition: OwnVector.h:512
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
PTrajectoryStateOnDet tsos_

◆ swap() [2/2]

void TrajectorySeed::swap ( TrajectorySeed rh)
inlinenoexcept

Definition at line 38 of file TrajectorySeed.h.

References dir_, hits_, edm::OwnVector< T, P >::swap(), std::swap(), and tsos_.

38  {
39  hits_.swap(rh.hits_);
40  std::swap(tsos_, rh.tsos_);
41  std::swap(dir_, rh.dir_);
42  }
RecHitContainer hits_
PropagationDirection dir_
void swap(OwnVector< T, P > &other) noexcept
Definition: OwnVector.h:512
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
PTrajectoryStateOnDet tsos_

Member Data Documentation

◆ dir_

PropagationDirection TrajectorySeed::dir_ = invalidDirection
private

Definition at line 62 of file TrajectorySeed.h.

Referenced by direction(), and swap().

◆ hits_

RecHitContainer TrajectorySeed::hits_
private

Definition at line 60 of file TrajectorySeed.h.

Referenced by nHits(), recHits(), and swap().

◆ tsos_

PTrajectoryStateOnDet TrajectorySeed::tsos_
private

Definition at line 61 of file TrajectorySeed.h.

Referenced by startingState(), and swap().