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