|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "Identifier/Identifier.h"
36 m_setPrepRawDataLink(false),
38 m_pixelHelper(nullptr),
50 if (
sc.isFailure())
return sc;
57 return StatusCode::FAILURE;
87 ATH_MSG_ERROR(
"Type does not match known concrete type of InDet! Dumping RoT:"<<rioOnTrack);
95 std::pair<const Trk::TrkDetElementBase*, const Trk::PrepRawData*>
120 <<
id<<
", in string form:"
124 return std::pair<const Trk::TrkDetElementBase*, const Trk::PrepRawData*>(detEl,prd);
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);
150 ELIndex_t&
index)
const
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);
171 std::pair<const Trk::TrkDetElementBase *, const Trk::PrepRawData *> pair =
getLinks( *RoT );
198 <<
id<<
", in string form:"
229 ATH_MSG_WARNING(
"Unknown type of ID detector from identifier :"<<
id<<
", in string form:"
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;
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;
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;
324 if (not pixelDetEle.isValid())
return nullptr;
325 return pixelDetEle->getDetectorElement(waferHash);
330 if (not sctDetEle.isValid())
return nullptr;
331 return sctDetEle->getDetectorElement(waferHash);
337 if (not trtDetEleHandle.
isValid() or elements==
nullptr) {
def retrieve(aClass, aKey=None)
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
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.
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
bool is_sct(Identifier id) const
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
bool is_trt(Identifier id) const
#define ATH_MSG_VERBOSE(x)
bool empty() const
Test if the key is blank.
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
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.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
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)
const TRT_BaseElement * getDetectorElement(const IdentifierHash &hash) const
Identifier identify() const
return the identifier -extends MeasurementBase
const IdDictMgr * manager(void) const
const TRT_DetElementCollection * getElements() 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