|
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 | 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 117 of file PixelRDOTool.cxx.
119 const unsigned int RDO_size = collection.
size();
128 if (pixelDetElStatus){
132 pixelDetElStatus->
isGood(idHash),
143 if (not pixelDetEleHandle.isValid() or pixelDetEle ==
nullptr) {
152 ATH_MSG_ERROR(
"Dynamic cast failed at "<<__LINE__<<
" of PixelRDOTool.cxx.");
◆ checkDuplication()
Definition at line 77 of file PixelRDOTool.cxx.
85 auto isDuplicate = [&pixelID,rdoID](
const UnpackedPixelRDO&
rc) ->
bool {
90 const auto pDuplicate = std::find_if(collectionID.begin(), collectionID.end(),isDuplicate);
91 const bool foundDuplicate {pDuplicate != collectionID.end()};
93 pDuplicate->LVL1 =
std::max(pDuplicate->LVL1, lvl1);
95 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()
Definition at line 99 of file PixelRDOTool.cxx.
104 if (!pixelDetElStatus.
isValid()) {
105 std::stringstream
msg;
107 throw std::runtime_error(
msg.str());
109 return pixelDetElStatus.
cptr();
◆ getUnpackedPixelRDOs()
Definition at line 160 of file PixelRDOTool.cxx.
166 std::vector<UnpackedPixelRDO> unpacked;
167 unpacked.reserve(collection.
size());
168 std::unordered_set<Identifier> idset;
174 for(
const auto *
const rdo : collection) {
177 if (!
isGoodRDO(pixelDetElStatus, idHash, rdoID, ctx, cacheEntry))
180 if (not idset.insert(rdoID).second) {
185 const int lvl1 = rdo->getLVL1A();
189 const int tot = rdo->getToT();
191 unpacked.emplace_back(
202 std::optional<Identifier> gangedID =
isGanged(rdoID, element);
203 if (gangedID.has_value()) {
204 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()
◆ 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 128 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 142 of file PixelRDOTool.h.
◆ m_detStore
◆ m_evtStore
◆ m_pixelDetEleCollKey
Initial value:{
this,
"PixelDetEleCollKey",
"PixelDetectorElementCollection",
"Key of SiDetectorElementCollection for Pixel"
}
Definition at line 157 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 112 of file PixelRDOTool.h.
◆ m_pixelId
◆ m_pixelReadout
Initial value:{
this,
"PixelReadoutManager",
"PixelReadoutManager",
"Pixel readout manager"
}
Definition at line 119 of file PixelRDOTool.h.
◆ m_printDuplicate
BooleanProperty InDet::PixelRDOTool::m_printDuplicate |
|
private |
Initial value:{
this,
"PrintDuplicate",
true,
"Print duplicate RDO warning"
}
Definition at line 135 of file PixelRDOTool.h.
◆ m_summaryTool
Initial value:{
this,
"PixelConditionsSummaryTool",
"PixelConditionsSummaryTool",
"Tool to retrieve Pixel Conditions summary"
}
Definition at line 100 of file PixelRDOTool.h.
◆ m_useModuleMap
BooleanProperty InDet::PixelRDOTool::m_useModuleMap |
|
private |
Initial value:{
this,
"UsePixelModuleMap",
true,
"Use bad modules map"
}
Definition at line 150 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.
const_pointer_type cptr()
Dereference the pointer.
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 bool isValid() override final
Can the handle be successfully dereferenced?
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>