|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
    7 #include "Identifier/Identifier.h" 
   38   m_setPrepRawDataLink(false),
 
   40   m_pixelHelper(nullptr),
 
   52   if (
sc.isFailure()) 
return sc;
 
   59     return StatusCode::FAILURE;
 
   89     ATH_MSG_ERROR(
"Type does not match known concrete type of InDet! Dumping RoT:"<<rioOnTrack);
 
   97 std::pair<const Trk::TrkDetElementBase*, const Trk::PrepRawData*> 
 
  122                     << 
id<<
", in string form:" 
  126   return std::pair<const Trk::TrkDetElementBase*, const Trk::PrepRawData*>(detEl,prd);
 
  132   if (
pixel!=
nullptr) {
 
  133     prepareRIO_OnTrackElementLink<const InDet::PixelClusterContainer, InDet::PixelClusterOnTrack>(
pixel);
 
  138     prepareRIO_OnTrackElementLink<const InDet::SCT_ClusterContainer, InDet::SCT_ClusterOnTrack>(sct);
 
  143     prepareRIO_OnTrackElementLink<const InDet::TRT_DriftCircleContainer, InDet::TRT_DriftCircleOnTrack>(trt);
 
  152                                                   ELIndex_t& 
index)
 const 
  155   if (
pixel!=
nullptr) {
 
  156     prepareRIO_OnTrackElementLink<const InDet::PixelClusterContainer, InDet::PixelClusterOnTrack>(
pixel, 
key, 
index);
 
  161     prepareRIO_OnTrackElementLink<const InDet::SCT_ClusterContainer, InDet::SCT_ClusterOnTrack>(sct, 
key, 
index);
 
  166     prepareRIO_OnTrackElementLink<const InDet::TRT_DriftCircleContainer, InDet::TRT_DriftCircleOnTrack>(trt, 
key, 
index);
 
  173   std::pair<const Trk::TrkDetElementBase *, const Trk::PrepRawData *> pair = 
getLinks( *RoT );
 
  200                     << 
id<<
", in string form:" 
  231     ATH_MSG_WARNING(
"Unknown type of ID detector from identifier :"<< 
id<<
", in string form:" 
  245   if (!h_pixClusCont.
isValid()) {
 
  255     PixelClusterCollection::const_iterator collIt    = 
ptr->begin();
 
  256     PixelClusterCollection::const_iterator collItEnd = 
ptr->end();
 
  258     for ( ; collIt!=collItEnd; ++collIt){
 
  259       if ( (*collIt)->identify()==
id ) 
return *collIt;
 
  274   if (!h_sctClusCont.
isValid()) {
 
  284     SCT_ClusterCollection::const_iterator collIt    = 
ptr->begin();
 
  285     SCT_ClusterCollection::const_iterator collItEnd = 
ptr->end();
 
  287     for ( ; collIt!=collItEnd; ++collIt) {
 
  288       if ( (*collIt)->identify()==
id ) 
return *collIt;
 
  303   if (!h_trtDriftCircleCont.
isValid()) {
 
  313     TRT_DriftCircleCollection::const_iterator collIt    = 
ptr->begin();
 
  314     TRT_DriftCircleCollection::const_iterator collItEnd = 
ptr->end();
 
  316     for ( ; collIt!=collItEnd; ++collIt) {
 
  317       if ( (*collIt)->identify()==
id ) 
return *collIt;
 
  326   if (not pixelDetEle.isValid()) 
return nullptr;
 
  327   return pixelDetEle->getDetectorElement(waferHash);
 
  332   if (not sctDetEle.isValid()) 
return nullptr;
 
  333   return sctDetEle->getDetectorElement(waferHash);
 
  339   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