149 LogDebug(
"l1t|Global") <<
"retrieved L1 GT data blocks" << endl;
156 LogDebug(
"l1t|Global") <<
"retrieved L1 data from GT Util" << endl;
164 const std::vector<std::pair<std::string, bool> > vetoMasks =
gtUtil_->
vetoMasks();
169 LogError(
"l1t|Global") <<
"gtUtil sizes inconsistent across run." << endl;
174 cout <<
" Bit Algorithm Name Init PScd Final PS Factor Masked Veto " << endl;
175 cout <<
"============================================================================================================" << endl;
177 for(
unsigned int i=0;
i<initialDecisions.size();
i++) {
181 if(name ==
"NULL")
continue;
183 bool resultInit = (initialDecisions.at(
i)).
second;
186 bool resultPre = (prescaledDecisions.at(
i)).
second;
187 bool resultFin = (finalDecisions.at(
i)).
second;
190 int prescale = (prescales.at(
i)).
second;
191 bool mask = (masks.at(
i)).
second;
201 cout <<
std::dec << setfill(
' ') <<
" " << setw(5) <<
i <<
" " << setw(40) << name.c_str() <<
" " << setw(7) << resultInit << setw(7) << resultPre << setw(7) << resultFin << setw(10) << prescale << setw(11) << mask << setw(9) << veto << endl;
207 cout <<
" FinalOR = " << finOR <<endl;
208 cout <<
"===========================================================================================================" << endl;
216 cout <<
" ------ ext ----------" << endl;
218 if(i>=ext->getFirstBX() && i<=ext->getLastBX()) {
219 for(std::vector<GlobalExtBlk>::const_iterator extBlk = ext->begin(i); extBlk != ext->end(i); ++extBlk) {
223 cout <<
"No Ext Conditions stored for this bx " << i << endl;
226 LogError(
"L1TGlobalSummary") <<
"No ext Data in this event " << endl;
230 cout <<
" ------ alg ----------" << endl;
232 if(i>=alg->getFirstBX() && i<=alg->getLastBX()) {
233 for(std::vector<GlobalAlgBlk>::const_iterator algBlk = alg->begin(i); algBlk != alg->end(i); ++algBlk) {
237 cout <<
"No Alg Decisions stored for this bx " << i << endl;
240 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
const std::vector< std::pair< std::string, bool > > & masks()
void retrieveL1(const edm::Event &iEvent, const edm::EventSetup &evSetup, edm::EDGetToken gtAlgToken)
initialize the class (mainly reserve)
std::vector< int > prescaledCount_
U second(std::pair< T, U > const &p)
const std::vector< std::pair< std::string, bool > > & vetoMasks()
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 > > & decisionsPrescaled()
const std::vector< std::pair< std::string, bool > > & decisionsFinal()