5#ifndef NtupleStationId_H
6#define NtupleStationId_H
13#include "Identifier/Identifier.h"
62 inline NtupleStationId(
const std::string &station,
const int &
eta,
const int &
phi,
const int &ml = 0,
const int &author = 0) :
73 m_ml =
id.mdtMultilayer();
77 inline void Initialize(
const int &station,
const int &
eta,
const int &
phi,
const int &ml = 0,
const int &author = 0) {
86 for (
unsigned int ii = 0; ii < 2; ii++) {
100 bool Initialize(
const std::string &station,
const int &
eta,
const int &
phi,
const int &ml = 0,
const int &author = 0);
116 if (
m_station < other.m_station)
return true;
117 if (
m_station > other.m_station)
return false;
118 if (
m_eta < other.m_eta)
return true;
119 if (
m_eta > other.m_eta)
return false;
120 if (
m_phi < other.m_phi)
return true;
121 if (
m_phi > other.m_phi)
return false;
122 if (
m_ml < other.m_ml)
return true;
123 if (
m_ml > other.m_ml)
return false;
124 if (
m_author < other.m_author)
return true;
128 if (
m_station > other.m_station)
return true;
129 if (
m_station < other.m_station)
return false;
130 if (
m_eta > other.m_eta)
return true;
131 if (
m_eta < other.m_eta)
return false;
132 if (
m_phi > other.m_phi)
return true;
133 if (
m_phi < other.m_phi)
return false;
134 if (
m_ml > other.m_ml)
return true;
135 if (
m_ml < other.m_ml)
return false;
136 if (
m_author > other.m_author)
return true;
142 if (
id.stationName() !=
m_station)
return false;
144 if (
id.
eta() !=
m_eta)
return false;
146 if (
id.
phi() !=
m_phi)
return false;
148 if (
id.mdtMultilayer() !=
m_ml)
return false;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
This is a "hash" representation of an Identifier.
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
void Initialize(const MuonFixedId &id)
initialize function
bool InitializeGeometry(const MdtIdHelper &mdtIdHelper, const MuonGM::MuonDetectorManager *detMgr)
initialize geometry information
NtupleStationId()
Default constructor.
NtupleStationId(const std::string &station, const int &eta, const int &phi, const int &ml=0, const int &author=0)
Initializing Constructor.
const int & GetAuthor() const
int NMultilayers() const
return geometry information
void SetAuthor(const int &author)
void SetMultilayer(const int &ml)
void SetStation(const std::string &station)
set station, eta or phi seperately
void Initialize(const int &station, const int &eta, const int &phi, const int &ml=0, const int &author=0)
bool operator==(const NtupleStationId &id) const
return true if the regions are the same
bool operator==(const MuonFixedId &id) const
return true if icdentifier matches selection
NtupleStationId(const MuonFixedId &id)
Initializing Constructor.
int m_region_hash
geo model information
int NLayers(int ml) const
void SetEta(const int &eta)
bool operator<(const NtupleStationId &other) const
comparision operators for the use as map ids
void SetPhi(const int &phi)
set phi
int GetStation() const
get station eta and phi
int TubeMax(int ml) const
int LayerMax(int ml) const
int TubeMin(int ml) const
bool operator>(const NtupleStationId &other) const
std::string regionId() const
return the region id string
int LayerMin(int ml) const
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Identifier MdtBasicRegionId
define type MdtBasicRegionId for the smallest possible MDT calibration region
IdentifierHash MdtBasicRegionHash
define type MdtBasicRegionHash for the smallest possible MDT calibration region
IdentifierHash MdtRegionHash
define type MdtRegionHash
Ensure that the Athena extensions are properly loaded.