CMS 3D CMS Logo

ProductResolverIndexAndSkipBit.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_ProductResolverIndexAndSkipBit_h
2 #define FWCore_Framework_ProductResolverIndexAndSkipBit_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : edm::ProductResolverIndexAndSkipBit
7 //
20 //
21 // Original Author: W. David Dagenhart
22 // Created: 3 October 2013
23 
25 
26 namespace edm {
27 
29  public:
33  bool specialIndexValue = (value_ & ProductResolverIndexValuesBit) != 0;
34  return specialIndexValue ? value_ | s_skipMask : value_ & ~s_skipMask;
35  }
36  bool skipCurrentProcess() const { return (value_ & s_skipMask) != 0; }
37 
38  bool operator==(ProductResolverIndexAndSkipBit const& r) { return value_ == r.value_; }
39 
40  private:
41  static const unsigned int s_skipMask = 1U << 31;
42 
43  unsigned int value_;
44  };
45 } // namespace edm
46 #endif
edm::ProductResolverIndex
unsigned int ProductResolverIndex
Definition: ProductResolverIndex.h:8
edm::ProductResolverIndexAndSkipBit::operator==
bool operator==(ProductResolverIndexAndSkipBit const &r)
Definition: ProductResolverIndexAndSkipBit.h:38
edm::ProductResolverIndexAndSkipBit
Definition: ProductResolverIndexAndSkipBit.h:28
edm
HLT enums.
Definition: AlignableModifier.h:19
ProductResolverIndex.h
edm::ProductResolverIndexAndSkipBit::productResolverIndex
ProductResolverIndex productResolverIndex() const
Definition: ProductResolverIndexAndSkipBit.h:32
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
edm::ProductResolverIndexAndSkipBit::ProductResolverIndexAndSkipBit
ProductResolverIndexAndSkipBit(ProductResolverIndex productResolverIndex, bool skipCurrentProcess)
Definition: ProductResolverIndexAndSkipBit.h:30
alignCSCRings.r
r
Definition: alignCSCRings.py:93
edm::ProductResolverIndexAndSkipBit::value_
unsigned int value_
Definition: ProductResolverIndexAndSkipBit.h:43
edm::ProductResolverIndexValuesBit
Definition: ProductResolverIndex.h:14
edm::ProductResolverIndexAndSkipBit::skipCurrentProcess
bool skipCurrentProcess() const
Definition: ProductResolverIndexAndSkipBit.h:36
edm::ProductResolverIndexAndSkipBit::s_skipMask
static const unsigned int s_skipMask
Definition: ProductResolverIndexAndSkipBit.h:41