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";
123 for (
int ibx = XTMP->getFirstBX(); ibx <= XTMP->getLastBX(); ++ibx) {
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";
145 for (
int ibx = XTMP->getFirstBX(); ibx <= XTMP->getLastBX(); ++ibx) {
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";
167 for (
int ibx = XTMP->getFirstBX(); ibx <= XTMP->getLastBX(); ++ibx) {
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";
188 for (
int ibx = XTMP->getFirstBX(); ibx <= XTMP->getLastBX(); ++ibx) {
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";
209 for (
int ibx = XTMP->getFirstBX(); ibx <= XTMP->getLastBX(); ++ibx) {
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";
edm::EDGetTokenT< MuonBxCollection > muonToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< EtSumBxCollection > sumToken_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
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)
T getParameter(std::string const &) const
void analyze(Event const &, EventSetup const &) override
edm::EDGetTokenT< JetBxCollection > jetToken_
Log< level::Warning, false > LogWarning
void beginLuminosityBlock(LuminosityBlock const &, EventSetup const &) override