|
ATLAS Offline Software
|
Go to the documentation of this file.
27 auto posIn = std::unique_ptr<Amg::Vector2D>
29 auto posOut = std::unique_ptr<Amg::Vector2D>
34 auto tempMat = std::make_unique<Amg::MatrixX>();
35 if (!
dummy.values.empty())
78 log << MSG::ERROR <<
"TgcCoinDataCnv_p3::transToPers - invalid trans channelIdIn!! "
91 log << MSG::ERROR <<
"TgcCoinDataCnv_p3::transToPers - invalid trans channelIdOut!! "
102 switch(transObj->
type()){
126 if (! transObj->
errMat().cols() || !transObj->
errMat().rows()) {
127 static std::atomic<unsigned int> numErrsPrinted=0;
128 if (numErrsPrinted<10) {
129 if (numErrsPrinted++ < 10) {
130 log << MSG::WARNING <<
"Have been given a TgcCoinData error matrix with size = ["
131 <<transObj->
errMat().rows()<<
","<<transObj->
errMat().cols()<<
"]. Skipping writing of the matrix."<<
endmsg;
143 persObj->
m_pt = transObj->
pt();
bool hasErrMat() const
Test to see if the error matrix is present.
bool is_valid() const
Check if id is in a valid state.
void persToTrans(const Muon::TgcCoinData_p3 *persObj, Muon::TgcCoinData *transObj, MsgStream &log)
Identifier channelIdOut() const
return offlineID on track on TGC3
bool isAside() const
Aside or Cside.
CoinDataType type() const
return the coincidence type (HIPT, LPT, SL)
LocalPositionCnv_p1 * m_localPosCnv
int inner() const
return InnerCoincidecne trigger bits
bool isStrip() const
Strip hit or Wire hit?
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
int trackletId() const
return trackletId (Identifier for each track)
bool veto() const
return veto bit
value_type get_compact() const
Get the compact id.
IdentifierHash identifyHash() const
return the identifierHash of Outer Hit
bool isPositiveDeltaR() const
return isPositiveDeltaR (isMuplus) of SL
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
int trackletIdStrip() const
return trackletId for strip (Identifier for each track)
int delta() const
return the deviation from Pt=oo track
static void vectorToEigenMatrix(VECTOR &vec, COVARIANCE &cov, const char *)
Helper fn to fill the covariance from the raw data (vec<float>)
bool isInner() const
Inner layers or BW.
unsigned int m_indexAndHash
IdentifierHash m_collectionIdHash
void setHashAndIndex(unsigned short collHash, unsigned short objIndex)
Identifier32::value_type m_channelIdIn
double widthIn() const
return region width of hit on TGC1
const Amg::MatrixX & errMat() const
return 2d width of ROI for SL: errMat[0][0]==(width for R), errMat[1][1]==(width for phi)
double widthOut() const
return region width of hit on TGC2(TRACKLET) or TGC3(HIPT)
const Amg::Vector2D * posInPtr() const
const MuonGM::TgcReadoutElement * detectorElementIn() const
return TgcReadoutElement of track on TGC1(HIPT) or TGC2(TRACKLET)
static void eigenMatrixToVector(VECTOR &vec, COVARIANCE &cov, const char *)
Helper fn to get raw data (vec<float>) from the covariance.
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
unsigned int hashAndIndex() const
combined index
Identifier32::value_type m_channelIdOut
const IdentContIndex & getHashAndIndex() const
int roi() const
return ROI number
const Amg::Vector2D * posOutPtr() const
ErrorMatrixCnv_p1 * m_errorMxCnv
std::vector< float > values
bool isForward() const
Forward region or Endcap region.
int sub() const
return subMatrix of Tracklet or hsub of HiPt
int pt() const
return pt threshold value
Identifier channelIdIn() const
return offlineID on TGC1(HIPT) or TGC2(TRACKLET)
const MuonGM::TgcReadoutElement * detectorElementOut() const
return TgcReadoutElement of track on TGC3
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Create transient representation of a persistent object, stored in the the top-level persistent object...
void transToPers(const Muon::TgcCoinData *transObj, Muon::TgcCoinData_p3 *persObj, MsgStream &log)
int phi() const
return phi number of trigger sector