ATLAS Offline Software
Loading...
Searching...
No Matches
SiChargedDiodeCollection.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6// sichargeddiodecollection.cxx
7// Implementation file for class SiChargedDiodeCollection
9// (c) ATLAS Detector software
11// Version 3.0 09/07/2001 David Calvet
12// 04-03-03 Revisited version. Davide Costanzo
14// header file
16// member classes
21#include "GaudiKernel/MsgStream.h"
23
24using namespace InDetDD;
25
26
27
33
39
40
42= default;
43
44// Clean up the collection
50
51
52
54 return m_chargedDiodes.find(siId) != m_chargedDiodes.end();
55}
56
58
59 const SiCellId cellId = m_sielement->cellIdFromIdentifier(id);
60 return AlreadyHit(cellId);
61}
62
64 // get the compact Id to access the map
65 SiChargedDiodeIterator theEl = m_chargedDiodes.find(siId);
66 // if the diode exists return a pointer to it:
67 if (theEl == m_chargedDiodes.end() ) return nullptr;
68 else return &( (*theEl).second);
69}
70
72
73 // Get the key for the map lookup
74 const SiCellId cellId = m_sielement->cellIdFromIdentifier(siId);
75 return find(cellId);
76}
77
79{
80 for (auto& p : m_chargedDiodes) {
81 m_orderedChargedDiodes.insert (&p.second);
82 }
83}
SiChargedDiodeMap::iterator SiChargedDiodeIterator
Identifier for the strip or pixel cell.
Definition SiCellId.h:29
Class to hold geometrical description of a solid state detector element.
bool AlreadyHit(const InDetDD::SiCellId &siId)
const InDetDD::SolidStateDetectorElementBase * m_sielement
SiChargedDiode * find(const InDetDD::SiCellId &siId)
SiChargedDiodeOrderedSet m_orderedChargedDiodes
singleton-like access to IMessageSvc via open function and helper
Message Stream Member.