ATLAS Offline Software
Loading...
Searching...
No Matches
HistogramId.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef HistogramId_H
6#define HistogramId_H
7
8// c - c++
9#include <map>
10#include <string>
11#include <utility>
12
13namespace MuonCalib {
14
15 class MuonFixedId;
16
23
25 public:
27 inline HistogramId() : m_id(0, 0) {}
28
33 void Initialize(const MuonFixedId &id, int sort_by);
38 inline bool operator>(const HistogramId &other) const { return m_id > other.m_id; }
43 inline bool operator<(const HistogramId &other) const { return m_id < other.m_id; }
45 static const int TUBE = 4, LAYER = 2, MULTILAYER = 1, CHAMBER = 0, MEZZ_CARD = 3;
47 inline int getIdInt() const { return m_id.second; }
49 inline const std::string &HistogramName() const { return m_histogram_name; }
50
51 private:
53 std::pair<int, int> m_id;
55 std::string m_histogram_name;
56 };
57
58} // namespace MuonCalib
59
60#endif
HistogramId()
constructor - does nothing
Definition HistogramId.h:27
bool operator<(const HistogramId &other) const
comparision operator defined so that this class can be used as a map index.
Definition HistogramId.h:43
int getIdInt() const
get numberic id
Definition HistogramId.h:47
std::string m_histogram_name
ascii histogram name
Definition HistogramId.h:55
std::pair< int, int > m_id
integer identity - value depends on the sort_by argument of the Initialize-Function
Definition HistogramId.h:53
static const int LAYER
Definition HistogramId.h:45
const std::string & HistogramName() const
get ascii histogram name
Definition HistogramId.h:49
static const int TUBE
valid values of the sort_by argument of the Initialize function
Definition HistogramId.h:45
static const int MEZZ_CARD
Definition HistogramId.h:45
void Initialize(const MuonFixedId &id, int sort_by)
initialize
static const int MULTILAYER
Definition HistogramId.h:45
static const int CHAMBER
Definition HistogramId.h:45
bool operator>(const HistogramId &other) const
comparision operator defined so that this class can be used as a map index.
Definition HistogramId.h:38
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.