ATLAS Offline Software
CompetingSCT_ClustersOnTrackCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 
11 void
14  MsgStream &log )
15 {
16  std::vector< const InDet::SCT_ClusterOnTrack * > containedChildRots;
17 
18  for (const TPObjRef& ref : persObj->m_containedChildRots) {
19  ITPConverterFor<Trk::MeasurementBase> *rotCnv = nullptr;
20  const InDet::SCT_ClusterOnTrack* mcot = dynamic_cast<const InDet::SCT_ClusterOnTrack*>(createTransFromPStore(&rotCnv, ref, log));
21  containedChildRots.push_back( mcot );
22  }
23 
24  *transObj = InDet::CompetingSCT_ClustersOnTrack (std::move(containedChildRots),
25  std::vector<double>{});
26  fillTransFromPStore( &m_cRotCnv, persObj->m_competingROT, transObj, log );
27 }
28 
29 void
32  MsgStream &log )
33 {
34  persObj->m_competingROT = baseToPersistent( &m_cRotCnv, transObj, log );
35 
36  for (const InDet::SCT_ClusterOnTrack* cl : transObj->containedROTs()) {
37  ITPConverterFor<Trk::MeasurementBase> *rotCnv = nullptr;
38  persObj->m_containedChildRots.push_back( toPersistent(&rotCnv, cl, log) );
39  }
40 }
41 
42 
SCT_ClusterOnTrack.h
ITPConverterFor< Trk::MeasurementBase >
MeasurementBase.h
InDet::CompetingSCT_ClustersOnTrack_p1
Version 1 of the persistent class representing the transient class InDet::CompetingSCT_ClustersOnTrac...
Definition: CompetingSCT_ClustersOnTrack_p1.h:17
InDet::CompetingSCT_ClustersOnTrack_p1::m_competingROT
TPObjRef m_competingROT
link to base CompetingRIOsOnTrack
Definition: CompetingSCT_ClustersOnTrack_p1.h:22
TPObjRef
Definition: TPObjRef.h:20
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
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...
Definition: TPConverter.h:145
CompetingSCT_ClustersOnTrackCnv_p1.h
CompetingSCT_ClustersOnTrack.h
CompetingSCT_ClustersOnTrackCnv_p1::transToPers
virtual void transToPers(const InDet::CompetingSCT_ClustersOnTrack *transObj, InDet::CompetingSCT_ClustersOnTrack_p1 *persObj, MsgStream &log)
Definition: CompetingSCT_ClustersOnTrackCnv_p1.cxx:30
ITPConverterFor< TRANS_BASE >::toPersistent
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...
Definition: TPConverter.h:119
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
RIO_OnTrack.h
InDet::CompetingSCT_ClustersOnTrack_p1::m_containedChildRots
std::vector< TPObjRef > m_containedChildRots
Definition: CompetingSCT_ClustersOnTrack_p1.h:24
InDet::CompetingSCT_ClustersOnTrack
Definition: CompetingSCT_ClustersOnTrack.h:45
CompetingSCT_ClustersOnTrackCnv_p1::persToTrans
virtual void persToTrans(const InDet::CompetingSCT_ClustersOnTrack_p1 *persObj, InDet::CompetingSCT_ClustersOnTrack *transObj, MsgStream &log)
Definition: CompetingSCT_ClustersOnTrackCnv_p1.cxx:12
ref
const boost::regex ref(r_ef)
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CompetingSCT_ClustersOnTrackCnv_p1::m_cRotCnv
CompetingRIOsOnTrackCnv_p1 * m_cRotCnv
Definition: CompetingSCT_ClustersOnTrackCnv_p1.h:38
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26
InDet::CompetingSCT_ClustersOnTrack::containedROTs
const std::vector< const InDet::SCT_ClusterOnTrack * > & containedROTs() const
returns the vector of SCT_ClusterOnTrack objects .
Definition: CompetingSCT_ClustersOnTrack.h:133
InDet::SCT_ClusterOnTrack
Definition: SCT_ClusterOnTrack.h:44
ITPConverterFor< TRANS_BASE >::createTransFromPStore
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...
Definition: TPConverter.h:172