CMS 3D CMS Logo

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

#include <L1TUtmCut.h>

Public Member Functions

const int getCutType () const
 
const std::string & getData () const
 
const std::string & getKey () const
 
const L1TUtmCutValuegetMaximum () const
 
const unsigned int getMaximumIndex () const
 
const double getMaximumValue () const
 
const L1TUtmCutValuegetMinimum () const
 
const unsigned int getMinimumIndex () const
 
const double getMinimumValue () const
 
const std::string & getName () const
 
const int getObjectType () const
 
const unsigned int getPrecision () const
 
 L1TUtmCut ()
 
 L1TUtmCut (std::string name, int object_type, int cut_type, L1TUtmCutValue minimum, L1TUtmCutValue maximum, std::string data, std::string key, unsigned int vers)
 
 L1TUtmCut (const tmeventsetup::esCut &esC)
 
void setCutType (const int type)
 
void setMaximum (const L1TUtmCutValue &maximum)
 
void setMaximumIndex (const unsigned int index)
 
void setMaximumValue (const double value)
 
void setMinimum (const L1TUtmCutValue &minimum)
 
void setMinimumIndex (const unsigned int index)
 
void setMinimumValue (const double value)
 
void setName (const std::string &name)
 
void setObjectType (const int type)
 
void setPrecision (const unsigned int precision)
 
virtual ~L1TUtmCut ()=default
 

Protected Attributes

int cut_type_
 
std::string data_
 
std::string key_
 
L1TUtmCutValue maximum_
 
L1TUtmCutValue minimum_
 
std::string name_
 
int object_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: 8 Nov 2015 This class implements data structure for Cut

Definition at line 23 of file L1TUtmCut.h.

Constructor & Destructor Documentation

◆ L1TUtmCut() [1/3]

L1TUtmCut::L1TUtmCut ( )
inline

Definition at line 25 of file L1TUtmCut.h.

25 : name_(), object_type_(), cut_type_(), minimum_(), maximum_(), data_(), key_(), version(0){};
unsigned int version
Definition: L1TUtmCut.h:132
L1TUtmCutValue maximum_
Definition: L1TUtmCut.h:129
int cut_type_
Definition: L1TUtmCut.h:127
L1TUtmCutValue minimum_
Definition: L1TUtmCut.h:128
int object_type_
Definition: L1TUtmCut.h:126
std::string name_
Definition: L1TUtmCut.h:122
std::string key_
Definition: L1TUtmCut.h:131
std::string data_
Definition: L1TUtmCut.h:130

◆ L1TUtmCut() [2/3]

L1TUtmCut::L1TUtmCut ( std::string  name,
int  object_type,
int  cut_type,
L1TUtmCutValue  minimum,
L1TUtmCutValue  maximum,
std::string  data,
std::string  key,
unsigned int  vers 
)
inline

Definition at line 26 of file L1TUtmCut.h.

34  : name_(name),
35  object_type_(object_type),
36  cut_type_(cut_type),
37  minimum_(minimum),
38  maximum_(maximum),
39  data_(data),
40  key_(key),
41  version(vers){};
unsigned int version
Definition: L1TUtmCut.h:132
L1TUtmCutValue maximum_
Definition: L1TUtmCut.h:129
int cut_type_
Definition: L1TUtmCut.h:127
L1TUtmCutValue minimum_
Definition: L1TUtmCut.h:128
int object_type_
Definition: L1TUtmCut.h:126
std::string name_
Definition: L1TUtmCut.h:122
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
std::string key_
Definition: L1TUtmCut.h:131
std::string data_
Definition: L1TUtmCut.h:130

◆ L1TUtmCut() [3/3]

L1TUtmCut::L1TUtmCut ( const tmeventsetup::esCut &  esC)
inline

Definition at line 43 of file L1TUtmCut.h.

44  : L1TUtmCut(esC.getName(),
45  esC.getObjectType(),
46  esC.getCutType(),
47  L1TUtmCutValue(esC.getMinimum()),
48  L1TUtmCutValue(esC.getMaximum()),
49  esC.getData(),
50  esC.getKey(),
51  0){};
L1TUtmCut()
Definition: L1TUtmCut.h:25

◆ ~L1TUtmCut()

virtual L1TUtmCut::~L1TUtmCut ( )
virtualdefault

Member Function Documentation

◆ getCutType()

const int L1TUtmCut::getCutType ( ) const
inline

get cut type

Definition at line 95 of file L1TUtmCut.h.

References cut_type_.

95 { return cut_type_; };
int cut_type_
Definition: L1TUtmCut.h:127

◆ getData()

const std::string& L1TUtmCut::getData ( ) const
inline

get data

Definition at line 116 of file L1TUtmCut.h.

References data_.

116 { return data_; };
std::string data_
Definition: L1TUtmCut.h:130

◆ getKey()

const std::string& L1TUtmCut::getKey ( ) const
inline

◆ getMaximum()

const L1TUtmCutValue& L1TUtmCut::getMaximum ( ) const
inline

get L1TUtmCutValue struct for maximum value of cut range

Definition at line 101 of file L1TUtmCut.h.

References maximum_.

101 { return maximum_; };
L1TUtmCutValue maximum_
Definition: L1TUtmCut.h:129

◆ getMaximumIndex()

const unsigned int L1TUtmCut::getMaximumIndex ( ) const
inline

get L1TUtmCutValue struct for maximum value of cut range

Definition at line 113 of file L1TUtmCut.h.

References L1TUtmCutValue::index, and maximum_.

113 { return maximum_.index; };
L1TUtmCutValue maximum_
Definition: L1TUtmCut.h:129
unsigned int index

◆ getMaximumValue()

const double L1TUtmCut::getMaximumValue ( ) const
inline

get L1TUtmCutValue struct for maximum value of cut range

Definition at line 107 of file L1TUtmCut.h.

References maximum_, and L1TUtmCutValue::value.

107 { return maximum_.value; };
L1TUtmCutValue maximum_
Definition: L1TUtmCut.h:129

◆ getMinimum()

const L1TUtmCutValue& L1TUtmCut::getMinimum ( ) const
inline

get L1TUtmCutValue struct for minimum value of cut range

Definition at line 98 of file L1TUtmCut.h.

References minimum_.

98 { return minimum_; };
L1TUtmCutValue minimum_
Definition: L1TUtmCut.h:128

◆ getMinimumIndex()

const unsigned int L1TUtmCut::getMinimumIndex ( ) const
inline

get L1TUtmCutValue struct for minimum value of cut range

Definition at line 110 of file L1TUtmCut.h.

References L1TUtmCutValue::index, and minimum_.

110 { return minimum_.index; };
unsigned int index
L1TUtmCutValue minimum_
Definition: L1TUtmCut.h:128

◆ getMinimumValue()

const double L1TUtmCut::getMinimumValue ( ) const
inline

get L1TUtmCutValue struct for minimum value of cut range

Definition at line 104 of file L1TUtmCut.h.

References minimum_, and L1TUtmCutValue::value.

104 { return minimum_.value; };
L1TUtmCutValue minimum_
Definition: L1TUtmCut.h:128

◆ getName()

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

get cut name

Definition at line 89 of file L1TUtmCut.h.

References name_.

Referenced by plotting.Plot::draw().

89 { return name_; };
std::string name_
Definition: L1TUtmCut.h:122

◆ getObjectType()

const int L1TUtmCut::getObjectType ( ) const
inline

get target object type : combination of esObjectType and esFunctionType enums

Definition at line 92 of file L1TUtmCut.h.

References object_type_.

92 { return object_type_; };
int object_type_
Definition: L1TUtmCut.h:126

◆ getPrecision()

const unsigned int L1TUtmCut::getPrecision ( ) const
inline

get precision

Definition at line 122 of file L1TUtmCut.h.

122 { return getMinimumIndex(); }; // HACK
const unsigned int getMinimumIndex() const
Definition: L1TUtmCut.h:110

◆ serialize()

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

◆ setCutType()

void L1TUtmCut::setCutType ( const int  type)
inline

set cut type

Definition at line 62 of file L1TUtmCut.h.

References cut_type_.

◆ setMaximum()

void L1TUtmCut::setMaximum ( const L1TUtmCutValue maximum)
inline

set maximum value of cut range (L1TUtmCutValue struct)

Definition at line 80 of file L1TUtmCut.h.

References maximum_.

80 { maximum_ = maximum; };
L1TUtmCutValue maximum_
Definition: L1TUtmCut.h:129

◆ setMaximumIndex()

void L1TUtmCut::setMaximumIndex ( const unsigned int  index)
inline

set maximum value of cut range (HW index)

Definition at line 77 of file L1TUtmCut.h.

References L1TUtmCutValue::index, and maximum_.

Referenced by setPrecision().

77 { maximum_.index = index; };
L1TUtmCutValue maximum_
Definition: L1TUtmCut.h:129
unsigned int index

◆ setMaximumValue()

void L1TUtmCut::setMaximumValue ( const double  value)
inline

set maximum value of cut range (double)

Definition at line 74 of file L1TUtmCut.h.

References maximum_, L1TUtmCutValue::value, and relativeConstraints::value.

◆ setMinimum()

void L1TUtmCut::setMinimum ( const L1TUtmCutValue minimum)
inline

set minimum value of cut range (L1TUtmCutValue struct)

Definition at line 71 of file L1TUtmCut.h.

References minimum_.

71 { minimum_ = minimum; };
L1TUtmCutValue minimum_
Definition: L1TUtmCut.h:128

◆ setMinimumIndex()

void L1TUtmCut::setMinimumIndex ( const unsigned int  index)
inline

set minimum value of cut range (HW index)

Definition at line 68 of file L1TUtmCut.h.

References L1TUtmCutValue::index, and minimum_.

Referenced by setPrecision().

68 { minimum_.index = index; };
unsigned int index
L1TUtmCutValue minimum_
Definition: L1TUtmCut.h:128

◆ setMinimumValue()

void L1TUtmCut::setMinimumValue ( const double  value)
inline

set minimum value of cut range (double)

Definition at line 65 of file L1TUtmCut.h.

References minimum_, L1TUtmCutValue::value, and relativeConstraints::value.

◆ setName()

void L1TUtmCut::setName ( const std::string &  name)
inline

set cut name

Definition at line 56 of file L1TUtmCut.h.

References Skims_PA_cff::name, and name_.

56 { name_ = name; };
std::string name_
Definition: L1TUtmCut.h:122

◆ setObjectType()

void L1TUtmCut::setObjectType ( const int  type)
inline

set object type

Definition at line 59 of file L1TUtmCut.h.

References object_type_.

◆ setPrecision()

void L1TUtmCut::setPrecision ( const unsigned int  precision)
inline

set precision for cut value calculations

Definition at line 83 of file L1TUtmCut.h.

References hcalRecHitTable_cff::precision, setMaximumIndex(), and setMinimumIndex().

83  {
86  }; // HACK
void setMaximumIndex(const unsigned int index)
Definition: L1TUtmCut.h:77
void setMinimumIndex(const unsigned int index)
Definition: L1TUtmCut.h:68

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 133 of file L1TUtmCut.h.

◆ cond::serialization::access

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

Definition at line 133 of file L1TUtmCut.h.

Member Data Documentation

◆ cut_type_

int L1TUtmCut::cut_type_
protected

type of cut

Definition at line 127 of file L1TUtmCut.h.

Referenced by getCutType(), and setCutType().

◆ data_

std::string L1TUtmCut::data_
protected

data for charge/quality/isolation/charge correlation/impact parameter

Definition at line 130 of file L1TUtmCut.h.

Referenced by getData().

◆ key_

std::string L1TUtmCut::key_
protected

key for accessing a scale

Definition at line 131 of file L1TUtmCut.h.

Referenced by getKey().

◆ maximum_

L1TUtmCutValue L1TUtmCut::maximum_
protected

maximum value of cut range

Definition at line 129 of file L1TUtmCut.h.

Referenced by getMaximum(), getMaximumIndex(), getMaximumValue(), setMaximum(), setMaximumIndex(), and setMaximumValue().

◆ minimum_

L1TUtmCutValue L1TUtmCut::minimum_
protected

minimum value of cut range

Definition at line 128 of file L1TUtmCut.h.

Referenced by getMinimum(), getMinimumIndex(), getMinimumValue(), setMinimum(), setMinimumIndex(), and setMinimumValue().

◆ name_

std::string L1TUtmCut::name_
protected

name of cut

Definition at line 122 of file L1TUtmCut.h.

Referenced by getName(), and setName().

◆ object_type_

int L1TUtmCut::object_type_
protected

target object type

Definition at line 126 of file L1TUtmCut.h.

Referenced by getObjectType(), and setObjectType().

◆ version

unsigned int L1TUtmCut::version
protected

Definition at line 132 of file L1TUtmCut.h.

Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().