ATLAS Offline Software
|
#include <ZdcAnalysisTool.h>
Public Member Functions | |
ZdcAnalysisTool (const std::string &name) | |
virtual | ~ZdcAnalysisTool () override |
void | initializeDecorations () |
StatusCode | initialize () override |
Dummy implementation of the initialisation function. More... | |
void | initialize80MHz () |
void | initialize40MHz () |
void | initializeTriggerEffs (unsigned int runNumber) |
StatusCode | recoZdcModules (const xAOD::ZdcModuleContainer &moduleContainer, const xAOD::ZdcModuleContainer &moduleSumContainer) override |
StatusCode | reprocessZdc () override |
bool | sigprocSincInterp (const std::vector< unsigned short > &adc, float deltaT, float &, float &time, float &qual) |
void | setEnergyCalibrations (unsigned int runNumber) |
void | setTimeCalibrations (unsigned int runNumber) |
float | getModuleSum (int side) |
float | getCalibModuleSum (int side) |
float | getCalibModuleSumErr (int side) |
float | getUncalibModuleSum (int side) |
float | getUncalibModuleSumErr (int side) |
float | getAverageTime (int side) |
bool | sideFailed (int side) |
unsigned int | getModuleMask () |
double | getTriggerEfficiency (int side) |
double | getTriggerEfficiencyUncertainty (int side) |
const ZDCDataAnalyzer * | getDataAnalyzer () |
ZDCMsg::MessageFunctionPtr | MakeMessageFunction () |
void | Dump_setting () |
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 |
Static Public Member Functions | |
static bool | sigprocMaxFinder (const std::vector< unsigned short > &adc, float deltaT, float &, float &time, float &qual) |
static void | SetDebugLevel (int debugLevel=0) |
Public Attributes | |
bool | m_doTimeCalib |
Protected Member Functions | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
Add StoreName to extra input/output deps as needed. More... | |
Private Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
std::unique_ptr< ZDCDataAnalyzer > | initializeDefault () |
std::unique_ptr< ZDCDataAnalyzer > | initializePbPb2015G4 () |
std::unique_ptr< ZDCDataAnalyzer > | initializepPb2016 () |
std::unique_ptr< ZDCDataAnalyzer > | initializePbPb2018 () |
std::unique_ptr< ZDCDataAnalyzer > | initializeLHCf2022 () |
std::unique_ptr< ZDCDataAnalyzer > | initializepp2023 () |
std::unique_ptr< ZDCDataAnalyzer > | initializePbPb2023 () |
std::unique_ptr< ZDCDataAnalyzer > | initializepp2024 () |
std::unique_ptr< ZDCDataAnalyzer > | initializePbPb2024 () |
std::unique_ptr< ZDCDataAnalyzer > | initializeInjectorpp2024 () |
std::unique_ptr< ZDCDataAnalyzer > | initializeInjectorPbPb2024 () |
std::unique_ptr< ZDCDataAnalyzer > | initializeMonteCarloPbPb2023 () |
StatusCode | configureNewRun (unsigned int runNumber) |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Static Private Attributes | |
static std::atomic< int > | s_debugLevel |
Definition at line 28 of file ZdcAnalysisTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
ZDC::ZdcAnalysisTool::ZdcAnalysisTool | ( | const std::string & | name | ) |
Definition at line 24 of file ZdcAnalysisTool.cxx.
|
overridevirtual |
Definition at line 79 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 2006 of file ZdcAnalysisTool.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
inline |
Definition at line 92 of file ZdcAnalysisTool.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
|
protectedinherited |
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
float ZDC::ZdcAnalysisTool::getAverageTime | ( | int | side | ) |
Definition at line 2537 of file ZdcAnalysisTool.cxx.
float ZDC::ZdcAnalysisTool::getCalibModuleSum | ( | int | side | ) |
Definition at line 2513 of file ZdcAnalysisTool.cxx.
float ZDC::ZdcAnalysisTool::getCalibModuleSumErr | ( | int | side | ) |
Definition at line 2519 of file ZdcAnalysisTool.cxx.
|
inline |
Definition at line 70 of file ZdcAnalysisTool.h.
|
inherited |
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.
ptr | The bare pointer to the object that the event store should know about |
Definition at line 119 of file AsgTool.cxx.
unsigned int ZDC::ZdcAnalysisTool::getModuleMask | ( | ) |
Definition at line 2549 of file ZdcAnalysisTool.cxx.
float ZDC::ZdcAnalysisTool::getModuleSum | ( | int | side | ) |
Definition at line 2507 of file ZdcAnalysisTool.cxx.
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.
ptr | The bare pointer to the object that the event store should know about |
Definition at line 106 of file AsgTool.cxx.
Get one of the tool's properties.
double ZDC::ZdcAnalysisTool::getTriggerEfficiency | ( | int | side | ) |
Definition at line 2555 of file ZdcAnalysisTool.cxx.
double ZDC::ZdcAnalysisTool::getTriggerEfficiencyUncertainty | ( | int | side | ) |
Definition at line 2565 of file ZdcAnalysisTool.cxx.
float ZDC::ZdcAnalysisTool::getUncalibModuleSum | ( | int | side | ) |
Definition at line 2525 of file ZdcAnalysisTool.cxx.
float ZDC::ZdcAnalysisTool::getUncalibModuleSumErr | ( | int | side | ) |
Definition at line 2531 of file ZdcAnalysisTool.cxx.
|
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 1823 of file ZdcAnalysisTool.cxx.
void ZDC::ZdcAnalysisTool::initialize40MHz | ( | ) |
Definition at line 1584 of file ZdcAnalysisTool.cxx.
void ZDC::ZdcAnalysisTool::initialize80MHz | ( | ) |
Definition at line 1704 of file ZdcAnalysisTool.cxx.
void ZDC::ZdcAnalysisTool::initializeDecorations | ( | ) |
Definition at line 2001 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 1219 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 928 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 792 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 197 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 1064 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 1282 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 1457 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 464 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 628 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 286 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 375 of file ZdcAnalysisTool.cxx.
|
private |
Definition at line 1345 of file ZdcAnalysisTool.cxx.
void ZDC::ZdcAnalysisTool::initializeTriggerEffs | ( | unsigned int | runNumber | ) |
Definition at line 84 of file ZdcAnalysisTool.cxx.
|
overridevirtualinherited |
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.
|
inline |
Definition at line 77 of file ZdcAnalysisTool.h.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
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:
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
Definition at line 101 of file AsgTool.cxx.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
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.
|
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.
|
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.
|
overridevirtual |
Implements ZDC::IZdcAnalysisTool.
Definition at line 2026 of file ZdcAnalysisTool.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
overridevirtual |
|
inlinestatic |
Definition at line 72 of file ZdcAnalysisTool.h.
void ZDC::ZdcAnalysisTool::setEnergyCalibrations | ( | unsigned int | runNumber | ) |
Definition at line 2302 of file ZdcAnalysisTool.cxx.
void ZDC::ZdcAnalysisTool::setTimeCalibrations | ( | unsigned int | runNumber | ) |
Definition at line 2367 of file ZdcAnalysisTool.cxx.
bool ZDC::ZdcAnalysisTool::sideFailed | ( | int | side | ) |
Definition at line 2543 of file ZdcAnalysisTool.cxx.
|
static |
Definition at line 2465 of file ZdcAnalysisTool.cxx.
bool ZDC::ZdcAnalysisTool::sigprocSincInterp | ( | const std::vector< unsigned short > & | adc, |
float | deltaT, | ||
float & | amp, | ||
float & | time, | ||
float & | qual | ||
) |
Definition at line 2492 of file ZdcAnalysisTool.cxx.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 135 of file ZdcAnalysisTool.h.
|
private |
Definition at line 159 of file ZdcAnalysisTool.h.
|
private |
Definition at line 175 of file ZdcAnalysisTool.h.
|
private |
Definition at line 154 of file ZdcAnalysisTool.h.
|
private |
Definition at line 128 of file ZdcAnalysisTool.h.
|
private |
Definition at line 169 of file ZdcAnalysisTool.h.
|
private |
Definition at line 174 of file ZdcAnalysisTool.h.
|
private |
Definition at line 164 of file ZdcAnalysisTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 155 of file ZdcAnalysisTool.h.
bool ZDC::ZdcAnalysisTool::m_doTimeCalib |
Definition at line 68 of file ZdcAnalysisTool.h.
|
private |
Definition at line 156 of file ZdcAnalysisTool.h.
|
private |
Definition at line 144 of file ZdcAnalysisTool.h.
|
private |
Definition at line 137 of file ZdcAnalysisTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 172 of file ZdcAnalysisTool.h.
|
private |
Definition at line 173 of file ZdcAnalysisTool.h.
|
private |
Definition at line 152 of file ZdcAnalysisTool.h.
|
private |
Definition at line 158 of file ZdcAnalysisTool.h.
|
private |
Definition at line 157 of file ZdcAnalysisTool.h.
|
private |
Definition at line 127 of file ZdcAnalysisTool.h.
|
private |
Definition at line 177 of file ZdcAnalysisTool.h.
|
private |
Definition at line 153 of file ZdcAnalysisTool.h.
|
private |
Definition at line 139 of file ZdcAnalysisTool.h.
|
private |
Definition at line 126 of file ZdcAnalysisTool.h.
|
private |
Definition at line 163 of file ZdcAnalysisTool.h.
|
private |
Definition at line 185 of file ZdcAnalysisTool.h.
|
private |
Definition at line 186 of file ZdcAnalysisTool.h.
|
private |
Definition at line 187 of file ZdcAnalysisTool.h.
|
private |
Definition at line 167 of file ZdcAnalysisTool.h.
|
private |
Definition at line 166 of file ZdcAnalysisTool.h.
|
private |
Definition at line 165 of file ZdcAnalysisTool.h.
|
private |
Definition at line 138 of file ZdcAnalysisTool.h.
|
private |
Definition at line 168 of file ZdcAnalysisTool.h.
|
private |
Definition at line 170 of file ZdcAnalysisTool.h.
|
private |
Definition at line 171 of file ZdcAnalysisTool.h.
|
private |
Definition at line 142 of file ZdcAnalysisTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
private |
Definition at line 134 of file ZdcAnalysisTool.h.
|
private |
Definition at line 129 of file ZdcAnalysisTool.h.
|
private |
Definition at line 181 of file ZdcAnalysisTool.h.
|
private |
Definition at line 182 of file ZdcAnalysisTool.h.
|
private |
Definition at line 183 of file ZdcAnalysisTool.h.
|
private |
Definition at line 130 of file ZdcAnalysisTool.h.
|
private |
Definition at line 213 of file ZdcAnalysisTool.h.
|
private |
Definition at line 196 of file ZdcAnalysisTool.h.
|
private |
Definition at line 205 of file ZdcAnalysisTool.h.
|
private |
Definition at line 197 of file ZdcAnalysisTool.h.
|
private |
Definition at line 198 of file ZdcAnalysisTool.h.
|
private |
Definition at line 201 of file ZdcAnalysisTool.h.
|
private |
Definition at line 216 of file ZdcAnalysisTool.h.
|
private |
Definition at line 148 of file ZdcAnalysisTool.h.
|
private |
Definition at line 202 of file ZdcAnalysisTool.h.
|
private |
Definition at line 203 of file ZdcAnalysisTool.h.
|
private |
Definition at line 204 of file ZdcAnalysisTool.h.
|
private |
Definition at line 209 of file ZdcAnalysisTool.h.
|
private |
Definition at line 208 of file ZdcAnalysisTool.h.
|
private |
Definition at line 207 of file ZdcAnalysisTool.h.
|
private |
Definition at line 206 of file ZdcAnalysisTool.h.
|
private |
Definition at line 149 of file ZdcAnalysisTool.h.
|
private |
Definition at line 199 of file ZdcAnalysisTool.h.
|
private |
Definition at line 214 of file ZdcAnalysisTool.h.
|
private |
Definition at line 215 of file ZdcAnalysisTool.h.
|
private |
Definition at line 200 of file ZdcAnalysisTool.h.
|
private |
Definition at line 224 of file ZdcAnalysisTool.h.
|
private |
Definition at line 221 of file ZdcAnalysisTool.h.
|
private |
Definition at line 222 of file ZdcAnalysisTool.h.
|
private |
Definition at line 150 of file ZdcAnalysisTool.h.
|
private |
Definition at line 223 of file ZdcAnalysisTool.h.
|
private |
Definition at line 226 of file ZdcAnalysisTool.h.
|
private |
Definition at line 151 of file ZdcAnalysisTool.h.
|
private |
Definition at line 225 of file ZdcAnalysisTool.h.
|
private |
Definition at line 219 of file ZdcAnalysisTool.h.
|
private |
Definition at line 220 of file ZdcAnalysisTool.h.
|
private |
Definition at line 131 of file ZdcAnalysisTool.h.
|
private |
Definition at line 190 of file ZdcAnalysisTool.h.
|
private |
Definition at line 132 of file ZdcAnalysisTool.h.
|
staticprivate |
Definition at line 192 of file ZdcAnalysisTool.h.