Implements edm::EDAnalyzer.
Definition at line 58 of file L1TBasicDemo.cc.
References gather_cfg::cout, egToken_, edm::Event::getByToken(), edm::HandleBase::isValid(), metsig::jet, jetToken_, l1t::EtSumHelper::MissingEt(), l1t::EtSumHelper::MissingEtPhi(), l1t::EtSumHelper::MissingHt(), l1t::EtSumHelper::MissingHtPhi(), metsig::muon, muonToken_, sumToken_, metsig::tau, tauToken_, l1t::EtSumHelper::TotalEt(), l1t::EtSumHelper::TotalHt(), and trigger_bx_only.
60 cout <<
"INFO: dumping EGamma BX collection:\n";
64 for (
int ibx = eg->getFirstBX(); ibx <= eg->getLastBX(); ++ibx) {
66 for (
auto it=eg->begin(ibx); it!=eg->end(ibx); it++){
67 if (it->et() == 0)
continue;
68 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
72 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade e-gamma bx collection not found." << std::endl;
75 cout <<
"INFO: dumping Tau BX collection:\n";
79 for (
int ibx = tau->getFirstBX(); ibx <= tau->getLastBX(); ++ibx) {
81 for (
auto it=tau->begin(ibx); it!=tau->end(ibx); it++){
82 if (it->et() == 0)
continue;
83 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
87 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade tau bx collection not found." << std::endl;
90 cout <<
"INFO: dumping Jet BX collection:\n";
94 for (
int ibx = jet->getFirstBX(); ibx <= jet->getLastBX(); ++ibx) {
96 for (
auto it=jet->begin(ibx); it!=jet->end(ibx); it++){
97 if (it->et() == 0)
continue;
98 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
102 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade jet bx collection not found." << std::endl;
105 cout <<
"INFO: dumping EtSum BX collection:\n";
110 cout <<
"met: " << hsum.MissingEt() <<
"\n";
111 cout <<
"met phi: " << hsum.MissingEtPhi() <<
"\n";
112 cout <<
"mht: " << hsum.MissingHt() <<
"\n";
113 cout <<
"mht phi: " << hsum.MissingHtPhi() <<
"\n";
114 cout <<
"sum et: " << hsum.TotalEt() <<
"\n";
115 cout <<
"sum ht: " << hsum.TotalHt() <<
"\n";
117 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade sum bx collection not found." << std::endl;
120 cout <<
"INFO: dumping Muon BX collection:\n";
124 for (
int ibx = muon->getFirstBX(); ibx <= muon->getLastBX(); ++ibx) {
126 for (
auto it=muon->begin(ibx); it!=muon->end(ibx); it++){
127 if (it->et() == 0)
continue;
128 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
132 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade muon bx collection not found." << std::endl;
edm::EDGetTokenT< l1t::EtSumBxCollection > sumToken_
edm::EDGetTokenT< l1t::TauBxCollection > tauToken_
edm::EDGetTokenT< l1t::MuonBxCollection > muonToken_
edm::EDGetTokenT< l1t::JetBxCollection > jetToken_
edm::EDGetTokenT< l1t::EGammaBxCollection > egToken_