L1Trigger
L1THGCal
interface
concentrator
HGCalConcentratorBestChoiceImpl.h
Go to the documentation of this file.
1
#ifndef __L1Trigger_L1THGCal_HGCalConcentratorBestChoiceImpl_h__
2
#define __L1Trigger_L1THGCal_HGCalConcentratorBestChoiceImpl_h__
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "
DataFormats/L1THGCal/interface/HGCalTriggerCell.h
"
6
#include "
L1Trigger/L1THGCal/interface/HGCalTriggerTools.h
"
7
#include <vector>
8
9
class
HGCalConcentratorBestChoiceImpl
{
10
public
:
11
HGCalConcentratorBestChoiceImpl
(
const
edm::ParameterSet
& conf);
12
13
void
select
(
unsigned
nLinks,
14
unsigned
nWafers,
15
const
std::vector<l1t::HGCalTriggerCell>& trigCellVecInput,
16
std::vector<l1t::HGCalTriggerCell>& trigCellVecOutput,
17
std::vector<l1t::HGCalTriggerCell>& trigCellVecNotSelected);
18
19
void
eventSetup
(
const
edm::EventSetup
& es) {
triggerTools_
.
eventSetup
(es); }
20
21
private
:
22
std::vector<unsigned>
nData_
;
23
static
constexpr
unsigned
kNDataSize_
= 128;
24
static
constexpr uint32_t
kWaferOffset_
= 4;
25
static
constexpr uint32_t
kWaferMask_
= 0x7;
26
static
constexpr uint32_t
kLinkMask_
= 0xF;
27
28
HGCalTriggerTools
triggerTools_
;
29
};
30
31
#endif
HGCalConcentratorBestChoiceImpl::kWaferMask_
static constexpr uint32_t kWaferMask_
Definition:
HGCalConcentratorBestChoiceImpl.h:25
HGCalTriggerTools.h
HGCalTriggerTools::eventSetup
void eventSetup(const edm::EventSetup &)
Definition:
HGCalTriggerTools.cc:35
HGCalConcentratorBestChoiceImpl::kNDataSize_
static constexpr unsigned kNDataSize_
Definition:
HGCalConcentratorBestChoiceImpl.h:23
HGCalConcentratorBestChoiceImpl::kWaferOffset_
static constexpr uint32_t kWaferOffset_
Definition:
HGCalConcentratorBestChoiceImpl.h:24
HGCalConcentratorBestChoiceImpl::kLinkMask_
static constexpr uint32_t kLinkMask_
Definition:
HGCalConcentratorBestChoiceImpl.h:26
HGCalConcentratorBestChoiceImpl::HGCalConcentratorBestChoiceImpl
HGCalConcentratorBestChoiceImpl(const edm::ParameterSet &conf)
Definition:
HGCalConcentratorBestChoiceImpl.cc:8
HGCalConcentratorBestChoiceImpl
Definition:
HGCalConcentratorBestChoiceImpl.h:9
edm::ParameterSet
Definition:
ParameterSet.h:47
HGCalConcentratorBestChoiceImpl::select
void select(unsigned nLinks, unsigned nWafers, const std::vector< l1t::HGCalTriggerCell > &trigCellVecInput, std::vector< l1t::HGCalTriggerCell > &trigCellVecOutput, std::vector< l1t::HGCalTriggerCell > &trigCellVecNotSelected)
Definition:
HGCalConcentratorBestChoiceImpl.cc:15
HGCalConcentratorBestChoiceImpl::nData_
std::vector< unsigned > nData_
Definition:
HGCalConcentratorBestChoiceImpl.h:22
HGCalConcentratorBestChoiceImpl::eventSetup
void eventSetup(const edm::EventSetup &es)
Definition:
HGCalConcentratorBestChoiceImpl.h:19
edm::EventSetup
Definition:
EventSetup.h:58
HGCalConcentratorBestChoiceImpl::triggerTools_
HGCalTriggerTools triggerTools_
Definition:
HGCalConcentratorBestChoiceImpl.h:28
HGCalTriggerTools
Definition:
HGCalTriggerTools.h:32
HGCalTriggerCell.h
ParameterSet.h
Generated for CMSSW Reference Manual by
1.8.16