BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
HltProcessor::Sequence Class Reference

#include <Sequence.h>

Public Member Functions

 Sequence ()
 
virtual ~Sequence ()
 
std::vector< std::string > & algoVector ()
 Retrieve algorithm vector reference.
 
int algoNum () const
 Retrieve number of algorithms.
 
int inputNum () const
 Retrieve number of inputs.
 
void setInputNum (int inputNum)
 Set number of inputs.
 
void setAlgoNum (int algoNum)
 Retrieve number of algorithms.
 
void setSeqID (std::string seqID)
 
const std::string & getSeqID () const
 
void setInputID (std::string inputID)
 
const std::string & getInputID () const
 
void setOutputID (std::string outputID)
 
const std::string & getOutputID () const
 
void makeVectors (std::string algoString)
 Build all std::vectors from string XML information.
 
void print ()
 Print all std::vectors and all other information for a given sequence.
 

Detailed Description

Definition at line 11 of file Sequence.h.

Constructor & Destructor Documentation

◆ Sequence()

HltProcessor::Sequence::Sequence ( )

Definition at line 5 of file Sequence.cxx.

5 :
6 m_sequenceAlgoVector(), m_sequenceInputNum(0), m_sequenceAlgoNum(0) {
7 m_msgSvcProvider = MessageSvcProvider::instance();
8 }
static MessageSvcProvider * instance()

◆ ~Sequence()

HltProcessor::Sequence::~Sequence ( )
virtual

Definition at line 10 of file Sequence.cxx.

10{}

Member Function Documentation

◆ algoNum()

int HltProcessor::Sequence::algoNum ( ) const

Retrieve number of algorithms.

Definition at line 18 of file Sequence.cxx.

18 {
19 return m_sequenceAlgoNum;
20 }

Referenced by StepSequencer::initSequencer(), makeVectors(), and setAlgoNum().

◆ algoVector()

std::vector< std::string > & HltProcessor::Sequence::algoVector ( )

Retrieve algorithm vector reference.

Definition at line 13 of file Sequence.cxx.

13 {
14 return m_sequenceAlgoVector;
15 }

Referenced by StepSequencer::initSequencer(), makeVectors(), print(), and StepSequencer::searchAlgForEachTE_o().

◆ getInputID()

const std::string & HltProcessor::Sequence::getInputID ( ) const
inline

Definition at line 31 of file Sequence.h.

31 {
32 return m_inputID;
33 }

◆ getOutputID()

const std::string & HltProcessor::Sequence::getOutputID ( ) const
inline

Definition at line 37 of file Sequence.h.

37 {
38 return m_outputID;
39 }

◆ getSeqID()

const std::string & HltProcessor::Sequence::getSeqID ( ) const
inline

Definition at line 25 of file Sequence.h.

25 {
26 return m_sequenceID;
27 }

Referenced by StepSequencer::initSequencer().

◆ inputNum()

int HltProcessor::Sequence::inputNum ( ) const

Retrieve number of inputs.

Definition at line 23 of file Sequence.cxx.

23 {
24 return m_sequenceInputNum;
25 }

Referenced by setInputNum().

◆ makeVectors()

void HltProcessor::Sequence::makeVectors ( std::string  algoString)

Build all std::vectors from string XML information.

Definition at line 38 of file Sequence.cxx.

38 {
39 std::string::size_type begIdx,endIdx;
40 std::string helpString;
41 std::string delims(" ");
42
43 // Do it for the algorithm string:
44 begIdx = algoString.find_first_not_of(delims);
45 while (begIdx != std::string::npos) {
46 endIdx = algoString.find_first_of(delims, begIdx);
47 if (endIdx == std::string::npos)
48 endIdx = algoString.length();
49 helpString = algoString.substr(begIdx, endIdx - begIdx);
50 //std::cout<<"Sequence "<<helpString<<std::endl;
51 algoVector().push_back(helpString);
52 setAlgoNum(algoNum() + 1);
53 begIdx = algoString.find_first_not_of(delims, endIdx);
54 }
55 }
int algoNum() const
Retrieve number of algorithms.
Definition: Sequence.cxx:18
std::vector< std::string > & algoVector()
Retrieve algorithm vector reference.
Definition: Sequence.cxx:13
void setAlgoNum(int algoNum)
Retrieve number of algorithms.
Definition: Sequence.cxx:28

◆ print()

void HltProcessor::Sequence::print ( )

Print all std::vectors and all other information for a given sequence.

Definition at line 58 of file Sequence.cxx.

58 {
59 MsgStream log(m_msgSvcProvider->msgSvc(), "Sequence");
60 log << MSG::INFO << "EventFilter: ";
61 log << MSG::INFO << "\t Algo(s): ";
62 for(std::vector<std::string>::iterator i = algoVector().begin();
63 i!=algoVector().end(); ++i){
64 log << MSG::INFO << *i << ' ';
65 }
66 log << endreq;
67 }
IMessageSvc * msgSvc()

◆ setAlgoNum()

void HltProcessor::Sequence::setAlgoNum ( int  algoNum)

Retrieve number of algorithms.

Definition at line 28 of file Sequence.cxx.

28 {
29 m_sequenceAlgoNum = algoNum;
30 }

Referenced by makeVectors().

◆ setInputID()

void HltProcessor::Sequence::setInputID ( std::string  inputID)
inline

Definition at line 28 of file Sequence.h.

28 {
29 m_inputID = inputID;
30 }

◆ setInputNum()

void HltProcessor::Sequence::setInputNum ( int  inputNum)

Set number of inputs.

Definition at line 33 of file Sequence.cxx.

33 {
34 m_sequenceInputNum = inputNum;
35 }
int inputNum() const
Retrieve number of inputs.
Definition: Sequence.cxx:23

◆ setOutputID()

void HltProcessor::Sequence::setOutputID ( std::string  outputID)
inline

Definition at line 34 of file Sequence.h.

34 {
35 m_outputID = outputID;
36 }

◆ setSeqID()

void HltProcessor::Sequence::setSeqID ( std::string  seqID)
inline

Definition at line 22 of file Sequence.h.

22 {
23 m_sequenceID = seqID;
24 }

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