CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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 }
template<class Archive >
void PPSTimingCalibration::Key::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 28 of file PPSTimingCalibration.h.

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

Definition at line 28 of file PPSTimingCalibration.h.

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

int PPSTimingCalibration::Key::cell
int PPSTimingCalibration::Key::channel
int PPSTimingCalibration::Key::db
int PPSTimingCalibration::Key::sampic