|
ATLAS Offline Software
|
Go to the documentation of this file.
32 auto posIn = std::unique_ptr<Amg::Vector2D>
34 auto posOut = std::unique_ptr<Amg::Vector2D>
39 auto tempMat = std::make_unique<Amg::MatrixX>();
40 if (!
dummy.values.empty())
82 log << MSG::ERROR <<
"TgcCoinDataCnv_p2::transToPers - invalid trans channelIdIn!! "
93 log << MSG::ERROR <<
"TgcCoinDataCnv_p2::transToPers - invalid trans channelIdOut!! "
103 switch(transObj->
type()){
126 if (! transObj->
errMat().cols() || !transObj->
errMat().rows()) {
129 log << MSG::WARNING <<
"Have been given a TgcCoinData error matrix with size = ["
130 <<transObj->
errMat().rows()<<
","<<transObj->
errMat().cols()<<
"]. Skipping writing of the matrix."<<
endmsg;
141 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.
unsigned int m_indexAndHash
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)
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)
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)
ErrorMatrixCnv_p1 * m_errorMxCnv
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>)
LocalPositionCnv_p1 * m_localPosCnv
void setHashAndIndex(unsigned short collHash, unsigned short objIndex)
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)
Identifier32::value_type m_channelIdOut
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
const IdentContIndex & getHashAndIndex() const
void persToTrans(const Muon::TgcCoinData_p2 *persObj, Muon::TgcCoinData *transObj, MsgStream &log)
unsigned int m_numErrsPrinted
int roi() const
return ROI number
const Amg::Vector2D * posOutPtr() const
Identifier32::value_type m_channelIdIn
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
IdentifierHash m_collectionIdHash
void transToPers(const Muon::TgcCoinData *transObj, Muon::TgcCoinData_p2 *persObj, MsgStream &log)
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...
int phi() const
return phi number of trigger sector