10#include "GaudiKernel/StatusCode.h"
16m_SignaturePrescale(1),m_SignatureForcedRate(1.),m_Id(0) {
22 m_SignaturePrescale(1),
23 m_SignatureForcedRate(1.),
33 int size = m_criteriaVec.size();
34 for (
int i = 0; i < size; i++)
delete m_criteriaVec[i];
40 MsgStream log(m_msgSvcProvider->
msgSvc(),
"Signature");
41 log << MSG::INFO <<
"< ";
42 log << MSG::INFO <<
"> \t prescale " << m_SignaturePrescale
43 <<
" \t forcedAccept " << m_SignatureForcedRate
44 <<
" \t id " << m_Id << endreq;
48 m_criteriaVec.push_back(criteria);
60 return m_SignatureForcedRate;
66 m_SignatureForcedRate = value;
72 return m_SignaturePrescale;
78 m_SignaturePrescale = value;
84 return m_SignatureVeto;
90 m_SignatureVeto = value;
94 return m_Predecessor_Id;
98 return m_Successor_Id;
118 int size = m_criteriaVec.size();
120 for (
int i = 0; i < size; i++) {
121 if (m_criteriaVec[i]->satisfyCriteria()) {
122 m_result = m_criteriaVec[i]->getBehaviour();
123 std::string::size_type separator=m_result.find(
'_');
124 std::string perform = m_result.substr(0, separator);
125 if(perform==
"continue"){
126 m_midMark = m_result.substr(separator+1);
129 return m_criteriaVec[i]->idCriteria();
void setForcedAccept(float)
Set the forced accept rate. //.
bool isVeto() const
Get veto or not. //.
void setSigLabel(std::string label)
float forcedAccept() const
Get the forced accept rate. //.
void setPredecessorId(int)
int isCriteriaMatched()
For trigger.
void makeVectors(HltCriteria *criteria)
int prescale() const
Get prescale. //.
int id() const
Returns the id //.
Signature()
Constructors //.
std::string label() const
virtual ~Signature()
Destructor //.
void setVeto(bool)
set veto. //
void print()
Print method. //.
void setPrescale(int)
Set prescale. //.
void setId(int)
set the id //
static MessageSvcProvider * instance()