|
ATLAS Offline Software
|
#include <RpdSubtractCentroidTool.h>
|
enum | {
ValidBit = 0,
HasCentroidBit = 1,
ZDCInvalidBit = 2,
InsufficientZDCEnergyBit = 3,
ExcessiveZDCEnergyBit = 4,
EMInvalidBit = 5,
InsufficientEMEnergyBit = 6,
ExcessiveEMEnergyBit = 7,
RPDInvalidBit = 8,
PileupBit = 9,
ExcessivePileupBit = 10,
ZeroSumBit = 11,
ExcessiveSubtrUnderflowBit = 12,
Row0ValidBit = 13,
Row1ValidBit = 14,
Row2ValidBit = 15,
Row3ValidBit = 16,
Col0ValidBit = 17,
Col1ValidBit = 18,
Col2ValidBit = 19,
Col3ValidBit = 20,
N_STATUS_BITS
} |
|
|
| RpdSubtractCentroidTool (const std::string &name) |
|
| ~RpdSubtractCentroidTool () override=default |
|
| RpdSubtractCentroidTool (RpdSubtractCentroidTool const &)=delete |
|
RpdSubtractCentroidTool & | operator= (RpdSubtractCentroidTool const &)=delete |
|
| RpdSubtractCentroidTool (RpdSubtractCentroidTool &&)=delete |
|
RpdSubtractCentroidTool & | operator= (RpdSubtractCentroidTool &&)=delete |
|
StatusCode | initialize () override |
| Dummy implementation of the initialisation function. More...
|
|
StatusCode | recoZdcModules (const xAOD::ZdcModuleContainer &moduleContainer, const xAOD::ZdcModuleContainer &moduleSumContainer) override |
|
StatusCode | reprocessZdc () override |
|
virtual void | print () const =0 |
| Print the state of the tool. More...
|
|
virtual void | print () const |
| Print the state of the tool. More...
|
|
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 |
|
|
std::string | m_configuration |
|
std::string | m_ZDCModuleContainerName |
|
std::string | m_ZDCSumContainerName |
|
bool | m_writeAux |
|
std::string | m_auxSuffix |
|
RPDUtils::OptionalToolProperty< std::vector< float > > | m_forceMinZDCEnergy |
|
RPDUtils::OptionalToolProperty< std::vector< float > > | m_forceMaxZDCEnergy |
|
RPDUtils::OptionalToolProperty< std::vector< float > > | m_forceMinEMEnergy |
|
RPDUtils::OptionalToolProperty< std::vector< float > > | m_forceMaxEMEnergy |
|
RPDUtils::OptionalToolProperty< std::vector< float > > | m_forcePileupMaxFrac |
|
RPDUtils::OptionalToolProperty< std::vector< float > > | m_forceMaximumNegativeSubtrAmpFrac |
|
RPDUtils::OptionalToolProperty< bool > | m_forceUseRPDSumAdc |
|
RPDUtils::OptionalToolProperty< bool > | m_forceUseCalibDecorations |
|
std::vector< float > | m_minZDCEnergy |
|
std::vector< float > | m_maxZDCEnergy |
|
std::vector< float > | m_minEMEnergy |
|
std::vector< float > | m_maxEMEnergy |
|
std::vector< float > | m_pileupMaxFrac |
|
std::vector< float > | m_maximumNegativeSubtrAmpFrac |
|
bool | m_useRPDSumAdc |
|
bool | m_useCalibDecorations |
|
bool | m_initialized = false |
|
bool | m_readZDCDecorations = false |
|
std::array< std::bitset< RPDDataAnalyzer::N_STATUS_BITS >, 2 > | m_RPDSideStatus {} |
|
std::optional< std::array< unsigned int, 2 > > | m_ZDCSideStatus |
| RPD analysis status word on each side. More...
|
|
std::optional< std::array< float, 2 > > | m_ZDCFinalEnergy |
| ZDC analysis status on each side. More...
|
|
std::optional< std::array< float, 2 > > | m_EMCalibEnergy |
| ZDC final (calibrated) energy on each side. More...
|
|
std::optional< std::array< std::bitset< ZDCPulseAnalyzer::N_STATUS_BITS >, 2 > > | m_EMStatus |
| EM calibrated energy on each side. More...
|
|
std::array< std::array< std::array< RPDChannelData, RPDUtils::nCols >, RPDUtils::nRows >, 2 > | m_RPDChannelData {} |
| EM modlue status word on each side. More...
|
|
std::array< float, 2 > | m_alignmentXOffset {} |
| RPD channel data for each channel (first index row, then index column) on each side. More...
|
|
std::array< float, 2 > | m_alignmentYOffset {} |
| geometry + crossing angle correction in x (ATLAS coordinates) More...
|
|
std::array< float, 2 > | m_avgXCentroid {} |
| geometry + crossing angle correction in y (ATLAS coordinates) More...
|
|
std::array< float, 2 > | m_avgYCentroid {} |
| average x centroid More...
|
|
bool | m_eventValid = false |
| average y centroid More...
|
|
std::array< std::bitset< N_STATUS_BITS >, 2 > | m_centroidStatus {1 << ValidBit, 1 << ValidBit} |
| event status More...
|
|
std::array< std::vector< float >, 2 > | m_subtrAmp |
| centroid status (valid by default) on each side More...
|
|
std::array< std::array< float, RPDUtils::nRows >, 2 > | m_subtrAmpRowSum {} |
| subtracted amplitude for each channel on each side More...
|
|
std::array< std::array< float, RPDUtils::nCols >, 2 > | m_subtrAmpColSum {} |
| subtracted amplitude for each row on each side More...
|
|
std::array< float, 2 > | m_subtrAmpSum {} |
| subtracted amplitude for each column on each side More...
|
|
std::array< float, 2 > | m_xCentroidPreGeomCorPreAvgSubtr {} |
| subtracted amplitude sum on each side More...
|
|
std::array< float, 2 > | m_yCentroidPreGeomCorPreAvgSubtr {} |
| x centroid before geomerty correction and before average subtraction (RPD detector coordinates) on each side More...
|
|
std::array< float, 2 > | m_xCentroidPreAvgSubtr {} |
| y centroid before geomerty correction and before average subtraction (RPD detector coordinates) on each side More...
|
|
std::array< float, 2 > | m_yCentroidPreAvgSubtr {} |
| x centroid after geomerty correction and before average subtraction on each side More...
|
|
std::array< float, 2 > | m_xCentroid {} |
| y centroid after geomerty correction and before average subtraction on each side More...
|
|
std::array< float, 2 > | m_yCentroid {} |
| x centroid after geomerty correction and after average subtraction on each side More...
|
|
std::array< std::vector< float >, 2 > | m_xRowCentroid |
| y centroid after geomerty correction and after average subtraction on each side More...
|
|
std::array< std::vector< float >, 2 > | m_yColCentroid |
| the x centroid for each row on each side More...
|
|
std::array< float, 2 > | m_reactionPlaneAngle {} |
| the y centroid for each column on each side More...
|
|
float | m_cosDeltaReactionPlaneAngle = 0 |
| reaction plane angle on each side More...
|
|
SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfoKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_xposRelKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_yposRelKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_rowKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_colKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_ZDCModuleCalibEnergyKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_ZDCModuleStatusKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_RPDChannelAmplitudeKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_RPDChannelAmplitudeCalibKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_RPDChannelMaxADCKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_RPDChannelMaxADCCalibKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_RPDChannelPileupFracKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_RPDChannelStatusKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_RPDSideStatusKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_ZDCFinalEnergyKey |
|
SG::ReadDecorHandleKey< xAOD::ZdcModuleContainer > | m_ZDCStatusKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_centroidEventValidKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_centroidStatusKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_RPDChannelSubtrAmpKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_RPDSubtrAmpSumKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_xCentroidPreGeomCorPreAvgSubtrKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_yCentroidPreGeomCorPreAvgSubtrKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_xCentroidPreAvgSubtrKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_yCentroidPreAvgSubtrKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_xCentroidKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_yCentroidKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_xRowCentroidKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_yColCentroidKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_reactionPlaneAngleKey |
|
SG::WriteDecorHandleKey< xAOD::ZdcModuleContainer > | m_cosDeltaReactionPlaneAngleKey |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 25 of file RpdSubtractCentroidTool.h.
◆ StoreGateSvc_t
◆ anonymous enum
Enumerator |
---|
ValidBit | |
HasCentroidBit | |
ZDCInvalidBit | |
InsufficientZDCEnergyBit | |
ExcessiveZDCEnergyBit | |
EMInvalidBit | |
InsufficientEMEnergyBit | |
ExcessiveEMEnergyBit | |
RPDInvalidBit | |
PileupBit | |
ExcessivePileupBit | |
ZeroSumBit | |
ExcessiveSubtrUnderflowBit | |
Row0ValidBit | |
Row1ValidBit | |
Row2ValidBit | |
Row3ValidBit | |
Col0ValidBit | |
Col1ValidBit | |
Col2ValidBit | |
Col3ValidBit | |
N_STATUS_BITS | |
Definition at line 28 of file RpdSubtractCentroidTool.h.
◆ SubstepStatus
cosine of difference between reaction plane angles of the two sides
Enumerator |
---|
Success | |
Failure | |
SkipEvent | |
Definition at line 167 of file RpdSubtractCentroidTool.h.
◆ RpdSubtractCentroidTool() [1/3]
ZDC::RpdSubtractCentroidTool::RpdSubtractCentroidTool |
( |
const std::string & |
name | ) |
|
|
explicit |
◆ ~RpdSubtractCentroidTool()
ZDC::RpdSubtractCentroidTool::~RpdSubtractCentroidTool |
( |
| ) |
|
|
overridedefault |
◆ RpdSubtractCentroidTool() [2/3]
◆ RpdSubtractCentroidTool() [3/3]
◆ anyNonNegative()
static bool ZDC::RpdSubtractCentroidTool::anyNonNegative |
( |
std::vector< float > const & |
v | ) |
|
|
inlinestaticprivate |
◆ calculateDetectorCentroid()
void ZDC::RpdSubtractCentroidTool::calculateDetectorCentroid |
( |
unsigned int |
side | ) |
|
|
private |
◆ calculateReactionPlaneAngle()
void ZDC::RpdSubtractCentroidTool::calculateReactionPlaneAngle |
( |
unsigned int |
side | ) |
|
|
private |
◆ checkZdcRpdValidity()
bool ZDC::RpdSubtractCentroidTool::checkZdcRpdValidity |
( |
unsigned int |
side | ) |
|
|
private |
◆ 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
◆ geometryCorrection()
void ZDC::RpdSubtractCentroidTool::geometryCorrection |
( |
unsigned int |
side | ) |
|
|
private |
◆ getKey()
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getName
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The hashed key of the object in the store. If not found, an invalid (zero) key.
Definition at line 119 of file AsgTool.cxx.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ getName()
const std::string & asg::AsgTool::getName |
( |
const void * |
ptr | ) |
const |
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getKey
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The string name of the object in the store. If not found, an empty string.
Definition at line 106 of file AsgTool.cxx.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getProperty()
template<class T >
const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ initialize()
StatusCode ZDC::RpdSubtractCentroidTool::initialize |
( |
| ) |
|
|
overridevirtual |
Dummy implementation of the initialisation function.
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from asg::AsgTool.
Definition at line 46 of file RpdSubtractCentroidTool.cxx.
103 ATH_MSG_DEBUG(
"RpdSubtractCentroidTool reconstruction parameters:");
115 ATH_MSG_DEBUG(
"RpdSubtractCentroidTool is configured to check ZDC or EM energy; ZDC-related ReadDecorHandleKey's will be initialized");
170 return StatusCode::SUCCESS;
◆ initializeKey() [1/2]
◆ initializeKey() [2/2]
◆ 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.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msg_level_name()
const std::string & asg::AsgTool::msg_level_name |
( |
| ) |
const |
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
MSG::name( msg().level() )
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
- Returns
- The string name of the current minimum message level that's printed
Definition at line 101 of file AsgTool.cxx.
◆ msgLvl()
◆ nonNegative()
static bool ZDC::RpdSubtractCentroidTool::nonNegative |
( |
float const |
x | ) |
|
|
inlinestaticprivate |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ 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.
◆ print() [1/2]
void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ print() [2/2]
virtual void asg::IAsgTool::print |
( |
| ) |
const |
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
◆ readAOD()
Definition at line 195 of file RpdSubtractCentroidTool.cxx.
198 if (!eventInfo.isValid()) {
203 ATH_MSG_WARNING(
"RPD decoding error found - abandoning RPD centroid reco!");
208 ATH_MSG_WARNING(
"ZDC decoding error found - abandoning RPD centroid reco!");
223 std::optional<SG::ReadDecorHandle<xAOD::ZdcModuleContainer, float>> zdcModuleCalibEnergyHandle;
224 std::optional<SG::ReadDecorHandle<xAOD::ZdcModuleContainer, unsigned int>> zdcModuleStatusHandle;
225 std::optional<SG::ReadDecorHandle<xAOD::ZdcModuleContainer, float>> zdcFinalEnergyHandle;
226 std::optional<SG::ReadDecorHandle<xAOD::ZdcModuleContainer, unsigned int>> zdcStatusHandle;
236 for (
auto const& zdcModule : moduleContainer) {
248 if (zdcModule->zdcChannel() < 0 ||
static_cast<unsigned int>(zdcModule->zdcChannel()) >
RPDUtils::nChannels - 1) {
249 ATH_MSG_ERROR(
"Invalid RPD channel found on side " <<
side <<
": channel number = " << zdcModule->zdcChannel());
252 unsigned int const channel = zdcModule->zdcChannel();
253 auto const&
row = rowHandle(*zdcModule);
254 auto const&
col = colHandle(*zdcModule);
278 for (
auto const& zdcSum: moduleSumContainer) {
◆ recoZdcModules()
Implements ZDC::IZdcAnalysisTool.
Definition at line 481 of file RpdSubtractCentroidTool.cxx.
482 if (moduleContainer.
empty()) {
484 return StatusCode::SUCCESS;
487 switch (
readAOD(moduleContainer, moduleSumContainer)) {
493 return StatusCode::FAILURE;
496 return StatusCode::SUCCESS;
515 return StatusCode::SUCCESS;
◆ renounce()
◆ renounceArray()
◆ reprocessZdc()
StatusCode ZDC::RpdSubtractCentroidTool::reprocessZdc |
( |
| ) |
|
|
overridevirtual |
◆ reset()
void ZDC::RpdSubtractCentroidTool::reset |
( |
| ) |
|
|
private |
◆ subtractAverageCentroid()
void ZDC::RpdSubtractCentroidTool::subtractAverageCentroid |
( |
unsigned int |
side | ) |
|
|
private |
◆ subtractRpdAmplitudes()
bool ZDC::RpdSubtractCentroidTool::subtractRpdAmplitudes |
( |
unsigned int |
side | ) |
|
|
private |
◆ 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()
◆ writeAOD()
◆ m_alignmentXOffset
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_alignmentXOffset {} |
|
private |
RPD channel data for each channel (first index row, then index column) on each side.
Definition at line 128 of file RpdSubtractCentroidTool.h.
◆ m_alignmentYOffset
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_alignmentYOffset {} |
|
private |
◆ m_auxSuffix
std::string ZDC::RpdSubtractCentroidTool::m_auxSuffix |
|
private |
◆ m_avgXCentroid
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_avgXCentroid {} |
|
private |
◆ m_avgYCentroid
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_avgYCentroid {} |
|
private |
◆ m_centroidEventValidKey
Initial value:{
this, "centroidEventValidKey", "",
"Event status: true if both centroids are valid, else false"
}
Definition at line 254 of file RpdSubtractCentroidTool.h.
◆ m_centroidStatus
◆ m_centroidStatusKey
◆ m_colKey
◆ m_configuration
std::string ZDC::RpdSubtractCentroidTool::m_configuration |
|
private |
◆ m_cosDeltaReactionPlaneAngle
float ZDC::RpdSubtractCentroidTool::m_cosDeltaReactionPlaneAngle = 0 |
|
private |
◆ m_cosDeltaReactionPlaneAngleKey
Initial value:{
this, "cosDeltaReactionPlaneAngleKey", "",
"Cosine of the difference between the reaction plane angles of the two sides"
}
Definition at line 306 of file RpdSubtractCentroidTool.h.
◆ m_detStore
◆ m_EMCalibEnergy
std::optional<std::array<float, 2> > ZDC::RpdSubtractCentroidTool::m_EMCalibEnergy |
|
private |
◆ m_EMStatus
◆ m_eventInfoKey
◆ m_eventValid
bool ZDC::RpdSubtractCentroidTool::m_eventValid = false |
|
private |
◆ m_evtStore
◆ m_forceMaxEMEnergy
◆ m_forceMaximumNegativeSubtrAmpFrac
◆ m_forceMaxZDCEnergy
◆ m_forceMinEMEnergy
◆ m_forceMinZDCEnergy
◆ m_forcePileupMaxFrac
◆ m_forceUseCalibDecorations
◆ m_forceUseRPDSumAdc
◆ m_initialized
bool ZDC::RpdSubtractCentroidTool::m_initialized = false |
|
private |
◆ m_maxEMEnergy
std::vector<float> ZDC::RpdSubtractCentroidTool::m_maxEMEnergy |
|
private |
◆ m_maximumNegativeSubtrAmpFrac
std::vector<float> ZDC::RpdSubtractCentroidTool::m_maximumNegativeSubtrAmpFrac |
|
private |
◆ m_maxZDCEnergy
std::vector<float> ZDC::RpdSubtractCentroidTool::m_maxZDCEnergy |
|
private |
◆ m_minEMEnergy
std::vector<float> ZDC::RpdSubtractCentroidTool::m_minEMEnergy |
|
private |
◆ m_minZDCEnergy
std::vector<float> ZDC::RpdSubtractCentroidTool::m_minZDCEnergy |
|
private |
◆ m_pileupMaxFrac
std::vector<float> ZDC::RpdSubtractCentroidTool::m_pileupMaxFrac |
|
private |
◆ m_reactionPlaneAngle
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_reactionPlaneAngle {} |
|
private |
◆ m_reactionPlaneAngleKey
Initial value:{
this, "reactionPlaneAngleKey", "",
"Reaction plane angle in [-pi, pi) from the positive x axis"
}
Definition at line 302 of file RpdSubtractCentroidTool.h.
◆ m_readZDCDecorations
bool ZDC::RpdSubtractCentroidTool::m_readZDCDecorations = false |
|
private |
◆ m_rowKey
◆ m_RPDChannelAmplitudeCalibKey
Initial value:{
this, "RPDChannelAmplitudeCalibKey", "",
"Calibrated RPD channel amplitude"
}
Definition at line 220 of file RpdSubtractCentroidTool.h.
◆ m_RPDChannelAmplitudeKey
◆ m_RPDChannelData
◆ m_RPDChannelMaxADCCalibKey
Initial value:{
this, "RPDChannelMaxADCCalibKey", "",
"Calibrated RPD channel max ADC"
}
Definition at line 228 of file RpdSubtractCentroidTool.h.
◆ m_RPDChannelMaxADCKey
◆ m_RPDChannelPileupFracKey
Initial value:{
this, "RPDChannelPileupFracKey", "",
"RPD channel (out of time) pileup as a fraction of non-pileup sum"
}
Definition at line 232 of file RpdSubtractCentroidTool.h.
◆ m_RPDChannelStatusKey
◆ m_RPDChannelSubtrAmpKey
Initial value:{
this, "RPDChannelSubtrAmpKey", "",
"RPD channel subtracted amplitudes (tile mass) used in centroid calculation"
}
Definition at line 262 of file RpdSubtractCentroidTool.h.
◆ m_RPDSideStatus
◆ m_RPDSideStatusKey
◆ m_RPDSubtrAmpSumKey
Initial value:{
this, "RPDSubtrAmpSumKey", "",
"Sum of RPD channel subtracted amplitudes (total mass) used in centroid calculation"
}
Definition at line 266 of file RpdSubtractCentroidTool.h.
◆ m_subtrAmp
std::array<std::vector<float>, 2> ZDC::RpdSubtractCentroidTool::m_subtrAmp |
|
private |
◆ m_subtrAmpColSum
std::array<std::array<float, RPDUtils::nCols>, 2> ZDC::RpdSubtractCentroidTool::m_subtrAmpColSum {} |
|
private |
◆ m_subtrAmpRowSum
std::array<std::array<float, RPDUtils::nRows>, 2> ZDC::RpdSubtractCentroidTool::m_subtrAmpRowSum {} |
|
private |
◆ m_subtrAmpSum
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_subtrAmpSum {} |
|
private |
◆ m_useCalibDecorations
bool ZDC::RpdSubtractCentroidTool::m_useCalibDecorations |
|
private |
◆ m_useRPDSumAdc
bool ZDC::RpdSubtractCentroidTool::m_useRPDSumAdc |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeAux
bool ZDC::RpdSubtractCentroidTool::m_writeAux |
|
private |
◆ m_xCentroid
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_xCentroid {} |
|
private |
◆ m_xCentroidKey
Initial value:{
this, "xCentroidKey", "",
"X centroid after geometry corrections and after average centroid subtraction"
}
Definition at line 286 of file RpdSubtractCentroidTool.h.
◆ m_xCentroidPreAvgSubtr
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_xCentroidPreAvgSubtr {} |
|
private |
y centroid before geomerty correction and before average subtraction (RPD detector coordinates) on each side
Definition at line 150 of file RpdSubtractCentroidTool.h.
◆ m_xCentroidPreAvgSubtrKey
Initial value:{
this, "xCentroidPreAvgSubtrKey", "",
"X centroid after geometry corrections and before average centroid subtraction"
}
Definition at line 278 of file RpdSubtractCentroidTool.h.
◆ m_xCentroidPreGeomCorPreAvgSubtr
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_xCentroidPreGeomCorPreAvgSubtr {} |
|
private |
◆ m_xCentroidPreGeomCorPreAvgSubtrKey
Initial value:{
this, "xCentroidPreGeomCorPreAvgSubtrKey", "",
"X centroid before geometry corrections and before average centroid subtraction (RPD detector coordinates)"
}
Definition at line 270 of file RpdSubtractCentroidTool.h.
◆ m_xposRelKey
Initial value:{
this, "xposRelKey", "",
"X position of RPD tile center relative to center of RPD active area"
}
Definition at line 192 of file RpdSubtractCentroidTool.h.
◆ m_xRowCentroid
std::array<std::vector<float>, 2> ZDC::RpdSubtractCentroidTool::m_xRowCentroid |
|
private |
Initial value:
y centroid after geomerty correction and after average subtraction on each side
Definition at line 154 of file RpdSubtractCentroidTool.h.
◆ m_xRowCentroidKey
Initial value:{
this, "xRowCentroidKey", "",
"Row X centroids before geometry corrections and before average centroid subtraction (RPD detector coordinates)"
}
Definition at line 294 of file RpdSubtractCentroidTool.h.
◆ m_yCentroid
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_yCentroid {} |
|
private |
◆ m_yCentroidKey
Initial value:{
this, "yCentroidKey", "",
"Y centroid after geometry corrections and after average centroid subtraction"
}
Definition at line 290 of file RpdSubtractCentroidTool.h.
◆ m_yCentroidPreAvgSubtr
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_yCentroidPreAvgSubtr {} |
|
private |
◆ m_yCentroidPreAvgSubtrKey
Initial value:{
this, "yCentroidPreAvgSubtrKey", "",
"Y centroid after geometry corrections and before average centroid subtraction"
}
Definition at line 282 of file RpdSubtractCentroidTool.h.
◆ m_yCentroidPreGeomCorPreAvgSubtr
std::array<float, 2> ZDC::RpdSubtractCentroidTool::m_yCentroidPreGeomCorPreAvgSubtr {} |
|
private |
x centroid before geomerty correction and before average subtraction (RPD detector coordinates) on each side
Definition at line 149 of file RpdSubtractCentroidTool.h.
◆ m_yCentroidPreGeomCorPreAvgSubtrKey
Initial value:{
this, "yCentroidPreGeomCorPreAvgSubtrKey", "",
"Y centroid before geometry corrections and before average centroid subtraction (RPD detector coordinates)"
}
Definition at line 274 of file RpdSubtractCentroidTool.h.
◆ m_yColCentroid
std::array<std::vector<float>, 2> ZDC::RpdSubtractCentroidTool::m_yColCentroid |
|
private |
◆ m_yColCentroidKey
Initial value:{
this, "yColCentroidKey", "",
"Column Y centroids before geometry corrections and before average centroid subtraction (RPD detector coordinates)"
}
Definition at line 298 of file RpdSubtractCentroidTool.h.
◆ m_yposRelKey
Initial value:{
this, "yposRelKey", "",
"Y position of RPD tile center relative to center of RPD active area"
}
Definition at line 196 of file RpdSubtractCentroidTool.h.
◆ m_ZDCFinalEnergy
std::optional<std::array<float, 2> > ZDC::RpdSubtractCentroidTool::m_ZDCFinalEnergy |
|
private |
◆ m_ZDCFinalEnergyKey
◆ m_ZDCModuleCalibEnergyKey
◆ m_ZDCModuleContainerName
std::string ZDC::RpdSubtractCentroidTool::m_ZDCModuleContainerName |
|
private |
◆ m_ZDCModuleStatusKey
◆ m_ZDCSideStatus
std::optional<std::array<unsigned int, 2> > ZDC::RpdSubtractCentroidTool::m_ZDCSideStatus |
|
private |
◆ m_ZDCStatusKey
◆ m_ZDCSumContainerName
std::string ZDC::RpdSubtractCentroidTool::m_ZDCSumContainerName |
|
private |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
std::string vecToString(std::vector< T > const &v)
unsigned constexpr int nChannels
constexpr std::initializer_list< unsigned int > sides
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
constexpr int ZDCSumsGlobalZDCSide
virtual void setOwner(IDataHandleHolder *o)=0
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.
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
Handle class for adding a decoration to an object.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
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.
@ ForwardDet
The forward detectors.
unsigned constexpr int sideA
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
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
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
unsigned constexpr int nRows
unsigned int ZDCSideToSideIndex(int const ZDCSide)
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool empty() const noexcept
Returns true if the collection is empty.
void helpZero(Range &v) requires(std
unsigned constexpr int ZDCModuleRPDType