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() [2/2]

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

Definition at line 20 of file AlignmentCSCBeamHaloSelectorModule.cc.

20 : theSelector(cfg, iC) {}

Member Function Documentation

◆ begin()

const_iterator CSCBeamHaloConfigSelector::begin ( ) const
inline

Definition at line 22 of file AlignmentCSCBeamHaloSelectorModule.cc.

22 { return selected_.begin(); }

References selected_.

◆ end()

const_iterator CSCBeamHaloConfigSelector::end ( ) const
inline

Definition at line 23 of file AlignmentCSCBeamHaloSelectorModule.cc.

23 { return selected_.end(); }

References selected_.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

◆ 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.

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  }

References all_, HltBtagPostValidation_cff::c, mps_fire::i, AlignmentCSCBeamHaloSelector::select(), selected_, and 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().

mps_fire.i
i
Definition: mps_fire.py:428
CSCBeamHaloConfigSelector::CSCBeamHaloConfigSelector
CSCBeamHaloConfigSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
Definition: AlignmentCSCBeamHaloSelectorModule.cc:18
CSCBeamHaloConfigSelector::theSelector
AlignmentCSCBeamHaloSelector theSelector
Definition: AlignmentCSCBeamHaloSelectorModule.cc:37
CSCBeamHaloConfigSelector::selected_
container selected_
Definition: AlignmentCSCBeamHaloSelectorModule.cc:36
AlignmentCSCBeamHaloSelector::select
Tracks select(const Tracks &tracks, const edm::Event &iEvent) const
select tracks
Definition: AlignmentCSCBeamHaloSelector.cc:28
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
looper.cfg
cfg
Definition: looper.py:297
CSCBeamHaloConfigSelector::all_
container all_
Definition: AlignmentCSCBeamHaloSelectorModule.cc:36