#include <HistogramId.h>
|
std::pair< int, int > | m_id |
| integer identity - value depends on the sort_by argument of the Initialize-Function More...
|
|
std::string | m_histogram_name |
| ascii histogram name More...
|
|
Identifier class for drift time histograms. The class can be switched to the identification of single tubes, and different types of groupes of tubes.
- Author
- Felix.nosp@m..Rau.nosp@m.scher.nosp@m.@Phy.nosp@m.sik.U.nosp@m.ni-M.nosp@m.uench.nosp@m.en.d.nosp@m.e
Definition at line 24 of file HistogramId.h.
◆ HistogramId()
MuonCalib::HistogramId::HistogramId |
( |
| ) |
|
|
inline |
◆ getIdInt()
int MuonCalib::HistogramId::getIdInt |
( |
| ) |
const |
|
inline |
◆ HistogramName()
const std::string& MuonCalib::HistogramId::HistogramName |
( |
| ) |
const |
|
inline |
◆ Initialize()
initialize
- Parameters
-
Definition at line 18 of file HistogramId.cxx.
20 static const unsigned int kStationNameShift = 24;
22 static const unsigned int kStationEtaShift = 19;
24 static const unsigned int kStationPhiShift = 13;
28 static const unsigned int kMdtMultilayerShift = 9;
30 static const unsigned int kMdtTubeLayerShift = 7;
35 m_id.second =
id.getIdInt();
39 m_id.second = (
id.stationNameIndex() << kStationNameShift) | (
id.etaIndex() << kStationEtaShift) |
40 (
id.
phiIndex() << kStationPhiShift) | (
id.mdtMultilayerIndex() << kMdtMultilayerShift) |
41 (
id.mdtTubeLayerIndex() << kMdtTubeLayerShift);
45 m_id.second = (
id.stationNameIndex() << kStationNameShift) | (
id.etaIndex() << kStationEtaShift) |
46 (
id.
phiIndex() << kStationPhiShift) | (
id.mdtMultilayerIndex() << kMdtMultilayerShift);
50 m_id.second = (
id.stationNameIndex() << kStationNameShift) | (
id.etaIndex() << kStationEtaShift) |
56 m_id.second =
id.mdtMezzanine();
61 log << MSG::WARNING <<
"HistogramId :: Initialize: sort_by arguemnt is invalid!" <<
endmsg;
65 std::ostringstream
os;
66 if (
m_id.second == -999999) {
70 os <<
id.stationNumberToFixedStationString(
id.
stationName()) <<
"_eta";
75 os << std::abs(
id.
eta()) <<
"_phi" <<
id.phi();
77 if (sort_by !=
CHAMBER)
os <<
"_ml" <<
id.mdtMultilayer();
81 if (sort_by ==
TUBE)
os <<
"_tb" <<
id.mdtTube();
83 if (sort_by ==
MEZZ_CARD) {
os <<
"_mez" << (
id.mdtMezzanine() % 100); }
85 os <<
"_num" <<
m_id.second <<
"_" << sort_by;
◆ operator<()
comparision operator defined so that this class can be used as a map index.
The behaviour depends on the setting of the sort_by parameter of the Initialize function.
Definition at line 43 of file HistogramId.h.
◆ operator>()
comparision operator defined so that this class can be used as a map index.
The behaviour depends on the setting of the sort_by parameter of the Initialize function.
Definition at line 38 of file HistogramId.h.
◆ CHAMBER
const int MuonCalib::HistogramId::CHAMBER = 0 |
|
static |
◆ LAYER
const int MuonCalib::HistogramId::LAYER = 2 |
|
static |
◆ m_histogram_name
std::string MuonCalib::HistogramId::m_histogram_name |
|
private |
◆ m_id
std::pair<int, int> MuonCalib::HistogramId::m_id |
|
private |
integer identity - value depends on the sort_by argument of the Initialize-Function
Definition at line 53 of file HistogramId.h.
◆ MEZZ_CARD
const int MuonCalib::HistogramId::MEZZ_CARD = 3 |
|
static |
◆ MULTILAYER
const int MuonCalib::HistogramId::MULTILAYER = 1 |
|
static |
◆ TUBE
const int MuonCalib::HistogramId::TUBE = 4 |
|
static |
valid values of the sort_by argument of the Initialize function
Definition at line 45 of file HistogramId.h.
The documentation for this class was generated from the following files: