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 22 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.

16 {
17  if ( db == rhs.db ) {
18  if ( sampic == rhs.sampic ) {
19  if ( channel == rhs.channel )
20  return cell < rhs.cell;
21  return channel < rhs.channel;
22  }
23  return sampic < rhs.sampic;
24  }
25  return db < rhs.db;
26 }
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 30 of file PPSTimingCalibration.h.

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

Definition at line 30 of file PPSTimingCalibration.h.

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

Definition at line 29 of file PPSTimingCalibration.cc.

Referenced by PPSTimingCalibration::formula().

30 {
31  return os << key.db << " " << key.sampic << " " << key.channel << " " << key.cell;
32 }

Member Data Documentation

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