171 LogDebug(
"l1t|Global") <<
"retrieved L1 GT data blocks" << endl;
177 LogDebug(
"l1t|Global") <<
"retrieved L1 data from GT Util" << endl;
184 const std::vector<std::pair<std::string, std::vector<int>>> masks =
gtUtil_->
masks();
189 LogError(
"l1t|Global") <<
"gtUtil sizes inconsistent across run." << endl;
194 cout <<
"\n===================================== Trigger Results for BX=0 "
195 "=============================================\n"
197 cout <<
" Bit Algorithm Name Init aBXM Final PS Factor Num Bx "
200 cout <<
"========================================================================================================"
204 for (
unsigned int i = 0;
i < initialDecisions.size();
i++) {
210 bool resultInit = (initialDecisions.at(
i)).
second;
213 bool resultInterm = (intermDecisions.at(
i)).
second;
214 bool resultFin = (finalDecisions.at(
i)).
second;
217 double prescale = (prescales.at(
i)).
second;
218 std::vector<int> mask = (masks.at(
i)).
second;
230 cout <<
std::dec << setfill(
' ') <<
" " << setw(5) <<
i <<
" " << setw(40) << name.c_str() <<
" "
231 << setw(7) << resultInit << setw(7) << resultInterm << setw(7) << resultFin << setw(10) << prescale
232 << setw(11) << mask.size() << endl;
239 cout <<
" FinalOR = " << finOR << endl;
240 cout <<
"========================================================================================================"
250 cout <<
" ------ Bx= " <<
i <<
" ext ----------" << endl;
252 if (
i >= ext->getFirstBX() &&
i <= ext->getLastBX()) {
253 for (std::vector<GlobalExtBlk>::const_iterator extBlk = ext->begin(
i); extBlk != ext->end(
i); ++extBlk) {
258 cout <<
"No Ext Conditions stored for this bx " <<
i << endl;
261 LogError(
"L1TGlobalSummary") <<
"No ext Data in this event " << endl;
265 cout <<
" ------ Bx= " <<
i <<
" alg ----------" << endl;
267 if (
i >= alg->getFirstBX() &&
i <= alg->getLastBX()) {
268 for (std::vector<GlobalAlgBlk>::const_iterator algBlk = alg->begin(
i); algBlk != alg->end(
i); ++algBlk) {
273 cout <<
"No Alg Decisions stored for this bx " <<
i << endl;
276 LogError(
"L1TGlobalSummary") <<
"No alg Data in this event " << endl;
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::vector< std::pair< std::string, double > > & prescales()
Log< level::Error, false > LogError
U second(std::pair< T, U > const &p)
const std::vector< std::pair< std::string, bool > > & decisionsInterm()
std::vector< int > finalCount_
const std::vector< std::pair< std::string, bool > > & decisionsInitial()
std::vector< int > decisionCount_
const std::vector< std::pair< std::string, bool > > & decisionsFinal()
const std::vector< std::pair< std::string, std::vector< int > > > & masks()
std::vector< int > intermCount_
void retrieveL1(const edm::Event &iEvent, const edm::EventSetup &evSetup)
initialize the class (mainly reserve)