12 const std::string&
type,
13 const std::string& name,
14 const IInterface* parent)
41 MsgStream report(msgSvc(),name());
50 <<
"cannot build accept pattern mask."
52 return StatusCode::FAILURE;
62 <<
"cannot build reject pattern mask."
64 return StatusCode::FAILURE;
68 report << MSG::INFO <<
" " <<
endmsg;
69 report << MSG::INFO <<
" ###################" <<
endmsg;
70 report << MSG::INFO <<
" # TriggerPatterns #" <<
endmsg;
71 report << MSG::INFO <<
" ###################" <<
endmsg;
72 report << MSG::INFO <<
" " <<
endmsg;
73 report << MSG::INFO <<
" +-+-+-+-+-+-+" <<
endmsg;
74 report << MSG::INFO <<
" | | C | |" <<
endmsg;
75 report << MSG::INFO <<
" | | a | |" <<
endmsg;
76 report << MSG::INFO <<
" | | l | |" <<
endmsg;
77 report << MSG::INFO <<
" | | i | |" <<
endmsg;
78 report << MSG::INFO <<
" | P | b | |" <<
endmsg;
79 report << MSG::INFO <<
" | h | r | R |" <<
endmsg;
80 report << MSG::INFO <<
" | y | a | a |" <<
endmsg;
81 report << MSG::INFO <<
" | s | t | n |" <<
endmsg;
82 report << MSG::INFO <<
" | i | i | d |" <<
endmsg;
83 report << MSG::INFO <<
" | c | o | o |" <<
endmsg;
84 report << MSG::INFO <<
" | s | n | m |" <<
endmsg;
85 report << MSG::INFO <<
"+--------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" <<
endmsg;
87 report << MSG::INFO <<
"| accept | " ;
88 for (
unsigned int i=0; i<std::min(decoded.length(),
m_triggerBitMap.size());
91 report << MSG::INFO << decoded.substr(i,1) <<
" | ";
98 report << MSG::INFO <<
"+--------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" <<
endmsg;
99 report << MSG::INFO <<
"| reject | ";
101 for (
unsigned int i=0; i<std::min(decoded.length(),
m_triggerBitMap.size());
104 report << MSG::INFO << decoded.substr(i,1) <<
" | ";
111 report << MSG::INFO <<
"+--------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" <<
endmsg;
112 report << MSG::INFO <<
"| ignore | ";
115 for (
unsigned int i=0; i<std::min(decoded.length(),
m_triggerBitMap.size());
118 report << MSG::INFO << decoded.substr(i,1) <<
" | ";
125 report << MSG::INFO <<
"+--------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" <<
endmsg;
127 return StatusCode::SUCCESS;
137 MsgStream report(msgSvc(),name());
158 ? StatusCode::SUCCESS
159 : StatusCode::FAILURE;
168 unsigned int nBits =
sizeof(theTriggerWord) ;
169 std::string thePattern;
172 for (
unsigned int i=0; i<nBits; i++ )
174 if ( ( theTriggerWord & testPattern ) == testPattern )
176 thePattern = thePattern +
"X";
180 thePattern = thePattern +
"O";
194 MsgStream report(msgSvc(),name());
197 for (
const pattern& pat : listOfPatterns)
199 bit_mask_store::const_iterator findIter =
200 definedPattern.find(pat);
201 if ( findIter != definedPattern.end() )
203 theMask = theMask | (*findIter).second;
207 report << MSG::WARNING
208 <<
"requested pattern <"
210 <<
"> unknown, ignore..."
214 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
unsigned int getTriggerWord() const