13 std::vector<L1MuGMTReadoutRecord> gmt_records = gmtrc->
getRecords();
14 std::vector<L1MuGMTReadoutRecord>::const_iterator igmtrr;
15 for (igmtrr = gmt_records.begin(); igmtrr != gmt_records.end(); igmtrr++) {
16 std::vector<L1MuRegionalCand>::const_iterator iter1;
17 std::vector<L1MuRegionalCand> rmc;
19 if (igmtrr->getBxInEvent() == 0) {
28 rmc = igmtrr->getDTBXCands();
29 for (iter1 = rmc.begin(); iter1 != rmc.end(); iter1++) {
30 if ((
unsigned)
gmt_.
Ndt < maxDTBX && !(*iter1).empty()) {
33 gmt_.
Etadt.push_back(
float((*iter1).etaValue()));
34 gmt_.
Phidt.push_back(
float((*iter1).phiValue()));
35 gmt_.
Ptdt.push_back(
float((*iter1).ptValue()));
37 gmt_.
Etadt.push_back(
float((*iter1).eta_packed()));
38 gmt_.
Phidt.push_back(
float((*iter1).phi_packed()));
39 gmt_.
Ptdt.push_back(
float((*iter1).pt_packed()));
41 gmt_.
Chadt.push_back((*iter1).chargeValue());
42 if (!(*iter1).chargeValid())
46 gmt_.
Dwdt.push_back((*iter1).getDataWord());
58 rmc = igmtrr->getCSCCands();
59 for (iter1 = rmc.begin(); iter1 != rmc.end(); iter1++) {
60 if ((
unsigned)
gmt_.
Ncsc < maxCSC && !(*iter1).empty()) {
69 gmt_.
Ptcsc.push_back((*iter1).pt_packed());
72 if (!(*iter1).chargeValid())
75 gmt_.
Dwcsc.push_back((*iter1).getDataWord());
85 rmc = igmtrr->getBrlRPCCands();
86 for (iter1 = rmc.begin(); iter1 != rmc.end(); iter1++) {
87 if ((
unsigned)
gmt_.
Nrpcb < maxRPC && !(*iter1).empty()) {
99 if (!(*iter1).chargeValid())
102 gmt_.
Dwrpcb.push_back((*iter1).getDataWord());
112 rmc = igmtrr->getFwdRPCCands();
113 for (iter1 = rmc.begin(); iter1 != rmc.end(); iter1++) {
114 if ((
unsigned)
gmt_.
Nrpcf < maxRPC && !(*iter1).empty()) {
126 if (!(*iter1).chargeValid())
129 gmt_.
Dwrpcf.push_back((*iter1).getDataWord());
139 std::vector<L1MuGMTExtendedCand>::const_iterator gmt_iter;
140 std::vector<L1MuGMTExtendedCand> exc = igmtrr->getGMTCands();
141 for (gmt_iter = exc.begin(); gmt_iter != exc.end(); gmt_iter++) {
142 if ((
unsigned)
gmt_.
N < maxGMT && !(*gmt_iter).empty()) {
145 gmt_.
Eta.push_back((*gmt_iter).etaValue());
146 gmt_.
Phi.push_back((*gmt_iter).phiValue());
147 gmt_.
Pt.push_back((*gmt_iter).ptValue());
149 gmt_.
Eta.push_back((*gmt_iter).etaIndex());
150 gmt_.
Phi.push_back((*gmt_iter).phiIndex());
151 gmt_.
Pt.push_back((*gmt_iter).ptIndex());
153 gmt_.
Cha.push_back((*gmt_iter).charge());
154 if (!(*gmt_iter).charge_valid())
156 gmt_.
Qual.push_back((*gmt_iter).quality());
157 gmt_.
Det.push_back((*gmt_iter).detector());
158 gmt_.
Rank.push_back((*gmt_iter).rank());
159 gmt_.
Isol.push_back((*gmt_iter).isol());
160 gmt_.
Mip.push_back((*gmt_iter).mip());
161 gmt_.
Dw.push_back((*gmt_iter).getDataWord());
168 if ((*gmt_iter).isMatchedCand() || (*gmt_iter).isRPC()) {
169 if ((*gmt_iter).isFwd()) {
176 if ((*gmt_iter).isMatchedCand() || (!(*gmt_iter).isRPC())) {
177 if ((*gmt_iter).isFwd()) {
178 gmt_.
IdxCSC.back() = (*gmt_iter).getDTCSCIndex();
L1AnalysisGMTDataFormat gmt_
std::vector< L1MuGMTReadoutRecord > const & getRecords() const
void Set(const L1MuGMTReadoutCollection *gmtrc, unsigned maxDTBX, unsigned maxCSC, unsigned maxRPC, unsigned maxGMT, bool physVal)