 |
ATLAS Offline Software
|
#include <PixelRDOTool.h>
|
| | PixelRDOTool (const std::string &type, const std::string &name, const IInterface *parent) |
| |
| virtual | ~PixelRDOTool ()=default |
| |
| virtual StatusCode | initialize () |
| |
| std::vector< UnpackedPixelRDO > | getUnpackedPixelRDOs (const InDetRawDataCollection< PixelRDORawData > &collection, const PixelID &pixelID, const InDetDD::SiDetectorElement *element, const EventContext &ctx, int defaultLabel=-1) const |
| |
| bool | checkDuplication (const PixelID &pixelID, const Identifier &rdoID, const int lvl1, std::vector< UnpackedPixelRDO > &collectionID) const |
| |
| const InDet::SiDetectorElementStatus * | getPixelDetElStatus (const EventContext &ctx) const |
| |
| const InDetDD::SiDetectorElement * | checkCollection (const InDetRawDataCollection< PixelRDORawData > &collection, const EventContext &ctx) const |
| |
| ServiceHandle< StoreGateSvc > & | evtStore () |
| | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| const ServiceHandle< StoreGateSvc > & | evtStore () const |
| | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
| | The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
|
| |
| virtual StatusCode | sysInitialize () override |
| | Perform system initialization for an algorithm. More...
|
| |
| virtual StatusCode | sysStart () override |
| | Handle START transition. More...
|
| |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| | Return this algorithm's input handles. More...
|
| |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| | Return this algorithm's output handles. More...
|
| |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| | Declare a new Gaudi property. More...
|
| |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| | Declare a new Gaudi property. More...
|
| |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| |
| MsgStream & | msg () const |
| |
| MsgStream & | msg (const MSG::Level lvl) const |
| |
| bool | msgLvl (const MSG::Level lvl) const |
| |
|
| bool | isGoodRDO (const InDet::SiDetectorElementStatus *pixelDetElStatus, const IdentifierHash &moduleHash, const InDetDD::PixelModuleDesign &pixel_design, const Identifier &rdoID, const EventContext &ctx, const IInDetConditionsTool::IDCCacheEntry *cacheEntry) const |
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
| |
Definition at line 48 of file PixelRDOTool.h.
◆ StoreGateSvc_t
◆ PixelRDOTool()
| InDet::PixelRDOTool::PixelRDOTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~PixelRDOTool()
| virtual InDet::PixelRDOTool::~PixelRDOTool |
( |
| ) |
|
|
virtualdefault |
◆ checkCollection()
Definition at line 130 of file PixelRDOTool.cxx.
132 const unsigned int RDO_size = collection.
size();
141 if (pixelDetElStatus){
145 pixelDetElStatus->
isGood(idHash),
156 if (not pixelDetEleHandle.isValid() or pixelDetEle ==
nullptr) {
165 ATH_MSG_ERROR(
"Dynamic cast failed at "<<__LINE__<<
" of PixelRDOTool.cxx.");
◆ checkDuplication()
Definition at line 90 of file PixelRDOTool.cxx.
98 auto isDuplicate = [&pixelID,rdoID](
const UnpackedPixelRDO&
rc) ->
bool {
103 const auto pDuplicate = std::find_if(collectionID.begin(), collectionID.end(),isDuplicate);
104 const bool foundDuplicate {pDuplicate != collectionID.end()};
106 pDuplicate->LVL1 =
std::max(pDuplicate->LVL1, lvl1);
108 return foundDuplicate;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation string for the property. |
This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ getPixelDetElStatus()
◆ getUnpackedPixelRDOs()
Definition at line 173 of file PixelRDOTool.cxx.
179 std::vector<UnpackedPixelRDO> unpacked;
180 unpacked.reserve(collection.
size());
192 boost::container::flat_set<Identifier> idset;
194 for(
const auto *
const rdo : collection) {
205 const int lvl1 = rdo->getLVL1A();
209 if (not idset.insert(rdoID).second) {
220 const int tot = rdo->getToT();
222 unpacked.emplace_back(
233 std::optional<Identifier> gangedID =
isGanged(rdoID, element);
234 if (gangedID.has_value()) {
235 unpacked.emplace_back(
◆ initialize()
| StatusCode InDet::PixelRDOTool::initialize |
( |
| ) |
|
|
virtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ isGanged()
◆ isGoodRDO()
Definition at line 59 of file PixelRDOTool.cxx.
66 std::array<InDetDD::PixelDiodeTree::CellIndexType,2> diode_idx
74 pixelDetElStatus ? pixelDetElStatus->
isChipGood(moduleHash,feValue) :
false,
81 if (pixelDetElStatus) {
83 return pixelDetElStatus->
isChipGood(moduleHash, feValue);
85 return m_summaryTool->isGood(moduleHash, rdoID, ctx, cacheEntry);
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_checkDuplicatedRDO
| BooleanProperty InDet::PixelRDOTool::m_checkDuplicatedRDO |
|
private |
Initial value:{
this,
"CheckDuplicatedRDO",
false,
"Check duplicated RDOs using isDuplicated method"
}
Definition at line 122 of file PixelRDOTool.h.
◆ m_checkGanged
| BooleanProperty InDet::PixelRDOTool::m_checkGanged |
|
private |
Initial value:{
this,
"CheckGanged",
true,
"Check for ganged pixels when unpacking the RDOs"
}
Definition at line 136 of file PixelRDOTool.h.
◆ m_detStore
◆ m_evtStore
◆ m_isITk
| BooleanProperty InDet::PixelRDOTool::m_isITk |
|
private |
Initial value:{
this,
"isITk",
false,
"Toggle specific checks for ITk RDO data"
}
Definition at line 151 of file PixelRDOTool.h.
◆ m_pixelDetEleCollKey
Initial value:{
this,
"PixelDetEleCollKey",
"PixelDetectorElementCollection",
"Key of SiDetectorElementCollection for Pixel"
}
Definition at line 158 of file PixelRDOTool.h.
◆ m_pixelDetElStatus
Initial value:{
this,
"PixelDetElStatus",
"" ,
"Key of SiDetectorElementStatus for Pixel"
}
Optional read handle to get status data to test whether a pixel detector element is good.
If set to e.g. PixelDetectorElementStatus the event data will be used instead of the pixel conditions summary tool.
Definition at line 113 of file PixelRDOTool.h.
◆ m_pixelId
◆ m_printDuplicate
| BooleanProperty InDet::PixelRDOTool::m_printDuplicate |
|
private |
Initial value:{
this,
"PrintDuplicate",
true,
"Print duplicate RDO warning"
}
Definition at line 129 of file PixelRDOTool.h.
◆ m_summaryTool
Initial value:{
this,
"PixelConditionsSummaryTool",
"PixelConditionsSummaryTool",
"Tool to retrieve Pixel Conditions summary"
}
Definition at line 101 of file PixelRDOTool.h.
◆ m_useModuleMap
| BooleanProperty InDet::PixelRDOTool::m_useModuleMap |
|
private |
Initial value:{
this,
"UsePixelModuleMap",
true,
"Use bad modules map"
}
Definition at line 144 of file PixelRDOTool.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
int phi_index(const Identifier &id) const
SiCellId connectedCell(const SiCellId cellId, int number) const
Get the cell ids sharing the readout for this cell.
bool isChipGood(IdentifierHash hash, unsigned int chip) const
Trk::Surface & surface()
Element Surface.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
virtual IdentifierHash identifyHash() const override final
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
A diode proxy which caches the position of a diode.
virtual SiCellId cellIdFromIdentifier(const Identifier &identifier) const override final
SiCellId from Identifier.
int numberOfConnectedCells(const SiCellId cellId) const
Test if readout cell has more than one diode associated with it.
#define VALIDATE_STATUS_ARRAY(use_info, info_val, summary_val)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual Identifier identifierFromCellId(const SiCellId &cellId) const override final
Identifier <-> SiCellId (ie strip number or pixel eta_index,phi_index) Identifier from SiCellId (ie s...
#define VALIDATE_STATUS_ARRAY_ACTIVATED
int eta_index(const Identifier &id) const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
bool isGood(IdentifierHash hash) const
virtual const SurfaceBounds & bounds() const =0
Surface Bounds method.
StatusCode initialize(bool used=true)
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
static constexpr std::array< PixelDiodeTree::CellIndexType, 2 > makeCellIndex(T local_x_idx, T local_y_idx)
Create a 2D cell index from the indices in local-x (phi, row) and local-y (eta, column) direction.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):
size_type size() const noexcept
Returns the number of elements in the collection.