10 : minPhiQuality_(iConfig.getParameter<
int>(
"minPhiQuality")),
11 minBX_(iConfig.getParameter<
int>(
"minBX")),
12 maxBX_(iConfig.getParameter<
int>(
"maxBX")),
16 coarseEta1_(iConfig.getParameter<
std::
vector<
int> >(
"coarseEta_1")),
17 coarseEta2_(iConfig.getParameter<
std::
vector<
int> >(
"coarseEta_2")),
18 coarseEta3_(iConfig.getParameter<
std::
vector<
int> >(
"coarseEta_3")),
19 coarseEta4_(iConfig.getParameter<
std::
vector<
int> >(
"coarseEta_4")),
20 phiOffset_(iConfig.getParameter<
std::
vector<
int> >(
"phiOffset")),
21 phiBFactor_(iConfig.getParameter<
int>(
"phiBDivider")),
22 verbose_(iConfig.getParameter<
int>(
"verbose")),
23 phiLSB_(iConfig.getParameter<double>(
"phiLSB")),
24 etaLSB_(iConfig.getParameter<double>(
"etaLSB")) {}
63 }
else if (qeta1 > 0) {
73 int abswheel = fabs(phiS.
whNum());
75 int sector = phiS.
scNum();
77 double globalPhi = (sector * 30) + phiS.
phi() * 30. / 65535.;
82 globalPhi = globalPhi *
M_PI / 180.;
106 l1t::MuonStub stub(
wheel, sector,
station, tfLayer,
phi, phiB,
tag,
bx,
quality,
eta, 0, 0, 1);
116 for (
int sector = 0; sector < 12; sector++) {
120 if (tseta !=
nullptr) {
124 for (
const auto& phiDigi : *phiContainer->
getContainer()) {
125 if ((phiDigi.bxNum() - 20) !=
bx || phiDigi.whNum() !=
wheel || phiDigi.scNum() != sector ||
142 printf(
"Barrel Stubs\n");
143 for (
const auto& stub :
out)
145 "Barrel Stub bx=%d TF=%d etaRegion=%d phiRegion=%d depthRegion=%d coord1=%f,%d coord2=%f,%d eta1=%f,%d " 146 "eta2=%f,%d quality=%d etaQuality=%d\n",
152 stub.offline_coord1(),
154 stub.offline_coord2(),
171 }
else if (
wheel < 0) {
174 if (sector == 0 || sector == 3 || sector == 4 || sector == 7 || sector == 8 || sector == 11)
L1MuDTChambThDigi const * chThetaSegm(int wheel, int stat, int sect, int bx) const
void setOfflineQuantities(double coord1, double coord2, double eta1, double eta2)
L1TPhase2GMTBarrelStubProcessor()
std::vector< int > phiOffset_
std::vector< int > coarseEta2_
double offline_coord1() const
int position(const int i) const
int calculateEta(uint, int, uint, uint)
std::vector< int > coarseEta1_
std::vector< MuonStub > MuonStubCollection
std::vector< int > coarseEta4_
l1t::MuonStub buildStub(const L1Phase2MuDTPhDigi &, const L1MuDTChambThDigi *)
l1t::MuonStubCollection makeStubs(const L1Phase2MuDTPhContainer *, const L1MuDTChambThContainer *)
l1t::MuonStub buildStubNoEta(const L1Phase2MuDTPhDigi &)
Segment_Container const * getContainer() const
double offline_coord2() const
~L1TPhase2GMTBarrelStubProcessor()
void setEta(int eta1, int eta2, int etaQ)
int quality(const int i) const
std::vector< int > coarseEta3_