Station Identifier for sorting calibration data.
More...
#include <NtupleStationId.h>
|
| | NtupleStationId () |
| | Default constructor.
|
| | NtupleStationId (const MuonFixedId &id) |
| | Initializing Constructor.
|
| | NtupleStationId (const std::string &station, const int &eta, const int &phi, const int &ml=0, const int &author=0) |
| | Initializing Constructor.
|
| void | Initialize (const MuonFixedId &id) |
| | initialize function
|
| 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
|
| void | SetStation (const std::string &station) |
| | set station, eta or phi seperately
|
| void | SetPhi (const int &phi) |
| | set phi
|
| 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
|
| bool | operator> (const NtupleStationId &other) const |
| bool | operator== (const MuonFixedId &id) const |
| | return true if icdentifier matches selection
|
| bool | operator== (const NtupleStationId &id) const |
| | return true if the regions are the same
|
| std::string | regionId () const |
| | return the region id string
|
| bool | InitializeGeometry (const MdtIdHelper &mdtIdHelper, const MuonGM::MuonDetectorManager *detMgr) |
| | initialize geometry information
|
| int | GetStation () const |
| | get station eta and phi
|
| int | GetEta () const |
| int | GetPhi () const |
| int | GetMl () const |
| const int & | GetAuthor () const |
| int | NMultilayers () const |
| | return geometry information
|
| 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]
| MuonCalib::NtupleStationId::NtupleStationId |
( |
const MuonFixedId & | id | ) |
|
|
inline |
Initializing Constructor.
- Parameters
-
Definition at line 53 of file NtupleStationId.h.
56 }
void Initialize(const MuonFixedId &id)
initialize function
◆ 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.
62 :
65 }
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
◆ FixedId()
| int MuonCalib::NtupleStationId::FixedId |
( |
| ) |
const |
Definition at line 93 of file NtupleStationId.cxx.
93 {
96 id.set_mdt();
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();
101 }
◆ 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]
| void MuonCalib::NtupleStationId::Initialize |
( |
const MuonFixedId & | id | ) |
|
|
inline |
initialize function
- Parameters
-
Definition at line 69 of file NtupleStationId.h.
69 {
73 m_ml =
id.mdtMultilayer();
76 }
◆ 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.
16 {
18 if (station == "ANY") {
20 } else {
21 m_station =
id.stationStringToFixedStationNumber(station);
23 }
29 return true;
30 }
◆ InitializeGeometry()
initialize geometry information
Definition at line 37 of file NtupleStationId.cxx.
37 {
38 MuonFixedId fid;
41 log << MSG::WARNING <<
"NtupleStationId::InitializeGeometry: Cannot initialize geometry for multi station id" <<
endmsg;
43 return false;
44 }
47
51 if (!detEl_ml) {
52 log << MSG::WARNING <<
regionId() <<
" ml " <<
i <<
"does not exist in current geometry" <<
endmsg;
53 return false;
54 }
60 }
63 mdtIdHelper.
get_hash(
id, hash, &idCont);
66 return true;
67 }
Identifier elementID(int stationName, int stationEta, int stationPhi) const
int numberOfMultilayers(const Identifier &id) const
Identifier channelID(int stationName, int stationEta, int stationPhi, int multilayer, int tubeLayer, int tube) const
std::string regionId() const
return the region id string
int getNLayers() const
Returns the number of tube layers inside the multilayer.
int getNtubesperlayer() const
Returns the number of tubes in each tube layer.
const MdtReadoutElement * getMdtReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
IdContext module_context() const
id for module
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)
IMessageSvc * getMessageSvc(bool quiet=false)
IdentifierHash MdtBasicRegionHash
define type MdtBasicRegionHash for the smallest possible MDT calibration region
◆ 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<()
| bool MuonCalib::NtupleStationId::operator< |
( |
const NtupleStationId & | other | ) |
const |
|
inline |
comparision operators for the use as map ids
Definition at line 115 of file NtupleStationId.h.
115 {
125 return false;
126 }
◆ operator==() [1/2]
| bool MuonCalib::NtupleStationId::operator== |
( |
const MuonFixedId & | id | ) |
const |
|
inline |
return true if icdentifier matches selection
Definition at line 140 of file NtupleStationId.h.
140 {
144 if (
id.
eta() !=
m_eta)
return false;
146 if (
id.
phi() !=
m_phi)
return false;
149 return true;
150 }
◆ operator==() [2/2]
| bool MuonCalib::NtupleStationId::operator== |
( |
const NtupleStationId & | id | ) |
const |
|
inline |
return true if the regions are the same
Definition at line 152 of file NtupleStationId.h.
152 {
160 return true;
161 }
◆ operator>()
| bool MuonCalib::NtupleStationId::operator> |
( |
const NtupleStationId & | other | ) |
const |
|
inline |
◆ 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.
69 {
71 std::ostringstream id_stream;
73 id_stream << "ANY";
74 } else {
75 id_stream <<
id.stationNumberToFixedStationString(
m_station);
76 }
77 id_stream << "_";
80 } else {
81 id_stream << "ANY";
82 }
83 id_stream << "_";
86 } else {
87 id_stream << "ANY";
88 }
89 if (
m_ml > 0) { id_stream <<
"_" <<
m_ml; }
90 return id_stream.str();
91 }
◆ ResetVectors()
| void MuonCalib::NtupleStationId::ResetVectors |
( |
| ) |
|
|
inline |
Definition at line 85 of file NtupleStationId.h.
85 {
86 for (unsigned int ii = 0; ii < 2; ii++) {
93 }
94 }
◆ 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 | ) |
|
set station, eta or phi seperately
Definition at line 32 of file NtupleStationId.cxx.
32 {
34 m_station =
id.stationStringToFixedStationNumber(station);
35 }
◆ 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: