CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

CSCBeamHaloConfigSelector 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
 CSCBeamHaloConfigSelector (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_
AlignmentCSCBeamHaloSelector theSelector

Detailed Description

Definition at line 12 of file AlignmentCSCBeamHaloSelectorModule.cc.


Member Typedef Documentation

Definition at line 16 of file AlignmentCSCBeamHaloSelectorModule.cc.

typedef container::const_iterator CSCBeamHaloConfigSelector::const_iterator

Definition at line 15 of file AlignmentCSCBeamHaloSelectorModule.cc.

Definition at line 14 of file AlignmentCSCBeamHaloSelectorModule.cc.


Constructor & Destructor Documentation

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

Definition at line 18 of file AlignmentCSCBeamHaloSelectorModule.cc.

                                                           :
    theSelector(cfg) {}

Member Function Documentation

const_iterator CSCBeamHaloConfigSelector::begin ( ) const [inline]

Definition at line 21 of file AlignmentCSCBeamHaloSelectorModule.cc.

References selected_.

{ return selected_.begin(); }
const_iterator CSCBeamHaloConfigSelector::end ( ) const [inline]

Definition at line 22 of file AlignmentCSCBeamHaloSelectorModule.cc.

References selected_.

{ return selected_.end(); }
void CSCBeamHaloConfigSelector::select ( const edm::Handle< reco::TrackCollection > &  c,
const edm::Event evt,
const edm::EventSetup  
) [inline]

Definition at line 25 of file AlignmentCSCBeamHaloSelectorModule.cc.

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

  {
    all_.clear();
    selected_.clear();
    for (collection::const_iterator i = c.product()->begin(), iE = c.product()->end();
         i != iE; ++i){
      all_.push_back(& * i );
    }
    selected_ = theSelector.select(all_, evt); // might add dummy...
  }
size_t CSCBeamHaloConfigSelector::size ( void  ) const [inline]

Definition at line 23 of file AlignmentCSCBeamHaloSelectorModule.cc.

References selected_.

{ return selected_.size(); }

Member Data Documentation

Definition at line 38 of file AlignmentCSCBeamHaloSelectorModule.cc.

Referenced by select().

Definition at line 38 of file AlignmentCSCBeamHaloSelectorModule.cc.

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

Definition at line 39 of file AlignmentCSCBeamHaloSelectorModule.cc.

Referenced by select().