Main Page
Namespaces
Classes
Package Documentation
src
L1Trigger
L1TMuonEndCap
interface
EMTFGEMDetIdImpl.h
Go to the documentation of this file.
1
#ifndef L1TMuonEndCap_EMTFGEMDetIdImpl_h
2
#define L1TMuonEndCap_EMTFGEMDetIdImpl_h
3
4
#include "
DataFormats/MuonDetId/interface/GEMDetId.h
"
5
#include "
DataFormats/MuonDetId/interface/ME0DetId.h
"
6
#include "
L1Trigger/L1TMuon/interface/MuonTriggerPrimitive.h
"
7
#include "
L1Trigger/L1TMuonEndCap/interface/EMTFGEMDetId.h
"
8
9
namespace
emtf
{
10
11
template
<
typename
T=
void
>
12
EMTFGEMDetId
construct_EMTFGEMDetId
(
const
L1TMuon::TriggerPrimitive
& tp) {
13
if
(!tp.
getGEMData
().
isME0
) {
14
GEMDetId
id
(tp.
detId
<
GEMDetId
>());
15
return
EMTFGEMDetId
(
id
);
16
}
else
{
17
ME0DetId
id
(tp.
detId
<
ME0DetId
>());
18
return
EMTFGEMDetId
(
id
);
19
}
20
};
21
22
}
// namespace emtf
23
24
#endif
GEMDetId
Definition:
GEMDetId.h:16
L1TMuon::TriggerPrimitive::GEMData::isME0
bool isME0
Definition:
MuonTriggerPrimitive.h:139
ME0DetId
Definition:
ME0DetId.h:16
L1TMuon::TriggerPrimitive::getGEMData
const GEMData getGEMData() const
Definition:
MuonTriggerPrimitive.h:213
emtf
Definition:
Event.h:15
L1TMuon::TriggerPrimitive
Definition:
MuonTriggerPrimitive.h:58
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:29
EMTFGEMDetId.h
GEMDetId.h
MuonTriggerPrimitive.h
ME0DetId.h
L1TMuon::TriggerPrimitive::detId
IDType detId() const
Definition:
MuonTriggerPrimitive.h:202
emtf::construct_EMTFGEMDetId
EMTFGEMDetId construct_EMTFGEMDetId(const L1TMuon::TriggerPrimitive &tp)
Definition:
EMTFGEMDetIdImpl.h:12
EMTFGEMDetId
Definition:
EMTFGEMDetId.h:14
Generated for CMSSW Reference Manual by
1.8.11