test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IterWithDict.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_IterWithDict_h
2 #define FWCore_Utilities_IterWithDict_h
3 
4 /*----------------------------------------------------------------------
5 
6 IterWithDict: An iterator for a TList so a range for loop can be used
7 
8 ----------------------------------------------------------------------*/
9 
10 #include "TList.h"
11 
12 namespace edm {
13 
15 private:
16  TIter iter_;
17  bool atEnd_;
18 protected:
19  void advance();
20  TIter const& iter() const;
21 public:
23  explicit IterWithDictBase(TList*);
24  bool operator!=(IterWithDictBase const&) const;
25 };
26 
27 template<typename T>
29 public:
31  explicit IterWithDict(TList* list) : IterWithDictBase(list) {}
33  advance();
34  return *this;
35  }
36  T* operator*() const {
37  return static_cast<T*>(*iter());
38  }
39 };
40 
41 } // namespace edm
42 
43 #endif // FWCore_Utilities_IterWithDict_h
T * operator*() const
Definition: IterWithDict.h:36
bool operator!=(IterWithDictBase const &) const
Definition: IterWithDict.cc:38
IterWithDict(TList *list)
Definition: IterWithDict.h:31
TIter const & iter() const
Definition: IterWithDict.cc:18
IterWithDict< T > & operator++()
Definition: IterWithDict.h:32
long double T
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