CMS 3D CMS Logo

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

Helper structure for indexing calibration data. More...

#include <PPSTimingCalibrationLUT.h>

Public Member Functions

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

Public Attributes

int channel
 
int plane
 
int sector
 
int station
 

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 PPSTimingCalibrationLUT.h.

Member Function Documentation

◆ operator<()

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

Comparison operator.

Definition at line 16 of file PPSTimingCalibrationLUT.cc.

References channel, plane, sector, and station.

16  {
17  if (sector == rhs.sector) {
18  if (station == rhs.station) {
19  if (plane == rhs.plane)
20  return channel < rhs.channel;
21  return plane < rhs.plane;
22  }
23  return station < rhs.station;
24  }
25  return sector < rhs.sector;
26 }

◆ serialize()

template<class Archive >
void PPSTimingCalibrationLUT::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 29 of file PPSTimingCalibrationLUT.h.

◆ cond::serialization::access

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

Definition at line 29 of file PPSTimingCalibrationLUT.h.

◆ operator<<

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

Definition at line 28 of file PPSTimingCalibrationLUT.cc.

28  {
29  return os << key.sector << " " << key.station << " " << key.plane << " " << key.channel;
30 }
key
prepare the HTCondor submission files and eventually submit them

Member Data Documentation

◆ channel

int PPSTimingCalibrationLUT::Key::channel

Definition at line 23 of file PPSTimingCalibrationLUT.h.

Referenced by operator<().

◆ plane

int PPSTimingCalibrationLUT::Key::plane

Definition at line 23 of file PPSTimingCalibrationLUT.h.

Referenced by operator<().

◆ sector

int PPSTimingCalibrationLUT::Key::sector

◆ station

int PPSTimingCalibrationLUT::Key::station