test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IterWithDict.cc
Go to the documentation of this file.
2 #include <cassert>
3 
4 namespace edm {
5 
6  void
8  if (atEnd_) {
9  return;
10  }
11  TObject* obj = iter_.Next();
12  if (obj == nullptr) {
13  atEnd_ = true;
14  }
15  }
16 
17  TIter const&
19  return iter_;
20  }
21 
22  IterWithDictBase::IterWithDictBase() : 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  }
28 
29  IterWithDictBase::IterWithDictBase(TList* list) : 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  }
36 
37  bool
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  }
53 
54 } // namespace edm
bool operator!=(IterWithDictBase const &) const
Definition: IterWithDict.cc:38
#define nullptr
TIter const & iter() const
Definition: IterWithDict.cc:18
volatile std::atomic< bool > shutdown_flag false
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