Main Page
Namespaces
Classes
Package Documentation
FWCore
Framework
interface
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
24
#include "
FWCore/Utilities/interface/ProductResolverIndex.h
"
25
26
namespace
edm
{
27
28
class
ProductResolverIndexAndSkipBit
{
29
public
:
30
ProductResolverIndexAndSkipBit
(
ProductResolverIndex
productResolverIndex
,
bool
skipCurrentProcess
)
31
:
value_
(skipCurrentProcess ?
s_skipMask
| productResolverIndex : ~
s_skipMask
& productResolverIndex) {}
32
ProductResolverIndex
productResolverIndex
()
const
{
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
= 1
U
<< 31;
42
43
unsigned
int
value_
;
44
};
45
}
// namespace edm
46
#endif
edm::ProductResolverIndexAndSkipBit::s_skipMask
static const unsigned int s_skipMask
Definition:
ProductResolverIndexAndSkipBit.h:41
edm::ProductResolverIndex
unsigned int ProductResolverIndex
Definition:
ProductResolverIndex.h:8
edm::ProductResolverIndexAndSkipBit::operator==
bool operator==(ProductResolverIndexAndSkipBit const &r)
Definition:
ProductResolverIndexAndSkipBit.h:38
mitigatedMETSequence_cff.U
U
Definition:
mitigatedMETSequence_cff.py:36
edm::ProductResolverIndexAndSkipBit::skipCurrentProcess
bool skipCurrentProcess() const
Definition:
ProductResolverIndexAndSkipBit.h:36
edm::ProductResolverIndexAndSkipBit::value_
unsigned int value_
Definition:
ProductResolverIndexAndSkipBit.h:43
ProductResolverIndex.h
edm::ProductResolverIndexAndSkipBit
Definition:
ProductResolverIndexAndSkipBit.h:28
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
edm::ProductResolverIndexAndSkipBit::productResolverIndex
ProductResolverIndex productResolverIndex() const
Definition:
ProductResolverIndexAndSkipBit.h:32
edm::ProductResolverIndexAndSkipBit::ProductResolverIndexAndSkipBit
ProductResolverIndexAndSkipBit(ProductResolverIndex productResolverIndex, bool skipCurrentProcess)
Definition:
ProductResolverIndexAndSkipBit.h:30
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ProductResolverIndexValuesBit
Definition:
ProductResolverIndex.h:14
Generated for CMSSW Reference Manual by
1.8.11