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 26 of file PPSTimingCalibration.h.

Member Function Documentation

◆ operator<()

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

Comparison operator.

Definition at line 14 of file PPSTimingCalibration.cc.

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;

References cell, channel, db, and sampic.

◆ 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 39 of file PPSTimingCalibration.h.

◆ cond::serialization::access

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

Definition at line 39 of file PPSTimingCalibration.h.

◆ operator<<

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

Definition at line 26 of file PPSTimingCalibration.cc.

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

Member Data Documentation

◆ cell

int PPSTimingCalibration::Key::cell

Definition at line 33 of file PPSTimingCalibration.h.

Referenced by operator<().

◆ channel

int PPSTimingCalibration::Key::channel

Definition at line 33 of file PPSTimingCalibration.h.

Referenced by operator<().

◆ db

int PPSTimingCalibration::Key::db

Definition at line 33 of file PPSTimingCalibration.h.

Referenced by operator<().

◆ sampic

int PPSTimingCalibration::Key::sampic

Definition at line 33 of file PPSTimingCalibration.h.

Referenced by operator<().

PPSTimingCalibration::Key::channel
int channel
Definition: PPSTimingCalibration.h:33
PPSTimingCalibration::Key::sampic
int sampic
Definition: PPSTimingCalibration.h:33
PPSTimingCalibration::Key::cell
int cell
Definition: PPSTimingCalibration.h:33
PPSTimingCalibration::Key::db
int db
Definition: PPSTimingCalibration.h:33
crabWrapper.key
key
Definition: crabWrapper.py:19