|
ATLAS Offline Software
|
#include <TauProcessorAlg.h>
|
| TauProcessorAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~TauProcessorAlg () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | execute (const EventContext &ctx) const |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, 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 | 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 |
|
|
Gaudi::Property< double > | m_maxEta {this, "MaxEta", 2.5, "maximum eta for jet seed"} |
|
Gaudi::Property< double > | m_minPt {this, "MinPt", 10 * Gaudi::Units::GeV, "minimum pT for jet seed"} |
|
Gaudi::Property< int > | m_maxNTracks {this, "MaxNTracks", -1, "maximum number of classifiedCharged tracks"} |
|
const ToolHandleArray< ITauToolBase > | m_tools {this, "Tools", {}, "Tools processing taus"} |
|
const ToolHandle< ICaloConstCellMakerTool > | m_cellMakerTool {this, "CellMakerTool", "", "Tool to sort the CaloCellContainer"} |
|
SG::ReadHandleKey< xAOD::JetContainer > | m_jetInputContainer {this,"Key_jetInputContainer","AntiKt4LCTopoJets","input jet key"} |
|
SG::WriteHandleKey< xAOD::TauJetContainer > | m_tauOutputContainer {this,"Key_tauOutputContainer","tmp_TauJets","output tau data key"} |
|
SG::WriteHandleKey< xAOD::TauTrackContainer > | m_tauTrackOutputContainer {this,"Key_tauTrackOutputContainer","TauTracks","output tau tracks data key"} |
|
SG::WriteHandleKey< xAOD::CaloClusterContainer > | m_tauShotClusOutputContainer {this,"Key_tauShotClusOutputContainer", "TauShotClusters", "tau shot clusters out key"} |
|
SG::WriteHandleKey< CaloClusterCellLinkContainer > | m_tauShotClusLinkContainer {this,"Key_tauShotClusLinkContainer", "TauShotClusters_links", "tau shot clusters out key"} |
|
SG::WriteHandleKey< xAOD::PFOContainer > | m_tauShotPFOOutputContainer {this,"Key_tauShotPFOOutputContainer", "TauShotParticleFlowObjects", "tau pfo out key"} |
|
SG::WriteHandleKey< CaloConstCellContainer > | m_tauPi0CellOutputContainer {this,"Key_tauPi0CellOutputContainer","TauCommonPi0Cells","output calo cell key"} |
|
const CaloCell_ID * | m_cellID = nullptr |
|
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > | m_pixelDetEleCollKey {this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"} |
|
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > | m_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"} |
|
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > | m_trtDetEleContKey {this, "TRTDetEleContKey", "TRT_DetElementContainer", "Key of TRT_DetElementContainer"} |
|
DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
|
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 36 of file TauProcessorAlg.h.
◆ StoreGateSvc_t
◆ TauProcessorAlg()
TauProcessorAlg::TauProcessorAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TauProcessorAlg()
TauProcessorAlg::~TauProcessorAlg |
( |
| ) |
|
|
default |
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 55 of file AthReentrantAlgorithm.cxx.
◆ 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);
◆ 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.
◆ 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.
◆ 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]
◆ execute()
StatusCode TauProcessorAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
virtual |
record output containers
Definition at line 79 of file TauProcessorAlg.cxx.
83 ATH_CHECK(tauHandle.record(std::make_unique<xAOD::TauJetContainer>(), std::make_unique<xAOD::TauJetAuxContainer>()));
87 ATH_CHECK(tauTrackHandle.record(std::make_unique<xAOD::TauTrackContainer>(), std::make_unique<xAOD::TauTrackAuxContainer>()));
91 ATH_CHECK(tauShotClusHandle.record(std::make_unique<xAOD::CaloClusterContainer>(), std::make_unique<xAOD::CaloClusterAuxContainer>()));
95 ATH_CHECK(tauShotPFOHandle.record(std::make_unique<xAOD::PFOContainer>(), std::make_unique<xAOD::PFOAuxContainer>()));
99 boost::dynamic_bitset<> addedCellsMap;
104 Pi0CellContainer = tauPi0CellHandle.ptr();
109 addedCellsMap.resize(hashMax,
false);
114 if (!jetHandle.isValid()) {
115 ATH_MSG_ERROR (
"Could not retrieve HiveDataObj with key " << jetHandle.key());
116 return StatusCode::FAILURE;
125 for (
const xAOD::Jet* pSeed : *pSeedContainer) {
126 ATH_MSG_VERBOSE(
"Seeds eta:" << pSeed->eta() <<
", pt:" << pSeed->pt());
128 if (std::abs(pSeed->eta()) >
m_maxEta) {
143 pTau->
setJet(pSeedContainer, pSeed);
149 for (
const ToolHandle<ITauToolBase>&
tool :
m_tools) {
152 if (
tool->type() ==
"TauVertexFinder") {
153 sc =
tool->executeVertexFinder(*pTau);
154 }
else if (
tool->type() ==
"TauTrackFinder") {
155 sc =
tool->executeTrackFinder(*pTau, *pTauTrackCont);
156 }
else if (
tool->type() ==
"tauRecTools::TauTrackRNNClassifier") {
157 sc =
tool->executeTrackClassifier(*pTau, *pTauTrackCont);
163 sc = StatusCode::FAILURE;
166 }
else if (
tool->type() ==
"TauShotFinder") {
167 sc =
tool->executeShotFinder(*pTau, *tauShotClusContainer,
168 *tauShotPFOContainer);
169 }
else if (
tool->type() ==
"TauPi0CreateROI") {
170 sc =
tool->executePi0CreateROI(*pTau, *Pi0CellContainer, addedCellsMap);
172 sc =
tool->execute(*pTau);
178 if (
sc.isSuccess()) {
195 if(Pi0CellContainer) {
209 return StatusCode::SUCCESS;
◆ 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
◆ extraOutputDeps()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ initialize()
StatusCode TauProcessorAlg::initialize |
( |
| ) |
|
|
virtual |
Definition at line 32 of file TauProcessorAlg.cxx.
56 return StatusCode::FAILURE;
65 for (
const ToolHandle<ITauToolBase>&
tool :
m_tools) {
73 return StatusCode::SUCCESS;
◆ 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.
◆ isClonable()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, InDet::SiSPGNNTrackMaker, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ 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()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ sysExecute()
StatusCode AthReentrantAlgorithm::sysExecute |
( |
const EventContext & |
ctx | ) |
|
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ 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_cellID
◆ m_cellMakerTool
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_jetInputContainer
◆ m_maxEta
Gaudi::Property<double> TauProcessorAlg::m_maxEta {this, "MaxEta", 2.5, "maximum eta for jet seed"} |
|
private |
◆ m_maxNTracks
Gaudi::Property<int> TauProcessorAlg::m_maxNTracks {this, "MaxNTracks", -1, "maximum number of classifiedCharged tracks"} |
|
private |
◆ m_minPt
Gaudi::Property<double> TauProcessorAlg::m_minPt {this, "MinPt", 10 * Gaudi::Units::GeV, "minimum pT for jet seed"} |
|
private |
◆ m_pixelDetEleCollKey
◆ m_SCTDetEleCollKey
◆ m_tauOutputContainer
◆ m_tauPi0CellOutputContainer
◆ m_tauShotClusLinkContainer
◆ m_tauShotClusOutputContainer
◆ m_tauShotPFOOutputContainer
◆ m_tauTrackOutputContainer
◆ m_tools
const ToolHandleArray<ITauToolBase> TauProcessorAlg::m_tools {this, "Tools", {}, "Tools processing taus"} |
|
private |
◆ m_trtDetEleContKey
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
static StatusCode finalizeClusters(SG::WriteHandle< CaloClusterCellLinkContainer > &h, xAOD::CaloClusterContainer *pClusterColl)
Finalize clusters (move CaloClusterCellLink to a separate container).
size_t nAllTracks() const
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
size_t nTracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
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)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
bool empty() const
Test if the key is blank.
const DV * asDataVector() const
Return a pointer to this object, as a const DataVector.
SG::WriteHandleKey< xAOD::TauJetContainer > m_tauOutputContainer
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
AthReentrantAlgorithm()
Default constructor:
Gaudi::Property< int > m_maxNTracks
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
::StatusCode StatusCode
StatusCode definition for legacy code.
const CaloCell_ID * m_cellID
SG::WriteHandleKey< xAOD::PFOContainer > m_tauShotPFOOutputContainer
Class describing a tau jet.
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_trtDetEleContKey
SG::WriteHandleKey< xAOD::TauTrackContainer > m_tauTrackOutputContainer
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
TauJet_v3 TauJet
Definition of the current "tau version".
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_tauShotClusLinkContainer
const T * back() const
Access the last element in the collection as an rvalue.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
void setJet(const xAOD::JetContainer *cont, const xAOD::Jet *jet)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
SG::ReadHandleKey< xAOD::JetContainer > m_jetInputContainer
virtual StatusCode sysInitialize() override
Override sysInitialize.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
Container class for CaloCell.
const ToolHandleArray< ITauToolBase > m_tools
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const ToolHandle< ICaloConstCellMakerTool > m_cellMakerTool
SG::WriteHandleKey< CaloConstCellContainer > m_tauPi0CellOutputContainer
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_tauShotClusOutputContainer
Gaudi::Property< double > m_minPt
CaloCellContainer that can accept const cell pointers.
#define ATH_MSG_WARNING(x)
void pop_back()
Remove the last element from the collection.
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...
iterator erase(iterator position)
Remove element at a given position.
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>
Gaudi::Property< double > m_maxEta
size_type calo_cell_hash_max(void) const
cell 'global' hash table max size