CMS 3D CMS Logo

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

#include <L1TUtmScale.h>

Public Member Functions

const std::vector< L1TUtmBin > & getBins () const
 
double getMaximum () const
 
double getMinimum () const
 
const std::string & getName () const
 
unsigned int getNbits () const
 
int getObjectType () const
 
int getScaleType () const
 
double getStep () const
 
 L1TUtmScale ()
 
 L1TUtmScale (std::string name, int object, int type, double minimum, double maximum, double step, unsigned int n_bits, std::vector< L1TUtmBin > bins, unsigned int vers)
 
 L1TUtmScale (const tmeventsetup::esScale &esSc)
 
 operator tmeventsetup::esScale () const
 
virtual ~L1TUtmScale ()=default
 

Protected Attributes

std::vector< L1TUtmBinbins_
 
double maximum_
 
double minimum_
 
unsigned int n_bits_
 
std::string name_
 
int object_
 
double step_
 
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: 9 Nov 2015 This class implements data structure for Scale

Definition at line 25 of file L1TUtmScale.h.

Constructor & Destructor Documentation

◆ L1TUtmScale() [1/3]

L1TUtmScale::L1TUtmScale ( )
inline

Definition at line 27 of file L1TUtmScale.h.

27 : name_(), object_(), type_(), minimum_(), maximum_(), step_(), n_bits_(), bins_(), version(0){};
double minimum_
Definition: L1TUtmScale.h:101
double maximum_
Definition: L1TUtmScale.h:102
std::vector< L1TUtmBin > bins_
Definition: L1TUtmScale.h:105
std::string name_
Definition: L1TUtmScale.h:95
unsigned int version
Definition: L1TUtmScale.h:106
double step_
Definition: L1TUtmScale.h:103
unsigned int n_bits_
Definition: L1TUtmScale.h:104

◆ L1TUtmScale() [2/3]

L1TUtmScale::L1TUtmScale ( std::string  name,
int  object,
int  type,
double  minimum,
double  maximum,
double  step,
unsigned int  n_bits,
std::vector< L1TUtmBin bins,
unsigned int  vers 
)
inline

Definition at line 29 of file L1TUtmScale.h.

38  : name_(name),
39  object_(object),
40  type_(type),
41  minimum_(minimum),
42  maximum_(maximum),
43  step_(step),
44  n_bits_(n_bits),
45  bins_(bins),
46  version(vers){};
double minimum_
Definition: L1TUtmScale.h:101
double maximum_
Definition: L1TUtmScale.h:102
std::vector< L1TUtmBin > bins_
Definition: L1TUtmScale.h:105
std::string name_
Definition: L1TUtmScale.h:95
unsigned int version
Definition: L1TUtmScale.h:106
double step_
Definition: L1TUtmScale.h:103
unsigned int n_bits_
Definition: L1TUtmScale.h:104
step
Definition: StallMonitor.cc:98

◆ L1TUtmScale() [3/3]

L1TUtmScale::L1TUtmScale ( const tmeventsetup::esScale &  esSc)
inline

Definition at line 48 of file L1TUtmScale.h.

References bins_.

49  : name_(esSc.getName()),
50  object_(esSc.getObjectType()),
51  type_(esSc.getScaleType()),
52  minimum_(esSc.getMinimum()),
53  maximum_(esSc.getMaximum()),
54  step_(esSc.getStep()),
55  n_bits_(esSc.getNbits()),
56  version(0) {
57  bins_.reserve(esSc.getBins().size());
58  for (auto it = esSc.getBins().begin(); it != esSc.getBins().end(); ++it)
59  bins_.emplace_back(L1TUtmBin(*it));
60  };
double minimum_
Definition: L1TUtmScale.h:101
double maximum_
Definition: L1TUtmScale.h:102
std::vector< L1TUtmBin > bins_
Definition: L1TUtmScale.h:105
std::string name_
Definition: L1TUtmScale.h:95
unsigned int version
Definition: L1TUtmScale.h:106
double step_
Definition: L1TUtmScale.h:103
unsigned int n_bits_
Definition: L1TUtmScale.h:104

◆ ~L1TUtmScale()

virtual L1TUtmScale::~L1TUtmScale ( )
virtualdefault

Member Function Documentation

◆ getBins()

const std::vector<L1TUtmBin>& L1TUtmScale::getBins ( ) const
inline

get bins for the scale

Definition at line 95 of file L1TUtmScale.h.

Referenced by operator tmeventsetup::esScale().

95 { return bins_; };
std::vector< L1TUtmBin > bins_
Definition: L1TUtmScale.h:105

◆ getMaximum()

double L1TUtmScale::getMaximum ( ) const
inline

get maximum value of the scale

Definition at line 86 of file L1TUtmScale.h.

References maximum_.

Referenced by operator tmeventsetup::esScale().

86 { return maximum_; };
double maximum_
Definition: L1TUtmScale.h:102

◆ getMinimum()

double L1TUtmScale::getMinimum ( ) const
inline

get minimum value of the scale

Definition at line 83 of file L1TUtmScale.h.

References minimum_.

Referenced by operator tmeventsetup::esScale().

83 { return minimum_; };
double minimum_
Definition: L1TUtmScale.h:101

◆ getName()

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

get scale name

Definition at line 74 of file L1TUtmScale.h.

References name_.

Referenced by plotting.Plot::draw(), and operator tmeventsetup::esScale().

74 { return name_; };
std::string name_
Definition: L1TUtmScale.h:95

◆ getNbits()

unsigned int L1TUtmScale::getNbits ( ) const
inline

get number of bits for the scale

Definition at line 92 of file L1TUtmScale.h.

References n_bits_.

Referenced by operator tmeventsetup::esScale().

92 { return n_bits_; };
unsigned int n_bits_
Definition: L1TUtmScale.h:104

◆ getObjectType()

int L1TUtmScale::getObjectType ( ) const
inline

get target object type

Definition at line 77 of file L1TUtmScale.h.

References object_.

Referenced by operator tmeventsetup::esScale().

77 { return object_; };

◆ getScaleType()

int L1TUtmScale::getScaleType ( ) const
inline

get scale type

Definition at line 80 of file L1TUtmScale.h.

References type_.

Referenced by operator tmeventsetup::esScale().

80 { return type_; };

◆ getStep()

double L1TUtmScale::getStep ( ) const
inline

get step size of linear scale

Definition at line 89 of file L1TUtmScale.h.

References step_.

Referenced by operator tmeventsetup::esScale().

89 { return step_; };
double step_
Definition: L1TUtmScale.h:103

◆ operator tmeventsetup::esScale()

L1TUtmScale::operator tmeventsetup::esScale ( ) const
inline

Definition at line 64 of file L1TUtmScale.h.

References trigObjTnPSource_cfi::bins, getBins(), getMaximum(), getMinimum(), getName(), getNbits(), getObjectType(), getScaleType(), getStep(), and findQualityFiles::size.

64  {
65  std::vector<tmeventsetup::esBin> bins;
66  bins.reserve(getBins().size());
67  for (const auto& it : getBins())
68  bins.emplace_back(tmeventsetup::esBin(it.hw_index, it.minimum, it.maximum));
69  return tmeventsetup::esScale(
71  }
double getMaximum() const
Definition: L1TUtmScale.h:86
size
Write out results.
int getScaleType() const
Definition: L1TUtmScale.h:80
unsigned int getNbits() const
Definition: L1TUtmScale.h:92
double getMinimum() const
Definition: L1TUtmScale.h:83
double getStep() const
Definition: L1TUtmScale.h:89
int getObjectType() const
Definition: L1TUtmScale.h:77
const std::string & getName() const
Definition: L1TUtmScale.h:74
const std::vector< L1TUtmBin > & getBins() const
Definition: L1TUtmScale.h:95

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 107 of file L1TUtmScale.h.

◆ cond::serialization::access

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

Definition at line 107 of file L1TUtmScale.h.

Member Data Documentation

◆ bins_

std::vector<L1TUtmBin> L1TUtmScale::bins_
protected

array of L1TUtmBin

Definition at line 105 of file L1TUtmScale.h.

Referenced by L1TUtmScale().

◆ maximum_

double L1TUtmScale::maximum_
protected

maximum value of scale

Definition at line 102 of file L1TUtmScale.h.

Referenced by getMaximum().

◆ minimum_

double L1TUtmScale::minimum_
protected

minimum value of scale

Definition at line 101 of file L1TUtmScale.h.

Referenced by getMinimum().

◆ n_bits_

unsigned int L1TUtmScale::n_bits_
protected

number of bits for scale

Definition at line 104 of file L1TUtmScale.h.

Referenced by getNbits().

◆ name_

std::string L1TUtmScale::name_
protected

name of scale

Definition at line 95 of file L1TUtmScale.h.

Referenced by getName().

◆ object_

int L1TUtmScale::object_
protected

type of object

Definition at line 99 of file L1TUtmScale.h.

Referenced by getObjectType().

◆ step_

double L1TUtmScale::step_
protected

step size of linear scale

Definition at line 103 of file L1TUtmScale.h.

Referenced by getStep().

◆ type_

int L1TUtmScale::type_
protected

◆ version

unsigned int L1TUtmScale::version
protected