33 void endJob()
override;
53 std::vector<edm::EDGetTokenT<TauBxCollection>>
tauTokens_;
92 const auto&
taus = iConfig.
getParameter<std::vector<edm::InputTag>>(
"tauTokens");
94 tauTokens_.push_back(consumes<l1t::TauBxCollection>(
tau));
117 cout <<
"L1TSummary Module output for " << tag_ <<
"\n";
120 iEvent.getByToken(egToken_, XTMP);
122 cout <<
"INFO: L1T found e-gamma collection.\n";
124 for (
auto it = XTMP->
begin(ibx); it != XTMP->
end(ibx); it++) {
125 if (bxZeroOnly_ && (ibx != 0))
129 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi()
135 LogWarning(
"MissingProduct") <<
"L1Upgrade e-gamma's not found." << std::endl;
140 for (
auto& tautoken : tauTokens_) {
142 iEvent.getByToken(tautoken, XTMP);
144 cout <<
"INFO: L1T found tau collection.\n";
146 for (
auto it = XTMP->
begin(ibx); it != XTMP->
end(ibx); it++) {
148 if (bxZeroOnly_ && (ibx != 0))
151 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi()
157 LogWarning(
"MissingProduct") <<
"L1Upgrade tau's not found." << std::endl;
164 iEvent.getByToken(jetToken_, XTMP);
166 cout <<
"INFO: L1T found jet collection.\n";
168 for (
auto it = XTMP->
begin(ibx); it != XTMP->
end(ibx); it++) {
170 if (bxZeroOnly_ && (ibx != 0))
173 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi()
179 LogWarning(
"MissingProduct") <<
"L1T upgrade jets not found." << std::endl;
185 iEvent.getByToken(sumToken_, XTMP);
187 cout <<
"INFO: L1T found sum collection.\n";
189 for (
auto it = XTMP->
begin(ibx); it != XTMP->
end(ibx); it++) {
191 if (bxZeroOnly_ && (ibx != 0))
194 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi()
195 <<
" type: " << it->getType() <<
"\n";
200 LogWarning(
"MissingProduct") <<
"L1T upgrade sums not found." << std::endl;
206 iEvent.getByToken(muonToken_, XTMP);
208 cout <<
"INFO: L1T found muon collection.\n";
210 for (
auto it = XTMP->
begin(ibx); it != XTMP->
end(ibx); it++) {
212 if (bxZeroOnly_ && (ibx != 0))
215 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi()
221 LogWarning(
"MissingProduct") <<
"L1T upgrade muons not found." << std::endl;
229 cout <<
"INFO: L1T Summary for " << tag_ <<
"\n";
230 cout <<
"INFO: count of non-zero candidates for each type follows:\n";
232 cout <<
"eg: " << egCount_ <<
"\n";
234 cout <<
"tau: " << tauCount_ <<
"\n";
236 cout <<
"jet: " << jetCount_ <<
"\n";
238 cout <<
"sum: " << sumCount_ <<
"\n";
240 cout <<
"muon: " << muonCount_ <<
"\n";