Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
31 declareProperty(
"ExcessiveSubtrUnderflowFrac",
m_forceMaximumNegativeSubtrAmpFrac,
"If any RPD channel subtracted amplitude is negative and its fraction of subtracted amplitude sum is greater than or equal to this number, the centroid is invalid; per side");
33 declareProperty(
"UseCalibDecorations",
m_forceUseCalibDecorations,
"If true, use RPD channel sum/max ADC decorations with output calibration factors applied during reconstruction, else use decorations with raw values");
93 ATH_MSG_DEBUG(
"RpdSubtractCentroidTool reconstruction parameters:");
105 ATH_MSG_DEBUG(
"RpdSubtractCentroidTool is configured to check ZDC or EM energy; ZDC-related ReadDecorHandleKey's will be initialized");
160 return StatusCode::SUCCESS;
188 if (!eventInfo.isValid()) {
193 ATH_MSG_WARNING(
"RPD decoding error found - abandoning RPD centroid reco!");
198 ATH_MSG_WARNING(
"ZDC decoding error found - abandoning RPD centroid reco!");
213 std::optional<SG::ReadDecorHandle<xAOD::ZdcModuleContainer, float>> zdcModuleCalibEnergyHandle;
214 std::optional<SG::ReadDecorHandle<xAOD::ZdcModuleContainer, unsigned int>> zdcModuleStatusHandle;
215 std::optional<SG::ReadDecorHandle<xAOD::ZdcModuleContainer, float>> zdcFinalEnergyHandle;
216 std::optional<SG::ReadDecorHandle<xAOD::ZdcModuleContainer, unsigned int>> zdcStatusHandle;
226 for (
auto const zdcModule : moduleContainer) {
238 if (zdcModule->zdcChannel() < 0 ||
static_cast<unsigned int>(zdcModule->zdcChannel()) >
RPDUtils::nChannels - 1) {
239 ATH_MSG_ERROR(
"Invalid RPD channel found on side " <<
side <<
": channel number = " << zdcModule->zdcChannel());
242 unsigned int const channel = zdcModule->zdcChannel();
243 auto const&
row = rowHandle(*zdcModule);
244 auto const&
col = colHandle(*zdcModule);
268 for (
auto const zdcSum: moduleSumContainer) {
447 for (
auto const zdcSum: moduleSumContainer) {
451 centroidEventValidHandle(*zdcSum) =
static_cast<char>(
m_eventValid);
456 centroidStatusHandle(*zdcSum) =
static_cast<unsigned int>(
m_centroidStatus.at(
side).to_ulong());
472 if (moduleContainer.
empty()) {
474 return StatusCode::SUCCESS;
477 switch (
readAOD(moduleContainer, moduleSumContainer)) {
483 return StatusCode::FAILURE;
486 return StatusCode::SUCCESS;
505 return StatusCode::SUCCESS;
511 return StatusCode::FAILURE;
519 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
std::string vecToString(std::vector< T > const &v)
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
unsigned constexpr int nChannels
constexpr std::initializer_list< unsigned int > sides
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
constexpr int ZDCSumsGlobalZDCSide
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Handle class for reading a decoration on an object.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
::StatusCode StatusCode
StatusCode definition for legacy code.
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
Handle class for adding a decoration to an object.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
@ ForwardDet
The forward detectors.
unsigned constexpr int sideA
unsigned constexpr int nCols
unsigned constexpr int ZDCModuleZDCType
unsigned constexpr int ZDCModuleEMModule
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
#define ATH_MSG_WARNING(x)
unsigned constexpr int sideC
unsigned constexpr int nRows
unsigned int ZDCSideToSideIndex(int const ZDCSide)
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Define enumerations for event-level ZDC data.
bool empty() const noexcept
Returns true if the collection is empty.
void helpZero(Range &v) requires(std
unsigned constexpr int ZDCModuleRPDType