Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
DataFormats
EgammaReco
interface
EgammaTrigger.h
Go to the documentation of this file.
1
#ifndef EgammaReco_EgammaTrigger_h
2
#define EgammaReco_EgammaTrigger_h
3
11
#include "
DataFormats/EgammaReco/interface/EgammaTriggerFwd.h
"
12
13
namespace
reco
{
14
15
class
SuperCluster;
16
17
namespace
egamma {
18
enum
{
L1Single
= 0,
L1Double
,
L1RelaxedDouble
,
IsolatedL1
};
19
template
<
unsigned
char
L1>
20
struct
mask
{
21
enum
{
value
=
mask
<
L1
- 1>
::value
<< 1 };
22
};
23
template
<>
24
struct
mask
<0> {
25
enum
{
value
= 1 };
26
};
27
}
// namespace egamma
28
29
class
EgammaTrigger
{
30
public
:
32
EgammaTrigger
() :
l1word_
(0) {}
33
35
EgammaTrigger
(
bool
,
bool
,
bool
,
bool
);
36
39
template
<
unsigned
char
L1>
40
bool
match
() {
41
return
l1word_
&
egamma::mask<L1>::value
;
42
}
43
46
template
<
unsigned
char
L1>
47
void
set
() {
48
l1word_
|=
egamma::mask<L1>::value
;
49
}
50
52
unsigned
char
l1word
()
const
{
return
l1word_
; }
53
54
private
:
56
unsigned
char
l1word_
;
57
};
58
}
// namespace reco
59
60
#endif
reco::egamma::L1RelaxedDouble
Definition:
EgammaTrigger.h:18
reco::egamma::L1Double
Definition:
EgammaTrigger.h:18
reco::egamma::mask::value
Definition:
EgammaTrigger.h:21
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:111
reco::EgammaTrigger::set
void set()
Definition:
EgammaTrigger.h:47
reco::egamma::IsolatedL1
Definition:
EgammaTrigger.h:18
reco::EgammaTrigger::match
bool match()
Definition:
EgammaTrigger.h:40
reco::EgammaTrigger::l1word_
unsigned char l1word_
trigger work (packed). Only 4 bits are used.
Definition:
EgammaTrigger.h:56
reco::egamma::mask
Definition:
EgammaTrigger.h:20
reco::EgammaTrigger::EgammaTrigger
EgammaTrigger()
default constructor
Definition:
EgammaTrigger.h:32
reco::EgammaTrigger::l1word
unsigned char l1word() const
return the trigger work
Definition:
EgammaTrigger.h:52
PixelRegions::L1
Definition:
PixelRegionContainers.h:32
reco::egamma::L1Single
Definition:
EgammaTrigger.h:18
reco::EgammaTrigger
Definition:
EgammaTrigger.h:29
EgammaTriggerFwd.h
Generated for CMSSW Reference Manual by
1.8.5