CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Private Member Functions | Friends
L1TUtmAlgorithm Class Reference

#include <L1TUtmAlgorithm.h>

Public Member Functions

const std::string & getExpression () const
 
const std::string & getExpressionInCondition () const
 
unsigned int getIndex () const
 
unsigned int getModuleId () const
 
unsigned int getModuleIndex () const
 
const std::string & getName () const
 
const std::vector< std::string > & getRpnVector () const
 
 L1TUtmAlgorithm ()
 
 L1TUtmAlgorithm (std::string name, std::string expression, std::string expression_in_condition, std::vector< std::string > rpn_vector, unsigned int index, unsigned int module_id, unsigned int module_index, unsigned int ver)
 
 L1TUtmAlgorithm (const tmeventsetup::esAlgorithm &esAlg)
 
void setRpnVector (const std::vector< std::string > &x)
 
virtual ~L1TUtmAlgorithm ()=default
 

Protected Attributes

std::string expression_
 
std::string expression_in_condition_
 
unsigned int index_
 
unsigned int module_id_
 
unsigned int module_index_
 
std::string name_
 
std::vector< std::string > rpn_vector_
 
unsigned int version
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Author
Takashi Matsushita Created: 12 Mar 2015 This class implements data structure for Algorithm

Definition at line 22 of file L1TUtmAlgorithm.h.

Constructor & Destructor Documentation

◆ L1TUtmAlgorithm() [1/3]

L1TUtmAlgorithm::L1TUtmAlgorithm ( )
inline

Definition at line 24 of file L1TUtmAlgorithm.h.

25  : name_(),
26  expression_(),
28  rpn_vector_(),
29  index_(),
30  module_id_(),
31  module_index_(),
32  version(0){};
unsigned int module_index_
std::vector< std::string > rpn_vector_
std::string name_
unsigned int index_
std::string expression_in_condition_
std::string expression_
unsigned int version
unsigned int module_id_

◆ L1TUtmAlgorithm() [2/3]

L1TUtmAlgorithm::L1TUtmAlgorithm ( std::string  name,
std::string  expression,
std::string  expression_in_condition,
std::vector< std::string >  rpn_vector,
unsigned int  index,
unsigned int  module_id,
unsigned int  module_index,
unsigned int  ver 
)
inline

Definition at line 33 of file L1TUtmAlgorithm.h.

41  : name_(name),
42  expression_(expression),
43  expression_in_condition_(expression_in_condition),
44  rpn_vector_(rpn_vector),
45  index_(index),
46  module_id_(module_id),
47  module_index_(module_index),
48  version(ver){};
unsigned int module_index_
std::vector< std::string > rpn_vector_
std::string name_
unsigned int index_
std::string expression_in_condition_
std::string expression_
unsigned int version
unsigned int module_id_

◆ L1TUtmAlgorithm() [3/3]

L1TUtmAlgorithm::L1TUtmAlgorithm ( const tmeventsetup::esAlgorithm &  esAlg)
inline

Definition at line 50 of file L1TUtmAlgorithm.h.

51  : L1TUtmAlgorithm(esAlg.getName(),
52  esAlg.getExpression(),
53  esAlg.getExpressionInCondition(),
54  esAlg.getRpnVector(),
55  esAlg.getIndex(),
56  esAlg.getModuleId(),
57  esAlg.getModuleIndex(),
58  0 //There is no version retrieval in esAlgorithm. However, it seems pretty hard coded to 0
59  ){};

◆ ~L1TUtmAlgorithm()

virtual L1TUtmAlgorithm::~L1TUtmAlgorithm ( )
virtualdefault

Member Function Documentation

◆ getExpression()

const std::string& L1TUtmAlgorithm::getExpression ( ) const
inline

get algorithm expression in grammar

Definition at line 70 of file L1TUtmAlgorithm.h.

References expression_.

70 { return expression_; };
std::string expression_

◆ getExpressionInCondition()

const std::string& L1TUtmAlgorithm::getExpressionInCondition ( ) const
inline

get algorithm expression in condition

Definition at line 73 of file L1TUtmAlgorithm.h.

References expression_in_condition_.

73 { return expression_in_condition_; };
std::string expression_in_condition_

◆ getIndex()

unsigned int L1TUtmAlgorithm::getIndex ( ) const
inline

get algorithm index

Definition at line 79 of file L1TUtmAlgorithm.h.

References index_.

79 { return index_; };
unsigned int index_

◆ getModuleId()

unsigned int L1TUtmAlgorithm::getModuleId ( ) const
inline

get module id

Definition at line 82 of file L1TUtmAlgorithm.h.

References module_id_.

82 { return module_id_; };
unsigned int module_id_

◆ getModuleIndex()

unsigned int L1TUtmAlgorithm::getModuleIndex ( ) const
inline

get module index

Definition at line 85 of file L1TUtmAlgorithm.h.

85 { return module_index_; };
unsigned int module_index_

◆ getName()

const std::string& L1TUtmAlgorithm::getName ( ) const
inline

get algorithm name

Definition at line 67 of file L1TUtmAlgorithm.h.

References name_.

Referenced by plotting.Plot::draw().

67 { return name_; };
std::string name_

◆ getRpnVector()

const std::vector<std::string>& L1TUtmAlgorithm::getRpnVector ( ) const
inline

get reverse polish notion of algorithm expression in condition

Definition at line 76 of file L1TUtmAlgorithm.h.

References rpn_vector_.

76 { return rpn_vector_; };
std::vector< std::string > rpn_vector_

◆ serialize()

template<class Archive >
void L1TUtmAlgorithm::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setRpnVector()

void L1TUtmAlgorithm::setRpnVector ( const std::vector< std::string > &  x)
inline

set rpn_vector_

Definition at line 64 of file L1TUtmAlgorithm.h.

References rpn_vector_, and x.

64 { rpn_vector_ = x; };
std::vector< std::string > rpn_vector_

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 97 of file L1TUtmAlgorithm.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 97 of file L1TUtmAlgorithm.h.

Member Data Documentation

◆ expression_

std::string L1TUtmAlgorithm::expression_
protected

algorithm expression in grammar

Definition at line 89 of file L1TUtmAlgorithm.h.

Referenced by getExpression().

◆ expression_in_condition_

std::string L1TUtmAlgorithm::expression_in_condition_
protected

algorithm expression in condition

Definition at line 90 of file L1TUtmAlgorithm.h.

Referenced by getExpressionInCondition().

◆ index_

unsigned int L1TUtmAlgorithm::index_
protected

index of algorithm (global)

Definition at line 92 of file L1TUtmAlgorithm.h.

Referenced by getIndex().

◆ module_id_

unsigned int L1TUtmAlgorithm::module_id_
protected

module id

Definition at line 93 of file L1TUtmAlgorithm.h.

Referenced by getModuleId().

◆ module_index_

unsigned int L1TUtmAlgorithm::module_index_
protected

index of algorithm in module (local to module id)

Definition at line 94 of file L1TUtmAlgorithm.h.

◆ name_

std::string L1TUtmAlgorithm::name_
protected

name of algorithm

Definition at line 85 of file L1TUtmAlgorithm.h.

Referenced by getName().

◆ rpn_vector_

std::vector<std::string> L1TUtmAlgorithm::rpn_vector_
protected

reverse polish notation of algorithm expression in condition

Definition at line 91 of file L1TUtmAlgorithm.h.

Referenced by getRpnVector(), and setRpnVector().

◆ version

unsigned int L1TUtmAlgorithm::version
protected