CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
TrackConfigSelector 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 &eSetup)
 
size_t size () const
 
 TrackConfigSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 

Private Attributes

AlignmentTrackSelector theBaseSelector
 
bool theBaseSwitch
 
AlignmentGlobalTrackSelector theGlobalSelector
 
bool theGlobalSwitch
 
container theSelectedTracks
 
AlignmentTwoBodyDecayTrackSelector theTwoBodyDecaySelector
 
bool theTwoBodyDecaySwitch
 

Detailed Description

Definition at line 19 of file AlignmentTrackSelectorModule.cc.

Member Typedef Documentation

◆ collection

Definition at line 22 of file AlignmentTrackSelectorModule.cc.

◆ const_iterator

typedef container::const_iterator TrackConfigSelector::const_iterator

Definition at line 21 of file AlignmentTrackSelectorModule.cc.

◆ container

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

Definition at line 20 of file AlignmentTrackSelectorModule.cc.

Constructor & Destructor Documentation

◆ TrackConfigSelector()

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

Member Function Documentation

◆ begin()

const_iterator TrackConfigSelector::begin ( ) const
inline

Definition at line 36 of file AlignmentTrackSelectorModule.cc.

36 { return theSelectedTracks.begin(); }

References theSelectedTracks.

◆ end()

const_iterator TrackConfigSelector::end ( ) const
inline

Definition at line 37 of file AlignmentTrackSelectorModule.cc.

37 { return theSelectedTracks.end(); }

References theSelectedTracks.

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

◆ select()

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

Definition at line 40 of file AlignmentTrackSelectorModule.cc.

40  {
41  theSelectedTracks.clear();
42  for (reco::TrackCollection::const_iterator i = c.product()->begin(); i != c.product()->end(); ++i) {
43  theSelectedTracks.push_back(&*i);
44  }
45  // might add EvetSetup to the select(...) method of the Selectors
46  if (theBaseSwitch)
48  if (theGlobalSwitch)
52  }

References c, mps_fire::i, AlignmentTwoBodyDecayTrackSelector::select(), AlignmentGlobalTrackSelector::select(), AlignmentTrackSelector::select(), theBaseSelector, theBaseSwitch, theGlobalSelector, theGlobalSwitch, theSelectedTracks, theTwoBodyDecaySelector, and theTwoBodyDecaySwitch.

◆ size()

size_t TrackConfigSelector::size ( void  ) const
inline

Member Data Documentation

◆ theBaseSelector

AlignmentTrackSelector TrackConfigSelector::theBaseSelector
private

Definition at line 58 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

◆ theBaseSwitch

bool TrackConfigSelector::theBaseSwitch
private

Definition at line 57 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

◆ theGlobalSelector

AlignmentGlobalTrackSelector TrackConfigSelector::theGlobalSelector
private

Definition at line 59 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

◆ theGlobalSwitch

bool TrackConfigSelector::theGlobalSwitch
private

Definition at line 57 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

◆ theSelectedTracks

container TrackConfigSelector::theSelectedTracks
private

Definition at line 55 of file AlignmentTrackSelectorModule.cc.

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

◆ theTwoBodyDecaySelector

AlignmentTwoBodyDecayTrackSelector TrackConfigSelector::theTwoBodyDecaySelector
private

Definition at line 60 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

◆ theTwoBodyDecaySwitch

bool TrackConfigSelector::theTwoBodyDecaySwitch
private

Definition at line 57 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

mps_fire.i
i
Definition: mps_fire.py:428
TrackConfigSelector::theGlobalSelector
AlignmentGlobalTrackSelector theGlobalSelector
Definition: AlignmentTrackSelectorModule.cc:59
AlignmentTwoBodyDecayTrackSelector::select
Tracks select(const Tracks &tracks, const edm::Event &iEvent, const edm::EventSetup &iSetup)
select tracks
Definition: AlignmentTwoBoyDecayTrackSelector.cc:78
TrackConfigSelector::theBaseSwitch
bool theBaseSwitch
Definition: AlignmentTrackSelectorModule.cc:57
TrackConfigSelector::theSelectedTracks
container theSelectedTracks
Definition: AlignmentTrackSelectorModule.cc:55
TrackConfigSelector::theTwoBodyDecaySelector
AlignmentTwoBodyDecayTrackSelector theTwoBodyDecaySelector
Definition: AlignmentTrackSelectorModule.cc:60
AlignmentGlobalTrackSelector::useThisFilter
bool useThisFilter()
returns if any of the Filters is used.
Definition: AlignmentGlobalTrackSelector.cc:68
AlignmentTrackSelector::useThisFilter
bool useThisFilter()
returns if any of the Filters is used.
Definition: AlignmentTrackSelector.cc:263
TrackConfigSelector::theGlobalSwitch
bool theGlobalSwitch
Definition: AlignmentTrackSelectorModule.cc:57
edm::ParameterSet
Definition: ParameterSet.h:47
looper.cfg
cfg
Definition: looper.py:297
AlignmentTrackSelector::select
Tracks select(const Tracks &tracks, const edm::Event &evt, const edm::EventSetup &eSetup) const
select tracks
Definition: AlignmentTrackSelector.cc:229
TrackConfigSelector::theBaseSelector
AlignmentTrackSelector theBaseSelector
Definition: AlignmentTrackSelectorModule.cc:58
AlignmentTwoBodyDecayTrackSelector::useThisFilter
bool useThisFilter()
returns if any of the Filters is used.
Definition: AlignmentTwoBoyDecayTrackSelector.cc:72
AlignmentGlobalTrackSelector::select
Tracks select(const Tracks &tracks, const edm::Event &iEvent, const edm::EventSetup &eSetup)
select tracks
Definition: AlignmentGlobalTrackSelector.cc:73
TrackConfigSelector::theTwoBodyDecaySwitch
bool theTwoBodyDecaySwitch
Definition: AlignmentTrackSelectorModule.cc:57
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46