CMS 3D CMS Logo

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

#include <L1TUtmObject.h>

Public Member Functions

const int getBxOffset () const
 
const int getComparisonOperator () const
 
const std::vector< L1TUtmCut > & getCuts () const
 
const unsigned int getExternalChannelId () const
 
const std::string & getExternalSignalName () const
 
const std::string & getName () const
 
const double getThreshold () const
 
const int getType () const
 
 L1TUtmObject ()
 
 L1TUtmObject (std::string name, int type, int comparison_operator, int bx_offset, double threshold, std::string ext_signal_name, unsigned int ext_channel_id, std::vector< L1TUtmCut > cuts, unsigned int vers)
 
 L1TUtmObject (const tmeventsetup::esObject &esObj)
 
void setBxOffset (const int x)
 
void setComparisonOperator (const int x)
 
void setCuts (const std::vector< L1TUtmCut > &x)
 
void setExternalChannelId (const unsigned int x)
 
void setExternalSignalName (const std::string &x)
 
void setName (const std::string &x)
 
void setThreshold (double x)
 
void setType (const int x)
 
virtual ~L1TUtmObject ()=default
 

Protected Attributes

int bx_offset_
 
int comparison_operator_
 
std::vector< L1TUtmCutcuts_
 
unsigned int ext_channel_id_
 
std::string ext_signal_name_
 
std::string name_
 
double threshold_
 
int type_
 
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 Object

Definition at line 25 of file L1TUtmObject.h.

Constructor & Destructor Documentation

◆ L1TUtmObject() [1/3]

L1TUtmObject::L1TUtmObject ( )
inline

Definition at line 27 of file L1TUtmObject.h.

28  : name_(),
29  type_(),
31  bx_offset_(),
32  threshold_(),
35  cuts_(),
36  version(0){};
std::vector< L1TUtmCut > cuts_
Definition: L1TUtmObject.h:128
int comparison_operator_
Definition: L1TUtmObject.h:123
std::string ext_signal_name_
Definition: L1TUtmObject.h:126
double threshold_
Definition: L1TUtmObject.h:125
unsigned int version
Definition: L1TUtmObject.h:129
std::string name_
Definition: L1TUtmObject.h:118
unsigned int ext_channel_id_
Definition: L1TUtmObject.h:127

◆ L1TUtmObject() [2/3]

L1TUtmObject::L1TUtmObject ( std::string  name,
int  type,
int  comparison_operator,
int  bx_offset,
double  threshold,
std::string  ext_signal_name,
unsigned int  ext_channel_id,
std::vector< L1TUtmCut cuts,
unsigned int  vers 
)
inline

Definition at line 37 of file L1TUtmObject.h.

46  : name_(name),
47  type_(type),
48  comparison_operator_(comparison_operator),
49  bx_offset_(bx_offset),
51  ext_signal_name_(ext_signal_name),
52  ext_channel_id_(ext_channel_id),
53  cuts_(cuts),
54  version(vers){};
std::vector< L1TUtmCut > cuts_
Definition: L1TUtmObject.h:128
int comparison_operator_
Definition: L1TUtmObject.h:123
std::string ext_signal_name_
Definition: L1TUtmObject.h:126
double threshold_
Definition: L1TUtmObject.h:125
unsigned int version
Definition: L1TUtmObject.h:129
std::string name_
Definition: L1TUtmObject.h:118
unsigned int ext_channel_id_
Definition: L1TUtmObject.h:127

◆ L1TUtmObject() [3/3]

L1TUtmObject::L1TUtmObject ( const tmeventsetup::esObject &  esObj)
inline

Definition at line 56 of file L1TUtmObject.h.

References cuts_, and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.

57  : name_(esObj.getName()),
58  type_(esObj.getType()),
59  comparison_operator_(esObj.getComparisonOperator()),
60  bx_offset_(esObj.getBxOffset()),
61  threshold_(esObj.getThreshold()),
62  ext_signal_name_(esObj.getExternalSignalName()),
63  ext_channel_id_(esObj.getExternalChannelId()),
64  version(0) {
65  cuts_.reserve(esObj.getCuts().size());
66  for (auto it = esObj.getCuts().begin(); it != esObj.getCuts().end(); ++it)
67  cuts_.emplace_back(L1TUtmCut(*it));
68  };
std::vector< L1TUtmCut > cuts_
Definition: L1TUtmObject.h:128
int comparison_operator_
Definition: L1TUtmObject.h:123
std::string ext_signal_name_
Definition: L1TUtmObject.h:126
double threshold_
Definition: L1TUtmObject.h:125
unsigned int version
Definition: L1TUtmObject.h:129
std::string name_
Definition: L1TUtmObject.h:118
unsigned int ext_channel_id_
Definition: L1TUtmObject.h:127

◆ ~L1TUtmObject()

virtual L1TUtmObject::~L1TUtmObject ( )
virtualdefault

Member Function Documentation

◆ getBxOffset()

const int L1TUtmObject::getBxOffset ( ) const
inline

get BX offset of the object

Definition at line 106 of file L1TUtmObject.h.

References bx_offset_.

Referenced by l1t::TriggerMenuParser::parseCaloCorr(), l1t::TriggerMenuParser::parseEnergySumCorr(), and l1t::TriggerMenuParser::parseMuonCorr().

106 { return bx_offset_; };

◆ getComparisonOperator()

const int L1TUtmObject::getComparisonOperator ( ) const
inline

get comparison operator for threshold cut

Definition at line 103 of file L1TUtmObject.h.

References comparison_operator_.

Referenced by l1t::TriggerMenuParser::parseCaloCorr(), l1t::TriggerMenuParser::parseEnergySumCorr(), and l1t::TriggerMenuParser::parseMuonCorr().

103 { return comparison_operator_; };
int comparison_operator_
Definition: L1TUtmObject.h:123

◆ getCuts()

const std::vector<L1TUtmCut>& L1TUtmObject::getCuts ( ) const
inline

get cuts on the object

Definition at line 118 of file L1TUtmObject.h.

Referenced by l1t::TriggerMenuParser::parseCaloCorr(), l1t::TriggerMenuParser::parseEnergySumCorr(), and l1t::TriggerMenuParser::parseMuonCorr().

118 { return cuts_; };
std::vector< L1TUtmCut > cuts_
Definition: L1TUtmObject.h:128

◆ getExternalChannelId()

const unsigned int L1TUtmObject::getExternalChannelId ( ) const
inline

get external channel id

Definition at line 115 of file L1TUtmObject.h.

References ext_channel_id_.

115 { return ext_channel_id_; };
unsigned int ext_channel_id_
Definition: L1TUtmObject.h:127

◆ getExternalSignalName()

const std::string& L1TUtmObject::getExternalSignalName ( ) const
inline

get external name

Definition at line 112 of file L1TUtmObject.h.

References ext_signal_name_.

112 { return ext_signal_name_; };
std::string ext_signal_name_
Definition: L1TUtmObject.h:126

◆ getName()

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

◆ getThreshold()

const double L1TUtmObject::getThreshold ( ) const
inline

get Et/pT threshold in GeV

Definition at line 109 of file L1TUtmObject.h.

References threshold_.

109 { return threshold_; };
double threshold_
Definition: L1TUtmObject.h:125

◆ getType()

const int L1TUtmObject::getType ( ) const
inline

get object type

Definition at line 100 of file L1TUtmObject.h.

References type_.

Referenced by l1t::TriggerMenuParser::parseCaloCorr(), l1t::TriggerMenuParser::parseEnergySumCorr(), and l1t::TriggerMenuParser::parseMuonCorr().

100 { return type_; };

◆ serialize()

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

◆ setBxOffset()

void L1TUtmObject::setBxOffset ( const int  x)
inline

set BX offset of the object

Definition at line 82 of file L1TUtmObject.h.

References bx_offset_, and x.

82 { bx_offset_ = x; };

◆ setComparisonOperator()

void L1TUtmObject::setComparisonOperator ( const int  x)
inline

set comparison operator for threshold

Definition at line 79 of file L1TUtmObject.h.

References comparison_operator_, and x.

◆ setCuts()

void L1TUtmObject::setCuts ( const std::vector< L1TUtmCut > &  x)
inline

set cuts

Definition at line 94 of file L1TUtmObject.h.

References cuts_, and x.

94 { cuts_ = x; };
std::vector< L1TUtmCut > cuts_
Definition: L1TUtmObject.h:128

◆ setExternalChannelId()

void L1TUtmObject::setExternalChannelId ( const unsigned int  x)
inline

set external channel id

Definition at line 91 of file L1TUtmObject.h.

References ext_channel_id_, and x.

91 { ext_channel_id_ = x; };
unsigned int ext_channel_id_
Definition: L1TUtmObject.h:127

◆ setExternalSignalName()

void L1TUtmObject::setExternalSignalName ( const std::string &  x)
inline

set external name

Definition at line 88 of file L1TUtmObject.h.

References ext_signal_name_, and x.

88 { ext_signal_name_ = x; };
std::string ext_signal_name_
Definition: L1TUtmObject.h:126

◆ setName()

void L1TUtmObject::setName ( const std::string &  x)
inline

set object name

Definition at line 73 of file L1TUtmObject.h.

References name_, and x.

73 { name_ = x; };
std::string name_
Definition: L1TUtmObject.h:118

◆ setThreshold()

void L1TUtmObject::setThreshold ( double  x)
inline

set Et/pT threshold in GeV

Definition at line 85 of file L1TUtmObject.h.

References threshold_, and x.

85 { threshold_ = x; };
double threshold_
Definition: L1TUtmObject.h:125

◆ setType()

void L1TUtmObject::setType ( const int  x)
inline

set object type

Definition at line 76 of file L1TUtmObject.h.

References type_, and x.

76 { type_ = x; };

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 130 of file L1TUtmObject.h.

◆ cond::serialization::access

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

Definition at line 130 of file L1TUtmObject.h.

Member Data Documentation

◆ bx_offset_

int L1TUtmObject::bx_offset_
protected

bunch crossing offset of object

Definition at line 124 of file L1TUtmObject.h.

Referenced by getBxOffset(), and setBxOffset().

◆ comparison_operator_

int L1TUtmObject::comparison_operator_
protected

comparison operator for threshold cut

Definition at line 123 of file L1TUtmObject.h.

Referenced by getComparisonOperator(), and setComparisonOperator().

◆ cuts_

std::vector<L1TUtmCut> L1TUtmObject::cuts_
protected

list of cuts applied on object

Definition at line 128 of file L1TUtmObject.h.

Referenced by L1TUtmObject(), and setCuts().

◆ ext_channel_id_

unsigned int L1TUtmObject::ext_channel_id_
protected

channel id of external signal, only valid when esObjectType == EXT

Definition at line 127 of file L1TUtmObject.h.

Referenced by getExternalChannelId(), and setExternalChannelId().

◆ ext_signal_name_

std::string L1TUtmObject::ext_signal_name_
protected

name of extenal signal, only valid when esObjectType == EXT

Definition at line 126 of file L1TUtmObject.h.

Referenced by getExternalSignalName(), and setExternalSignalName().

◆ name_

std::string L1TUtmObject::name_
protected

name of object

Definition at line 118 of file L1TUtmObject.h.

Referenced by getName(), and setName().

◆ threshold_

double L1TUtmObject::threshold_
protected

threshold in GeV

Definition at line 125 of file L1TUtmObject.h.

Referenced by getThreshold(), and setThreshold().

◆ type_

int L1TUtmObject::type_
protected

◆ version

unsigned int L1TUtmObject::version
protected