CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
edm::IterWithDictBase Class Reference

#include <IterWithDict.h>

Inheritance diagram for edm::IterWithDictBase:
edm::IterWithDict< T >

Public Member Functions

 IterWithDictBase ()
 
 IterWithDictBase (TList *list)
 
bool operator!= (IterWithDictBase const &) const
 

Protected Member Functions

void advance ()
 
TIter const & iter () const
 

Private Attributes

bool atEnd_
 
TIter iter_
 

Detailed Description

Definition at line 14 of file IterWithDict.h.

Constructor & Destructor Documentation

edm::IterWithDictBase::IterWithDictBase ( )

Definition at line 6 of file IterWithDict.cc.

6  : iter_(static_cast<TList*>(nullptr)), atEnd_(true) {
7  // This ctor is used by the framework for the end of a range,
8  // or for any type that does not have a TClass.
9  // An iterator constructed by this ctor must not be used
10  // as the left hand argument of operator!=().
11  }
edm::IterWithDictBase::IterWithDictBase ( TList *  list)
explicit

Definition at line 13 of file IterWithDict.cc.

References advance().

13  : iter_(list), atEnd_(false) {
14  // With a TIter, you must call Next() once to point to the first element.
15  advance();
16  }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run

Member Function Documentation

void edm::IterWithDictBase::advance ( )
protected

Definition at line 35 of file IterWithDict.cc.

References atEnd_, iter_, and getGTfromDQMFile::obj.

Referenced by IterWithDictBase(), and edm::IterWithDict< T >::operator++().

35  {
36  if(!atEnd_) {
37  TObject* obj = iter_.Next();
38  if(obj == nullptr) atEnd_ = true;
39  }
40  }
TIter const & edm::IterWithDictBase::iter ( ) const
protected

Definition at line 43 of file IterWithDict.cc.

References iter_.

Referenced by operator!=(), and edm::IterWithDict< T >::operator*().

43  {
44  return iter_;
45  }
bool edm::IterWithDictBase::operator!= ( IterWithDictBase const &  other) const

Definition at line 19 of file IterWithDict.cc.

References atEnd_, and iter().

19  {
20  // The special cases are needed because TIter::operator!=()
21  // dereferences a null pointer (i.e. segfaults) if the left hand TIter
22  // was constucted with a nullptr argument (the first constructor above).
23  if(atEnd_ != other.atEnd_) {
24  // one iterator at end, but not both
25  return true;
26  } else if(atEnd_) {
27  // both iterators at end
28  return false;
29  }
30  // neither iterator at end
31  return iter() != other.iter();
32  }
TIter const & iter() const
Definition: IterWithDict.cc:43

Member Data Documentation

bool edm::IterWithDictBase::atEnd_
private

Definition at line 26 of file IterWithDict.h.

Referenced by advance(), and operator!=().

TIter edm::IterWithDictBase::iter_
private

Definition at line 25 of file IterWithDict.h.

Referenced by advance(), and iter().