BOSS 7.0.2
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.
 
 Sequence ()
 
virtual ~Sequence ()
 
std::vector< std::string > & algoVector ()
 
int algoNum () const
 
int inputNum () const
 
void setInputNum (int inputNum)
 
void setAlgoNum (int algoNum)
 
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)
 
void print ()
 

Detailed Description

Constructor & Destructor Documentation

◆ Sequence() [1/2]

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() [1/2]

HltProcessor::Sequence::~Sequence ( )
virtual

Definition at line 10 of file Sequence.cxx.

10{}

◆ Sequence() [2/2]

HltProcessor::Sequence::Sequence ( )

◆ ~Sequence() [2/2]

virtual HltProcessor::Sequence::~Sequence ( )
virtual

Member Function Documentation

◆ algoNum() [1/2]

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

◆ algoNum() [2/2]

int HltProcessor::Sequence::algoNum ( ) const

◆ algoVector() [1/2]

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

◆ algoVector() [2/2]

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

◆ getInputID() [1/2]

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

Definition at line 31 of file EventFilter/HltProcessor/HltSteerData/HltSteerData-01-00-03/HltSteerData/Sequence.h.

31 {
32 return m_inputID;
33 }

◆ getInputID() [2/2]

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

Definition at line 31 of file InstallArea/include/HltSteerData/HltSteerData/Sequence.h.

31 {
32 return m_inputID;
33 }

◆ getOutputID() [1/2]

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

Definition at line 37 of file EventFilter/HltProcessor/HltSteerData/HltSteerData-01-00-03/HltSteerData/Sequence.h.

37 {
38 return m_outputID;
39 }

◆ getOutputID() [2/2]

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

Definition at line 37 of file InstallArea/include/HltSteerData/HltSteerData/Sequence.h.

37 {
38 return m_outputID;
39 }

◆ getSeqID() [1/2]

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

Definition at line 25 of file EventFilter/HltProcessor/HltSteerData/HltSteerData-01-00-03/HltSteerData/Sequence.h.

25 {
26 return m_sequenceID;
27 }

Referenced by StepSequencer::initSequencer().

◆ getSeqID() [2/2]

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

Definition at line 25 of file InstallArea/include/HltSteerData/HltSteerData/Sequence.h.

25 {
26 return m_sequenceID;
27 }

◆ inputNum() [1/2]

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

◆ inputNum() [2/2]

int HltProcessor::Sequence::inputNum ( ) const

◆ makeVectors() [1/2]

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

◆ makeVectors() [2/2]

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

◆ print() [1/2]

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 }

◆ print() [2/2]

void HltProcessor::Sequence::print ( )

◆ setAlgoNum() [1/2]

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

◆ setAlgoNum() [2/2]

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

◆ setInputID() [1/2]

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

Definition at line 28 of file EventFilter/HltProcessor/HltSteerData/HltSteerData-01-00-03/HltSteerData/Sequence.h.

28 {
29 m_inputID = inputID;
30 }

◆ setInputID() [2/2]

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

Definition at line 28 of file InstallArea/include/HltSteerData/HltSteerData/Sequence.h.

28 {
29 m_inputID = inputID;
30 }

◆ setInputNum() [1/2]

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

◆ setInputNum() [2/2]

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

◆ setOutputID() [1/2]

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

Definition at line 34 of file EventFilter/HltProcessor/HltSteerData/HltSteerData-01-00-03/HltSteerData/Sequence.h.

34 {
35 m_outputID = outputID;
36 }

◆ setOutputID() [2/2]

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

Definition at line 34 of file InstallArea/include/HltSteerData/HltSteerData/Sequence.h.

34 {
35 m_outputID = outputID;
36 }

◆ setSeqID() [1/2]

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

Definition at line 22 of file EventFilter/HltProcessor/HltSteerData/HltSteerData-01-00-03/HltSteerData/Sequence.h.

22 {
23 m_sequenceID = seqID;
24 }

◆ setSeqID() [2/2]

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

Definition at line 22 of file InstallArea/include/HltSteerData/HltSteerData/Sequence.h.

22 {
23 m_sequenceID = seqID;
24 }

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