BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
HltProcessor::Signature Class Reference

#include <Signature.h>

Public Member Functions

 Signature ()
 Constructors //.
 
 Signature (std::vector< HltCriteria * >)
 
virtual ~Signature ()
 Destructor //.
 
int id () const
 Returns the id //.
 
void setId (int)
 set the id //
 
void print ()
 Print method. //.
 
void makeVectors (HltCriteria *criteria)
 
bool isVeto () const
 Get veto or not. //.
 
void setVeto (bool)
 set veto. //
 
float forcedAccept () const
 Get the forced accept rate. //.
 
void setForcedAccept (float)
 Set the forced accept rate. //.
 
int prescale () const
 Get prescale. //.
 
void setPrescale (int)
 Set prescale. //.
 
int predecessorId ()
 
int successorId ()
 
void setPredecessorId (int)
 
void setSuccessorId (int)
 
void setSigLabel (std::string label)
 
std::string label () const
 
int isCriteriaMatched ()
 For trigger.
 
const std::string & result () const
 
const std::string & midresult () const
 
 Signature ()
 
 Signature (std::vector< HltCriteria * >)
 
virtual ~Signature ()
 
int id () const
 
void setId (int)
 
void print ()
 
void makeVectors (HltCriteria *criteria)
 
bool isVeto () const
 
void setVeto (bool)
 
float forcedAccept () const
 
void setForcedAccept (float)
 
int prescale () const
 
void setPrescale (int)
 
int predecessorId ()
 
int successorId ()
 
void setPredecessorId (int)
 
void setSuccessorId (int)
 
void setSigLabel (std::string label)
 
std::string label () const
 
int isCriteriaMatched ()
 For trigger.
 
const std::string & result () const
 
const std::string & midresult () const
 

Detailed Description

Constructor & Destructor Documentation

◆ Signature() [1/4]

Signature::Signature ( )

Constructors //.

Definition at line 15 of file Signature.cxx.

15 :
16m_SignaturePrescale(1),m_SignatureForcedRate(1.),m_Id(0) {
17 m_msgSvcProvider = MessageSvcProvider::instance();
18}
static MessageSvcProvider * instance()

◆ Signature() [2/4]

Signature::Signature ( std::vector< HltCriteria * >  vec)

Definition at line 20 of file Signature.cxx.

20 :
21 m_criteriaVec(vec),
22 m_SignaturePrescale(1),
23 m_SignatureForcedRate(1.),
24 m_Id(0),
25 m_Predecessor_Id(0),
26 m_Successor_Id(0)
27{
28 m_msgSvcProvider = MessageSvcProvider::instance();
29}

◆ ~Signature() [1/2]

Signature::~Signature ( )
virtual

Destructor //.

Definition at line 32 of file Signature.cxx.

32 {
33 int size = m_criteriaVec.size();
34 for (int i = 0; i < size; i++) delete m_criteriaVec[i];
35}

◆ Signature() [3/4]

HltProcessor::Signature::Signature ( )

◆ Signature() [4/4]

HltProcessor::Signature::Signature ( std::vector< HltCriteria * >  )

◆ ~Signature() [2/2]

virtual HltProcessor::Signature::~Signature ( )
virtual

Member Function Documentation

◆ forcedAccept() [1/2]

float Signature::forcedAccept ( ) const

Get the forced accept rate. //.

Definition at line 58 of file Signature.cxx.

59{
60 return m_SignatureForcedRate;
61}

◆ forcedAccept() [2/2]

float HltProcessor::Signature::forcedAccept ( ) const

◆ id() [1/2]

int Signature::id ( ) const

Returns the id //.

Definition at line 52 of file Signature.cxx.

52{ return m_Id; }

Referenced by setId(), setPredecessorId(), and setSuccessorId().

◆ id() [2/2]

int HltProcessor::Signature::id ( ) const

◆ isCriteriaMatched() [1/2]

int Signature::isCriteriaMatched ( )

For trigger.

Definition at line 117 of file Signature.cxx.

117 {
118 int size = m_criteriaVec.size();
119 m_midMark="";
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);
127 }
128 else {
129 return m_criteriaVec[i]->idCriteria();
130 }
131 }
132 }
133 m_result = "";
134 return -1;
135}

Referenced by StepDecision::execDecision().

◆ isCriteriaMatched() [2/2]

int HltProcessor::Signature::isCriteriaMatched ( )

For trigger.

◆ isVeto() [1/2]

bool Signature::isVeto ( ) const

Get veto or not. //.

Definition at line 82 of file Signature.cxx.

83{
84 return m_SignatureVeto;
85}

◆ isVeto() [2/2]

bool HltProcessor::Signature::isVeto ( ) const

◆ label() [1/2]

std::string Signature::label ( ) const

Definition at line 113 of file Signature.cxx.

113 {
114 return m_Sig_label;
115}

Referenced by StepDecision::initDecision(), and setSigLabel().

◆ label() [2/2]

std::string HltProcessor::Signature::label ( ) const

◆ makeVectors() [1/2]

void Signature::makeVectors ( HltCriteria criteria)

Definition at line 47 of file Signature.cxx.

47 {
48 m_criteriaVec.push_back(criteria);
49}

◆ makeVectors() [2/2]

void HltProcessor::Signature::makeVectors ( HltCriteria criteria)

◆ midresult() [1/2]

const std::string & HltProcessor::Signature::midresult ( ) const
inline

Definition at line 45 of file EventFilter/HltProcessor/HltSteerData/HltSteerData-01-00-03/HltSteerData/Signature.h.

45 {
46 return m_midMark;
47 }

Referenced by StepDecision::execDecision().

◆ midresult() [2/2]

const std::string & HltProcessor::Signature::midresult ( ) const
inline

Definition at line 45 of file InstallArea/include/HltSteerData/HltSteerData/Signature.h.

45 {
46 return m_midMark;
47 }

◆ predecessorId() [1/2]

int Signature::predecessorId ( )

Definition at line 93 of file Signature.cxx.

93 {
94 return m_Predecessor_Id;
95}

◆ predecessorId() [2/2]

int HltProcessor::Signature::predecessorId ( )

◆ prescale() [1/2]

int Signature::prescale ( ) const

Get prescale. //.

Definition at line 70 of file Signature.cxx.

71{
72 return m_SignaturePrescale;
73}

◆ prescale() [2/2]

int HltProcessor::Signature::prescale ( ) const

◆ print() [1/2]

void Signature::print ( )

Print method. //.

Definition at line 38 of file Signature.cxx.

39{
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;
45}

◆ print() [2/2]

void HltProcessor::Signature::print ( )

◆ result() [1/2]

const std::string & HltProcessor::Signature::result ( ) const
inline

Definition at line 42 of file EventFilter/HltProcessor/HltSteerData/HltSteerData-01-00-03/HltSteerData/Signature.h.

42 {
43 return m_result;
44 }

Referenced by StepDecision::execDecision().

◆ result() [2/2]

const std::string & HltProcessor::Signature::result ( ) const
inline

Definition at line 42 of file InstallArea/include/HltSteerData/HltSteerData/Signature.h.

42 {
43 return m_result;
44 }

◆ setForcedAccept() [1/2]

void Signature::setForcedAccept ( float  value)

Set the forced accept rate. //.

Definition at line 64 of file Signature.cxx.

65{
66 m_SignatureForcedRate = value;
67}

◆ setForcedAccept() [2/2]

void HltProcessor::Signature::setForcedAccept ( float  )

◆ setId() [1/2]

void Signature::setId ( int  id)

set the id //

Definition at line 55 of file Signature.cxx.

55{ m_Id=id; }
int id() const
Returns the id //.
Definition: Signature.cxx:52

◆ setId() [2/2]

void HltProcessor::Signature::setId ( int  )

◆ setPredecessorId() [1/2]

void Signature::setPredecessorId ( int  id)

Definition at line 101 of file Signature.cxx.

101 {
102 m_Predecessor_Id=id;
103}

◆ setPredecessorId() [2/2]

void HltProcessor::Signature::setPredecessorId ( int  )

◆ setPrescale() [1/2]

void Signature::setPrescale ( int  value)

Set prescale. //.

Definition at line 76 of file Signature.cxx.

77{
78 m_SignaturePrescale = value;
79}

◆ setPrescale() [2/2]

void HltProcessor::Signature::setPrescale ( int  )

◆ setSigLabel() [1/2]

void Signature::setSigLabel ( std::string  label)

Definition at line 109 of file Signature.cxx.

109 {
110 m_Sig_label = label;
111}
std::string label() const
Definition: Signature.cxx:113

◆ setSigLabel() [2/2]

void HltProcessor::Signature::setSigLabel ( std::string  label)

◆ setSuccessorId() [1/2]

void Signature::setSuccessorId ( int  id)

Definition at line 105 of file Signature.cxx.

105 {
106 m_Successor_Id=id;
107}

◆ setSuccessorId() [2/2]

void HltProcessor::Signature::setSuccessorId ( int  )

◆ setVeto() [1/2]

void Signature::setVeto ( bool  value)

set veto. //

Definition at line 88 of file Signature.cxx.

89{
90 m_SignatureVeto = value;
91}

◆ setVeto() [2/2]

void HltProcessor::Signature::setVeto ( bool  )

◆ successorId() [1/2]

int Signature::successorId ( )

Definition at line 97 of file Signature.cxx.

97 {
98 return m_Successor_Id;
99}

◆ successorId() [2/2]

int HltProcessor::Signature::successorId ( )

The documentation for this class was generated from the following files: