ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_AnalysisAlgBase Class Referenceabstract

#include <HGTD_AnalysisAlgBase.h>

Inheritance diagram for HGTD_AnalysisAlgBase:
Collaboration diagram for HGTD_AnalysisAlgBase:

Public Member Functions

 HGTD_AnalysisAlgBase (const std::string &name, ISvcLocator *svc_locator)
virtual ~HGTD_AnalysisAlgBase ()
virtual StatusCode initialize ()
template<typename T = TH1F, typename... Ts>
void bookSubdir (const std::string &trk_sel_name, const std::string &time_wp, const std::string &hist_name, const std::string &title, Ts... args)
 Templated function for booking histograms The type of the histogram is passed as a template parameter The function call takes a path (with terminating "/") as well as the name and title of the histogram Any additional parameters are passed as additonal parameters to the constructor i.e.
template<typename T, typename... Ts>
void book (const std::string &name, const std::string &title, Ts... args)
template<typename... Ts>
void bookEffSubdir (const std::string &trk_sel_name, const std::string &time_wp, const std::string &hist_name, const std::string &title, Ts... args)
template<typename... Ts>
void bookEff (const std::string &name, const std::string &title, Ts... args)
template<typename T, typename... Ts>
void fill (const std::string &name, Ts... args)
 Templated function for filling histograms The type of the histogram is passed as a template parameter The function takes the name (including the path) as well as any arguments to be passed to the histogram Fill method.
template<typename T, typename... Ts>
void fillSubdir (const std::string &trk_sel_name, const std::string &time_wp, const std::string &hist_name, Ts... args)
template<typename... Ts>
void fillEff (const std::string &name, Ts... args)
template<typename... Ts>
void fillEffSubDir (const std::string &trk_sel_name, const std::string &wp_name, const std::string &hist_name, Ts... args)
virtual StatusCode execute (const EventContext &ctx)=0
 Execute method.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Public Attributes

Gaudi::Property< std::string > m_directory_name

Protected Member Functions

virtual bool isReEntrant () const override final
 Legacy algorithms are not thread-safe.
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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.

Protected Attributes

ServiceHandle< ITHistSvc > m_hist_svc {this, "THistSvc", "THistSvc"}

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

virtual StatusCode execute (const EventContext &ctx) const override final
 Hide the const execute method from the base class.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

std::map< std::string, TObject * > m_histos
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 32 of file HGTD_AnalysisAlgBase.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ HGTD_AnalysisAlgBase()

HGTD_AnalysisAlgBase::HGTD_AnalysisAlgBase ( const std::string & name,
ISvcLocator * svc_locator )

Definition at line 11 of file HGTD_AnalysisAlgBase.cxx.

13 : AthAlgorithm(name, svc_locator) {}
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.

◆ ~HGTD_AnalysisAlgBase()

HGTD_AnalysisAlgBase::~HGTD_AnalysisAlgBase ( )
virtual

Definition at line 15 of file HGTD_AnalysisAlgBase.cxx.

15{}

Member Function Documentation

◆ book()

template<typename T, typename... Ts>
void HGTD_AnalysisAlgBase::book ( const std::string & name,
const std::string & title,
Ts... args )
inline

Definition at line 74 of file HGTD_AnalysisAlgBase.h.

74 {
75 // check if hist exists already and warn for duplication
76 // doesn't do anything then...
77 if (m_histos.find(name) != m_histos.end()) {
78 ATH_MSG_WARNING("You are duplicating histogram: "
79 << name << ", this is not a good idea\n");
80 return;
81 }
82 m_histos[name] = new T(name.c_str(), title.c_str(), args...);
83 dynamic_cast<T*>(m_histos[name])->Sumw2();
84 if (not m_hist_svc
85 ->regHist(m_directory_name + name,
86 dynamic_cast<T*>(m_histos[name]))
87 .isSuccess()) {
88 ATH_MSG_WARNING("Failed to book " << name);
89 }
90 }
#define ATH_MSG_WARNING(x,...)
Gaudi::Property< std::string > m_directory_name
std::map< std::string, TObject * > m_histos
ServiceHandle< ITHistSvc > m_hist_svc
unsigned long long T

◆ bookEff()

template<typename... Ts>
void HGTD_AnalysisAlgBase::bookEff ( const std::string & name,
const std::string & title,
Ts... args )
inline

Definition at line 114 of file HGTD_AnalysisAlgBase.h.

114 {
115 // check if hist exists already and warn for duplication
116 // doesn't do anything then...
117 if (m_histos.find(name) != m_histos.end()) {
118 ATH_MSG_WARNING("You are duplicating histogram: "
119 << name << ", this is not a good idea\n");
120 return;
121 }
122 m_histos[name] = new TEfficiency(name.c_str(), title.c_str(), args...);
123 if (not m_hist_svc
124 ->regGraph(m_directory_name + name,
125 reinterpret_cast<TGraph*>(m_histos[name]))
126 .isSuccess()) {
127 ATH_MSG_WARNING("Failed to book " << name);
128 }
129 }

◆ bookEffSubdir()

template<typename... Ts>
void HGTD_AnalysisAlgBase::bookEffSubdir ( const std::string & trk_sel_name,
const std::string & time_wp,
const std::string & hist_name,
const std::string & title,
Ts... args )
inline

Definition at line 93 of file HGTD_AnalysisAlgBase.h.

95 {
96 // check if hist exists already and warn for duplication
97 // doesn't do anything then...
98 std::string name = trk_sel_name + "/" + time_wp + "/" + hist_name;
99 if (m_histos.find(name) != m_histos.end()) {
100 ATH_MSG_WARNING("You are duplicating histogram: "
101 << name << ", this is not a good idea\n");
102 return;
103 }
104 m_histos[name] = new TEfficiency(hist_name.c_str(), title.c_str(), args...);
105 if (not m_hist_svc
106 ->regGraph(m_directory_name + name,
107 reinterpret_cast<TGraph*>(m_histos[name]))
108 .isSuccess()) {
109 ATH_MSG_WARNING("Failed to book " << name);
110 }
111 }

◆ bookSubdir()

template<typename T = TH1F, typename... Ts>
void HGTD_AnalysisAlgBase::bookSubdir ( const std::string & trk_sel_name,
const std::string & time_wp,
const std::string & hist_name,
const std::string & title,
Ts... args )
inline

Templated function for booking histograms The type of the histogram is passed as a template parameter The function call takes a path (with terminating "/") as well as the name and title of the histogram Any additional parameters are passed as additonal parameters to the constructor i.e.

the binning

Definition at line 52 of file HGTD_AnalysisAlgBase.h.

54 {
55 // check if hist exists already and warn for duplication
56 // doesn't do anything then...
57 std::string name = trk_sel_name + "/" + time_wp + "/" + hist_name;
58 if (m_histos.find(name) != m_histos.end()) {
59 ATH_MSG_WARNING("You are duplicating histogram: "
60 << name << ", this is not a good idea\n");
61 return;
62 }
63 m_histos[name] = new T(hist_name.c_str(), title.c_str(), args...);
64 dynamic_cast<T*>(m_histos[name])->Sumw2();
65 if (not m_hist_svc
66 ->regHist(m_directory_name + name,
67 dynamic_cast<T*>(m_histos[name]))
68 .isSuccess()) {
69 ATH_MSG_WARNING("Failed to book " << name);
70 }
71 }

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute() [1/2]

StatusCode AthAlgorithm::execute ( const EventContext & ctx) const
finaloverrideprivatevirtualinherited

Hide the const execute method from the base class.

Definition at line 19 of file AthAlgorithm.cxx.

20{
21 // "Thread-safe" because scheduler ensures algorithm never gets called concurrently.
22 auto nc_this ATLAS_THREAD_SAFE = const_cast<AthAlgorithm*>( this );
23 return nc_this->execute( ctx );
24}
#define ATLAS_THREAD_SAFE

◆ execute() [2/2]

virtual StatusCode AthAlgorithm::execute ( const EventContext & ctx)
pure virtualinherited

Execute method.

Implemented in ActsTrk::ActsMuonTrackingGeometryTest, ActsTrk::ExtrapolationTestAlg, ActsTrk::MaterialTrackReader, ActsTrk::MaterialTrackWriter, ActsTrk::ReadoutGeoDumpAlg, ActsTrk::WriteTrackingGeometry, ActsWriteTrackingGeometryTransforms, AddFlowByShifting, AddTRTMomConstr, AFP_DigiTop, AFP_PixelHistoFiller, AFPHitAnalysis, ALFA_BeamTransport, ALFA_CLinkAlg, ALFA_DigiAlg, ALFA_GloRec, ALFA_LocRec, ALFA_LocRecCorr, ALFA_Raw2Digit, ALFA_RawDataProvider, ALFA_RawDataProvider_charge, ALFAHitAnalysis, AlgB, AlgT, Analysis::CalibrationDataInterfaceTester, AODReader, AsgExampleAlgorithm, AthAsgExUnittestAlg, Athena::RootAsciiDumperAlg, Athena::RootNtupleOutputStream, AthenaMon, AthenaMonManager, AthenaPoolTestDataReader, AthenaPoolTestDataWriter, AthEx::Hist, AthEx::Ntup, AthExAlgWithFPE, AthExThinning::CreateData, AthExThinning::ReadThinnedData, AthExThinning::WriteThinnedData, AthJetReclusteringAlgo, AthPoolEx::PassNoneFilter, AthPoolEx::ReadCond, AthPrescaler, AtlasCLHEP_RandomGenerators::AtlasCLHEP_RandomGenerators_test, BackgroundWordFiller, BackgroundWordTest, BCM_Digitization, BCM_RDOAnalysis, BJT::BoostedJetTaggerAlg, BoostEvent, BTagToolTester, BTagVertexAugmenter, BunchCrossingAverageCondTest, BunchCrossingCondTest, BunchCrossingIntensityCondTest, CalibHitIDCheck, CalibHitToCaloCell, CalibHitValidate, CalibrationNtupleMakerTool, CaloAddCellPedShift, CaloCellCalcEnergyCorr, CaloCellDumper, CaloCellEnergyCorr2Ntuple, CaloCellFilterAlg, CaloCellNoiseAlg, CaloCellPosition2Ntuple, CaloClusterNavTest, CaloFillCellPositionShift, CaloHitAnalysis, CaloNoise2Ntuple, CaloReadLCClassificationFile, CaloReadLCJetEnergyScaleFile, CaloReadLCOutOfClusterFile, CaloReadLCWeightsFile, CaloRescaleNoise, CaloTowerStoreTestAlg, CBNT_TBRecBase, CheckCloningFactor, CheckFlow, CheckFlow_New, CheckFlow_New_Minbias, CheckLArFebHeader, ClusterCreator, ClusterDumper, ComTimeRec, CopyEventWeight, CountHepMC, CP::AsgClassificationDecorationAlg, CP::AsgEnergyDecoratorAlg, CP::AsgEventScaleFactorAlg, CP::AsgLeptonTrackDecorationAlg, CP::AsgObjectScaleFactorAlg, CP::AsgPriorityDecorationAlg, CP::AsgSelectionAlg, CP::AsgShallowCopyAlg, CP::AsgUnionPreselectionAlg, CP::AsgUnionSelectionAlg, CP::AsgViewFromSelectionAlg, CP::AsgxAODNTupleMakerAlg, CP::BJetCalibrationAlg, CP::BootstrapGeneratorAlg, CP::BTaggingEfficiencyAlg, CP::BTaggingInformationDecoratorAlg, CP::BTaggingTriggerEfficiencyAlg, CP::BTaggingTriggerMatchingAlg, CP::CalibratedEgammaProvider, CP::CalibratedMuonsProvider, CP::CalibratedTracksProvider, CP::ChargeSelectorAlg, CP::CopyNominalSelectionAlg, CP::DileptonInvariantMassSelectorAlg, CP::DileptonInvariantMassWindowSelectorAlg, CP::DileptonOSSFInvariantMassWindowSelectorAlg, CP::DiTauEfficiencyCorrectionsAlg, CP::DiTauMassCalculatorAlg, CP::DiTauSmearingAlg, CP::DiTauTruthMatchingAlg, CP::EgammaCalibrationAndSmearingAlg, CP::EgammaFSRForMuonsCollectorAlg, CP::EgammaIsolationCorrectionAlg, CP::EgammaIsolationSelectionAlg, CP::ElectronEfficiencyCorrectionAlg, CP::ElectronSiHitDecAlg, CP::EventCutFlowHistAlg, CP::EventFlagSelectionAlg, CP::EventScalarSelectorAlg, CP::EventSelectionByObjectFlagAlg, CP::EventStatusSelectionAlg, CP::FakeBkgCalculatorAlg, CP::InDetTrackBiasingAlg, CP::InDetTrackExtraVarDecoratorAlg, CP::InDetTrackSelectionAlg, CP::InDetTrackSmearingAlg, CP::JetCalibAlg, CP::JetCalibrationAlg, CP::JetDecoratorAlg, CP::JetFFSmearingAlg, CP::JetGhostMuonAssociationAlg, CP::JetModifierAlg, CP::JetNGhostSelectorAlg, CP::JetReclusteringAlg, CP::JetSelectionAlg, CP::JetTileCorrectionAlg, CP::JetTriggerDecoratorAlg, CP::JetUncertaintiesAlg, CP::JvtEfficiencyAlg, CP::JvtUpdateAlg, CP::KinematicHistAlg, CP::L1jFexJetThresholdsDecoratorAlg, CP::LeptonSFCalculatorAlg, CP::MCTCDecorationAlg, CP::MetadataHistAlg, CP::MetBuilderAlg, CP::MetMakerAlg, CP::MetSignificanceAlg, CP::MissingETPlusTransverseMassSelectorAlg, CP::MissingETSelectorAlg, CP::MuonCalibrationAndSmearingAlg, CP::MuonCloseJetDecorationAlg, CP::MuonEfficiencyScaleFactorAlg, CP::MuonIsolationAlg, CP::MuonQualityUpdaterAlg, CP::MuonScaleFactorTestAlg, CP::MuonSelectionAlg, CP::MuonSelectionAlgV2, CP::MuonTriggerEfficiencyScaleFactorAlg, CP::NJetDecoratorAlg, CP::NLargeRJetMassWindowSelectorAlg, CP::NObjectMassSelectorAlg, CP::NObjectPtSelectorAlg, CP::ObjectCutFlowHistAlg, CP::ObjectKinematicSelectorAlg, CP::OverlapRemovalAlg, CP::PhotonEfficiencyCorrectionAlg, CP::PhotonExtraVariablesAlg, CP::PhotonShowerShapeFudgeAlg, CP::PhotonVertexSelectionAlg, CP::PileupReweightingAlg, CP::PileupReweightingProvider, CP::PMGTruthWeightAlg, CP::RNtupleTreeMakerAlg, CP::RunNumberSelectorAlg, CP::RunPartonHistoryAlg, CP::SaveFilterAlg, CP::SecVertexTruthMatchAlg, CP::SSVWeightsAlg, CP::SumNLeptonPtSelectorAlg, CP::SysListDumperAlg, CP::SysTruthWeightAlg, CP::TauCombineMuonRMTausAlg, CP::TauEfficiencyCorrectionsAlg, CP::TauSmearingAlg, CP::TauTruthMatchingAlg, CP::TestIsolationAthenaAlg, CP::TestIsolationCloseByCorrAlg, CP::TestMCASTTool, CP::TransverseMassSelectorAlg, CP::TreeFillerAlg, CP::TreeMakerAlg, CP::TrigEventSelectionAlg, CP::TrigGlobalEfficiencyAlg, CP::TrigMatchingAlg, CP::TrigPrescalesAlg, CP::VGammaORAlg, CP::xAODWriterAlg, CP::XbbEfficiencyAlg, CP::XbbInformationDecoratorAlg, CreateLumiBlockCollectionFromFile, CSC_RDOAnalysis, CSCConditionsTestAlgMT, CscDigitBuilder, CscDigitToCscRDO, CSCHitAnalysis, CscThresholdClusterBuilder, CTTDecorCheckInTool, D3PD::DummyInitAlg, D3PD::egammaDeltaEmax2Alg, D3PD::egammaMaxECellAlg, D3PD::egammaNbCellsGainAlg, D3PD::egammaSumCellsGainAlg, D3PD::MakerAlg, D3PD::PhotonTruthAlg, D3PD::TruthMuonsToSG, D3PDTest::FillerAlg, D3PDTest::HitsFillerAlg, DerivationFramework::CompactHardTruth, DerivationFramework::DerivationKernel, DerivationFramework::GoodRunsListFilterAlgorithm, DerivationFramework::METRemappingAlg, DigitizationAlg, DMTest::CondWriterAlg, DMTest::CondWriterExtAlg, DMTest::DMTestRead, DMTest::HLTResultReader, DMTest::HLTResultWriter, DMTest::MetaWriterAlg, DMTest::xAODTestClearDecor, DMTest::xAODTestTypelessRead, DumpAllSystematics, DumpCaloBadChannels, DumpEventDataToJsonAlg, DumpGeo, DumpLArDigits, DumpLArRawChannels, DumpMC, EFTrackingSmearingAlg, EFTrackingSmearMonAlg, EgammaMonitoring, EL::AnaAlgorithm, EventCleaningTestAlg, EventInfoClearAlg, EventInfoRDOAnalysis, EventInfoWriter, EventInfoWriterAlg, EventReaderAlg, EventReaderBaseAlg, EventReco::KLFitterFinalizeOutputAlg, EventReco::RunKLFitterAlg, EvtInclusiveDecay, ExtractCaloGeoConstants, FakeLArOFCs, FakeLArTimeOffset, FastCaloSimParamAlg, FCAL_HV_Energy_Rescale, FillFilterValues, FindDuplicatedLArDigits, FixHepMC, FixLArElecCalib, FixLArElecSCCalib, FixLArIdMap, FortranAlgorithm, FPGATrackSimConstGenAlgo, FPGATrackSimDumpDetStatusAlgo, FPGATrackSimDumpOutputStatAlg, FPGATrackSimLayerStudyAlg, FPGATrackSimLogicalHitsProcessAlg, FPGATrackSimMapMakerAlg, FPGATrackSimMatrixGenAlgo, FPGATrackSimMatrixMergeAlgo, FPGATrackSimMergeOutputsAlg, FPGATrackSimRawHitsWrapperAlg, FPGATrackSimSecondStageAlg, FSR::ToolTester, ftag::MetadataAlg, FTAGValidation::PhysicsTriggerVariablePlots, FTAGValidation::PhysicsVariablePlots, G4AtlasAlg, G4RunAlg, G4TestAlg, GenBase, GenFilter, GenModule, GenWeightDeclaration, GetDetectorLocalFrames, GetDetectorPositions, GetLCClassification, GetLCDeadMaterial, GetLCDeadMaterialTree, GetLCOutOfCluster, GetLCSinglePionsPerf, GetLCWeights, GlobalSim::eEmMultTestBench, GlobalSim::PU1SuppTestBenchAlg, GlobalSim::TOBTextWriter, HelloAlg, HepMCReadFromFile, HGTD_Digitization, HGTD_MisalignAlg, HGTD_RDOAnalysis, HGTD_TrkTimePerformanceStudies, HIClusterGeo_HistoFiller, HitMapBuilder, HLTTest::TestRecoAlg, IdDictCnvTest, IDPerfMonEoverP, IDPerfMonZmumu, IDPerfMuonRefitter, InDet::DumpObjects, InDet::InDetBeamSpotFinder, InDet::InDetCosmicsEventPhase, InDet::InDetEventSplitter, InDet::InDetSecVtxFinder, InDet::InDetTrackBiasingToolTester, InDet::InDetTrackSmearingToolTester, InDet::InDetV0Finder, InDet::InDetVertexSplitter, InDet::InDetVertexSplitterHist, InDet::SCT_ClusterValidationNtupleWriter, InDet::SegmentDriftCircleAssValidation, InDet::TRT_SegmentsToTrack, InDet::TRT_StrawStatus, InDetAlignCog, InDetAlignment::CreateMisalignAlg, InDetAlignWrt, InDetGNNHardScatterSelection::VertexDecoratorAlg, InDetRawDataFakeReader, InDetRawDataFakeWriter, InDetVertexTruthMatchAlgorithm, IParticleWriterAlg, ISF::SimHitTreeCreator, ISF::SimKernel, ISF::SimKernelMT, ISF_HitAnalysis, IsolationTool_AthTest, ITk::PixelRDOAnalysis, ITk::StripDigitization, ITk::StripRDOAnalysis, JetHitAssociation, JetHypoExerciserAlg, JetHypoExerciserCompareAlg, JiveXML::AlgoJiveXML, JpsiAlg, JpsiExample, L0Muon::TgcL0RootOutputAlg, L1CaloCondAlgReader, L1CaloDumpRampData, L1CaloHVCorrectionsForDB, L1CaloHVDummyContainers, L1CaloLinearCalibration, L1CaloPedestalGenerator, L1CaloRampMaker, L1CaloTriggerTowerSelector, LArAccumulatedCalibDigitContSplitter, LArAccumulatedDigits2Ntuple, LArAlignDbAlg, LArAutoCorrAlgToDB, LArAutoCorrExtrapolate, LArAutoCorrMaker, LArAverages2Ntuple, LArBadChannel2Ascii, LArBadChannelDBAlg, LArBadChannelHunter, LArBadEventCatcher, LArBadFeb2Ascii, LArCablingChecker, LArCablingTest, LArCalibCopyAlg< CONDITIONSCONTAINER >, LArCalibCopyAlg< LArDAC2uAMC >, LArCalibCopyAlg< LArPhysWaveContainer >, LArCalibCopyAlg< LArTdriftComplete >, LArCalibDigitMaker, LArCalibDigitsAccumulator, LArCalibDigitsAccumulatorFreeGain, LArCalibPatchingAlg< CONDITIONSCONTAINER >, LArCalibPatchingAlg< LArAutoCorrComplete >, LArCalibPatchingAlg< LArCaliWaveContainer >, LArCalibPatchingAlg< LArMphysOverMcalComplete >, LArCalibPatchingAlg< LArRampComplete >, LArCalibShortCorrector, LArCalibValidationAlg< CONDITIONSCONTAINER, REFCONTAINER >, LArCalibValidationAlg< LArAutoCorrComplete, LArAutoCorrComplete >, LArCalibValidationAlg< LArCaliWaveContainer, LArCaliWaveContainer >, LArCalibValidationAlg< LArPedestalComplete, ILArPedestal >, LArCalibValidationAlg< LArRampComplete, ILArRamp >, LArCaliWaveBuilder, LArCaliWaveBuilderXtalk, LArCaliWaveFromTuple, LArCaliWaveSelector, LArCellContFakeReader, LArCellContFakeWriter, LArCond2NtupleBase, LArCond2NtupleBaseEB, LArCondDataTest, LArConditionsMergerAlg< T, T1 >, LArConditionsMergerAlg< LArAutoCorrComplete >, LArConditionsMergerAlg< LArDAC2uAComplete, LArCaliPulseParamsComplete >, LArConditionsMergerAlg< LArDAC2uAComplete, LArCaliWaveContainer >, LArConditionsMergerAlg< LArDAC2uAComplete, LArDetCellParamsComplete >, LArConditionsMergerAlg< LArDAC2uAComplete, LArPhysWaveContainer >, LArConditionsMergerAlg< LArMphysOverMcalComplete >, LArConditionsMergerAlg< LArOFCComplete >, LArConditionsMergerAlg< LArPedestalComplete >, LArConditionsMergerAlg< LArRampComplete >, LArConditionsMergerAlg< LArShapeComplete >, LArConditionsTestAlg, LArDeltaRespPredictor, LArDigits2Ntuple, LArDigits2NtupleEB, LArDigitsAccumulator, LArDumpShapes, LArDuplicateConstants, LarEMSamplingFraction, LArFCalSamplingFraction, LArFCalTowerBuilderToolTestAlg, LArFebRodMapConvert, LArFebTimeOffset2Ntuple, LArFlatFromFile, LArG4::CalibrationHitMerger, LArG4GenShowerLib, LArG4ShowerLibSvcTest, LArHECNoise, LArHitEMapMaker, LArHitMerger, LArHV2Ntuple, LArHVCorrMaker, LArHVPathologyDbAlg, LArIdCablingTest, LArIdMapConvert, LArMasterWaveBuilder, LArMinBiasAlg, LArNoiseBursts, LArOFCAlg, LArOFCBinAlg, LArOFCtoOFC, LArOFPhaseFill, LArOFPhasePicker, LArParams2Ntuple, LArPedestalAutoCorrBuilder, LArPedestalMaker, LArPhysCaliTDiffAlg, LArPhysWavePredictor, LArPhysWaveShifter, LArPulseShape, LArR4ElecCalibCalculator, LArRampAdHocPatchingAlg, LArRampBuilder, LArRampCorr, LArRampFCalCorr, LArRDOAnalysis, LArReadCells, LArReadHadDMCoeffFile2, LArReadHadDMCoeffFile, LArReadSC, LArRTMParamExtractor, LArSC2Ntuple, LArSC2NtupleEB, LArShapeCompleteMaker, LArShapeCompleteMakerAlg, LArShapeCorrector, LArShapeDumper, LArShapeToSCShape, LArSimpleShapeDumper, LArStripsCrossTalkCorrector, LArTimePhysPrediction, LArTTL1Calib, LArTTL1Maker, LArWFParams2Ntuple, LUCID_DigiTop, LucidHitAnalysis, LVL1::CPCMX, LVL1::eFEXDriver, LVL1::eFexTOBDecorator, LVL1::JEMEnergySim, LVL1::JEMJetSim, LVL1::jFEXDriver, LVL1::L1CaloTriggerTowerDecoratorAlg, LVL1::L1TopoSimulation, LVL1::Run2CPMTowerMaker, LVL1::Run2JetElementMaker, LVL1::Run2TriggerTowerMaker, LVL1::TrigT1MBTS, LVL1TGCTrigger::LVL1TGCTrigger, MagField::SolenoidTest, McAodFilter, McAodTupleWriter, McAodValidationAlg, MdtAsBuiltJsonDumpAlg, MdtCablingJsonDumpAlg, MdtCablingTestAlg, MdtConditionsTestAlg, MdtCondJsonDumpAlg, MDTHitAnalysis, MdtToyCablingJsonDumpAlg, MdtToyTwinCablingDumpAlg, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, met::METAssocTestAlg, MMCablingTestAlg, MMHitAnalysis, MonitoredAlg, MSVtxValidationAlg, MuCTPI_RDOToRoIBResult, Muon::MdtCalibJsonDumpAlg, Muon::RpcCablingTestAlg, Muon::RpcToyCablingJsonDumpAlg, MuonABLineJsonDumpAlg, MuonAlign::AlignmentErrorTestAlg, MuonCalib::CoolInserter, MuonCalib::CscCalcPed, MuonCalib::CscCalcSlope, MuonCalib::MuonSegmentReader, MuonChamberIDSelector, MuonDigitizer, MuonGM::GeoModelCscTest, MuonGM::GeoModelMdtTest, MuonGM::GeoModelMmTest, MuonGM::GeoModelRpcTest, MuonGM::GeoModelsTgcTest, MuonGM::GeoModelTgcTest, MuonGM::NSWGeoPlottingAlg, MuonGMR4::GeoModelMdtTest, MuonGMR4::GeoModelMmTest, MuonGMR4::GeoModelRpcTest, MuonGMR4::GeoModelsTgcTest, MuonGMR4::GeoModelTgcTest, MuonGMR4::NswGeoPlottingAlg, MuonHoughDataNtuple, MuonPatternCombinationDetailedTrackTruthMaker, MuonPrdSelectorAlg, MuonR4::BucketDumperAlg, MuonR4::CaloCellsDumperAlg, MuonR4::MlHitDumperAlg, MuonR4::SegmentDumperAlg, MuonR4::SPIdDumperAlg, MuonR4::TruthMuonVertexDumperAlg, MuonVal::HitValAlg, MuonVal::MdtRDOAnalysis, MuonVal::MetaDataAlg, MuonVal::MuonSDOAnalysis, MuonVal::MuonTester::TreeTestAlg, MuonVal::MuonTesterAlg, MuonVal::RpcRDOAnalysis, MuonVal::TgcRDOAnalysis, MuonValR4::MdtCalibDbAlgTest, MuonValR4::MsTrackTester, MuonValR4::MuonFastRecoTester, MuonValR4::MuonHitTesterAlg, MuonValR4::MuonHoughTransformTester, MuonValR4::MuonRecoChainTester, MuonValR4::MuonSPCalibrationTest, MuonValR4::SegmentRefitTest, MuonValR4::SpacePointWriter, MuonValR4::TruthSegmentWriter, MuonValR4::xMuonHitAnalysis, NswOccupancyAlg, OccupancyMapMaker, ORToolBoxTestAlg, OutputConditionsAlg, OverlapRemovalTestAlg, PerfMonTest::CpuCruncherAlg, PerfMonTest::ErroneousAlg, PerfMonTest::LeakyAlg, PerfMonTest::MallocAlg, PerfMonTest::ManyLeaksAlg, PerfMonTest::PolyVectorAlg, PerfMonTest::PolyVectorAlgWithArenas, PerfMonTest::VectorAlg, Photospp_i, PileUpMTAlg, PileUpToolsAlg, PileupTruthParticleSlimmer, PixelChargeToTConversion, PixelClusterAnalysis, PixelDigitization, PixelFastDigitization, PixelFastRDOAnalysis, PixelPrepDataToxAOD, PixelRDOAnalysis, PixelSiliconConditionsTestAlg, PrintHijingPars, PrintMC, PrintSiElements, Prompt::DecoratePromptLeptonImproved, Prompt::DecoratePromptLeptonRNN, Prompt::NonPromptLeptonVertexingAlg, Prompt::PrimaryVertexReFitter, PyAthena::Alg, RatesAnalysisAlg, RDOReaderDoubleSelector, ReadData, ReadLArDigits, ReadLArRaw, ReadSiDetectorElements, ReadTBLArCalibDigits, ReadTBLArDigits, ReadTRT_DetectorElements, Rec::MuSAVtxJPsiValidationAlg, RefitTracksAndVertex, Ringer::CaloRingerAlgorithm, Ringer::xAODRingSetConfWriter, Rivet_i, RPCHitAnalysis, SCT_ClusterAnalysis, SCT_Digitization, SCT_FastDigitization, SCT_FastRDOAnalysis, SCT_RDOAnalysis, SCT_ReadoutTestAlg, SCTCalib, SelectorBase< Derived >, SGInputLoader, SgStressConsumer, SgStressProducer, SharedHitMapper, SiDistWriteAlg, SiHitAnalysis, SimTimeEstimate, SingleTrackValidation, SiSmearedDigitization, SourceCompAlg, SpacePointAnalysis, sTGCHitAnalysis, SuperCellVsCaloCellTestAlg, SurveyConstraintTestAlg, TauAnalysisTools::TauAnalysisToolsExampleAthena, TauolaPP, TBBeamQuality, TBBeamQualityMC, TBBPCRec, TBCheckBCIDs, TBDetDescrLoader, TBDMContainerSplitter, TBECLArRawChannelBuilder, TBEventStreamer, TBLArRawChannelBuilder, TBMWPCRec, TBNoiseWrite, TBPartIDCherenkovMuTag, TBPhaseRec, TBPlaneTrackingAlgo, TBScintillatorRec, TBTailCatcherRec, TBTrackInfoFromTag, TBTrackToCaloAlg, TBTree_CaloClusterH6, TBXCryYTableRead, TBXMLWriter, TestAthenaConstraintFit, testAthenaEgammaCalibTool, testAthenaPhotonAlg, TestHepMC, TestMatchingToolAlg, TestRandomSeqAlg, TestSiAlignment, TestTRT_Alignment, TgcCondDbTestAlg, TgcDigtJitterTestAlg, TgcDigtThresholdTestAlg, TGCHitAnalysis, TileAANtuple, TileBeamElemToCell, TileCellIDCToCell, TileCellIDCToNtuple, TileCellSelector, TileCellToNtuple, TileCellToTTL1, TileCellVerify, TileClusterFilterAlg, TileCosmicMuonFilterAlg, TileCosmicsTrigger, TileDigiNoiseCalibAlg, TileDigitsFromPulse, TileDigitsThresholdFilter, TileDigitsToNtuple, TileDigitsToTTL1, TileEopFilterAlg, TileExpertDump, TileFCSmStepToTileHitVec, TileHitToCell, TileHitToNtuple, TileHitToRawChannel, TileHitVecToCnt, TileHitVecToNtuple, TileInfoDump, TileLaserCalibAlg, TileMuId2DBAlg, TileMuonFilterAlg, TileMuonFitter, TileMuonReceiverDecisionToNtuple, TileMuonReceiverReadCnt, TileMuRODToNtuple, TileMuToNtuple, TileOFC2DBAlg, TilePulseForTileMuonReceiver, TileRawChannelMaker, TileRawChannelToHit, TileRawChannelToNtuple, TileRawChannelToTTL1, TileRawChannelVerify, TileRawChNoiseCalibAlg, TileRawCorrelatedNoise, TileRDOAnalysis, TileTBAANtuple, TileTBDump, TileTBHitToBeamElem, TileTBHitToNtuple, TileTBStat, TileTopCalibAlg, TileTrackFilterAlg, TileTTL1ToNtuple, TrackCaloClusterAlg, TrackCaloClusterInfoAlg, TrackRecordAnalysis, TrackTruthSelector, TrackTruthSimilaritySelector, TrackVertexAssoTestAlg, Trig::TrigBtagValidationTest, Trig::TrigMuonMatching_example, TrigBSExtraction, TrigConf::xAODMenuReader, TrigCostAnalysis, TrigDecisionChecker, TrigEDMAuxChecker, TrigEDMChecker, TrigFPGATrackSimRawHitsWrapperAlg, Trk::AdaptiveMultiVertexFitterTestAlg, Trk::AlignAlg, Trk::AlignTrackCollSplitter, Trk::CETmaterial, Trk::CombinedExtrapolatorTest, Trk::EnergyLossExtrapolationValidation, Trk::EventDataModelMonitor, Trk::ExtrapolationValidation, Trk::ExtrapolatorTest, Trk::GaussianDensityTestAlg, Trk::MaterialManipulation, Trk::MaterialMapping, Trk::MaterialOnTrackValidation, Trk::MaterialValidation, Trk::RecMomentumQualityValidation, Trk::ReFitTrack, Trk::ReFitTrackWithTruth, Trk::RiddersAlgorithm, Trk::SelectEventNumber, Trk::SingleTrackDiffAlg, Trk::TrackValidationNtupleWriter, Trk::TrkDetDescrUnitTestBase, Trk::TrkExUnitTestBase, Trk::VertexSeedFinderTestAlg, TrkEDMTestAlg, TrkTrackFakeReader, TrkTrackFakeWriter, TRT_FastRDOAnalysis, TRT_PrepDataToxAOD, TRT_RDOAnalysis, TRTCalibrationMgr, TRTCondRead, TRTCondStoreText, TRTDigitization, TRTFastDigitization, TRTHitAnalysis, TRTOccupancyInclude, TRTStrawEfficiency, TRTStrawStatusRead, TRTStrawStatusWrite, TruthHitAnalysis, TruthParticleBuilder, VKalVrtAthena::VrtSecInclusive, VP1Alg, VP1BatchOnLatestEvent, VP1EventProd, VP1TrkInitializer, WriteData, WriteHepMC, xAODMaker::AuxStoreWrapper, xAODMaker::DynVarFixerAlg, xAODMaker::ElementLinkResetAlg, xAODMaker::VertexCnvAlg, xAODReader::EventDuplicateFinderAlg, xAODReader::EventInfoReaderAlg, xAODTruthParticleSlimmerElectron, xAODTruthParticleSlimmerGen, xAODTruthParticleSlimmerMET, xAODTruthParticleSlimmerMuon, xAODTruthParticleSlimmerPhoton, xAODTruthParticleSlimmerTau, ZDC_DigiTop, ZdcByteStreamLucrodData, ZdcByteStreamRawData, ZdcByteStreamTester, ZDCHitAnalysis, ZdcMCTruthAlg, ZdcRec, ZdcRecRun3, ZdcRecRun3Decode, ZdcRecV2, ZdcRecV3, and ZdcRecV3Decode.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
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

◆ extraOutputDeps()

const DataObjIDColl & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ fill()

template<typename T, typename... Ts>
void HGTD_AnalysisAlgBase::fill ( const std::string & name,
Ts... args )
inline

Templated function for filling histograms The type of the histogram is passed as a template parameter The function takes the name (including the path) as well as any arguments to be passed to the histogram Fill method.

Definition at line 136 of file HGTD_AnalysisAlgBase.h.

136 {
137 if (m_histos[name] == nullptr or m_histos.find(name) == m_histos.end()) {
139 "[HistogramHandler::fill] ERROR: you are attempting to fill "
140 "a histogram with name "
141 << name << " which doesn't exist!\n");
142 return;
143 }
144 dynamic_cast<T*>(m_histos[name])->Fill(args...);
145 }

◆ fillEff()

template<typename... Ts>
void HGTD_AnalysisAlgBase::fillEff ( const std::string & name,
Ts... args )
inline

Definition at line 161 of file HGTD_AnalysisAlgBase.h.

161 {
162 if (m_histos[name] == nullptr or m_histos.find(name) == m_histos.end()) {
164 "[HistogramHandler::fill] ERROR: you are attempting to fill "
165 "a histogram with name "
166 << name << " which doesn't exist!\n");
167 return;
168 }
169 dynamic_cast<TEfficiency*>(m_histos[name])->Fill(args...);
170 }

◆ fillEffSubDir()

template<typename... Ts>
void HGTD_AnalysisAlgBase::fillEffSubDir ( const std::string & trk_sel_name,
const std::string & wp_name,
const std::string & hist_name,
Ts... args )
inline

Definition at line 173 of file HGTD_AnalysisAlgBase.h.

175 {
176 std::string name = trk_sel_name + "/" + wp_name + "/" + hist_name;
177 if (m_histos[name] == nullptr or m_histos.find(name) == m_histos.end()) {
179 "[HistogramHandler::fill] ERROR: you are attempting to fill "
180 "a histogram with name "
181 << name << " which doesn't exist!\n");
182 return;
183 }
184 dynamic_cast<TEfficiency*>(m_histos[name])->Fill(args...);
185 }

◆ fillSubdir()

template<typename T, typename... Ts>
void HGTD_AnalysisAlgBase::fillSubdir ( const std::string & trk_sel_name,
const std::string & time_wp,
const std::string & hist_name,
Ts... args )
inline

Definition at line 148 of file HGTD_AnalysisAlgBase.h.

149 {
150 std::string name = trk_sel_name + "/" + time_wp + "/" + hist_name;
151 if (m_histos[name] == nullptr or m_histos.find(name) == m_histos.end()) {
153 "[HistogramHandler::fill] ERROR: you are attempting to fill "
154 "a histogram with name "
155 << name << " which doesn't exist!\n");
156 return;
157 }
158 dynamic_cast<T*>(m_histos[name])->Fill(args...);
159 }

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ initialize()

StatusCode HGTD_AnalysisAlgBase::initialize ( )
virtual

Reimplemented in HGTD_TrkTimePerformanceStudies.

Definition at line 17 of file HGTD_AnalysisAlgBase.cxx.

17 {
18 ATH_MSG_INFO("Initializing HGTD_AnalysisAlgBase ...");
19
20 ATH_CHECK(m_hist_svc.retrieve());
21
22 return StatusCode::SUCCESS;
23}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x,...)

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
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.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ isReEntrant()

virtual bool AthAlgorithm::isReEntrant ( ) const
inlinefinaloverrideprotectedvirtualinherited

Legacy algorithms are not thread-safe.

Definition at line 47 of file AthAlgorithm.h.

47{ return false; }

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
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.

◆ renounce()

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 > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
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)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::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.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::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 AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
#define ATH_MSG_ERROR(x,...)
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_directory_name

Gaudi::Property<std::string> HGTD_AnalysisAlgBase::m_directory_name
Initial value:
{
this, "DirectoryName", "/HGTD_ANA/", "The output directory name"}

Definition at line 40 of file HGTD_AnalysisAlgBase.h.

40 {
41 this, "DirectoryName", "/HGTD_ANA/", "The output directory name"};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_hist_svc

ServiceHandle<ITHistSvc> HGTD_AnalysisAlgBase::m_hist_svc {this, "THistSvc", "THistSvc"}
protected

Definition at line 188 of file HGTD_AnalysisAlgBase.h.

188{this, "THistSvc", "THistSvc"};

◆ m_histos

std::map<std::string, TObject*> HGTD_AnalysisAlgBase::m_histos
private

Definition at line 191 of file HGTD_AnalysisAlgBase.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: