Loading [MathJax]/extensions/tex2jax.js
 |
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 | isGoodRDO (const InDet::SiDetectorElementStatus *pixelDetElStatus, const IdentifierHash &moduleHash, const Identifier &rdoID, const EventContext &ctx, const IInDetConditionsTool::IDCCacheEntry *cacheEntry) const |
|
bool | isGoodRDO (const InDet::SiDetectorElementStatus *pixelDetElStatus, const IdentifierHash &moduleHash, const InDetDD::SiDetectorElement *element, const Identifier &rdoID, const EventContext &ctx, const IInDetConditionsTool::IDCCacheEntry *cacheEntry) 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 > &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 |
|
Definition at line 46 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 153 of file PixelRDOTool.cxx.
155 const unsigned int RDO_size = collection.
size();
164 if (pixelDetElStatus){
168 pixelDetElStatus->
isGood(idHash),
179 if (not pixelDetEleHandle.isValid() or pixelDetEle ==
nullptr) {
188 ATH_MSG_ERROR(
"Dynamic cast failed at "<<__LINE__<<
" of PixelRDOTool.cxx.");
◆ checkDuplication()
Definition at line 113 of file PixelRDOTool.cxx.
121 auto isDuplicate = [&pixelID,rdoID](
const UnpackedPixelRDO&
rc) ->
bool {
126 const auto pDuplicate = std::find_if(collectionID.begin(), collectionID.end(),isDuplicate);
127 const bool foundDuplicate {pDuplicate != collectionID.end()};
129 pDuplicate->LVL1 =
std::max(pDuplicate->LVL1, lvl1);
131 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 196 of file PixelRDOTool.cxx.
202 std::vector<UnpackedPixelRDO> unpacked;
203 unpacked.reserve(collection.
size());
214 boost::container::flat_set<Identifier> idset;
216 for(
const auto *
const rdo : collection) {
227 const int lvl1 = rdo->getLVL1A();
231 if (not idset.insert(rdoID).second) {
242 const int tot = rdo->getToT();
244 unpacked.emplace_back(
255 std::optional<Identifier> gangedID =
isGanged(rdoID, element);
256 if (gangedID.has_value()) {
257 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() [1/2]
◆ isGoodRDO() [2/2]
Definition at line 85 of file PixelRDOTool.cxx.
102 if (pixelDetElStatus) {
103 const auto waferId = element->
identify();
106 return pixelDetElStatus->
isChipGood(moduleHash, fe);
108 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 136 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 150 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 165 of file PixelRDOTool.h.
◆ m_pixelDetEleCollKey
Initial value:{
this,
"PixelDetEleCollKey",
"PixelDetectorElementCollection",
"Key of SiDetectorElementCollection for Pixel"
}
Definition at line 172 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 120 of file PixelRDOTool.h.
◆ m_pixelId
◆ m_pixelReadout
Initial value:{
this,
"PixelReadoutManager",
"PixelReadoutManager",
"Pixel readout manager"
}
Definition at line 127 of file PixelRDOTool.h.
◆ m_printDuplicate
BooleanProperty InDet::PixelRDOTool::m_printDuplicate |
|
private |
Initial value:{
this,
"PrintDuplicate",
true,
"Print duplicate RDO warning"
}
Definition at line 143 of file PixelRDOTool.h.
◆ m_summaryTool
Initial value:{
this,
"PixelConditionsSummaryTool",
"PixelConditionsSummaryTool",
"Tool to retrieve Pixel Conditions summary"
}
Definition at line 108 of file PixelRDOTool.h.
◆ m_useModuleMap
BooleanProperty InDet::PixelRDOTool::m_useModuleMap |
|
private |
Initial value:{
this,
"UsePixelModuleMap",
true,
"Use bad modules map"
}
Definition at line 158 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
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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.
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
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
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)
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.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual Identifier identify() const override final
identifier of this detector element (inline)