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 &&o) noexcept=default
 
TrajectorySeedoperator= (TrajectorySeed const &o)=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 &&rh, PropagationDirection dir) noexcept
 
 TrajectorySeed (PTrajectoryStateOnDet const &ptsos, RecHitContainer const &rh, PropagationDirection dir)
 
 TrajectorySeed (TrajectorySeed &&o) noexcept=default
 
 TrajectorySeed (TrajectorySeed const &o)=default
 
virtual ~TrajectorySeed ()
 

Private Attributes

PropagationDirection dir_
 
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.

23 {}

Referenced by clone().

◆ ~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) {}

◆ 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) {}

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

57 { return new TrajectorySeed(*this); }

References TrajectorySeed().

◆ direction()

PropagationDirection TrajectorySeed::direction ( ) const
inline

◆ nHits()

unsigned int TrajectorySeed::nHits ( ) const
inline

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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

32  {
33  hits_.swap(rh);
34  std::swap(tsos_, ptsos);
35  std::swap(dir_, dir);
36  }

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

◆ swap() [2/2]

void TrajectorySeed::swap ( TrajectorySeed rh)
inlinenoexcept

Definition at line 38 of file TrajectorySeed.h.

38  {
39  hits_.swap(rh.hits_);
40  std::swap(tsos_, rh.tsos_);
41  std::swap(dir_, rh.dir_);
42  }

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

Member Data Documentation

◆ dir_

PropagationDirection TrajectorySeed::dir_
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().

edm::OwnVector::end
iterator end()
Definition: OwnVector.h:285
TrajectorySeed::tsos_
PTrajectoryStateOnDet tsos_
Definition: TrajectorySeed.h:61
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
TrajectorySeed::dir_
PropagationDirection dir_
Definition: TrajectorySeed.h:62
TrajectorySeed::TrajectorySeed
TrajectorySeed()
Definition: TrajectorySeed.h:23
eostools.move
def move(src, dest)
Definition: eostools.py:511
TrajectorySeed::hits_
RecHitContainer hits_
Definition: TrajectorySeed.h:60
edm::OwnVector::swap
void swap(OwnVector< T, P > &other) noexcept
Definition: OwnVector.h:512
edm::OwnVector::begin
iterator begin()
Definition: OwnVector.h:280
edm::OwnVector::size
size_type size() const
Definition: OwnVector.h:300
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23