164 LogDebug(
"l1t|Global") <<
"retrieved L1 GT data blocks" << endl;
171 LogDebug(
"l1t|Global") <<
"retrieved L1 data from GT Util" << endl;
177 const std::vector<std::pair<std::string, int> > prescales =
gtUtil_->
prescales();
178 const std::vector<std::pair<std::string, std::vector<int>> >
masks =
gtUtil_->
masks();
183 LogError(
"l1t|Global") <<
"gtUtil sizes inconsistent across run." << endl;
188 cout <<
"\n===================================== Trigger Results for BX=0 =============================================\n" << endl;
189 cout <<
" Bit Algorithm Name Init aBXM Final PS Factor Num Bx Masked" << endl;
190 cout <<
"============================================================================================================" << endl;
192 for(
unsigned int i=0;
i<initialDecisions.size();
i++) {
196 if(name ==
"NULL")
continue;
198 bool resultInit = (initialDecisions.at(
i)).
second;
201 bool resultInterm = (intermDecisions.at(
i)).
second;
202 bool resultFin = (finalDecisions.at(
i)).
second;
205 int prescale = (prescales.at(
i)).
second;
215 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;
221 cout <<
" FinalOR = " << finOR <<endl;
222 cout <<
"===========================================================================================================" << endl;
231 cout <<
" ------ Bx= " <<
i <<
" ext ----------" << endl;
233 if(
i>=ext->getFirstBX() &&
i<=ext->getLastBX()) {
234 for(std::vector<GlobalExtBlk>::const_iterator extBlk = ext->begin(
i); extBlk != ext->end(
i); ++extBlk) {
239 cout <<
"No Ext Conditions stored for this bx " <<
i << endl;
242 LogError(
"L1TGlobalSummary") <<
"No ext Data in this event " << endl;
246 cout <<
" ------ Bx= " <<
i <<
" alg ----------" << endl;
248 if(
i>=alg->getFirstBX() &&
i<=alg->getLastBX()) {
249 for(std::vector<GlobalAlgBlk>::const_iterator algBlk = alg->begin(
i); algBlk != alg->end(
i); ++algBlk) {
254 cout <<
"No Alg Decisions stored for this bx " <<
i << endl;
257 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_
constexpr uint32_t masks[]
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)