33 void endJob()
override;
53 std::vector< edm::EDGetTokenT<TauBxCollection> >
tauTokens_;
90 if (egCheck_) {egToken_ = consumes<EGammaBxCollection> (iConfig.
getParameter<
InputTag>(
"egToken"));}
92 const auto&
taus = iConfig.
getParameter<std::vector<edm::InputTag>>(
"tauTokens");
94 tauTokens_.push_back(consumes<l1t::TauBxCollection>(
tau));
97 if (jetCheck_) {jetToken_ = consumes<JetBxCollection> (iConfig.
getParameter<
InputTag>(
"jetToken"));}
98 if (sumCheck_) {sumToken_ = consumes<EtSumBxCollection> (iConfig.
getParameter<
InputTag>(
"sumToken"));}
99 if (muonCheck_) {muonToken_ = consumes<MuonBxCollection> (iConfig.
getParameter<
InputTag>(
"muonToken"));}
115 cout <<
"L1TSummary Module output for " << tag_ <<
"\n";
120 cout <<
"INFO: L1T found e-gamma collection.\n";
122 for (
auto it=XTMP->
begin(ibx); it!=XTMP->
end(ibx); it++){
123 if (bxZeroOnly_ && (ibx != 0))
continue;
126 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
131 LogWarning(
"MissingProduct") <<
"L1Upgrade e-gamma's not found." << std::endl;
136 for (
auto & tautoken: tauTokens_){
140 cout <<
"INFO: L1T found tau collection.\n";
142 for (
auto it=XTMP->
begin(ibx); it!=XTMP->
end(ibx); it++){
144 if (bxZeroOnly_ && (ibx != 0))
continue;
146 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
151 LogWarning(
"MissingProduct") <<
"L1Upgrade tau's not found." << std::endl;
160 cout <<
"INFO: L1T found jet collection.\n";
162 for (
auto it=XTMP->
begin(ibx); it!=XTMP->
end(ibx); it++){
164 if (bxZeroOnly_ && (ibx != 0))
continue;
166 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
171 LogWarning(
"MissingProduct") <<
"L1T upgrade jets not found." << std::endl;
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))
continue;
185 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
" type: " << it->getType() <<
"\n";
190 LogWarning(
"MissingProduct") <<
"L1T upgrade sums not found." << std::endl;
199 cout <<
"INFO: L1T found muon collection.\n";
201 for (
auto it=XTMP->
begin(ibx); it!=XTMP->
end(ibx); it++){
203 if (bxZeroOnly_ && (ibx != 0))
continue;
205 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
210 LogWarning(
"MissingProduct") <<
"L1T upgrade muons not found." << std::endl;
223 cout <<
"INFO: L1TSummary module beginJob called.\n";
228 cout <<
"INFO: L1T Summary for " << tag_ <<
"\n";
229 cout <<
"INFO: count of non-zero candidates for each type follows:\n";
230 if (egCheck_)
cout <<
"eg: " << egCount_ <<
"\n";
231 if (tauCheck_)
cout <<
"tau: " << tauCount_ <<
"\n";
232 if (jetCheck_)
cout <<
"jet: " << jetCount_ <<
"\n";
233 if (sumCheck_)
cout <<
"sum: " << sumCount_ <<
"\n";
234 if (muonCheck_)
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