TotemSymbID

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
/****************************************************************************
*
* This is a part of TOTEM offline software.
* Authors: 
*   Jan Kašpar (jan.kaspar@cern.ch)
*
****************************************************************************/

#ifndef CondFormats_PPSObjects_TotemSymbId
#define CondFormats_PPSObjects_TotemSymbId

#include "CondFormats/Serialization/interface/Serializable.h"
#include <iostream>

/**
 *\brief Symbolic ID describing an entity of a TOTEM subdetector.
 **/
class TotemSymbID {
public:
  /// chip ID, raw integer representation of DetId class
  unsigned int symbolicID;

  void print(std::ostream &os, std::string subSystemName) const;

  bool operator<(const TotemSymbID &sid) const { return (symbolicID < sid.symbolicID); }

  bool operator==(const TotemSymbID &sid) const { return (symbolicID == sid.symbolicID); }

  friend std::ostream &operator<<(std::ostream &s, const TotemSymbID &sid);

  COND_SERIALIZABLE;
};

#endif