#include <NtupleStationId.h>
|
| | NtupleStationId () |
| | Default constructor. More...
|
| |
| | NtupleStationId (const MuonFixedId &id) |
| | Initializing Constructor. More...
|
| |
| | NtupleStationId (const std::string &station, const int &eta, const int &phi, const int &ml=0, const int &author=0) |
| | Initializing Constructor. More...
|
| |
| void | Initialize (const MuonFixedId &id) |
| | initialize function More...
|
| |
| void | Initialize (const int &station, const int &eta, const int &phi, const int &ml=0, const int &author=0) |
| |
| void | ResetVectors () |
| |
| bool | Initialize (const std::string &station, const int &eta, const int &phi, const int &ml=0, const int &author=0) |
| | initialize function More...
|
| |
| void | SetStation (const std::string &station) |
| | set station, eta or phi seperately More...
|
| |
| void | SetPhi (const int &phi) |
| | set phi More...
|
| |
| void | SetEta (const int &eta) |
| |
| void | SetMultilayer (const int &ml) |
| |
| void | SetAuthor (const int &author) |
| |
| bool | operator< (const NtupleStationId &other) const |
| | comparision operators for the use as map ids More...
|
| |
| bool | operator> (const NtupleStationId &other) const |
| |
| bool | operator== (const MuonFixedId &id) const |
| | return true if icdentifier matches selection More...
|
| |
| bool | operator== (const NtupleStationId &id) const |
| | return true if the regions are the same More...
|
| |
| std::string | regionId () const |
| | return the region id string More...
|
| |
| bool | InitializeGeometry (const MdtIdHelper &mdtIdHelper, const MuonGM::MuonDetectorManager *detMgr) |
| | initialize geometry information More...
|
| |
| int | GetStation () const |
| | get station eta and phi More...
|
| |
| int | GetEta () const |
| |
| int | GetPhi () const |
| |
| int | GetMl () const |
| |
| const int & | GetAuthor () const |
| |
| int | NMultilayers () const |
| | return geometry information More...
|
| |
| int | NLayers (int ml) const |
| |
| int | NTubes (int ml) const |
| |
| int | LayerMin (int ml) const |
| |
| int | LayerMax (int ml) const |
| |
| int | TubeMin (int ml) const |
| |
| int | TubeMax (int ml) const |
| |
| int | RegionHash () const |
| |
| int | FixedId () const |
| |
Station Identifier for sorting calibration data
- Author
- rausc.nosp@m.her@.nosp@m.cern..nosp@m.ch
Definition at line 36 of file NtupleStationId.h.
◆ NtupleStationId() [1/3]
| MuonCalib::NtupleStationId::NtupleStationId |
( |
| ) |
|
|
inline |
◆ NtupleStationId() [2/3]
◆ NtupleStationId() [3/3]
| MuonCalib::NtupleStationId::NtupleStationId |
( |
const std::string & |
station, |
|
|
const int & |
eta, |
|
|
const int & |
phi, |
|
|
const int & |
ml = 0, |
|
|
const int & |
author = 0 |
|
) |
| |
|
inline |
Initializing Constructor.
- Parameters
-
| station | station name |
| eta | station eta |
| phi | station phi |
Definition at line 62 of file NtupleStationId.h.
◆ FixedId()
| int MuonCalib::NtupleStationId::FixedId |
( |
| ) |
const |
Definition at line 93 of file NtupleStationId.cxx.
97 if (!
id.setStationName(
m_station))
return -1;
98 if (!
id.setStationEta(
m_eta))
return -1;
99 if (!
id.setStationPhi(
m_phi))
return -1;
100 return id.mdtChamberId().getIdInt();
◆ GetAuthor()
| const int& MuonCalib::NtupleStationId::GetAuthor |
( |
| ) |
const |
|
inline |
◆ GetEta()
| int MuonCalib::NtupleStationId::GetEta |
( |
| ) |
const |
|
inline |
◆ GetMl()
| int MuonCalib::NtupleStationId::GetMl |
( |
| ) |
const |
|
inline |
◆ GetPhi()
| int MuonCalib::NtupleStationId::GetPhi |
( |
| ) |
const |
|
inline |
◆ GetStation()
| int MuonCalib::NtupleStationId::GetStation |
( |
| ) |
const |
|
inline |
◆ Initialize() [1/3]
| void MuonCalib::NtupleStationId::Initialize |
( |
const int & |
station, |
|
|
const int & |
eta, |
|
|
const int & |
phi, |
|
|
const int & |
ml = 0, |
|
|
const int & |
author = 0 |
|
) |
| |
|
inline |
◆ Initialize() [2/3]
◆ Initialize() [3/3]
| bool MuonCalib::NtupleStationId::Initialize |
( |
const std::string & |
station, |
|
|
const int & |
eta, |
|
|
const int & |
phi, |
|
|
const int & |
ml = 0, |
|
|
const int & |
author = 0 |
|
) |
| |
initialize function
- Parameters
-
| station | station name |
| eta | station eta |
| phi | station phi |
Definition at line 16 of file NtupleStationId.cxx.
18 if (station ==
"ANY") {
21 m_station =
id.stationStringToFixedStationNumber(station);
◆ InitializeGeometry()
initialize geometry information
Definition at line 37 of file NtupleStationId.cxx.
41 log << MSG::WARNING <<
"NtupleStationId::InitializeGeometry: Cannot initialize geometry for multi station id" <<
endmsg;
52 log << MSG::WARNING <<
regionId() <<
" ml " <<
i <<
"does not exist in current geometry" <<
endmsg;
◆ LayerMax()
| int MuonCalib::NtupleStationId::LayerMax |
( |
int |
ml | ) |
const |
|
inline |
◆ LayerMin()
| int MuonCalib::NtupleStationId::LayerMin |
( |
int |
ml | ) |
const |
|
inline |
◆ NLayers()
| int MuonCalib::NtupleStationId::NLayers |
( |
int |
ml | ) |
const |
|
inline |
◆ NMultilayers()
| int MuonCalib::NtupleStationId::NMultilayers |
( |
| ) |
const |
|
inline |
◆ NTubes()
| int MuonCalib::NtupleStationId::NTubes |
( |
int |
ml | ) |
const |
|
inline |
◆ operator<()
◆ operator==() [1/2]
◆ operator==() [2/2]
◆ operator>()
◆ RegionHash()
| int MuonCalib::NtupleStationId::RegionHash |
( |
| ) |
const |
|
inline |
◆ regionId()
| std::string MuonCalib::NtupleStationId::regionId |
( |
| ) |
const |
return the region id string
Definition at line 69 of file NtupleStationId.cxx.
71 std::ostringstream id_stream;
75 id_stream <<
id.stationNumberToFixedStationString(
m_station);
89 if (
m_ml > 0) { id_stream <<
"_" <<
m_ml; }
90 return id_stream.str();
◆ ResetVectors()
| void MuonCalib::NtupleStationId::ResetVectors |
( |
| ) |
|
|
inline |
◆ SetAuthor()
| void MuonCalib::NtupleStationId::SetAuthor |
( |
const int & |
author | ) |
|
|
inline |
◆ SetEta()
| void MuonCalib::NtupleStationId::SetEta |
( |
const int & |
eta | ) |
|
|
inline |
◆ SetMultilayer()
| void MuonCalib::NtupleStationId::SetMultilayer |
( |
const int & |
ml | ) |
|
|
inline |
◆ SetPhi()
| void MuonCalib::NtupleStationId::SetPhi |
( |
const int & |
phi | ) |
|
|
inline |
◆ SetStation()
| void MuonCalib::NtupleStationId::SetStation |
( |
const std::string & |
station | ) |
|
◆ TubeMax()
| int MuonCalib::NtupleStationId::TubeMax |
( |
int |
ml | ) |
const |
|
inline |
◆ TubeMin()
| int MuonCalib::NtupleStationId::TubeMin |
( |
int |
ml | ) |
const |
|
inline |
◆ m_author
| int MuonCalib::NtupleStationId::m_author {} |
|
private |
◆ m_eta
| int MuonCalib::NtupleStationId::m_eta {} |
|
private |
◆ m_geom_ok
| bool MuonCalib::NtupleStationId::m_geom_ok {} |
|
private |
◆ m_layer_max
| int MuonCalib::NtupleStationId::m_layer_max[2] {} |
|
private |
◆ m_layer_min
| int MuonCalib::NtupleStationId::m_layer_min[2] {} |
|
private |
◆ m_ml
| int MuonCalib::NtupleStationId::m_ml {} |
|
private |
◆ m_n_layer
| int MuonCalib::NtupleStationId::m_n_layer[2] {} |
|
private |
◆ m_n_ml
| int MuonCalib::NtupleStationId::m_n_ml {} |
|
private |
◆ m_n_tubes
| int MuonCalib::NtupleStationId::m_n_tubes[2] {} |
|
private |
◆ m_phi
| int MuonCalib::NtupleStationId::m_phi {} |
|
private |
◆ m_region_hash
| int MuonCalib::NtupleStationId::m_region_hash {} |
|
private |
◆ m_station
| int MuonCalib::NtupleStationId::m_station {} |
|
private |
◆ m_tube_max
| int MuonCalib::NtupleStationId::m_tube_max[2] {} |
|
private |
◆ m_tube_min
| int MuonCalib::NtupleStationId::m_tube_min[2] {} |
|
private |
The documentation for this class was generated from the following files:
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const override
Create hash id from compact id (return == 0 for OK)
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...