Main Page
Namespaces
Classes
Package Documentation
DataFormats
L1TMuon
src
EMTFHit.cc
Go to the documentation of this file.
1
#include "
DataFormats/L1TMuon/interface/EMTFHit.h
"
2
#include "
L1Trigger/CSCCommonTrigger/interface/CSCConstants.h
"
3
4
namespace
l1t
{
5
6
CSCDetId
EMTFHit::CreateCSCDetId
()
const
{
7
return
CSCDetId
( (
endcap
== 1) ? 1 : 2,
station
,
8
(
ring
== 4) ? 1 :
ring
,
chamber
, 0 );
9
// Layer always filled as 0 (indicates "whole chamber")
10
// See http://cmslxr.fnal.gov/source/L1Trigger/CSCTriggerPrimitives/src/CSCTriggerPrimitivesBuilder.cc#0198
11
}
12
13
// // Not yet implemented - AWB 15.03.17
14
// RPCDetId EMTFHit::CreateRPCDetId() const {
15
// return RPCDetId( endcap, ring, station, sector, rpc_layer, subsector, roll );
16
// }
17
18
CSCCorrelatedLCTDigi
EMTFHit::CreateCSCCorrelatedLCTDigi
()
const
{
19
return
CSCCorrelatedLCTDigi
( 1,
valid
,
quality
,
wire
,
strip
,
20
pattern
, (
bend
== 1) ? 1 : 0,
21
bx
+
CSCConstants::LCT_CENTRAL_BX
, 0, 0,
sync_err
,
csc_ID
);
22
// Filling "trknmb" with 1 and "bx0" with 0 (as in MC).
23
// May consider filling "trknmb" with 2 for 2nd LCT in the same chamber. - AWB 24.05.17
24
// trknmb and bx0 are unused in the EMTF emulator code. mpclink = 0 (after bx) indicates unsorted.
25
}
26
27
// // Not yet implemented - AWB 15.03.17
28
// RPCDigi EMTFHit::CreateRPCDigi() const {
29
// return RPCDigi( (strip_hi + strip_lo) / 2, bx + CSCConstants::LCT_CENTRAL_BX );
30
// }
31
32
}
// End namespace l1t
l1t::EMTFHit::station
int station
Definition:
EMTFHit.h:210
l1t::EMTFHit::ring
int ring
Definition:
EMTFHit.h:211
CSCConstants::LCT_CENTRAL_BX
Definition:
CSCConstants.h:83
CSCDetId
Definition:
CSCDetId.h:26
CSCConstants.h
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::EMTFHit::sync_err
int sync_err
Definition:
EMTFHit.h:236
l1t::EMTFHit::bend
int bend
Definition:
EMTFHit.h:234
l1t::EMTFHit::bx
int bx
Definition:
EMTFHit.h:238
l1t::EMTFHit::CreateCSCDetId
CSCDetId CreateCSCDetId() const
Definition:
EMTFHit.cc:6
l1t::EMTFHit::CreateCSCCorrelatedLCTDigi
CSCCorrelatedLCTDigi CreateCSCCorrelatedLCTDigi() const
Definition:
EMTFHit.cc:18
l1t::EMTFHit::pattern
int pattern
Definition:
EMTFHit.h:233
l1t::EMTFHit::endcap
int endcap
Definition:
EMTFHit.h:209
l1t::EMTFHit::strip
int strip
Definition:
EMTFHit.h:228
l1t::EMTFHit::wire
int wire
Definition:
EMTFHit.h:227
l1t::EMTFHit::quality
int quality
Definition:
EMTFHit.h:232
l1t::EMTFHit::valid
int valid
Definition:
EMTFHit.h:235
l1t::EMTFHit::chamber
int chamber
Definition:
EMTFHit.h:217
CSCCorrelatedLCTDigi
Definition:
CSCCorrelatedLCTDigi.h:18
EMTFHit.h
l1t::EMTFHit::csc_ID
int csc_ID
Definition:
EMTFHit.h:218
Generated for CMSSW Reference Manual by
1.8.11