163 LogDebug(
"l1t|Global") <<
"retrieved L1 GT data blocks" << endl;
170 LogDebug(
"l1t|Global") <<
"retrieved L1 data from GT Util" << endl;
176 const std::vector<std::pair<std::string, int> > prescales =
gtUtil_->
prescales();
177 const std::vector<std::pair<std::string, std::vector<int>> > masks =
gtUtil_->
masks();
182 LogError(
"l1t|Global") <<
"gtUtil sizes inconsistent across run." << endl;
187 cout <<
"\n===================================== Trigger Results for BX=0 =============================================\n" << endl;
188 cout <<
" Bit Algorithm Name Init aBXM Final PS Factor Num Bx Masked" << endl;
189 cout <<
"============================================================================================================" << endl;
191 for(
unsigned int i=0;
i<initialDecisions.size();
i++) {
195 if(name ==
"NULL")
continue;
197 bool resultInit = (initialDecisions.at(
i)).
second;
200 bool resultInterm = (intermDecisions.at(
i)).
second;
201 bool resultFin = (finalDecisions.at(
i)).
second;
214 cout <<
std::dec << setfill(
' ') <<
" " << setw(5) <<
i <<
" " << setw(40) << name.c_str() <<
" " << setw(7) << resultInit << setw(7) << resultInterm << setw(7) << resultFin << setw(10) << prescale << setw(11) << mask.size() << endl;
220 cout <<
" FinalOR = " << finOR <<endl;
221 cout <<
"===========================================================================================================" << endl;
230 cout <<
" ------ Bx= " <<
i <<
" ext ----------" << endl;
232 if(
i>=ext->getFirstBX() &&
i<=ext->getLastBX()) {
233 for(std::vector<GlobalExtBlk>::const_iterator extBlk = ext->begin(
i); extBlk != ext->end(
i); ++extBlk) {
238 cout <<
"No Ext Conditions stored for this bx " <<
i << endl;
241 LogError(
"L1TGlobalSummary") <<
"No ext Data in this event " << endl;
245 cout <<
" ------ Bx= " <<
i <<
" alg ----------" << endl;
247 if(
i>=alg->getFirstBX() &&
i<=alg->getLastBX()) {
248 for(std::vector<GlobalAlgBlk>::const_iterator algBlk = alg->begin(
i); algBlk != alg->end(
i); ++algBlk) {
253 cout <<
"No Alg Decisions stored for this bx " <<
i << endl;
256 LogError(
"L1TGlobalSummary") <<
"No alg Data in this event " << endl;
const std::vector< std::pair< std::string, int > > & prescales()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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)