CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
PPSTimingCalibration::Key Struct Reference

Helper structure for indexing calibration data. More...

#include <PPSTimingCalibration.h>

Public Member Functions

bool operator< (const Key &rhs) const
 Comparison operator. More...
 

Public Attributes

int cell
 
int channel
 
int db
 
int sampic
 

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
 
std::ostream & operator<< (std::ostream &os, const Key &key)
 

Detailed Description

Helper structure for indexing calibration data.

Definition at line 21 of file PPSTimingCalibration.h.

Member Function Documentation

◆ operator<()

bool PPSTimingCalibration::Key::operator< ( const Key rhs) const

Comparison operator.

Definition at line 15 of file PPSTimingCalibration.cc.

References cell, channel, db, and sampic.

15  {
16  if (db == rhs.db) {
17  if (sampic == rhs.sampic) {
18  if (channel == rhs.channel)
19  return cell < rhs.cell;
20  return channel < rhs.channel;
21  }
22  return sampic < rhs.sampic;
23  }
24  return db < rhs.db;
25 }

◆ serialize()

template<class Archive >
void PPSTimingCalibration::Key::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 28 of file PPSTimingCalibration.h.

◆ cond::serialization::access

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

Definition at line 28 of file PPSTimingCalibration.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Key key 
)
friend

Definition at line 27 of file PPSTimingCalibration.cc.

27  {
28  return os << key.db << " " << key.sampic << " " << key.channel << " " << key.cell;
29 }

Member Data Documentation

◆ cell

int PPSTimingCalibration::Key::cell

Definition at line 22 of file PPSTimingCalibration.h.

Referenced by operator<().

◆ channel

int PPSTimingCalibration::Key::channel

Definition at line 22 of file PPSTimingCalibration.h.

Referenced by operator<().

◆ db

int PPSTimingCalibration::Key::db

Definition at line 22 of file PPSTimingCalibration.h.

Referenced by operator<().

◆ sampic

int PPSTimingCalibration::Key::sampic

Definition at line 22 of file PPSTimingCalibration.h.

Referenced by operator<().