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 <<
" EtaAtVtx " <<
std::dec << std::setw(3) <<
mu->hwEtaAtVtx() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') << (
mu->hwEtaAtVtx()&0x1ff) <<
")";
146 cout <<
" Eta " <<
std::dec << std::setw(3) <<
mu->hwEta() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') << (
mu->hwEta()&0x1ff) <<
")";
147 cout <<
" PhiAtVtx " <<
std::dec << std::setw(3) <<
mu->hwPhiAtVtx() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') <<
mu->hwPhiAtVtx() <<
")";
148 cout <<
" Phi " <<
std::dec << std::setw(3) <<
mu->hwPhi() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') <<
mu->hwPhi() <<
")";
155 cout <<
"No Muons stored for this bx " <<
i << endl;
158 cout <<
"No Muon Data in this event " << endl;
163 cout <<
" ------ Taus ----------" << endl;
165 if(
i>=taus->getFirstBX() &&
i<=taus->getLastBX()) {
166 for(std::vector<l1t::Tau>::const_iterator
tau = taus->begin(
i);
tau != taus->end(
i); ++
tau) {
167 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0')<<
")";
168 cout <<
" Pt " <<
std::dec << std::setw(3) <<
tau->hwPt() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') <<
tau->hwPt() <<
")";
169 cout <<
" Eta " <<
std::dec << std::setw(3) <<
tau->hwEta() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') << (
tau->hwEta()&0xff) <<
")";
170 cout <<
" Phi " <<
std::dec << std::setw(3) <<
tau->hwPhi() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') <<
tau->hwPhi() <<
")";
177 cout <<
"No Taus stored for this bx " <<
i << endl;
180 cout <<
"No Tau Data in this event " << endl;
185 cout <<
" ------ Jets ----------" << endl;
187 if(
i>=jets->getFirstBX() &&
i<=jets->getLastBX()) {
188 for(std::vector<l1t::Jet>::const_iterator
jet = jets->begin(
i);
jet != jets->end(
i); ++
jet) {
189 cout <<
" " <<
std::dec << std::setw(2) << std::setfill(
' ') << nObj << std::setfill(
'0')<<
")";
190 cout <<
" Pt " <<
std::dec << std::setw(3) <<
jet->hwPt() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') <<
jet->hwPt() <<
")";
191 cout <<
" Eta " <<
std::dec << std::setw(3) <<
jet->hwEta() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') << (
jet->hwEta()&0xff) <<
")";
192 cout <<
" Phi " <<
std::dec << std::setw(3) <<
jet->hwPhi() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') <<
jet->hwPhi() <<
")";
198 cout <<
"No Jets stored for this bx " <<
i << endl;
201 cout <<
"No jet Data in this event " << endl;
205 cout <<
" ------ EtSums ----------" << endl;
207 if(
i>=etsums->getFirstBX() &&
i<=etsums->getLastBX()) {
208 for(std::vector<l1t::EtSum>::const_iterator etsum = etsums->begin(
i); etsum != etsums->end(
i); ++etsum) {
209 switch ( etsum->getType() ) {
223 cout <<
" Unknown: ";
226 cout <<
" Et " <<
std::dec << std::setw(3) << etsum->hwPt() <<
" (0x" << std::hex << std::setw(3) << std::setfill(
'0') << etsum->hwPt() <<
")";
228 cout <<
" Phi " <<
std::dec << std::setw(3) << etsum->hwPhi() <<
" (0x" << std::hex << std::setw(2) << std::setfill(
'0') << etsum->hwPhi() <<
")";
232 cout <<
"No EtSums stored for this bx " <<
i << endl;
235 cout <<
"No EtSum Data in this event " << endl;
bool getByToken(EDGetToken token, Handle< PROD > &result) const