CMS 3D CMS Logo

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

#include <L1TUtmTriggerMenu.h>

Public Member Functions

const std::map< std::string, L1TUtmAlgorithm > & getAlgorithmMap () const
 
const std::string & getComment () const
 
const std::map< std::string, L1TUtmCondition > & getConditionMap () const
 
const std::string & getDatetime () const
 
const std::string & getFirmwareUuid () const
 
const std::string & getName () const
 
const unsigned int getNmodules () const
 
const std::map< std::string, L1TUtmScale > & getScaleMap () const
 
const std::string & getScaleSetName () const
 
const std::string & getVersion () const
 
 L1TUtmTriggerMenu ()
 
void setComment (const std::string &x)
 
void setDatetime (const std::string &x)
 
void setFirmwareUuid (const std::string &x)
 
void setName (const std::string &x)
 
void setNmodules (const unsigned int x)
 
void setScaleSetName (const std::string &x)
 
void setVersion (const std::string &x)
 
virtual ~L1TUtmTriggerMenu ()
 

Protected Attributes

std::map< std::string, L1TUtmAlgorithmalgorithm_map_
 
std::string comment_
 
std::map< std::string, L1TUtmConditioncondition_map_
 
std::string datetime_
 
std::map< std::string, unsigned int > external_map_
 
unsigned int n_modules_
 
std::string name_
 
std::map< std::string, L1TUtmScalescale_map_
 
std::string scale_set_name_
 
std::map< std::string, std::string > token_to_condition_
 
std::string uuid_firmware_
 
unsigned int version
 
std::string 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
Bernhard Arnold Takashi Matsushita
Date
: 2015-03-12 This class implements data structure for TriggerMenu

Definition at line 38 of file L1TUtmTriggerMenu.h.

Constructor & Destructor Documentation

L1TUtmTriggerMenu::L1TUtmTriggerMenu ( )
inline

Definition at line 42 of file L1TUtmTriggerMenu.h.

std::map< std::string, L1TUtmAlgorithm > algorithm_map_
std::string uuid_firmware_
std::map< std::string, std::string > token_to_condition_
std::string scale_set_name_
std::map< std::string, unsigned int > external_map_
std::map< std::string, L1TUtmCondition > condition_map_
unsigned int n_modules_
std::map< std::string, L1TUtmScale > scale_map_
virtual L1TUtmTriggerMenu::~L1TUtmTriggerMenu ( )
inlinevirtual

Definition at line 48 of file L1TUtmTriggerMenu.h.

48 { };

Member Function Documentation

const std::map<std::string, L1TUtmAlgorithm>& L1TUtmTriggerMenu::getAlgorithmMap ( ) const
inline

get algorithm_map_

Returns
reference of algorithm_map_

Definition at line 54 of file L1TUtmTriggerMenu.h.

References algorithm_map_.

Referenced by L1uGTTreeProducer::analyze(), HLTInfo::analyze(), L1TriggerResultsConverter::beginRun(), L1TriggerJSONMonitoring::globalBeginRun(), triggerExpression::L1uGTReader::init(), and l1t::L1TGlobalUtil::retrieveL1Setup().

54 { return algorithm_map_; };
std::map< std::string, L1TUtmAlgorithm > algorithm_map_
const std::string& L1TUtmTriggerMenu::getComment ( ) const
inline

get comment on the menu

Returns
comment

Definition at line 85 of file L1TUtmTriggerMenu.h.

References comment_.

Referenced by l1t::L1TGlobalUtil::gtTriggerMenuComment().

85 { return comment_; };
const std::map<std::string, L1TUtmCondition>& L1TUtmTriggerMenu::getConditionMap ( ) const
inline

get condition_map_

Returns
reference of condition_map_

Definition at line 60 of file L1TUtmTriggerMenu.h.

References condition_map_.

60 { return condition_map_; };
std::map< std::string, L1TUtmCondition > condition_map_
const std::string& L1TUtmTriggerMenu::getDatetime ( ) const
inline

get datetime of the menu

Returns
datetime

Definition at line 91 of file L1TUtmTriggerMenu.h.

References datetime_.

91 { return datetime_; };
const std::string& L1TUtmTriggerMenu::getFirmwareUuid ( ) const
inline

get UUID of firmware generated by VHDL producer

Returns
UUID

Definition at line 98 of file L1TUtmTriggerMenu.h.

References uuid_firmware_.

98 { return uuid_firmware_; };
std::string uuid_firmware_
const std::string& L1TUtmTriggerMenu::getName ( ) const
inline

get menu name

Returns
name of the menu

Definition at line 73 of file L1TUtmTriggerMenu.h.

References name_.

Referenced by plotting.Plot::draw(), and l1t::L1TGlobalUtil::gtTriggerMenuName().

73 { return name_; };
const unsigned int L1TUtmTriggerMenu::getNmodules ( ) const
inline

get number of uGT boards for the menu

Returns
number of uGT boards

Definition at line 110 of file L1TUtmTriggerMenu.h.

References n_modules_.

110 { return n_modules_; };
unsigned int n_modules_
const std::map<std::string, L1TUtmScale>& L1TUtmTriggerMenu::getScaleMap ( ) const
inline

get scale_map_

Returns
reference of scale_map_

Definition at line 66 of file L1TUtmTriggerMenu.h.

References scale_map_.

66 { return scale_map_; };
std::map< std::string, L1TUtmScale > scale_map_
const std::string& L1TUtmTriggerMenu::getScaleSetName ( ) const
inline

get scale set name

Returns
scale set name

Definition at line 104 of file L1TUtmTriggerMenu.h.

References scale_set_name_.

104 { return scale_set_name_; };
std::string scale_set_name_
const std::string& L1TUtmTriggerMenu::getVersion ( ) const
inline

get grammar version

Returns
grammar version

Definition at line 79 of file L1TUtmTriggerMenu.h.

References version_.

Referenced by l1t::L1TGlobalUtil::gtTriggerMenuVersion().

79 { return version_; };
template<class Archive >
void L1TUtmTriggerMenu::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1TUtmTriggerMenu::setComment ( const std::string &  x)
inline

set comment on the menu

Parameters
x[in] comment

Definition at line 128 of file L1TUtmTriggerMenu.h.

References comment_, and x.

Referenced by ConfigToolBase.ConfigToolBase::apply().

128 { comment_ = x; };
void L1TUtmTriggerMenu::setDatetime ( const std::string &  x)
inline

set datetime of the menu

Parameters
x[in] datetime

Definition at line 134 of file L1TUtmTriggerMenu.h.

References datetime_, and x.

134 { datetime_ = x; };
void L1TUtmTriggerMenu::setFirmwareUuid ( const std::string &  x)
inline

set UUID of firmware generated by VHDL producer

Parameters
x[in] UUID

Definition at line 141 of file L1TUtmTriggerMenu.h.

References uuid_firmware_, and x.

141 { uuid_firmware_ = x; };
std::string uuid_firmware_
void L1TUtmTriggerMenu::setName ( const std::string &  x)
inline

set menu name

Parameters
x[in] name of the menu

Definition at line 116 of file L1TUtmTriggerMenu.h.

References name_, and x.

Referenced by Vispa.Gui.PortWidget.PortWidget::__init__(), and Vispa.Views.PropertyView.Property::__init__().

116 { name_ = x; };
void L1TUtmTriggerMenu::setNmodules ( const unsigned int  x)
inline

set number of uGT boards for the menu

Parameters
x[in] number of uGT boards

Definition at line 153 of file L1TUtmTriggerMenu.h.

References algorithm_map_, n_modules_, and x.

153 { n_modules_ = x; };
unsigned int n_modules_
void L1TUtmTriggerMenu::setScaleSetName ( const std::string &  x)
inline

set scale set name

Parameters
x[in] scale set name

Definition at line 147 of file L1TUtmTriggerMenu.h.

References scale_set_name_, and x.

147 { scale_set_name_ = x; };
std::string scale_set_name_
void L1TUtmTriggerMenu::setVersion ( const std::string &  x)
inline

set grammar version

Parameters
x[in] grammar version

Definition at line 122 of file L1TUtmTriggerMenu.h.

References version_, and x.

122 { version_ = x; };

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 169 of file L1TUtmTriggerMenu.h.

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

Definition at line 169 of file L1TUtmTriggerMenu.h.

Member Data Documentation

std::map<std::string, L1TUtmAlgorithm> L1TUtmTriggerMenu::algorithm_map_
protected

map of algorithm <algorithm name, L1TUtmAlgorithm>

Definition at line 153 of file L1TUtmTriggerMenu.h.

Referenced by getAlgorithmMap(), and setNmodules().

std::string L1TUtmTriggerMenu::comment_
protected

comment on the menu

Definition at line 163 of file L1TUtmTriggerMenu.h.

Referenced by getComment(), and setComment().

std::map<std::string, L1TUtmCondition> L1TUtmTriggerMenu::condition_map_
protected

map of condition <condition name, L1TUtmCondition>

Definition at line 157 of file L1TUtmTriggerMenu.h.

Referenced by getConditionMap().

std::string L1TUtmTriggerMenu::datetime_
protected

datetime of the menu

Definition at line 164 of file L1TUtmTriggerMenu.h.

Referenced by getDatetime(), and setDatetime().

std::map<std::string, unsigned int> L1TUtmTriggerMenu::external_map_
protected

map of external <external name, channel id>

Definition at line 159 of file L1TUtmTriggerMenu.h.

unsigned int L1TUtmTriggerMenu::n_modules_
protected

number of uGT boards for the menu

Definition at line 167 of file L1TUtmTriggerMenu.h.

Referenced by getNmodules(), and setNmodules().

std::string L1TUtmTriggerMenu::name_
protected

name of the menu

Definition at line 161 of file L1TUtmTriggerMenu.h.

Referenced by getName(), and setName().

std::map<std::string, L1TUtmScale> L1TUtmTriggerMenu::scale_map_
protected

map of scale <scale name, L1TUtmScale*>

Definition at line 158 of file L1TUtmTriggerMenu.h.

Referenced by getScaleMap().

std::string L1TUtmTriggerMenu::scale_set_name_
protected

scale set name

Definition at line 166 of file L1TUtmTriggerMenu.h.

Referenced by getScaleSetName(), and setScaleSetName().

std::map<std::string, std::string> L1TUtmTriggerMenu::token_to_condition_
protected

look-up table for translating expression in grammar to expression in condition

Definition at line 160 of file L1TUtmTriggerMenu.h.

std::string L1TUtmTriggerMenu::uuid_firmware_
protected

uuid of firmware

Definition at line 165 of file L1TUtmTriggerMenu.h.

Referenced by getFirmwareUuid(), and setFirmwareUuid().

unsigned int L1TUtmTriggerMenu::version
protected
std::string L1TUtmTriggerMenu::version_
protected

menu grammar version

Definition at line 162 of file L1TUtmTriggerMenu.h.

Referenced by getVersion(), and setVersion().