CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
SiStripCalTrackConfigSelector 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
 
const_iterator end () const
 
void select (const edm::Handle< reco::TrackCollection > &c, const edm::Event &evt, const edm::EventSetup &)
 
 SiStripCalTrackConfigSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 
size_t size () const
 

Private Attributes

CalibrationTrackSelector theBaseSelector
 
bool theBaseSwitch
 
container theSelectedTracks
 

Detailed Description

Definition at line 15 of file CalibrationTrackSelectorModule.cc.

Member Typedef Documentation

◆ collection

Definition at line 18 of file CalibrationTrackSelectorModule.cc.

◆ const_iterator

typedef container::const_iterator SiStripCalTrackConfigSelector::const_iterator

Definition at line 17 of file CalibrationTrackSelectorModule.cc.

◆ container

Definition at line 16 of file CalibrationTrackSelectorModule.cc.

Constructor & Destructor Documentation

◆ SiStripCalTrackConfigSelector()

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

Definition at line 20 of file CalibrationTrackSelectorModule.cc.

20  : theBaseSelector(cfg) {
21  // TODO Wrap the BaseSelector into its own PSet
22  theBaseSwitch = cfg.getParameter<bool>("applyBasicCuts") || cfg.getParameter<bool>("minHitsPerSubDet") ||
23  cfg.getParameter<bool>("applyNHighestPt") || cfg.getParameter<bool>("applyMultiplicityFilter");
24  }

References looper::cfg, and theBaseSwitch.

Member Function Documentation

◆ begin()

const_iterator SiStripCalTrackConfigSelector::begin ( ) const
inline

Definition at line 26 of file CalibrationTrackSelectorModule.cc.

26 { return theSelectedTracks.begin(); }

References theSelectedTracks.

◆ end()

const_iterator SiStripCalTrackConfigSelector::end ( ) const
inline

Definition at line 27 of file CalibrationTrackSelectorModule.cc.

27 { return theSelectedTracks.end(); }

References theSelectedTracks.

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

◆ select()

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

Definition at line 30 of file CalibrationTrackSelectorModule.cc.

30  {
31  theSelectedTracks.clear();
32  for (reco::TrackCollection::const_iterator i = c.product()->begin(); i != c.product()->end(); ++i) {
33  theSelectedTracks.push_back(&*i);
34  }
35  // might add EvetSetup to the select(...) method of the Selectors
36  if (theBaseSwitch)
38  }

References c, mps_fire::i, CalibrationTrackSelector::select(), theBaseSelector, theBaseSwitch, and theSelectedTracks.

◆ size()

size_t SiStripCalTrackConfigSelector::size ( void  ) const
inline

Member Data Documentation

◆ theBaseSelector

CalibrationTrackSelector SiStripCalTrackConfigSelector::theBaseSelector
private

Definition at line 44 of file CalibrationTrackSelectorModule.cc.

Referenced by select().

◆ theBaseSwitch

bool SiStripCalTrackConfigSelector::theBaseSwitch
private

Definition at line 43 of file CalibrationTrackSelectorModule.cc.

Referenced by select(), and SiStripCalTrackConfigSelector().

◆ theSelectedTracks

container SiStripCalTrackConfigSelector::theSelectedTracks
private

Definition at line 41 of file CalibrationTrackSelectorModule.cc.

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

SiStripCalTrackConfigSelector::theSelectedTracks
container theSelectedTracks
Definition: CalibrationTrackSelectorModule.cc:41
mps_fire.i
i
Definition: mps_fire.py:428
SiStripCalTrackConfigSelector::theBaseSwitch
bool theBaseSwitch
Definition: CalibrationTrackSelectorModule.cc:43
SiStripCalTrackConfigSelector::theBaseSelector
CalibrationTrackSelector theBaseSelector
Definition: CalibrationTrackSelectorModule.cc:44
looper.cfg
cfg
Definition: looper.py:297
CalibrationTrackSelector::select
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks
Definition: CalibrationTrackSelector.cc:92
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46