CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
reco::parser::CutSetter Struct Reference

#include <CutSetter.h>

Public Member Functions

 CutSetter (SelectorPtr &cut, SelectorStack &selStack)
 
void operator() (const char *, const char *) const
 

Public Attributes

SelectorPtrcut_
 
SelectorStackselStack_
 

Detailed Description

Definition at line 19 of file CutSetter.h.

Constructor & Destructor Documentation

◆ CutSetter()

reco::parser::CutSetter::CutSetter ( SelectorPtr cut,
SelectorStack selStack 
)
inline

Definition at line 20 of file CutSetter.h.

20 : cut_(cut), selStack_(selStack) {}

Member Function Documentation

◆ operator()()

void reco::parser::CutSetter::operator() ( const char *  ,
const char *   
) const
inline

Definition at line 22 of file CutSetter.h.

22  {
23  assert(nullptr == cut_.get());
24  assert(!selStack_.empty());
25  cut_ = selStack_.back();
26  selStack_.pop_back();
27  }

References cms::cuda::assert(), cut_, and selStack_.

Member Data Documentation

◆ cut_

SelectorPtr& reco::parser::CutSetter::cut_

Definition at line 28 of file CutSetter.h.

Referenced by operator()().

◆ selStack_

SelectorStack& reco::parser::CutSetter::selStack_

Definition at line 29 of file CutSetter.h.

Referenced by operator()().

reco::parser::CutSetter::selStack_
SelectorStack & selStack_
Definition: CutSetter.h:29
TkAlMuonSelectors_cfi.cut
cut
Definition: TkAlMuonSelectors_cfi.py:5
cms::cuda::assert
assert(be >=bs)
reco::parser::CutSetter::cut_
SelectorPtr & cut_
Definition: CutSetter.h:28