14 #include <boost/regex.hpp>
48 triggerMenuLite.
getByLabel( event->
getRun(),
"l1GtTriggerMenuLite",
"",
"" );
49 triggerRecord.
getByLabel( *event,
"gtDigis",
"",
"" );
53 fwLog(
fwlog::kWarning ) <<
"FWL1TriggerTableView: no L1Trigger menu is available." << std::endl;
61 int pfIndexTechTrig = -1;
62 int pfIndexAlgoTrig = -1;
69 pfIndexAlgoTrig = ( triggerRecord->
gtFdlWord()).gtPrescaleFactorIndexAlgo();
70 pfIndexTechTrig = ( triggerRecord->
gtFdlWord()).gtPrescaleFactorIndexTech();
72 int pfIndexTechTrigValidSize =
static_cast<int>(prescaleFactorsTechTrig.size());
73 if( pfIndexTechTrigValidSize <= pfIndexTechTrig )
74 fwLog(
fwlog::kError) << Form(
"FWL1TriggerTableView: Can't get Technical Trigger pre-scale factors. Index [%d] larger that table size [%d]\n",
75 pfIndexTechTrig, (
int)prescaleFactorsTechTrig.size());
76 int pfIndexAlgoTrigValidSize =
static_cast<int>(prescaleFactorsAlgoTrig.size());
77 if( pfIndexAlgoTrigValidSize <= pfIndexAlgoTrig )
78 fwLog(
fwlog::kError) << Form(
"FWL1TriggerTableView: Can't get L1 Algo pre-scale factors. Index [%d] larger that table size [%d]\n",
79 pfIndexAlgoTrig, (
int)prescaleFactorsAlgoTrig.size());
83 itTrig != itTrigEnd; ++itTrig )
85 const unsigned int bitNumber = itTrig->first;
90 if ( !boost::regex_search(aName,
filter) )
continue;
92 m_columns.at(0).values.push_back( aName );
93 m_columns.at(1).values.push_back( Form(
"%d", result ));
94 m_columns.at(2).values.push_back( Form(
"%d", bitNumber ));
96 if(( pfIndexAlgoTrig < pfIndexAlgoTrigValidSize )
97 && static_cast<unsigned int>(prescaleFactorsAlgoTrig.at(pfIndexAlgoTrig).size()) > bitNumber )
99 m_columns.at(3).values.push_back( Form(
"%d", prescaleFactorsAlgoTrig.at( pfIndexAlgoTrig ).at( bitNumber )));
102 m_columns.at(3).values.push_back(
"invalid");
105 const static std::string kTechTriggerName =
"TechTrigger";
110 if(boost::regex_search(kTechTriggerName,
filter))
112 for( TechnicalTriggerWord::const_iterator tBitIt = ttWord.begin(), tBitEnd = ttWord.end();
113 tBitIt != tBitEnd; ++tBitIt, ++tBitNumber )
120 m_columns.at(0).values.push_back( kTechTriggerName );
121 m_columns.at(1).values.push_back( Form(
"%d", tBitResult ));
122 m_columns.at(2).values.push_back( Form(
"%d", tBitNumber ));
124 if (( pfIndexTechTrig < pfIndexTechTrigValidSize )
125 && static_cast<int>(prescaleFactorsTechTrig.at(pfIndexTechTrig).size()) > tBitNumber )
127 m_columns.at(3).values.push_back( Form(
"%d", prescaleFactorsTechTrig.at( pfIndexTechTrig ).at( tBitNumber )));
130 m_columns.at(3).values.push_back( Form(
"invalid" ));
136 m_columns.at(0).values.push_back(
"No L1Trigger menu available." );
std::vector< Column > m_columns
const TechnicalTriggerWord & technicalTriggerWord(int bxInEventValue) const
FWStringParameter m_regex
fwlite::Run const & getRun() const
void getByLabel(const P &iP, const char *iModuleLabel, const char *iProductInstanceLabel=0, const char *iProcessLabel=0)
std::vector< bool > DecisionWord
typedefs
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
const DecisionWord & decisionWord(int bxInEventValue) const
const L1GtFdlWord gtFdlWord(int bxInEventValue) const
get / set FDL word (record) in the GT readout record
FWL1TriggerTableView(TEveWindowSlot *)
virtual void fillTable(fwlite::Event *event)