12#ifndef MUONTRIGCOINDATA_TGCCOINDATA_H
13#define MUONTRIGCOINDATA_TGCCOINDATA_H
19#include "Identifier/Identifier.h"
24#include "GaudiKernel/MsgStream.h"
44 friend class ::TgcCoinDataContainerCnv;
95 const bool veto =
false);
140 void setHashAndIndex(
unsigned short collHash,
unsigned short objIndex);
406 .Trk::Surface::localToGlobal(*
m_posIn)));
408 m_globalposIn.set(std::make_unique<const Amg::Vector3D>(0., 0., 0.));
420 .Trk::Surface::localToGlobal(*
m_posOut)));
422 m_globalposOut.set(std::make_unique<const Amg::Vector3D>(0., 0., 0.));
Scalar phi() const
phi method
Cached unique_ptr with atomic update.
Identifiable container index to a contained object.
This is a "hash" representation of an Identifier.
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
int roi() const
return ROI number
static constexpr uint32_t INNER_NSW_ID_BITSHIFT
double widthOut() const
return region width of hit on TGC2(TRACKLET) or TGC3(HIPT)
const Amg::Vector2D & posOut() const
return Local position of track on TGC3
TgcCoinData()
Public, Copy, operator=, constructor.
CoinDataType type() const
return the coincidence type (HIPT, LPT, SL)
static constexpr uint32_t INNER_TILE_MODULE_BITSHIFT
Bit info in int inner for the Tile inner-coincidence.
const MuonGM::TgcReadoutElement * m_detElIn
static constexpr uint32_t INNER_EIFI_CID_BIT
int trackletId() const
return trackletId (Identifier for each track)
double widthIn() const
return region width of hit on TGC1
static constexpr uint32_t INNER_TILE_BCID_BIT
Identifier identify() const
return OfflineID of Outer Hit
const IdentContIndex & getHashAndIndex() const
const MuonGM::TgcReadoutElement * m_detElOut
const MuonGM::TgcReadoutElement * detectorElementIn() const
return TgcReadoutElement of track on TGC1(HIPT) or TGC2(TRACKLET)
int trackletIdStrip() const
return trackletId for strip (Identifier for each track)
static constexpr uint32_t INNER_NSW_PHIRES_BITSHIFT
static constexpr uint32_t INNER_EIFI_CID_BITSHIFT
const Amg::Vector2D * m_posOut
static constexpr uint32_t INNER_RPC_PHI_BIT
static constexpr uint32_t INNER_NSW_BCID_BIT
const Amg::Vector2D & posIn() const
return Local position of track on TGC1(HIPT) or TGC2(TRACKLET)
bool isPositiveDeltaR() const
return isPositiveDeltaR (isMuplus) of SL
IdentContIndex m_indexAndHash
static constexpr uint32_t INNER_RPC_FLAG_BIT
static constexpr uint32_t INNER_NSW_PHIRES_BIT
const Amg::Vector3D & globalposOut() const
return global position of track on TGC3
static constexpr uint32_t INNER_RPC_ETA_BIT
int sub() const
return subMatrix of Tracklet or hsub of HiPt
static constexpr uint32_t INNER_NSW_LOWRES_BIT
TgcCoinData & operator=(const TgcCoinData &)
static constexpr uint32_t INNER_RPC_DPHI_BIT
const Amg::MatrixX & errMat() const
return 2d width of ROI for SL: errMat[0][0]==(width for R), errMat[1][1]==(width for phi)
static constexpr uint32_t INNER_TILE_MODULE_BIT
IdentifierHash identifyHash() const
return the identifierHash of Outer Hit
CxxUtils::CachedUniquePtr< const Amg::Vector3D > m_globalposIn
bool isAside() const
Aside or Cside.
static constexpr uint32_t INNER_RPC_BCID_BITSHIFT
const Amg::Vector2D * posInPtr() const
const Amg::Vector3D & globalposIn() const
return global position of track on TGC1(HIPT) or TGC2(TRACKLET)
static constexpr uint32_t INNER_RPC_ETA_BITSHIFT
Bit info in int inner for the RPC inner-coincidence.
static constexpr uint32_t INNER_EIFI_EI_BITSHIFT
Bit info in int inner for the EI/FI inner-coincidence.
void setIdentifier(Identifier in, Identifier out)
set the OfflineID of Inner and Outer Hits
static constexpr uint32_t INNER_NSW_ID_BIT
static constexpr uint32_t INNER_RPC_PHI_BITSHIFT
static constexpr uint32_t INNER_RPC_DPHI_BITSHIFT
bool veto() const
return veto bit
int phi() const
return phi number of trigger sector
bool isForward() const
Forward region or Endcap region.
Identifier m_channelIdOut
void setHashAndIndex(unsigned short collHash, unsigned short objIndex)
bool hasErrMat() const
Test to see if the error matrix is present.
friend MsgStream & operator<<(MsgStream &sl, const TgcCoinData &coin)
Overload of << operator for MsgStream for debug output.
static constexpr uint32_t INNER_NSW_PHI_BITSHIFT
~TgcCoinData()
Destructor:
const MuonGM::TgcReadoutElement * detectorElementOut() const
return TgcReadoutElement of track on TGC3
bool isInner() const
Inner layers or BW.
int pt() const
return pt threshold value
static constexpr uint32_t INNER_RPC_DETA_BIT
static constexpr uint32_t INNER_RPC_BCID_BIT
static constexpr uint32_t INNER_EIFI_FI_BITSHIFT
static constexpr uint32_t INNER_RPC_FLAG_BITSHIFT
CxxUtils::CachedUniquePtr< const Amg::Vector3D > m_globalposOut
static constexpr uint32_t INNER_NSW_BCID_BITSHIFT
Identifier channelIdIn() const
return offlineID on TGC1(HIPT) or TGC2(TRACKLET)
const Amg::MatrixX * m_errMat
static constexpr uint32_t INNER_RPC_DETA_BITSHIFT
static constexpr uint32_t INNER_EIFI_EI_BIT
IdentifierHash m_collectionIdHash
Identifier channelIdOut() const
return offlineID on track on TGC3
int delta() const
return the deviation from Pt=oo track
static constexpr uint32_t INNER_NSW_R_BITSHIFT
Bit info in int inner for the NSW inner-coincidence.
const Amg::Vector2D * posOutPtr() const
static constexpr uint32_t INNER_TILE_BCID_BITSHIFT
static constexpr uint32_t INNER_NSW_PHI_BIT
const Amg::Vector2D * m_posIn
static constexpr uint32_t INNER_NSW_LOWRES_BITSHIFT
static constexpr uint32_t INNER_EIFI_FI_BIT
static constexpr uint32_t INNER_NSW_INPUT_BITSHIFT
static constexpr uint32_t INNER_NSW_DTHETA_BITSHIFT
bool isStrip() const
Strip hit or Wire hit?
static constexpr uint32_t INNER_NSW_R_BIT
static constexpr uint32_t INNER_NSW_INPUT_BIT
int inner() const
return InnerCoincidecne trigger bits
static constexpr uint32_t INNER_NSW_DTHETA_BIT
Create derived converter to customize the saving of identifiable container.
std::vector< std::string > veto
these patterns are anded
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D
CachedUniquePtrT< const T > CachedUniquePtr
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.