CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes
CSCBeamHaloConfigSelector 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
 
 CSCBeamHaloConfigSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 
 CSCBeamHaloConfigSelector (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

container all_
 
container selected_
 
AlignmentCSCBeamHaloSelector theSelector
 

Detailed Description

Definition at line 13 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.

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

Definition at line 14 of file AlignmentCSCBeamHaloSelectorModule.cc.

Constructor & Destructor Documentation

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

Definition at line 18 of file AlignmentCSCBeamHaloSelectorModule.cc.

19  : CSCBeamHaloConfigSelector(cfg, iC) {}
CSCBeamHaloConfigSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
CSCBeamHaloConfigSelector::CSCBeamHaloConfigSelector ( const edm::ParameterSet cfg,
edm::ConsumesCollector iC 
)
inline

Definition at line 20 of file AlignmentCSCBeamHaloSelectorModule.cc.

20 : theSelector(cfg, iC) {}
AlignmentCSCBeamHaloSelector theSelector

Member Function Documentation

const_iterator CSCBeamHaloConfigSelector::begin ( ) const
inline

Definition at line 22 of file AlignmentCSCBeamHaloSelectorModule.cc.

References selected_.

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

Definition at line 26 of file AlignmentCSCBeamHaloSelectorModule.cc.

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

26  {
27  all_.clear();
28  selected_.clear();
29  for (collection::const_iterator i = c.product()->begin(), iE = c.product()->end(); i != iE; ++i) {
30  all_.push_back(&*i);
31  }
32  selected_ = theSelector.select(all_, evt); // might add dummy...
33  }
AlignmentCSCBeamHaloSelector theSelector
Tracks select(const Tracks &tracks, const edm::Event &iEvent) const
select tracks
T const * product() const
Definition: Handle.h:70
size_t CSCBeamHaloConfigSelector::size ( void  ) const
inline

Member Data Documentation

container CSCBeamHaloConfigSelector::all_
private

Definition at line 36 of file AlignmentCSCBeamHaloSelectorModule.cc.

Referenced by select().

container CSCBeamHaloConfigSelector::selected_
private

Definition at line 36 of file AlignmentCSCBeamHaloSelectorModule.cc.

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

AlignmentCSCBeamHaloSelector CSCBeamHaloConfigSelector::theSelector
private

Definition at line 37 of file AlignmentCSCBeamHaloSelectorModule.cc.

Referenced by select().