CMS 3D CMS Logo

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

◆ collection

Definition at line 16 of file AlignmentCSCBeamHaloSelectorModule.cc.

◆ const_iterator

typedef container::const_iterator CSCBeamHaloConfigSelector::const_iterator

Definition at line 15 of file AlignmentCSCBeamHaloSelectorModule.cc.

◆ container

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

Definition at line 14 of file AlignmentCSCBeamHaloSelectorModule.cc.

Constructor & Destructor Documentation

◆ CSCBeamHaloConfigSelector() [1/2]

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

Definition at line 18 of file AlignmentCSCBeamHaloSelectorModule.cc.

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

◆ CSCBeamHaloConfigSelector() [2/2]

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

◆ begin()

const_iterator CSCBeamHaloConfigSelector::begin ( ) const
inline

Definition at line 22 of file AlignmentCSCBeamHaloSelectorModule.cc.

References selected_.

22 { return selected_.begin(); }

◆ end()

const_iterator CSCBeamHaloConfigSelector::end ( ) const
inline

◆ select()

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_, HltBtagPostValidation_cff::c, mps_fire::i, 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  }
Tracks select(const Tracks &tracks, const edm::Event &iEvent) const
select tracks
AlignmentCSCBeamHaloSelector theSelector

◆ size()

size_t CSCBeamHaloConfigSelector::size ( void  ) const
inline

Member Data Documentation

◆ all_

container CSCBeamHaloConfigSelector::all_
private

Definition at line 36 of file AlignmentCSCBeamHaloSelectorModule.cc.

Referenced by select().

◆ selected_

container CSCBeamHaloConfigSelector::selected_
private

Definition at line 36 of file AlignmentCSCBeamHaloSelectorModule.cc.

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

◆ theSelector

AlignmentCSCBeamHaloSelector CSCBeamHaloConfigSelector::theSelector
private

Definition at line 37 of file AlignmentCSCBeamHaloSelectorModule.cc.

Referenced by select().