CMS 3D CMS Logo

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

#include <L1TUtmCondition.h>

Public Member Functions

const std::vector< L1TUtmCut > & getCuts () const
 
const std::string & getName () const
 
const std::vector< L1TUtmObject > & getObjects () const
 
const int getType () const
 
 L1TUtmCondition ()
 
 L1TUtmCondition (std::string name, int type, std::vector< L1TUtmObject > objects, std::vector< L1TUtmCut > cuts, unsigned int vers)
 
 L1TUtmCondition (const tmeventsetup::esCondition &esCond)
 
void setName (const std::string &x)
 
void setType (const int x)
 
virtual ~L1TUtmCondition ()=default
 

Protected Attributes

std::vector< L1TUtmCutcuts_
 
std::string name_
 
std::vector< L1TUtmObjectobjects_
 
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 Condition

Definition at line 25 of file L1TUtmCondition.h.

Constructor & Destructor Documentation

◆ L1TUtmCondition() [1/3]

L1TUtmCondition::L1TUtmCondition ( )
inline

Definition at line 27 of file L1TUtmCondition.h.

27 : name_(), type_(-9999), objects_(), cuts_(), version(0){};
std::string name_
std::vector< L1TUtmObject > objects_
unsigned int version
std::vector< L1TUtmCut > cuts_

◆ L1TUtmCondition() [2/3]

L1TUtmCondition::L1TUtmCondition ( std::string  name,
int  type,
std::vector< L1TUtmObject objects,
std::vector< L1TUtmCut cuts,
unsigned int  vers 
)
inline

Definition at line 28 of file L1TUtmCondition.h.

◆ L1TUtmCondition() [3/3]

L1TUtmCondition::L1TUtmCondition ( const tmeventsetup::esCondition &  esCond)
inline

Definition at line 32 of file L1TUtmCondition.h.

References cuts_, and objects_.

33  : name_(esCond.getName()), type_(esCond.getType()), version(0) {
34  objects_.reserve(esCond.getObjects().size());
35  for (auto it = esCond.getObjects().begin(); it != esCond.getObjects().end(); ++it)
36  objects_.emplace_back(L1TUtmObject(*it));
37  cuts_.reserve(esCond.getCuts().size());
38  for (auto it = esCond.getCuts().begin(); it != esCond.getCuts().end(); ++it)
39  cuts_.emplace_back(L1TUtmCut(*it));
40  };
std::string name_
std::vector< L1TUtmObject > objects_
unsigned int version
std::vector< L1TUtmCut > cuts_

◆ ~L1TUtmCondition()

virtual L1TUtmCondition::~L1TUtmCondition ( )
virtualdefault

Member Function Documentation

◆ getCuts()

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

◆ getName()

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

◆ getObjects()

const std::vector<L1TUtmObject>& L1TUtmCondition::getObjects ( ) const
inline

◆ getType()

const int L1TUtmCondition::getType ( ) const
inline

◆ serialize()

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

◆ setName()

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

set condition name

Definition at line 45 of file L1TUtmCondition.h.

References name_, and x.

45 { name_ = x; };
std::string name_

◆ setType()

void L1TUtmCondition::setType ( const int  x)
inline

set condition type

Definition at line 48 of file L1TUtmCondition.h.

References type_, and x.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 68 of file L1TUtmCondition.h.

◆ cond::serialization::access

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

Definition at line 68 of file L1TUtmCondition.h.

Member Data Documentation

◆ cuts_

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

list of cuts applied on condition

Definition at line 66 of file L1TUtmCondition.h.

Referenced by L1TUtmCondition().

◆ name_

std::string L1TUtmCondition::name_
protected

name of condition

Definition at line 60 of file L1TUtmCondition.h.

Referenced by getName(), and setName().

◆ objects_

std::vector<L1TUtmObject> L1TUtmCondition::objects_
protected

list of objects used in condition

Definition at line 65 of file L1TUtmCondition.h.

Referenced by getObjects(), and L1TUtmCondition().

◆ type_

int L1TUtmCondition::type_
protected

◆ version

unsigned int L1TUtmCondition::version
protected