CMS 3D CMS Logo

MuonRawDigiTranslator.h
Go to the documentation of this file.
1 #ifndef MuonRawDigiTranslator_h
2 #define MuonRawDigiTranslator_h
3 
5 
6 namespace l1t {
8  public:
9  static void fillMuon(Muon&, uint32_t, uint32_t, int, unsigned int);
10  static void fillMuon(Muon&, uint64_t, int, unsigned int);
11  static void generatePackedDataWords(const Muon&, uint32_t&, uint32_t&);
12  static uint64_t generate64bitDataWord(const Muon&);
13  static int calcHwEta(const uint32_t&, const unsigned, const unsigned);
14 
15  static const unsigned ptMask_ = 0x1FF;
16  static const unsigned ptShift_ = 10;
17  static const unsigned qualMask_ = 0xF;
18  static const unsigned qualShift_ = 19;
19  static const unsigned absEtaMask_ = 0xFF;
20  static const unsigned absEtaShift_ = 21;
21  static const unsigned absEtaAtVtxShift_ = 23;
22  static const unsigned etaSignShift_ = 29;
23  static const unsigned etaAtVtxSignShift_ = 31;
24  static const unsigned phiMask_ = 0x3FF;
25  static const unsigned phiShift_ = 11;
26  static const unsigned phiAtVtxShift_ = 0;
27  static const unsigned chargeShift_ = 2;
28  static const unsigned chargeValidShift_ = 3;
29  static const unsigned tfMuonIndexMask_ = 0x7F;
30  static const unsigned tfMuonIndexShift_ = 4;
31  static const unsigned isoMask_ = 0x3;
32  static const unsigned isoShift_ = 0;
33  };
34 } // namespace l1t
35 
36 #endif
l1t::MuonRawDigiTranslator::absEtaShift_
static const unsigned absEtaShift_
Definition: MuonRawDigiTranslator.h:20
l1t::MuonRawDigiTranslator
Definition: MuonRawDigiTranslator.h:7
Muon.h
l1t::MuonRawDigiTranslator::ptShift_
static const unsigned ptShift_
Definition: MuonRawDigiTranslator.h:16
l1t::MuonRawDigiTranslator::chargeShift_
static const unsigned chargeShift_
Definition: MuonRawDigiTranslator.h:27
l1t::MuonRawDigiTranslator::generate64bitDataWord
static uint64_t generate64bitDataWord(const Muon &)
Definition: MuonRawDigiTranslator.cc:92
Muon
Definition: Muon.py:1
l1t::MuonRawDigiTranslator::generatePackedDataWords
static void generatePackedDataWords(const Muon &, uint32_t &, uint32_t &)
Definition: MuonRawDigiTranslator.cc:71
l1t::MuonRawDigiTranslator::fillMuon
static void fillMuon(Muon &, uint32_t, uint32_t, int, unsigned int)
Definition: MuonRawDigiTranslator.cc:4
l1t::MuonRawDigiTranslator::phiAtVtxShift_
static const unsigned phiAtVtxShift_
Definition: MuonRawDigiTranslator.h:26
l1t::MuonRawDigiTranslator::qualMask_
static const unsigned qualMask_
Definition: MuonRawDigiTranslator.h:17
l1t::MuonRawDigiTranslator::isoMask_
static const unsigned isoMask_
Definition: MuonRawDigiTranslator.h:31
l1t::MuonRawDigiTranslator::etaAtVtxSignShift_
static const unsigned etaAtVtxSignShift_
Definition: MuonRawDigiTranslator.h:23
l1t
delete x;
Definition: CaloConfig.h:22
l1t::MuonRawDigiTranslator::ptMask_
static const unsigned ptMask_
Definition: MuonRawDigiTranslator.h:15
l1t::MuonRawDigiTranslator::phiMask_
static const unsigned phiMask_
Definition: MuonRawDigiTranslator.h:24
l1t::MuonRawDigiTranslator::isoShift_
static const unsigned isoShift_
Definition: MuonRawDigiTranslator.h:32
l1t::MuonRawDigiTranslator::tfMuonIndexShift_
static const unsigned tfMuonIndexShift_
Definition: MuonRawDigiTranslator.h:30
l1t::MuonRawDigiTranslator::absEtaAtVtxShift_
static const unsigned absEtaAtVtxShift_
Definition: MuonRawDigiTranslator.h:21
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
l1t::MuonRawDigiTranslator::etaSignShift_
static const unsigned etaSignShift_
Definition: MuonRawDigiTranslator.h:22
l1t::MuonRawDigiTranslator::calcHwEta
static int calcHwEta(const uint32_t &, const unsigned, const unsigned)
Definition: MuonRawDigiTranslator.cc:100
l1t::MuonRawDigiTranslator::qualShift_
static const unsigned qualShift_
Definition: MuonRawDigiTranslator.h:18
l1t::MuonRawDigiTranslator::chargeValidShift_
static const unsigned chargeValidShift_
Definition: MuonRawDigiTranslator.h:28
l1t::MuonRawDigiTranslator::phiShift_
static const unsigned phiShift_
Definition: MuonRawDigiTranslator.h:25
l1t::MuonRawDigiTranslator::tfMuonIndexMask_
static const unsigned tfMuonIndexMask_
Definition: MuonRawDigiTranslator.h:29
l1t::MuonRawDigiTranslator::absEtaMask_
static const unsigned absEtaMask_
Definition: MuonRawDigiTranslator.h:19