52 cout <<
"INFO: dumping EGamma BX collection:\n";
59 for (
auto it = eg->
begin(ibx); it != eg->
end(ibx); it++) {
62 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
66 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade e-gamma bx collection not found." << std::endl;
69 cout <<
"INFO: dumping Tau BX collection:\n";
73 for (
int ibx =
tau->getFirstBX(); ibx <=
tau->getLastBX(); ++ibx) {
76 for (
auto it =
tau->begin(ibx); it !=
tau->end(ibx); it++) {
79 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
83 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade tau bx collection not found." << std::endl;
86 cout <<
"INFO: dumping Jet BX collection:\n";
90 for (
int ibx =
jet->getFirstBX(); ibx <=
jet->getLastBX(); ++ibx) {
93 for (
auto it =
jet->begin(ibx); it !=
jet->end(ibx); it++) {
96 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
100 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade jet bx collection not found." << std::endl;
103 cout <<
"INFO: dumping EtSum BX collection:\n";
115 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade sum bx collection not found." << std::endl;
118 cout <<
"INFO: dumping Muon BX collection:\n";
121 if (
muon.isValid()) {
122 for (
int ibx =
muon->getFirstBX(); ibx <=
muon->getLastBX(); ++ibx) {
125 for (
auto it =
muon->begin(ibx); it !=
muon->end(ibx); it++) {
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;
T getParameter(std::string const &) const
edm::EDGetTokenT< l1t::EtSumBxCollection > sumToken_
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const_iterator begin(int bx) const
double MissingEtPhi() const
void addDefault(ParameterSetDescription const &psetDescription)
L1TBasicDemo(const edm::ParameterSet &)
edm::EDGetTokenT< l1t::TauBxCollection > tauToken_
edm::EDGetTokenT< l1t::MuonBxCollection > muonToken_
edm::EDGetTokenT< l1t::JetBxCollection > jetToken_
edm::EDGetTokenT< l1t::EGammaBxCollection > egToken_
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const override
const_iterator end(int bx) const
double MissingHtPhi() const
Log< level::Warning, false > LogWarning