CMS 3D CMS Logo

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

#include <MkFitInputWrapper.h>

Public Member Functions

MkFitHitIndexMap const & hitIndexMap () const
 
std::vector< mkfit::HitVec > const & hits () const
 
mkfit::LayerNumberConverter const & layerNumberConverter () const
 
 MkFitInputWrapper ()
 
 MkFitInputWrapper (MkFitHitIndexMap &&hitIndexMap, std::vector< mkfit::HitVec > &&hits, mkfit::TrackVec &&seeds, mkfit::LayerNumberConverter &&lnc)
 
 MkFitInputWrapper (MkFitInputWrapper const &)=delete
 
 MkFitInputWrapper (MkFitInputWrapper &&)
 
unsigned int nlayers () const
 
MkFitInputWrapperoperator= (MkFitInputWrapper const &)=delete
 
MkFitInputWrapperoperator= (MkFitInputWrapper &&)
 
mkfit::TrackVec const & seeds () const
 
 ~MkFitInputWrapper ()
 

Private Attributes

MkFitHitIndexMap hitIndexMap_
 
std::vector< mkfit::HitVechits_
 
std::unique_ptr< mkfit::LayerNumberConverter > lnc_
 
std::unique_ptr< mkfit::TrackVecseeds_
 

Detailed Description

Definition at line 17 of file MkFitInputWrapper.h.

Constructor & Destructor Documentation

MkFitInputWrapper::MkFitInputWrapper ( )
default

Referenced by MkFitInputWrapper().

MkFitInputWrapper::MkFitInputWrapper ( MkFitHitIndexMap &&  hitIndexMap,
std::vector< mkfit::HitVec > &&  hits,
mkfit::TrackVec &&  seeds,
mkfit::LayerNumberConverter &&  lnc 
)

Definition at line 10 of file MkFitInputWrapper.cc.

References hitIndexMap(), hits(), hits_, lnc_, MkFitInputWrapper(), eostools::move(), operator=(), seeds(), seeds_, and ~MkFitInputWrapper().

14  : hitIndexMap_{std::move(hitIndexMap)},
16  seeds_{std::make_unique<mkfit::TrackVec>(std::move(seeds))},
17  lnc_{std::make_unique<mkfit::LayerNumberConverter>(std::move(lnc))} {}
std::unique_ptr< mkfit::TrackVec > seeds_
std::vector< mkfit::HitVec > const & hits() const
mkfit::TrackVec const & seeds() const
MkFitHitIndexMap hitIndexMap_
std::vector< mkfit::HitVec > hits_
def move(src, dest)
Definition: eostools.py:511
std::unique_ptr< mkfit::LayerNumberConverter > lnc_
MkFitInputWrapper::~MkFitInputWrapper ( )
default

Referenced by MkFitInputWrapper().

MkFitInputWrapper::MkFitInputWrapper ( MkFitInputWrapper const &  )
delete
MkFitInputWrapper::MkFitInputWrapper ( MkFitInputWrapper &&  )
default

Member Function Documentation

MkFitHitIndexMap const& MkFitInputWrapper::hitIndexMap ( ) const
inline

Definition at line 31 of file MkFitInputWrapper.h.

Referenced by MkFitInputWrapper().

31 { return hitIndexMap_; }
MkFitHitIndexMap hitIndexMap_
std::vector<mkfit::HitVec> const& MkFitInputWrapper::hits ( void  ) const
inline

Definition at line 33 of file MkFitInputWrapper.h.

Referenced by MkFitInputWrapper().

33 { return hits_; }
std::vector< mkfit::HitVec > hits_
mkfit::LayerNumberConverter const& MkFitInputWrapper::layerNumberConverter ( ) const
inline

Definition at line 34 of file MkFitInputWrapper.h.

References nlayers.

34 { return *lnc_; }
std::unique_ptr< mkfit::LayerNumberConverter > lnc_
unsigned int MkFitInputWrapper::nlayers ( ) const

Definition at line 24 of file MkFitInputWrapper.cc.

References lnc_.

24 { return lnc_->nLayers(); }
std::unique_ptr< mkfit::LayerNumberConverter > lnc_
MkFitInputWrapper& MkFitInputWrapper::operator= ( MkFitInputWrapper const &  )
delete

Referenced by MkFitInputWrapper().

MkFitInputWrapper & MkFitInputWrapper::operator= ( MkFitInputWrapper &&  )
default
mkfit::TrackVec const& MkFitInputWrapper::seeds ( ) const
inline

Definition at line 32 of file MkFitInputWrapper.h.

Referenced by MkFitInputWrapper().

32 { return *seeds_; }
std::unique_ptr< mkfit::TrackVec > seeds_

Member Data Documentation

MkFitHitIndexMap MkFitInputWrapper::hitIndexMap_
private

Definition at line 38 of file MkFitInputWrapper.h.

std::vector<mkfit::HitVec> MkFitInputWrapper::hits_
private

Definition at line 39 of file MkFitInputWrapper.h.

Referenced by MkFitInputWrapper().

std::unique_ptr<mkfit::LayerNumberConverter> MkFitInputWrapper::lnc_
private

Definition at line 41 of file MkFitInputWrapper.h.

Referenced by MkFitInputWrapper(), and nlayers().

std::unique_ptr<mkfit::TrackVec> MkFitInputWrapper::seeds_
private

Definition at line 40 of file MkFitInputWrapper.h.

Referenced by MkFitInputWrapper().