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 (std::string_view 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 (std::string_view trk_sel_name, std::string_view time_wp, std::string_view hist_name, Ts... args)
template<typename... Ts>
void fillEff (std::string_view name, Ts... args)
template<typename... Ts>
void fillEffSubDir (std::string_view trk_sel_name, std::string_view wp_name, std::string_view 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< StoreGateSvc > StoreGateSvc_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 *, std::less<> > 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 34 of file HGTD_AnalysisAlgBase.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 376 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.contains(name)) {
78 ATH_MSG_WARNING("You are duplicating histogram: "
79 << name << ", this is not a good idea");
80 return;
81 }
82 auto * ptrT = new T(name.c_str(), title.c_str(), args...);
83 m_histos.emplace(name, ptrT);
84 ptrT->Sumw2();
85 if (not m_hist_svc->regHist(m_directory_name + name,ptrT).isSuccess()) {
86 ATH_MSG_WARNING("Failed to book " << name);
87 }
88 }
#define ATH_MSG_WARNING(x,...)
Gaudi::Property< std::string > m_directory_name
std::map< std::string, TObject *, std::less<> > 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 110 of file HGTD_AnalysisAlgBase.h.

110 {
111 // check if hist exists already and warn for duplication
112 // doesn't do anything then...
113 if (m_histos.contains(name)) {
114 ATH_MSG_WARNING("You are duplicating histogram: "
115 << name << ", this is not a good idea");
116 return;
117 }
118 auto * ptrT = new TEfficiency(name.c_str(), title.c_str(), args...);
119 m_histos.emplace(name,ptrT);
120 if (not m_hist_svc->regEfficiency(m_directory_name + name,ptrT).isSuccess()) {
121 ATH_MSG_WARNING("Failed to book " << name);
122 }
123 }

◆ 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 91 of file HGTD_AnalysisAlgBase.h.

93 {
94 // check if hist exists already and warn for duplication
95 // doesn't do anything then...
96 const std::string name = trk_sel_name + "/" + time_wp + "/" + hist_name;
97 if (m_histos.contains(name)) {
98 ATH_MSG_WARNING("You are duplicating histogram: "
99 << name << ", this is not a good idea");
100 return;
101 }
102 auto * ptrT = new TEfficiency(hist_name.c_str(), title.c_str(), args...);
103 m_histos.emplace(name, ptrT);
104 if (not m_hist_svc->regEfficiency(m_directory_name + name, ptrT).isSuccess()) {
105 ATH_MSG_WARNING("Failed to book " << name);
106 }
107 }

◆ 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 54 of file HGTD_AnalysisAlgBase.h.

56 {
57 // check if hist exists already and warn for duplication
58 // doesn't do anything then...
59 const std::string name = trk_sel_name + "/" + time_wp + "/" + hist_name;
60 if (m_histos.contains(name)) {
61 ATH_MSG_WARNING("You are duplicating histogram: "
62 << name << ", this is not a good idea");
63 return;
64 }
65 auto * ptrT = new T(hist_name.c_str(), title.c_str(), args...);
66 m_histos.emplace(name, ptrT);
67 ptrT->Sumw2();
68 if (not m_hist_svc->regHist(m_directory_name + name, ptrT).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::GeometryEnvelopeTest, ActsTrk::MaterialTrackReader, ActsTrk::MaterialTrackWriter, ActsTrk::ObjTrackVisualizationAlg, 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, 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, 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::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::xAODWriterAlg, CP::XbbEfficiencyAlg, CP::XbbInformationDecoratorAlg, CreateLumiBlockCollectionFromFile, CSC_RDOAnalysis, CSCConditionsTestAlgMT, CscDigitBuilder, CscDigitToCscRDO, CSCHitAnalysis, CscThresholdClusterBuilder, 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::RunHyPERAlg, 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, 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, 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 ( std::string_view 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 130 of file HGTD_AnalysisAlgBase.h.

130 {
131 auto it = m_histos.find(name);
132 if (it == m_histos.end() or it->second == nullptr) {
134 "[HistogramHandler::fill] ERROR: you are attempting to fill "
135 "a histogram with name "
136 << name << " which doesn't exist!");
137 return;
138 }
139 auto * ptrT = dynamic_cast<T*>(it->second);
140 if (!ptrT)[[unlikely]]{
141 ATH_MSG_WARNING("Cast failed for "<< name);
142 return;
143 }
144 ptrT->Fill(args...);
145 }
#define unlikely(x)

◆ fillEff()

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

Definition at line 168 of file HGTD_AnalysisAlgBase.h.

168 {
169 const auto it = m_histos.find(name);
170 if (it == m_histos.end() or it->second == nullptr)[[unlikely]] {
172 "[HistogramHandler::fillEff] ERROR: you are attempting to fill "
173 "a histogram with name "
174 << name << " which doesn't exist!");
175 return;
176 }
177 auto * ptrT = dynamic_cast<TEfficiency*>(it->second);
178 if (!ptrT)[[unlikely]]{
179 ATH_MSG_WARNING("Cast failed for "<< name);
180 return;
181 }
182 ptrT->Fill(args...);
183 }

◆ fillEffSubDir()

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

Definition at line 186 of file HGTD_AnalysisAlgBase.h.

188 {
189 const std::string name = std::format("{}/{}/{}", trk_sel_name, wp_name, hist_name);
190 auto it = m_histos.find(name) ;
191 if (it == m_histos.end() or it->second == nullptr) {
193 "[HistogramHandler::fill] ERROR: you are attempting to fill "
194 "a histogram with name "
195 << name << " which doesn't exist!");
196 return;
197 }
198 auto * ptrT = dynamic_cast<TEfficiency*>(it->second);
199 if (!ptrT)[[unlikely]]{
200 ATH_MSG_WARNING("Cast failed for "<< name);
201 return;
202 }
203 ptrT->Fill(args...);
204 }

◆ fillSubdir()

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

Definition at line 148 of file HGTD_AnalysisAlgBase.h.

149 {
150 const std::string name = std::format("{}/{}/{}", trk_sel_name, time_wp, hist_name);
151 auto it = m_histos.find(name);
152 if (it == m_histos.end() or it->second == nullptr) {
154 "[HistogramHandler::fill] ERROR: you are attempting to fill "
155 "a histogram with name "
156 << name << " which doesn't exist!");
157 return;
158 }
159 auto * ptrT = dynamic_cast<T*>(it->second);
160 if (!ptrT)[[unlikely]]{
161 ATH_MSG_WARNING("Cast failed for "<< name);
162 return;
163 }
164 ptrT->Fill(args...);
165 }

◆ 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 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
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 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

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

Set filter decision:

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, 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 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

Member Data Documentation

◆ m_detStore

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

Pointer to StoreGate (detector store by default).

Definition at line 381 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 42 of file HGTD_AnalysisAlgBase.h.

42 {
43 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 378 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 207 of file HGTD_AnalysisAlgBase.h.

207{this, "THistSvc", "THistSvc"};

◆ m_histos

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

Definition at line 210 of file HGTD_AnalysisAlgBase.h.

◆ m_varHandleArraysDeclared

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

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 386 of file AthCommonDataStore.h.


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