32 void endJob()
override;
47 std::vector<edm::EDGetTokenT<TauBxCollection>>
tauTokens_;
86 const auto&
taus = iConfig.
getParameter<std::vector<edm::InputTag>>(
"tauTokens");
88 tauTokens_.push_back(consumes<l1t::TauBxCollection>(
tau));
109 cout <<
"L1TSummary Module output for " << tag_ <<
"\n";
112 iEvent.getByToken(egToken_, XTMP);
114 cout <<
"INFO: L1T found e-gamma collection.\n";
116 for (
auto it = XTMP->
begin(ibx); it != XTMP->
end(ibx); it++) {
117 if (bxZeroOnly_ && (ibx != 0))
121 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi()
127 LogWarning(
"MissingProduct") <<
"L1Upgrade e-gamma's not found." << std::endl;
132 for (
auto& tautoken : tauTokens_) {
134 iEvent.getByToken(tautoken, XTMP);
136 cout <<
"INFO: L1T found tau collection.\n";
138 for (
auto it = XTMP->
begin(ibx); it != XTMP->
end(ibx); it++) {
140 if (bxZeroOnly_ && (ibx != 0))
143 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi()
149 LogWarning(
"MissingProduct") <<
"L1Upgrade tau's not found." << std::endl;
156 iEvent.getByToken(jetToken_, XTMP);
158 cout <<
"INFO: L1T found jet collection.\n";
160 for (
auto it = XTMP->
begin(ibx); it != XTMP->
end(ibx); it++) {
162 if (bxZeroOnly_ && (ibx != 0))
165 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi()
171 LogWarning(
"MissingProduct") <<
"L1T upgrade jets not found." << std::endl;
177 iEvent.getByToken(sumToken_, XTMP);
179 cout <<
"INFO: L1T found sum collection.\n";
181 for (
auto it = XTMP->
begin(ibx); it != XTMP->
end(ibx); it++) {
183 if (bxZeroOnly_ && (ibx != 0))
186 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi()
187 <<
" type: " << it->getType() <<
"\n";
192 LogWarning(
"MissingProduct") <<
"L1T upgrade sums not found." << std::endl;
198 iEvent.getByToken(muonToken_, XTMP);
200 cout <<
"INFO: L1T found muon collection.\n";
202 for (
auto it = XTMP->
begin(ibx); it != XTMP->
end(ibx); it++) {
204 if (bxZeroOnly_ && (ibx != 0))
207 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi()
213 LogWarning(
"MissingProduct") <<
"L1T upgrade muons not found." << std::endl;
221 cout <<
"INFO: L1T Summary for " << tag_ <<
"\n";
222 cout <<
"INFO: count of non-zero candidates for each type follows:\n";
224 cout <<
"eg: " << egCount_ <<
"\n";
226 cout <<
"tau: " << tauCount_ <<
"\n";
228 cout <<
"jet: " << jetCount_ <<
"\n";
230 cout <<
"sum: " << sumCount_ <<
"\n";
232 cout <<
"muon: " << muonCount_ <<
"\n";
T getParameter(std::string const &) const
edm::EDGetTokenT< MuonBxCollection > muonToken_
edm::EDGetTokenT< EtSumBxCollection > sumToken_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
const_iterator begin(int bx) const
void addDefault(ParameterSetDescription const &psetDescription)
L1TSummary(const ParameterSet &)
std::vector< edm::EDGetTokenT< TauBxCollection > > tauTokens_
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< EGammaBxCollection > egToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void analyze(Event const &, EventSetup const &) override
const_iterator end(int bx) const
edm::EDGetTokenT< JetBxCollection > jetToken_
Log< level::Warning, false > LogWarning