CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
CSCTrackConfigSelector 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
 
 CSCTrackConfigSelector (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

AlignmentCSCTrackSelector theBaseSelector
 
container theSelectedTracks
 

Detailed Description

Definition at line 17 of file AlignmentCSCTrackSelectorModule.cc.

Member Typedef Documentation

◆ collection

Definition at line 20 of file AlignmentCSCTrackSelectorModule.cc.

◆ const_iterator

typedef container::const_iterator CSCTrackConfigSelector::const_iterator

Definition at line 19 of file AlignmentCSCTrackSelectorModule.cc.

◆ container

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

Definition at line 18 of file AlignmentCSCTrackSelectorModule.cc.

Constructor & Destructor Documentation

◆ CSCTrackConfigSelector()

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

Definition at line 22 of file AlignmentCSCTrackSelectorModule.cc.

22 : theBaseSelector(cfg) {}

Member Function Documentation

◆ begin()

const_iterator CSCTrackConfigSelector::begin ( ) const
inline

Definition at line 24 of file AlignmentCSCTrackSelectorModule.cc.

24 { return theSelectedTracks.begin(); }

References theSelectedTracks.

◆ end()

const_iterator CSCTrackConfigSelector::end ( ) const
inline

Definition at line 25 of file AlignmentCSCTrackSelectorModule.cc.

25 { return theSelectedTracks.end(); }

References theSelectedTracks.

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

◆ select()

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

Definition at line 28 of file AlignmentCSCTrackSelectorModule.cc.

28  {
29  container all;
30  for (reco::TrackCollection::const_iterator i = c.product()->begin(); i != c.product()->end(); ++i) {
31  all.push_back(&*i);
32  }
33  theSelectedTracks = theBaseSelector.select(all, evt); // might add dummy
34  }

References python.cmstools::all(), c, mps_fire::i, AlignmentCSCTrackSelector::select(), theBaseSelector, and theSelectedTracks.

◆ size()

size_t CSCTrackConfigSelector::size ( void  ) const
inline

Member Data Documentation

◆ theBaseSelector

AlignmentCSCTrackSelector CSCTrackConfigSelector::theBaseSelector
private

Definition at line 39 of file AlignmentCSCTrackSelectorModule.cc.

Referenced by select().

◆ theSelectedTracks

container CSCTrackConfigSelector::theSelectedTracks
private

Definition at line 37 of file AlignmentCSCTrackSelectorModule.cc.

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

mps_fire.i
i
Definition: mps_fire.py:428
AlignmentCSCTrackSelector::select
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks
Definition: AlignmentCSCTrackSelector.cc:29
python.cmstools.all
def all(container)
workaround iterator generators for ROOT classes
Definition: cmstools.py:25
CSCTrackConfigSelector::container
std::vector< const reco::Track * > container
Definition: AlignmentCSCTrackSelectorModule.cc:18
looper.cfg
cfg
Definition: looper.py:296
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
CSCTrackConfigSelector::theBaseSelector
AlignmentCSCTrackSelector theBaseSelector
Definition: AlignmentCSCTrackSelectorModule.cc:39
CSCTrackConfigSelector::theSelectedTracks
container theSelectedTracks
Definition: AlignmentCSCTrackSelectorModule.cc:37