CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
CSCTrackConfigSelector Struct Reference

Public Types

typedef reco::TrackCollection collection
 
typedef container::const_iterator const_iterator
 
typedef std::vector< const
reco::Track * > 
container
 

Public Member Functions

const_iterator begin () const
 
 CSCTrackConfigSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 
const_iterator end () const
 
void select (const edm::Handle< reco::TrackCollection > &c, const edm::Event &evt, const edm::EventSetup &)
 
size_t size () const
 

Private Attributes

AlignmentCSCTrackSelector theBaseSelector
 
container theSelectedTracks
 

Detailed Description

Definition at line 17 of file AlignmentCSCTrackSelectorModule.cc.

Member Typedef Documentation

Definition at line 21 of file AlignmentCSCTrackSelectorModule.cc.

typedef container::const_iterator CSCTrackConfigSelector::const_iterator

Definition at line 20 of file AlignmentCSCTrackSelectorModule.cc.

typedef std::vector<const reco::Track*> CSCTrackConfigSelector::container

Definition at line 19 of file AlignmentCSCTrackSelectorModule.cc.

Constructor & Destructor Documentation

CSCTrackConfigSelector::CSCTrackConfigSelector ( const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 23 of file AlignmentCSCTrackSelectorModule.cc.

23 : theBaseSelector(cfg) {}
AlignmentCSCTrackSelector theBaseSelector

Member Function Documentation

const_iterator CSCTrackConfigSelector::begin ( ) const
inline

Definition at line 25 of file AlignmentCSCTrackSelectorModule.cc.

References theSelectedTracks.

25 { return theSelectedTracks.begin(); }
const_iterator CSCTrackConfigSelector::end ( ) const
inline
void CSCTrackConfigSelector::select ( const edm::Handle< reco::TrackCollection > &  c,
const edm::Event evt,
const edm::EventSetup  
)
inline

Definition at line 29 of file AlignmentCSCTrackSelectorModule.cc.

References cond::ecalcond::all, i, edm::Handle< T >::product(), AlignmentCSCTrackSelector::select(), theBaseSelector, and theSelectedTracks.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), and Vispa.Views.AbstractView.AbstractView::restoreSelection().

30  {
31  container all;
32  for( reco::TrackCollection::const_iterator i=c.product()->begin();i!=c.product()->end();++i){
33  all.push_back(& * i );
34  }
35  theSelectedTracks = theBaseSelector.select(all, evt); // might add dummy
36  }
int i
Definition: DBlmapReader.cc:9
T const * product() const
Definition: Handle.h:81
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks
AlignmentCSCTrackSelector theBaseSelector
std::vector< const reco::Track * > container
size_t CSCTrackConfigSelector::size ( void  ) const
inline

Definition at line 27 of file AlignmentCSCTrackSelectorModule.cc.

References theSelectedTracks.

27 { return theSelectedTracks.size(); }

Member Data Documentation

AlignmentCSCTrackSelector CSCTrackConfigSelector::theBaseSelector
private

Definition at line 41 of file AlignmentCSCTrackSelectorModule.cc.

Referenced by select().

container CSCTrackConfigSelector::theSelectedTracks
private

Definition at line 39 of file AlignmentCSCTrackSelectorModule.cc.

Referenced by begin(), end(), select(), and size().