CMS 3D CMS Logo

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

Definition at line 23 of file AlignmentTrackSelectorModule.cc.

typedef container::const_iterator TrackConfigSelector::const_iterator

Definition at line 22 of file AlignmentTrackSelectorModule.cc.

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

Definition at line 21 of file AlignmentTrackSelectorModule.cc.

Constructor & Destructor Documentation

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

Definition at line 25 of file AlignmentTrackSelectorModule.cc.

References theBaseSelector, theBaseSwitch, theGlobalSelector, theGlobalSwitch, theTwoBodyDecaySelector, theTwoBodyDecaySwitch, AlignmentTwoBodyDecayTrackSelector::useThisFilter(), AlignmentGlobalTrackSelector::useThisFilter(), and AlignmentTrackSelector::useThisFilter().

25  :
26  theBaseSelector(cfg, iC),
27  theGlobalSelector(cfg.getParameter<edm::ParameterSet>("GlobalSelector"), iC),
28  theTwoBodyDecaySelector(cfg.getParameter<edm::ParameterSet>("TwoBodyDecaySelector"), iC)
29  {
30  //TODO Wrap the BaseSelector into its own PSet
32 
34 
36  }
T getParameter(std::string const &) const
AlignmentTwoBodyDecayTrackSelector theTwoBodyDecaySelector
bool useThisFilter()
returns if any of the Filters is used.
AlignmentGlobalTrackSelector theGlobalSelector
AlignmentTrackSelector theBaseSelector
bool useThisFilter()
returns if any of the Filters is used.
bool useThisFilter()
returns if any of the Filters is used.

Member Function Documentation

const_iterator TrackConfigSelector::begin ( ) const
inline

Definition at line 38 of file AlignmentTrackSelectorModule.cc.

References theSelectedTracks.

38 { return theSelectedTracks.begin(); }
const_iterator TrackConfigSelector::end ( ) const
inline
void TrackConfigSelector::select ( const edm::Handle< reco::TrackCollection > &  c,
const edm::Event evt,
const edm::EventSetup eSetup 
)
inline

Definition at line 42 of file AlignmentTrackSelectorModule.cc.

References i, edm::Handle< T >::product(), AlignmentTwoBodyDecayTrackSelector::select(), AlignmentGlobalTrackSelector::select(), AlignmentTrackSelector::select(), theBaseSelector, theBaseSwitch, theGlobalSelector, theGlobalSwitch, theSelectedTracks, theTwoBodyDecaySelector, and theTwoBodyDecaySwitch.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), and Vispa.Views.AbstractView.AbstractView::restoreSelection().

44  {
45  theSelectedTracks.clear();
46  for( reco::TrackCollection::const_iterator i=c.product()->begin();i!=c.product()->end();++i){
47  theSelectedTracks.push_back(& * i );
48  }
49  // might add EvetSetup to the select(...) method of the Selectors
50  if(theBaseSwitch)
52  if(theGlobalSwitch)
56  }
int i
Definition: DBlmapReader.cc:9
AlignmentTwoBodyDecayTrackSelector theTwoBodyDecaySelector
Tracks select(const Tracks &tracks, const edm::Event &iEvent, const edm::EventSetup &eSetup)
select tracks
AlignmentGlobalTrackSelector theGlobalSelector
Tracks select(const Tracks &tracks, const edm::Event &iEvent, const edm::EventSetup &iSetup)
select tracks
T const * product() const
Definition: Handle.h:81
AlignmentTrackSelector theBaseSelector
Tracks select(const Tracks &tracks, const edm::Event &evt, const edm::EventSetup &eSetup) const
select tracks
size_t TrackConfigSelector::size ( void  ) const
inline

Definition at line 40 of file AlignmentTrackSelectorModule.cc.

References theSelectedTracks.

40 { return theSelectedTracks.size(); }

Member Data Documentation

AlignmentTrackSelector TrackConfigSelector::theBaseSelector
private

Definition at line 62 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

bool TrackConfigSelector::theBaseSwitch
private

Definition at line 61 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

AlignmentGlobalTrackSelector TrackConfigSelector::theGlobalSelector
private

Definition at line 63 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

bool TrackConfigSelector::theGlobalSwitch
private

Definition at line 61 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

container TrackConfigSelector::theSelectedTracks
private

Definition at line 59 of file AlignmentTrackSelectorModule.cc.

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

AlignmentTwoBodyDecayTrackSelector TrackConfigSelector::theTwoBodyDecaySelector
private

Definition at line 64 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().

bool TrackConfigSelector::theTwoBodyDecaySwitch
private

Definition at line 61 of file AlignmentTrackSelectorModule.cc.

Referenced by select(), and TrackConfigSelector().