CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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.

References looper::cfg, and theBaseSwitch.

20  : theBaseSelector(cfg, iC) {
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  }

Member Function Documentation

◆ begin()

const_iterator SiStripCalTrackConfigSelector::begin ( ) const
inline

Definition at line 26 of file CalibrationTrackSelectorModule.cc.

References theSelectedTracks.

◆ end()

const_iterator SiStripCalTrackConfigSelector::end ( ) const
inline

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

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

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  }
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks

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