95 iEvent.getByToken(etsumToken, etsums);
97 printf(
"\n -------------------------------------- \n");
98 printf(
" *********** New Event ************** \n");
99 printf(
" -------------------------------------- \n");
102 for (
int i = m_minBx;
i <= m_maxBx; ++
i) {
103 cout <<
" ========== BX = " <<
std::dec <<
i <<
" =============================" << endl;
107 cout <<
" ------ EGammas -------- " << endl;
109 if (
i >= egammas->getFirstBX() &&
i <= egammas->getLastBX()) {
110 for (std::vector<l1t::EGamma>::const_iterator eg = egammas->begin(
i); eg != egammas->end(
i); ++eg) {
111 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0') <<
")";
112 cout <<
" Pt " <<
std::dec << std::setw(3) << eg->hwPt() <<
" (0x" << std::hex << std::setw(3)
113 << std::setfill(
'0') << eg->hwPt() <<
")";
114 cout <<
" Eta " <<
std::dec << std::setw(3) << eg->hwEta() <<
" (0x" << std::hex << std::setw(2)
115 << std::setfill(
'0') << (eg->hwEta() & 0xff) <<
")";
116 cout <<
" Phi " <<
std::dec << std::setw(3) << eg->hwPhi() <<
" (0x" << std::hex << std::setw(2)
117 << std::setfill(
'0') << eg->hwPhi() <<
")";
118 cout <<
" Iso " <<
std::dec << std::setw(1) << eg->hwIso();
119 cout <<
" Qual " <<
std::dec << std::setw(1) << eg->hwQual();
124 cout <<
"No EG stored for this bx " <<
i << endl;
127 cout <<
"No EG Data in this event " << endl;
132 cout <<
" ------ Muons --------" << endl;
133 if (
muons.isValid()) {
134 if (
i >=
muons->getFirstBX() &&
i <=
muons->getLastBX()) {
135 for (std::vector<l1t::Muon>::const_iterator
mu =
muons->begin(
i);
mu !=
muons->end(
i); ++
mu) {
136 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0') <<
")";
137 cout <<
" Pt " <<
std::dec << std::setw(3) <<
mu->hwPt() <<
" (0x" << std::hex << std::setw(3)
138 << std::setfill(
'0') <<
mu->hwPt() <<
")";
139 cout <<
" EtaAtVtx " <<
std::dec << std::setw(3) <<
mu->hwEtaAtVtx() <<
" (0x" << std::hex << std::setw(3)
140 << std::setfill(
'0') << (
mu->hwEtaAtVtx() & 0x1ff) <<
")";
141 cout <<
" Eta " <<
std::dec << std::setw(3) <<
mu->hwEta() <<
" (0x" << std::hex << std::setw(3)
142 << std::setfill(
'0') << (
mu->hwEta() & 0x1ff) <<
")";
143 cout <<
" PhiAtVtx " <<
std::dec << std::setw(3) <<
mu->hwPhiAtVtx() <<
" (0x" << std::hex << std::setw(3)
144 << std::setfill(
'0') <<
mu->hwPhiAtVtx() <<
")";
145 cout <<
" Phi " <<
std::dec << std::setw(3) <<
mu->hwPhi() <<
" (0x" << std::hex << std::setw(3)
146 << std::setfill(
'0') <<
mu->hwPhi() <<
")";
153 cout <<
"No Muons stored for this bx " <<
i << endl;
156 cout <<
"No Muon Data in this event " << endl;
161 cout <<
" ------ Taus ----------" << endl;
162 if (
taus.isValid()) {
163 if (
i >=
taus->getFirstBX() &&
i <=
taus->getLastBX()) {
164 for (std::vector<l1t::Tau>::const_iterator
tau =
taus->begin(
i);
tau !=
taus->end(
i); ++
tau) {
165 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0') <<
")";
166 cout <<
" Pt " <<
std::dec << std::setw(3) <<
tau->hwPt() <<
" (0x" << std::hex << std::setw(3)
167 << std::setfill(
'0') <<
tau->hwPt() <<
")";
168 cout <<
" Eta " <<
std::dec << std::setw(3) <<
tau->hwEta() <<
" (0x" << std::hex << std::setw(2)
169 << std::setfill(
'0') << (
tau->hwEta() & 0xff) <<
")";
170 cout <<
" Phi " <<
std::dec << std::setw(3) <<
tau->hwPhi() <<
" (0x" << std::hex << std::setw(2)
171 << std::setfill(
'0') <<
tau->hwPhi() <<
")";
178 cout <<
"No Taus stored for this bx " <<
i << endl;
181 cout <<
"No Tau Data in this event " << endl;
186 cout <<
" ------ Jets ----------" << endl;
187 if (
jets.isValid()) {
188 if (
i >=
jets->getFirstBX() &&
i <=
jets->getLastBX()) {
189 for (std::vector<l1t::Jet>::const_iterator
jet =
jets->begin(
i);
jet !=
jets->end(
i); ++
jet) {
190 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0') <<
")";
191 cout <<
" Pt " <<
std::dec << std::setw(3) <<
jet->hwPt() <<
" (0x" << std::hex << std::setw(3)
192 << std::setfill(
'0') <<
jet->hwPt() <<
")";
193 cout <<
" Eta " <<
std::dec << std::setw(3) <<
jet->hwEta() <<
" (0x" << std::hex << std::setw(2)
194 << std::setfill(
'0') << (
jet->hwEta() & 0xff) <<
")";
195 cout <<
" Phi " <<
std::dec << std::setw(3) <<
jet->hwPhi() <<
" (0x" << std::hex << std::setw(2)
196 << std::setfill(
'0') <<
jet->hwPhi() <<
")";
202 cout <<
"No Jets stored for this bx " <<
i << endl;
205 cout <<
"No jet Data in this event " << endl;
209 cout <<
" ------ EtSums ----------" << endl;
211 if (
i >= etsums->getFirstBX() &&
i <= etsums->getLastBX()) {
212 for (std::vector<l1t::EtSum>::const_iterator etsum = etsums->begin(
i); etsum != etsums->end(
i); ++etsum) {
213 switch (etsum->getType()) {
227 cout <<
" Unknown: ";
230 cout <<
" Et " <<
std::dec << std::setw(3) << etsum->hwPt() <<
" (0x" << std::hex << std::setw(3)
231 << std::setfill(
'0') << etsum->hwPt() <<
")";
234 cout <<
" Phi " <<
std::dec << std::setw(3) << etsum->hwPhi() <<
" (0x" << std::hex << std::setw(2)
235 << std::setfill(
'0') << etsum->hwPhi() <<
")";
239 cout <<
"No EtSums stored for this bx " <<
i << endl;
242 cout <<
"No EtSum Data in this event " << endl;