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";
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_) {
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;
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;
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;
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";
const_iterator end(int bx) const
T getParameter(std::string const &) const
edm::EDGetTokenT< MuonBxCollection > muonToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< EtSumBxCollection > sumToken_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
L1TSummary(const ParameterSet &)
std::vector< edm::EDGetTokenT< TauBxCollection > > tauTokens_
void endLuminosityBlock(LuminosityBlock const &, EventSetup const &) override
void endRun(Run const &, EventSetup const &) override
void beginRun(Run const &, EventSetup const &) override
static void fillDescriptions(ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< EGammaBxCollection > egToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void analyze(Event const &, EventSetup const &) override
edm::EDGetTokenT< JetBxCollection > jetToken_
void beginLuminosityBlock(LuminosityBlock const &, EventSetup const &) override
const_iterator begin(int bx) const