test
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 *)
 
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 22 of file IterWithDict.cc.

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

Definition at line 29 of file IterWithDict.cc.

References atEnd_, iter_, and getGTfromDQMFile::obj.

29  : iter_(list), atEnd_(false) {
30  // With a TIter, you must call Next() once to point to the first element.
31  TObject* obj = iter_.Next();
32  if (obj == nullptr) {
33  atEnd_ = true;
34  }
35  }
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 7 of file IterWithDict.cc.

References atEnd_, iter_, and getGTfromDQMFile::obj.

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

7  {
8  if (atEnd_) {
9  return;
10  }
11  TObject* obj = iter_.Next();
12  if (obj == nullptr) {
13  atEnd_ = true;
14  }
15  }
TIter const & edm::IterWithDictBase::iter ( ) const
protected

Definition at line 18 of file IterWithDict.cc.

References iter_.

Referenced by edm::IterWithDict< T >::operator*().

18  {
19  return iter_;
20  }
bool edm::IterWithDictBase::operator!= ( IterWithDictBase const &  rhs) const

Definition at line 38 of file IterWithDict.cc.

References atEnd_, and iter_.

38  {
39  // The special cases are needed because TIter::operator!=()
40  // dereferences a null pointer (i.e. segfaults) if the left hand TIter
41  // was constucted with a nullptr argument (the first constructor above).
42  if (atEnd_ != rhs.atEnd_) {
43  // one iterator at end, but not both
44  return true;
45  }
46  if (atEnd_) {
47  // both iterators at end
48  return false;
49  }
50  // neither iterator at end
51  return iter_ != rhs.iter_;
52  }

Member Data Documentation

bool edm::IterWithDictBase::atEnd_
private

Definition at line 17 of file IterWithDict.h.

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

TIter edm::IterWithDictBase::iter_
private

Definition at line 16 of file IterWithDict.h.

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