93 iEvent.getByToken(etsumToken, etsums);
95 printf(
"\n -------------------------------------- \n");
96 printf(
" *********** New Event ************** \n");
97 printf(
" -------------------------------------- \n");
100 for (
int i = m_minBx;
i <= m_maxBx; ++
i) {
101 cout <<
" ========== BX = " <<
std::dec <<
i <<
" =============================" << endl;
105 cout <<
" ------ EGammas -------- " << endl;
107 if (
i >= egammas->getFirstBX() &&
i <= egammas->getLastBX()) {
108 for (std::vector<l1t::EGamma>::const_iterator eg = egammas->begin(
i); eg != egammas->end(
i); ++eg) {
109 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0') <<
")";
110 cout <<
" Pt " <<
std::dec << std::setw(3) << eg->hwPt() <<
" (0x" << std::hex << std::setw(3)
111 << std::setfill(
'0') << eg->hwPt() <<
")";
112 cout <<
" Eta " <<
std::dec << std::setw(3) << eg->hwEta() <<
" (0x" << std::hex << std::setw(2)
113 << std::setfill(
'0') << (eg->hwEta() & 0xff) <<
")";
114 cout <<
" Phi " <<
std::dec << std::setw(3) << eg->hwPhi() <<
" (0x" << std::hex << std::setw(2)
115 << std::setfill(
'0') << eg->hwPhi() <<
")";
116 cout <<
" Iso " <<
std::dec << std::setw(1) << eg->hwIso();
117 cout <<
" Qual " <<
std::dec << std::setw(1) << eg->hwQual();
122 cout <<
"No EG stored for this bx " <<
i << endl;
125 cout <<
"No EG Data in this event " << endl;
130 cout <<
" ------ Muons --------" << endl;
131 if (
muons.isValid()) {
132 if (
i >=
muons->getFirstBX() &&
i <=
muons->getLastBX()) {
133 for (std::vector<l1t::Muon>::const_iterator
mu =
muons->begin(
i);
mu !=
muons->end(
i); ++
mu) {
134 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0') <<
")";
135 cout <<
" Pt " <<
std::dec << std::setw(3) <<
mu->hwPt() <<
" (0x" << std::hex << std::setw(3)
136 << std::setfill(
'0') <<
mu->hwPt() <<
")";
137 cout <<
" EtaAtVtx " <<
std::dec << std::setw(3) <<
mu->hwEtaAtVtx() <<
" (0x" << std::hex << std::setw(3)
138 << std::setfill(
'0') << (
mu->hwEtaAtVtx() & 0x1ff) <<
")";
139 cout <<
" Eta " <<
std::dec << std::setw(3) <<
mu->hwEta() <<
" (0x" << std::hex << std::setw(3)
140 << std::setfill(
'0') << (
mu->hwEta() & 0x1ff) <<
")";
141 cout <<
" PhiAtVtx " <<
std::dec << std::setw(3) <<
mu->hwPhiAtVtx() <<
" (0x" << std::hex << std::setw(3)
142 << std::setfill(
'0') <<
mu->hwPhiAtVtx() <<
")";
143 cout <<
" Phi " <<
std::dec << std::setw(3) <<
mu->hwPhi() <<
" (0x" << std::hex << std::setw(3)
144 << std::setfill(
'0') <<
mu->hwPhi() <<
")";
151 cout <<
"No Muons stored for this bx " <<
i << endl;
154 cout <<
"No Muon Data in this event " << endl;
159 cout <<
" ------ Taus ----------" << endl;
160 if (
taus.isValid()) {
161 if (
i >=
taus->getFirstBX() &&
i <=
taus->getLastBX()) {
162 for (std::vector<l1t::Tau>::const_iterator
tau =
taus->begin(
i);
tau !=
taus->end(
i); ++
tau) {
163 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0') <<
")";
164 cout <<
" Pt " <<
std::dec << std::setw(3) <<
tau->hwPt() <<
" (0x" << std::hex << std::setw(3)
165 << std::setfill(
'0') <<
tau->hwPt() <<
")";
166 cout <<
" Eta " <<
std::dec << std::setw(3) <<
tau->hwEta() <<
" (0x" << std::hex << std::setw(2)
167 << std::setfill(
'0') << (
tau->hwEta() & 0xff) <<
")";
168 cout <<
" Phi " <<
std::dec << std::setw(3) <<
tau->hwPhi() <<
" (0x" << std::hex << std::setw(2)
169 << std::setfill(
'0') <<
tau->hwPhi() <<
")";
176 cout <<
"No Taus stored for this bx " <<
i << endl;
179 cout <<
"No Tau Data in this event " << endl;
184 cout <<
" ------ Jets ----------" << endl;
185 if (
jets.isValid()) {
186 if (
i >=
jets->getFirstBX() &&
i <=
jets->getLastBX()) {
187 for (std::vector<l1t::Jet>::const_iterator
jet =
jets->begin(
i);
jet !=
jets->end(
i); ++
jet) {
188 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0') <<
")";
189 cout <<
" Pt " <<
std::dec << std::setw(3) <<
jet->hwPt() <<
" (0x" << std::hex << std::setw(3)
190 << std::setfill(
'0') <<
jet->hwPt() <<
")";
191 cout <<
" Eta " <<
std::dec << std::setw(3) <<
jet->hwEta() <<
" (0x" << std::hex << std::setw(2)
192 << std::setfill(
'0') << (
jet->hwEta() & 0xff) <<
")";
193 cout <<
" Phi " <<
std::dec << std::setw(3) <<
jet->hwPhi() <<
" (0x" << std::hex << std::setw(2)
194 << std::setfill(
'0') <<
jet->hwPhi() <<
")";
200 cout <<
"No Jets stored for this bx " <<
i << endl;
203 cout <<
"No jet Data in this event " << endl;
207 cout <<
" ------ EtSums ----------" << endl;
209 if (
i >= etsums->getFirstBX() &&
i <= etsums->getLastBX()) {
210 for (std::vector<l1t::EtSum>::const_iterator etsum = etsums->begin(
i); etsum != etsums->end(
i); ++etsum) {
211 switch (etsum->getType()) {
225 cout <<
" Unknown: ";
228 cout <<
" Et " <<
std::dec << std::setw(3) << etsum->hwPt() <<
" (0x" << std::hex << std::setw(3)
229 << std::setfill(
'0') << etsum->hwPt() <<
")";
232 cout <<
" Phi " <<
std::dec << std::setw(3) << etsum->hwPhi() <<
" (0x" << std::hex << std::setw(2)
233 << std::setfill(
'0') << etsum->hwPhi() <<
")";
237 cout <<
"No EtSums stored for this bx " <<
i << endl;
240 cout <<
"No EtSum Data in this event " << endl;
T getParameter(std::string const &) const
muons
the two sets of parameters below are mutually exclusive, depending if RECO or ALCARECO is used the us...
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)