BOSS 7.0.7
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
 

Detailed Description

Definition at line 14 of file Signature.h.

Constructor & Destructor Documentation

◆ Signature() [1/2]

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/2]

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()

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}

Member Function Documentation

◆ forcedAccept()

float Signature::forcedAccept ( ) const

Get the forced accept rate. //.

Definition at line 58 of file Signature.cxx.

59{
60 return m_SignatureForcedRate;
61}

◆ id()

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().

◆ isCriteriaMatched()

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().

◆ isVeto()

bool Signature::isVeto ( ) const

Get veto or not. //.

Definition at line 82 of file Signature.cxx.

83{
84 return m_SignatureVeto;
85}

◆ label()

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().

◆ makeVectors()

void Signature::makeVectors ( HltCriteria criteria)

Definition at line 47 of file Signature.cxx.

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

◆ midresult()

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

Definition at line 45 of file Signature.h.

45 {
46 return m_midMark;
47 }

Referenced by StepDecision::execDecision().

◆ predecessorId()

int Signature::predecessorId ( )

Definition at line 93 of file Signature.cxx.

93 {
94 return m_Predecessor_Id;
95}

◆ prescale()

int Signature::prescale ( ) const

Get prescale. //.

Definition at line 70 of file Signature.cxx.

71{
72 return m_SignaturePrescale;
73}

◆ print()

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}
IMessageSvc * msgSvc()

◆ result()

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

Definition at line 42 of file Signature.h.

42 {
43 return m_result;
44 }

Referenced by StepDecision::execDecision().

◆ setForcedAccept()

void Signature::setForcedAccept ( float  value)

Set the forced accept rate. //.

Definition at line 64 of file Signature.cxx.

65{
66 m_SignatureForcedRate = value;
67}

◆ setId()

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

◆ setPredecessorId()

void Signature::setPredecessorId ( int  id)

Definition at line 101 of file Signature.cxx.

101 {
102 m_Predecessor_Id=id;
103}

◆ setPrescale()

void Signature::setPrescale ( int  value)

Set prescale. //.

Definition at line 76 of file Signature.cxx.

77{
78 m_SignaturePrescale = value;
79}

◆ setSigLabel()

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

◆ setSuccessorId()

void Signature::setSuccessorId ( int  id)

Definition at line 105 of file Signature.cxx.

105 {
106 m_Successor_Id=id;
107}

◆ setVeto()

void Signature::setVeto ( bool  value)

set veto. //

Definition at line 88 of file Signature.cxx.

89{
90 m_SignatureVeto = value;
91}

◆ successorId()

int Signature::successorId ( )

Definition at line 97 of file Signature.cxx.

97 {
98 return m_Successor_Id;
99}

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