CMS 3D CMS Logo

CSCOverlapConfigSelector Struct Reference

List of all members.

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
 CSCOverlapConfigSelector (const edm::ParameterSet &cfg)
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

container all_
container selected_
AlignmentCSCOverlapSelector theSelector


Detailed Description

Definition at line 12 of file AlignmentCSCOverlapSelectorModule.cc.


Member Typedef Documentation

typedef reco::TrackCollection CSCOverlapConfigSelector::collection

Definition at line 16 of file AlignmentCSCOverlapSelectorModule.cc.

typedef container::const_iterator CSCOverlapConfigSelector::const_iterator

Definition at line 15 of file AlignmentCSCOverlapSelectorModule.cc.

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

Definition at line 14 of file AlignmentCSCOverlapSelectorModule.cc.


Constructor & Destructor Documentation

CSCOverlapConfigSelector::CSCOverlapConfigSelector ( const edm::ParameterSet cfg  )  [inline]

Definition at line 18 of file AlignmentCSCOverlapSelectorModule.cc.

00018                                                           :
00019     theSelector(cfg) {}


Member Function Documentation

const_iterator CSCOverlapConfigSelector::begin (  )  const [inline]

Definition at line 21 of file AlignmentCSCOverlapSelectorModule.cc.

References selected_.

00021 { return selected_.begin(); }

const_iterator CSCOverlapConfigSelector::end (  )  const [inline]

Definition at line 22 of file AlignmentCSCOverlapSelectorModule.cc.

References selected_.

00022 { return selected_.end(); }

void CSCOverlapConfigSelector::select ( const edm::Handle< reco::TrackCollection > &  c,
const edm::Event evt,
const edm::EventSetup  
) [inline]

Definition at line 25 of file AlignmentCSCOverlapSelectorModule.cc.

References all_, i, edm::Handle< T >::product(), AlignmentCSCOverlapSelector::select(), selected_, and theSelector.

00027   {
00028     all_.clear();
00029     selected_.clear();
00030     for (collection::const_iterator i = c.product()->begin(), iE = c.product()->end();
00031          i != iE; ++i){
00032       all_.push_back(& * i );
00033     }
00034     selected_ = theSelector.select(all_, evt); // might add dummy...
00035   }

size_t CSCOverlapConfigSelector::size ( void   )  const [inline]

Definition at line 23 of file AlignmentCSCOverlapSelectorModule.cc.

References selected_.

00023 { return selected_.size(); }


Member Data Documentation

container CSCOverlapConfigSelector::all_ [private]

Definition at line 38 of file AlignmentCSCOverlapSelectorModule.cc.

Referenced by select().

container CSCOverlapConfigSelector::selected_ [private]

Definition at line 38 of file AlignmentCSCOverlapSelectorModule.cc.

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

AlignmentCSCOverlapSelector CSCOverlapConfigSelector::theSelector [private]

Definition at line 39 of file AlignmentCSCOverlapSelectorModule.cc.

Referenced by select().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:17:24 2009 for CMSSW by  doxygen 1.5.4