106 printf(
"\n -------------------------------------- \n");
107 printf(
" *********** New Event ************** \n");
108 printf(
" -------------------------------------- \n");
113 cout <<
" ========== BX = " <<
std::dec <<
i <<
" =============================" << endl;
117 cout <<
" ------ EGammas -------- " << endl;
119 if(
i>=egammas->getFirstBX() &&
i<=egammas->getLastBX()) {
120 for(std::vector<l1t::EGamma>::const_iterator eg = egammas->begin(
i); eg != egammas->end(
i); ++eg) {
121 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0')<<
")";
122 cout <<
" Pt " <<
std::dec << std::setw(3) << eg->hwPt() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') << eg->hwPt() <<
")";
123 cout <<
" Eta " <<
std::dec << std::setw(3) << eg->hwEta() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') << (eg->hwEta()&0xff) <<
")";
124 cout <<
" Phi " <<
std::dec << std::setw(3) << eg->hwPhi() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') << eg->hwPhi() <<
")";
125 cout <<
" Iso " <<
std::dec << std::setw(1) << eg->hwIso() ;
126 cout <<
" Qual "<<
std::dec << std::setw(1) << eg->hwQual() ;
131 cout <<
"No EG stored for this bx " <<
i << endl;
134 cout <<
"No EG Data in this event " << endl;
139 cout <<
" ------ Muons --------" << endl;
141 if(
i>=muons->getFirstBX() &&
i<=muons->getLastBX()) {
142 for(std::vector<l1t::Muon>::const_iterator
mu = muons->begin(
i);
mu != muons->end(
i); ++
mu) {
143 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0')<<
")";
144 cout <<
" Pt " <<
std::dec << std::setw(3) <<
mu->hwPt() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') <<
mu->hwPt() <<
")";
145 cout <<
" Eta " <<
std::dec << std::setw(3) <<
mu->hwEta() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') << (
mu->hwEta()&0x1ff) <<
")";
146 cout <<
" Phi " <<
std::dec << std::setw(3) <<
mu->hwPhi() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') <<
mu->hwPhi() <<
")";
153 cout <<
"No Muons stored for this bx " <<
i << endl;
156 cout <<
"No Muon Data in this event " << endl;
161 cout <<
" ------ Taus ----------" << endl;
163 if(
i>=taus->getFirstBX() &&
i<=taus->getLastBX()) {
164 for(std::vector<l1t::Tau>::const_iterator
tau = taus->begin(
i);
tau != taus->end(
i); ++
tau) {
165 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0')<<
")";
166 cout <<
" Pt " <<
std::dec << std::setw(3) <<
tau->hwPt() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') <<
tau->hwPt() <<
")";
167 cout <<
" Eta " <<
std::dec << std::setw(3) <<
tau->hwEta() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') << (
tau->hwEta()&0xff) <<
")";
168 cout <<
" Phi " <<
std::dec << std::setw(3) <<
tau->hwPhi() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') <<
tau->hwPhi() <<
")";
175 cout <<
"No Taus stored for this bx " <<
i << endl;
178 cout <<
"No Tau Data in this event " << endl;
183 cout <<
" ------ Jets ----------" << endl;
185 if(
i>=jets->getFirstBX() &&
i<=jets->getLastBX()) {
186 for(std::vector<l1t::Jet>::const_iterator
jet = jets->begin(
i);
jet != jets->end(
i); ++
jet) {
187 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0')<<
")";
188 cout <<
" Pt " <<
std::dec << std::setw(3) <<
jet->hwPt() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') <<
jet->hwPt() <<
")";
189 cout <<
" Eta " <<
std::dec << std::setw(3) <<
jet->hwEta() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') << (
jet->hwEta()&0xff) <<
")";
190 cout <<
" Phi " <<
std::dec << std::setw(3) <<
jet->hwPhi() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') <<
jet->hwPhi() <<
")";
196 cout <<
"No Jets stored for this bx " <<
i << endl;
199 cout <<
"No jet Data in this event " << endl;
203 cout <<
" ------ EtSums ----------" << endl;
205 if(
i>=etsums->getFirstBX() &&
i<=etsums->getLastBX()) {
206 for(std::vector<l1t::EtSum>::const_iterator etsum = etsums->begin(
i); etsum != etsums->end(
i); ++etsum) {
207 switch ( etsum->getType() ) {
221 cout <<
" Unknown: ";
224 cout <<
" Et " <<
std::dec << std::setw(3) << etsum->hwPt() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') << etsum->hwPt() <<
")";
226 cout <<
" Phi " <<
std::dec << std::setw(3) << etsum->hwPhi() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') << etsum->hwPhi() <<
")";
230 cout <<
"No EtSums stored for this bx " <<
i << endl;
233 cout <<
"No EtSum Data in this event " << endl;
bool getByToken(EDGetToken token, Handle< PROD > &result) const