![]() |
ATLAS Offline Software
|
#include <TestMatchingToolAlg.h>
Public Member Functions | |
| TestMatchingToolAlg (const std::string &name, ISvcLocator *pSvcLocator) | |
| virtual | ~TestMatchingToolAlg () |
| virtual StatusCode | initialize () |
| virtual StatusCode | execute () |
| virtual StatusCode | finalize () |
| virtual StatusCode | sysInitialize () override |
| Function initialising the tool in the correct way in Athena. | |
| virtual StatusCode | sysExecute (const EventContext &) override |
| override to do firstEvent method | |
| template<typename T> | |
| StatusCode | retrieveMetadata (const std::string &folder, const std::string &key, T &out) |
| Helper function to access IOVMetaDataContainer information helped in the MetaDataStore. | |
| template<typename T> | |
| StatusCode | retrieveMetadata (const std::string &folder, const std::string &key, T &out, const IOVTime &time, int channel=-1) |
| Helper function to access IOVMetaDataContainer information held in InputMetaDataStore, but will check IOVTime. | |
| const ServiceHandle< ITHistSvc > & | histSvc () const |
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a pointer to the THistSvc. | |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| 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 |
Functions providing access to the input/output metadata | |
| const ServiceHandle< StoreGateSvc > & | inputMetaStore () const |
| Const accessor for the input metadata store. | |
| ServiceHandle< StoreGateSvc > & | inputMetaStore () |
| Accessor for the input metadata store. | |
| const ServiceHandle< StoreGateSvc > & | outputMetaStore () const |
| Const accessor for the output metadata store. | |
| ServiceHandle< StoreGateSvc > & | outputMetaStore () |
| Accessor for the output metadata store. | |
Protected Member Functions | |
| void | updateEvtStore (Gaudi::Details::PropertyBase &prop) |
| virtual void | handle (const Incident &inc) override |
| Function receiving incidents from IncidentSvc/TEvent Experts can override but they should ensure they add AthAnalysisAlgorithm::handle(); to the end of their own implementation. | |
| virtual StatusCode | beginInputFile () |
| Function called when a new input file is opened user can read input metadata from inputMetaStore() | |
| virtual StatusCode | endInputFile () |
| Function called as an input file is being closed. | |
| virtual StatusCode | metaDataStop () |
| Function called before finalize user can read output metadata from outputMetaStore() | |
| virtual StatusCode | firstExecute () |
| Function called when first execute is encountered user can read event information with evtStore() | |
| virtual TFile * | currentFile (const char *evtSelName="EventSelector") final |
| Function returning the TFile pointer of the currently open file of the given EventSelector (in athena jobs this defaults to "EventSelector") | |
| 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. | |
| StatusCode | configAthHistogramming (const ServiceHandle< ITHistSvc > &histSvc, const std::string &prefix, const std::string &rootDir, const std::string &histNamePrefix, const std::string &histNamePostfix, const std::string &histTitlePrefix, const std::string &histTitlePostfix) |
| To be called by the derived classes to fill the internal configuration. | |
| TH1 * | bookGetPointer (const TH1 &hist, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| TH1 * | bookGetPointer (TH1 *hist, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| TH1 * | bookGetPointer (TH1 &histRef, std::string tDir="", std::string stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| TTree * | bookGetPointer (const TTree &treeRef, std::string tDir="", std::string stream="") |
| Simplify the booking and registering (into THistSvc) of TTrees. | |
| TGraph * | bookGetPointer (const TGraph &graphRef, std::string tDir="", std::string stream="") |
| Simplify the booking and registering (into THistSvc) of TGraphs. | |
| TEfficiency * | bookGetPointer (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| TEfficiency * | bookGetPointer (TEfficiency *eff, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| TEfficiency * | bookGetPointer (TEfficiency &effRef, std::string tDir="", std::string stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| StatusCode | book (const TH1 &hist, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| StatusCode | book (TH1 *hist, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| StatusCode | book (TH1 &histRef, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of histograms. | |
| StatusCode | book (const TTree &treeRef, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TTrees. | |
| StatusCode | book (const TGraph &graphRef, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TGraphs. | |
| StatusCode | book (const TEfficiency &eff, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| StatusCode | book (TEfficiency *eff, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| StatusCode | book (TEfficiency &effRef, const std::string &tDir="", const std::string &stream="") |
| Simplify the booking and registering (into THistSvc) of TEfficiency. | |
| TH1 * | hist (const std::string &histName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered histograms of any type. | |
| TH2 * | hist2d (const std::string &histName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered 2-d histograms. | |
| TH3 * | hist3d (const std::string &histName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered 3-d histograms. | |
| TTree * | tree (const std::string &treeName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered TTrees. | |
| TGraph * | graph (const std::string &graphName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered TGraphs. | |
| TEfficiency * | efficiency (const std::string &effName, const std::string &tDir="", const std::string &stream="") |
| Simplify the retrieval of registered TEfficiency. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
| typedef uint32_t | hash_t |
| typedef for the internal hash | |
| typedef std::map< const hash_t, TH1 * > | HistMap_t |
| Typedef for convenience. | |
| typedef std::map< const hash_t, TEfficiency * > | EffMap_t |
| Typedef for convenience. | |
| typedef std::map< const hash_t, TTree * > | TreeMap_t |
| Typedef for convenience. | |
| typedef std::map< const hash_t, TGraph * > | GraphMap_t |
| Typedef for convenience. | |
Private Member Functions | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
| void | buildBookingString (std::string &bookingString, std::string &histName, std::string &tDir, std::string &stream, bool usePrefixPostfix=false) |
| Method to build individual booking string. | |
| void | myReplace (std::string &str, const std::string &oldStr, const std::string &newStr) |
| Helper method to replace sub-string. | |
| hash_t | hash (const std::string &histName) const |
| Method to calculate a 32-bit hash from a string. | |
Private Attributes | |
| ToolHandle< Trig::IMatchingTool > | m_tmt |
| std::map< std::string, int > | m_matches |
| ServiceHandle< StoreGateSvc > | m_inputMetaStore |
| Object accessing the input metadata store. | |
| ServiceHandle< StoreGateSvc > | m_outputMetaStore |
| Object accessing the output metadata store. | |
| TFile * | m_currentFile {nullptr} |
| bool | m_doneFirstEvent {false} |
| ServiceHandle< ITHistSvc > | m_histSvc |
| Default constructor: AthHistogramAlgorithm();. | |
| std::string | m_prefix |
| Name of the ROOT output stream (file) | |
| std::string | m_rootDir |
| Name of the ROOT directory. | |
| std::string | m_histNamePrefix |
| The prefix for the histogram THx name. | |
| std::string | m_histNamePostfix |
| The postfix for the histogram THx name. | |
| std::string | m_histTitlePrefix |
| The prefix for the histogram THx title. | |
| std::string | m_histTitlePostfix |
| The postfix for the histogram THx title. | |
| DataObjIDColl | m_extendedExtraObjects |
| 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 |
| HistMap_t | m_histMap |
| The map of histogram names to their pointers. | |
| EffMap_t | m_effMap |
| The map of histogram names to their pointers. | |
| TreeMap_t | m_treeMap |
| The map of TTree names to their pointers. | |
| GraphMap_t | m_graphMap |
| The map of TGraph names to their pointers. | |
| std::string | m_streamName |
| Name of the ROOT output stream (file) | |
| std::string | m_name |
| Instance name. | |
| MsgStream | m_msg |
| Cached Message Stream. | |
Definition at line 14 of file TestMatchingToolAlg.h.
|
privateinherited |
Typedef for convenience.
Definition at line 205 of file AthHistogramming.h.
|
privateinherited |
Typedef for convenience.
Definition at line 219 of file AthHistogramming.h.
|
privateinherited |
typedef for the internal hash
Definition at line 169 of file AthHistogramming.h.
|
privateinherited |
Typedef for convenience.
Definition at line 198 of file AthHistogramming.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
privateinherited |
Typedef for convenience.
Definition at line 212 of file AthHistogramming.h.
|
inline |
Definition at line 16 of file TestMatchingToolAlg.h.
|
inlinevirtual |
Definition at line 17 of file TestMatchingToolAlg.h.
|
protectedvirtualinherited |
Function called when a new input file is opened user can read input metadata from inputMetaStore()
Dummy implementation that can be overridden by the derived tool.
Reimplemented in MuonVal::MetaDataAlg.
Definition at line 114 of file AthAnalysisAlgorithm.cxx.
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 335 of file AthHistogramming.h.
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of TGraphs.
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 303 of file AthHistogramming.h.
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of TTrees.
Definition at line 403 of file AthHistogramming.h.
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 356 of file AthHistogramming.h.
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 346 of file AthHistogramming.h.
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 324 of file AthHistogramming.h.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 281 of file AthHistogramming.h.
|
protectedinherited |
Simplify the booking and registering (into THistSvc) of TGraphs.
Definition at line 427 of file AthHistogramming.cxx.
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 260 of file AthHistogramming.h.
|
protectedinherited |
Simplify the booking and registering (into THistSvc) of TTrees.
Definition at line 312 of file AthHistogramming.cxx.
|
protectedinherited |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 146 of file AthHistogramming.cxx.
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of TEfficiency.
Definition at line 293 of file AthHistogramming.h.
|
protectedinherited |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 98 of file AthHistogramming.cxx.
|
inlineprotectedinherited |
Simplify the booking and registering (into THistSvc) of histograms.
Definition at line 272 of file AthHistogramming.h.
|
privateinherited |
Method to build individual booking string.
Definition at line 560 of file AthHistogramming.cxx.
|
protectedinherited |
To be called by the derived classes to fill the internal configuration.
Definition at line 66 of file AthHistogramming.cxx.
|
finalprotectedvirtualinherited |
Function returning the TFile pointer of the currently open file of the given EventSelector (in athena jobs this defaults to "EventSelector")
Definition at line 147 of file AthAnalysisAlgorithm.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
protectedinherited |
Simplify the retrieval of registered TEfficiency.
Definition at line 250 of file AthHistogramming.cxx.
|
protectedvirtualinherited |
Function called as an input file is being closed.
Dummy implementation that can be overridden by the derived tool.
Definition at line 122 of file AthAnalysisAlgorithm.cxx.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
virtual |
Definition at line 18 of file TestMatchingToolAlg.cxx.
|
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
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
|
virtual |
Definition at line 110 of file TestMatchingToolAlg.cxx.
|
protectedvirtualinherited |
Function called when first execute is encountered user can read event information with evtStore()
Dummy implementation that can be overridden by the derived tool.
Reimplemented in CP::JetTileCorrectionAlg.
Definition at line 139 of file AthAnalysisAlgorithm.cxx.
|
protectedinherited |
Simplify the retrieval of registered TGraphs.
Definition at line 492 of file AthHistogramming.cxx.
|
overrideprotectedvirtualinherited |
Function receiving incidents from IncidentSvc/TEvent Experts can override but they should ensure they add AthAnalysisAlgorithm::handle(); to the end of their own implementation.
Definition at line 83 of file AthAnalysisAlgorithm.cxx.
|
inlineprivateinherited |
Method to calculate a 32-bit hash from a string.
Definition at line 428 of file AthHistogramming.h.
|
protectedinherited |
Simplify the retrieval of registered histograms of any type.
Definition at line 198 of file AthHistogramming.cxx.
|
inlineprotectedinherited |
Simplify the retrieval of registered 2-d histograms.
Definition at line 369 of file AthHistogramming.h.
|
inlineprotectedinherited |
Simplify the retrieval of registered 3-d histograms.
Definition at line 386 of file AthHistogramming.h.
|
inlineinherited |
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a pointer to the THistSvc.
Definition at line 113 of file AthHistogramAlgorithm.h.
|
virtual |
Definition at line 12 of file TestMatchingToolAlg.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inlineinherited |
Accessor for the input metadata store.
Definition at line 51 of file AthAnalysisAlgorithm.h.
|
inlineinherited |
|
protectedvirtualinherited |
Function called before finalize user can read output metadata from outputMetaStore()
Dummy implementation that can be overridden by the derived tool.
Definition at line 130 of file AthAnalysisAlgorithm.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
privateinherited |
Helper method to replace sub-string.
Definition at line 590 of file AthHistogramming.cxx.
|
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.
|
inlineinherited |
Accessor for the output metadata store.
Definition at line 55 of file AthAnalysisAlgorithm.h.
|
inlineinherited |
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
inlineinherited |
Helper function to access IOVMetaDataContainer information helped in the MetaDataStore.
Definition at line 65 of file AthAnalysisAlgorithm.h.
|
inlineinherited |
Helper function to access IOVMetaDataContainer information held in InputMetaDataStore, but will check IOVTime.
Also can give a channel (leave as -1 to take first available) IOVTime(runNumber, eventNumber) is a valid constructor for example
Definition at line 76 of file AthAnalysisAlgorithm.h.
|
overridevirtualinherited |
override to do firstEvent method
Definition at line 72 of file AthAnalysisAlgorithm.cxx.
|
overridevirtualinherited |
Function initialising the tool in the correct way in Athena.
Reimplemented from AthHistogramAlgorithm.
Definition at line 50 of file AthAnalysisAlgorithm.cxx.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
protectedinherited |
Simplify the retrieval of registered TTrees.
Definition at line 378 of file AthHistogramming.cxx.
|
protectedinherited |
Definition at line 45 of file AthAnalysisAlgorithm.cxx.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 120 of file AthAnalysisAlgorithm.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 122 of file AthAnalysisAlgorithm.h.
|
privateinherited |
The map of histogram names to their pointers.
Definition at line 208 of file AthHistogramming.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 79 of file AthAlgorithm.h.
|
privateinherited |
The map of TGraph names to their pointers.
Definition at line 222 of file AthHistogramming.h.
|
privateinherited |
The map of histogram names to their pointers.
Definition at line 201 of file AthHistogramming.h.
|
privateinherited |
The postfix for the histogram THx name.
Definition at line 97 of file AthHistogramAlgorithm.h.
|
privateinherited |
The prefix for the histogram THx name.
Definition at line 94 of file AthHistogramAlgorithm.h.
|
privateinherited |
Default constructor: AthHistogramAlgorithm();.
a handle on the Hist/TTree registration service
Definition at line 83 of file AthHistogramAlgorithm.h.
|
privateinherited |
The postfix for the histogram THx title.
Definition at line 103 of file AthHistogramAlgorithm.h.
|
privateinherited |
The prefix for the histogram THx title.
Definition at line 100 of file AthHistogramAlgorithm.h.
|
privateinherited |
Object accessing the input metadata store.
Definition at line 116 of file AthAnalysisAlgorithm.h.
|
private |
Definition at line 27 of file TestMatchingToolAlg.h.
|
privateinherited |
Cached Message Stream.
Definition at line 248 of file AthHistogramming.h.
|
privateinherited |
Instance name.
Definition at line 245 of file AthHistogramming.h.
|
privateinherited |
Object accessing the output metadata store.
Definition at line 118 of file AthAnalysisAlgorithm.h.
|
privateinherited |
Name of the ROOT output stream (file)
Definition at line 88 of file AthHistogramAlgorithm.h.
|
privateinherited |
Definition at line 91 of file AthHistogramAlgorithm.h.
|
privateinherited |
Name of the ROOT output stream (file)
Definition at line 226 of file AthHistogramming.h.
|
private |
Definition at line 25 of file TestMatchingToolAlg.h.
|
privateinherited |
The map of TTree names to their pointers.
Definition at line 215 of file AthHistogramming.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.