|
ATLAS Offline Software
|
Go to the documentation of this file.
51 const int _doubletZ,
const int _doubletPhi,
52 const int _gasgap,
const int _measPhi)
53 : readoutEl(_readoutEl),
89 std::ostringstream ele_key;
102 this->gasGap == rhs.
gasGap && this->measPhi == rhs.
measPhi) {
127 std::string mystring_phi;
128 std::string mystring_side;
129 std::string mystring_PICO;
130 std::string mystring_ETAPHI;
147 if (myphi_part < 10) {
156 mystring_PICO =
".CO.";
160 mystring_PICO =
".PI.";
165 mystring_PICO =
".CO.";
173 mystring_ETAPHI =
"ETA.";
175 mystring_ETAPHI =
"PHI.";
178 return mystring_name + mystring_eta + mystring_side + mystring_phi +
179 mystring_PICO + mystring_dPhi + mystring_gap + mystring_dZ +
204 sector = -1 * sector;
206 std::pair<int, int> sec_layer(sector,
layer);
216 : gasgap_id(_gasgap_id), direction(_direction) {}
223 const int _doubletZ,
const int _doubletPhi,
224 const unsigned _gasgap)
225 : readoutEl(_readoutEl),
226 doubletR(_readoutEl->getDoubletR()),
255 double eta_etaStrip_1st = glbPos_etaStrip_1st.eta();
259 double eta_etaStrip_last = glbPos_etaStrip_last.eta();
261 if (eta_etaStrip_1st < eta_etaStrip_last) {
274 double phi_phiStrip_1st = glbPos_phiStrip_1st.phi();
278 double phi_phiStrip_last = glbPos_phiStrip_last.phi();
280 if (phi_phiStrip_1st < phi_phiStrip_last) {
306 result.minTrackGasGapDEta = std::min<double>(deta1, deta2);
307 result.minTrackGasGapDPhi = std::min<double>(dphi1, dphi2);
314 result.minTrackGasGapDEta = 0.0;
317 result.minTrackGasGapDPhi = 0.0;
324 std::sqrt(
result.minTrackGasGapDEta *
result.minTrackGasGapDEta +
340 const double dphi1 = std::abs(
342 const double dphi2 = std::abs(
345 result.minTrackGasGapDEta = std::min<double>(deta1, deta2);
346 result.minTrackGasGapDPhi = std::min<double>(dphi1, dphi2);
352 if (minStripEta <= trackParam->position().
eta() &&
354 result.minTrackGasGapDEta = 0.0;
356 if (minStripPhi <= trackParam->position().
phi() &&
358 result.minTrackGasGapDPhi = 0.0;
365 std::sqrt(
result.minTrackGasGapDEta *
result.minTrackGasGapDEta +
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
const Amg::Vector3D & position() const
Access method for the position.
int doubletZ(const Identifier &id) const
void FillRpcId(Identifier id, const RpcIdHelper &rpcIdHelper)
bool operator>(const RpcPanel &rhs) const
bool measuresPhi(const Identifier &id) const override
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
const MuonGM::RpcReadoutElement * readoutEl
int stationName(const Identifier &id) const
Identifier channelID(int stationName, int stationEta, int stationPhi, int doubletR, int doubletZ, int doubletPhi, int gasGap, int measuresPhi, int strip) const
const MuonGM::RpcReadoutElement * readoutEl
int gasGap(const Identifier &id) const override
get the hashes
void SetPanelIndex(int index)
std::string getOnlineConvention() const
int doubletR(const Identifier &id) const
ExResult(const Identifier _gasgap_id, const Trk::PropDirection _direction)
std::pair< int, int > getSectorLayer() const
int NphiStrips() const
returns the number of phi strips
Identifier panelID(const Identifier &padID, int gasGap, int measuresPhi) const
std::string getElementStr() const
int NetaStrips() const
returns the number of eta strips
void computeTrackDistanceToGasGap(ExResult &result, const xAOD::TrackParticle &track) const
int stationPhi(const Identifier &id) const
const std::string & stationNameString(const int &index) const
std::string to_string(const DetectorType &type)
Amg::Vector3D stripPos(const Identifier &id) const
Identifier gapID(const Identifier &padID, int gasGap) const
int stationEta(const Identifier &id) const
Eigen::Matrix< double, 3, 1 > Vector3D
virtual std::string toString(const Identifier &id) const =0
print all fields to string
bool operator==(const RpcPanel &rhs) const
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Class describing a TrackParticle.
bool operator<(const RpcPanel &rhs) const
GasGapData(const Muon::IMuonIdHelperSvc &idHelperSvc, const MuonGM::RpcReadoutElement *_readoutEl, const int _doubletZ, const int _doubletPhi, const unsigned _gasgap)
virtual const RpcIdHelper & rpcIdHelper() const =0
access to RpcIdHelper
std::string stationNameStr
int doubletPhi(const Identifier &id) const