|
ATLAS Offline Software
|
Helper tool uses to convert InDet objects in generic tracking custom convertor TrkEventAthenaPool.
More...
#include <InDetEventCnvTool.h>
|
bool | m_setPrepRawDataLink |
| if true, attempt to recreate link to PRD More...
|
|
const AtlasDetectorID * | m_IDHelper |
|
const PixelID * | m_pixelHelper |
|
const SCT_ID * | m_SCTHelper |
|
const TRT_ID * | m_TRTHelper |
|
const IdDictManager * | m_idDictMgr |
|
SG::ReadHandleKey< PixelClusterContainer > | m_pixClusContName {this, "PixelClusterContainer", "PixelClusters", "Pixel Cluster container name"} |
| location of container of pixel clusters More...
|
|
SG::ReadHandleKey< SCT_ClusterContainer > | m_sctClusContName {this, "SCT_ClusterContainer", "SCT_Clusters", "SCT Cluster container name"} |
| location of container of sct clusters More...
|
|
SG::ReadHandleKey< TRT_DriftCircleContainer > | m_trtDriftCircleContName {this, "TRT_DriftCircleContainer", "TRT_DriftCircleContainer", "TRT DriftCircle Container"} |
| location of container of TRT drift circles More...
|
|
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > | m_pixelDetEleCollKey {this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"} |
|
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > | m_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"} |
|
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > | m_trtDetEleContKey {this, "TRTDetEleContKey", "TRT_DetElementContainer", "Key of TRT_DetElementContainer for TRT"} |
|
Helper tool uses to convert InDet objects in generic tracking custom convertor TrkEventAthenaPool.
See "mainpage" for discussion of jobOpts.
Definition at line 40 of file InDetEventCnvTool.h.
◆ InDetConcreteType
◆ InDetEventCnvTool()
InDet::InDetEventCnvTool::InDetEventCnvTool |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~InDetEventCnvTool()
virtual InDet::InDetEventCnvTool::~InDetEventCnvTool |
( |
| ) |
|
|
virtualdefault |
◆ checkRoT()
Definition at line 81 of file InDetEventCnvTool.cxx.
83 if (
nullptr!=
dynamic_cast<const SCT_ClusterOnTrack*
>(&rioOnTrack) )
type =
SCT;
84 if (
nullptr!=
dynamic_cast<const PixelClusterOnTrack*
>(&rioOnTrack) )
type =
Pixel;
85 if (
nullptr!=
dynamic_cast<const TRT_DriftCircleOnTrack*
>(&rioOnTrack) )
type =
TRT;
87 ATH_MSG_ERROR(
"Type does not match known concrete type of InDet! Dumping RoT:"<<rioOnTrack);
◆ getDetectorElement() [1/2]
◆ getDetectorElement() [2/2]
◆ getLinks()
use the passed identifier to recreate the detector element and PRD links on the passed RIO_OnTrack
- Parameters
-
[in] | rioOnTrack | The RIO_OnTrack we're interested in |
- Returns
- std::pair of the pointers to the two corresponding objects
Definition at line 96 of file InDetEventCnvTool.cxx.
120 <<
id<<
", in string form:"
124 return std::pair<const Trk::TrkDetElementBase*, const Trk::PrepRawData*>(detEl,prd);
◆ getPixelDetectorElement()
use the passed IdentifierHash to get SiDetectorElement for Pixel
Definition at line 322 of file InDetEventCnvTool.cxx.
324 if (not pixelDetEle.isValid())
return nullptr;
325 return pixelDetEle->getDetectorElement(waferHash);
◆ getSCTDetectorElement()
use the passed IdentifierHash to get SiDetectorElement for SCT
Definition at line 328 of file InDetEventCnvTool.cxx.
330 if (not sctDetEle.isValid())
return nullptr;
331 return sctDetEle->getDetectorElement(waferHash);
◆ getTRTDetectorElement()
use the passed IdentifierHash to get TRTDetectorElement for TRT
Definition at line 334 of file InDetEventCnvTool.cxx.
337 if (not trtDetEleHandle.isValid() or elements==
nullptr) {
341 return elements->getDetectorElement(HashId);
◆ initialize()
StatusCode InDet::InDetEventCnvTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ pixelClusterLink()
use the passed identifier to recreate the pixel cluster link on the passed RIO_OnTrack
Definition at line 236 of file InDetEventCnvTool.cxx.
243 if (!h_pixClusCont.isValid()) {
253 PixelClusterCollection::const_iterator collIt =
ptr->begin();
254 PixelClusterCollection::const_iterator collItEnd =
ptr->end();
256 for ( ; collIt!=collItEnd; ++collIt){
257 if ( (*collIt)->identify()==
id )
return *collIt;
◆ prepareRIO_OnTrack()
void InDet::InDetEventCnvTool::prepareRIO_OnTrack |
( |
Trk::RIO_OnTrack * |
rot | ) |
const |
|
overridevirtual |
Definition at line 127 of file InDetEventCnvTool.cxx.
130 if (pixel!=
nullptr) {
131 prepareRIO_OnTrackElementLink<const InDet::PixelClusterContainer, InDet::PixelClusterOnTrack>(pixel);
136 prepareRIO_OnTrackElementLink<const InDet::SCT_ClusterContainer, InDet::SCT_ClusterOnTrack>(sct);
141 prepareRIO_OnTrackElementLink<const InDet::TRT_DriftCircleContainer, InDet::TRT_DriftCircleOnTrack>(trt);
◆ prepareRIO_OnTrackLink()
void InDet::InDetEventCnvTool::prepareRIO_OnTrackLink |
( |
const Trk::RIO_OnTrack * |
rot, |
|
|
ELKey_t & |
key, |
|
|
ELIndex_t & |
index |
|
) |
| const |
|
overridevirtual |
Similar, but just return the EL components rather then changing ROT.
Definition at line 148 of file InDetEventCnvTool.cxx.
153 if (pixel!=
nullptr) {
154 prepareRIO_OnTrackElementLink<const InDet::PixelClusterContainer, InDet::PixelClusterOnTrack>(pixel,
key,
index);
159 prepareRIO_OnTrackElementLink<const InDet::SCT_ClusterContainer, InDet::SCT_ClusterOnTrack>(sct,
key,
index);
164 prepareRIO_OnTrackElementLink<const InDet::TRT_DriftCircleContainer, InDet::TRT_DriftCircleOnTrack>(trt,
key,
index);
◆ recreateRIO_OnTrack()
void InDet::InDetEventCnvTool::recreateRIO_OnTrack |
( |
Trk::RIO_OnTrack * |
RoT | ) |
const |
|
overridevirtual |
◆ sctClusterLink()
use the passed identifier to recreate the SCT cluster link on the passed RIO_OnTrack
Definition at line 265 of file InDetEventCnvTool.cxx.
272 if (!h_sctClusCont.isValid()) {
282 SCT_ClusterCollection::const_iterator collIt =
ptr->begin();
283 SCT_ClusterCollection::const_iterator collItEnd =
ptr->end();
285 for ( ; collIt!=collItEnd; ++collIt) {
286 if ( (*collIt)->identify()==
id )
return *collIt;
◆ trtDriftCircleLink()
use the passed identifier to recreate the TRT Drift circle link on the passed RIO_OnTrack
Definition at line 294 of file InDetEventCnvTool.cxx.
301 if (!h_trtDriftCircleCont.isValid()) {
311 TRT_DriftCircleCollection::const_iterator collIt =
ptr->begin();
312 TRT_DriftCircleCollection::const_iterator collItEnd =
ptr->end();
314 for ( ; collIt!=collItEnd; ++collIt) {
315 if ( (*collIt)->identify()==
id )
return *collIt;
◆ m_idDictMgr
◆ m_IDHelper
◆ m_pixClusContName
◆ m_pixelDetEleCollKey
◆ m_pixelHelper
◆ m_sctClusContName
◆ m_SCTDetEleCollKey
◆ m_SCTHelper
◆ m_setPrepRawDataLink
bool InDet::InDetEventCnvTool::m_setPrepRawDataLink |
|
private |
◆ m_trtDetEleContKey
◆ m_trtDriftCircleContName
◆ m_TRTHelper
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
bool is_pixel(Identifier id) const
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
bool is_sct(Identifier id) const
bool is_trt(Identifier id) const
#define ATH_MSG_VERBOSE(x)
bool empty() const
Test if the key is blank.
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
IdentifierHash wafer_hash(Identifier wafer_id) const
wafer hash from id
::StatusCode StatusCode
StatusCode definition for legacy code.
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Ensure that the ATLAS eigen extensions are properly loaded.
Trk::PrepRawDataCollection< TRT_DriftCircle > TRT_DriftCircleCollection
StatusCode initialize(bool used=true)
virtual IdentifierHash idDE() const =0
returns the DE hashID
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
#define ATH_MSG_WARNING(x)
Identifier identify() const
return the identifier -extends MeasurementBase
const IdDictMgr * manager(void) const
Class to hold collection of TRT detector elements.
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
Trk::PrepRawDataCollection< SCT_Cluster > SCT_ClusterCollection
Trk::PrepRawDataCollection< PixelCluster > PixelClusterCollection
IdentifierHash straw_layer_hash(Identifier straw_layer_id) const
straw_layer hash from id - optimized