![]() |
ATLAS Offline Software
|
#include <MdtCalibDbAlgTest.h>
Public Member Functions | |
| virtual | ~MdtCalibDbAlgTest ()=default |
| virtual StatusCode | initialize () override |
| virtual StatusCode | execute () override |
| virtual StatusCode | finalize () override |
| AthHistogramAlgorithm (const std::string &name, ISvcLocator *pSvcLocator) | |
| Constructor with parameters: | |
| virtual StatusCode | sysInitialize () |
| Initialization method invoked by the framework. | |
| 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 |
Protected Member Functions | |
| 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 | |
| SG::ReadHandleKey< xAOD::MdtDriftCircleContainer > | m_MdtKey |
| SG::ReadHandleKey< ActsTrk::GeometryContext > | m_geoCtxKey {this, "AlignmentKey", "ActsAlignment", "cond handle key"} |
| ToolHandle< IMdtCalibrationTool > | m_calibrationTool {this, "CalibrationTool", "MdtCalibrationTool"} |
| pointer to MdtCalibSvc | |
| ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
| MuonVal::MuonTesterTree | m_tree {"MdtCalibDbAlg", "MdtCalibDbAlgTest"} |
| MuonVal::ScalarBranch< float > & | m_out_tdcAdj {m_tree.newScalar<float>("tdcAdj")} |
| MuonVal::ScalarBranch< float > & | m_out_tdc {m_tree.newScalar<float>("tdc")} |
| MuonVal::ScalarBranch< float > & | m_out_driftRadius {m_tree.newScalar<float>("driftRadius")} |
| MuonVal::ScalarBranch< float > & | m_out_driftVelocity {m_tree.newScalar<float>("driftVelocity")} |
| MuonVal::ScalarBranch< float > & | m_out_driftTime {m_tree.newScalar<float>("driftTime")} |
| MuonVal::ScalarBranch< uint8_t > & | m_out_stIndex {m_tree.newScalar<uint8_t>("stationIndex")} |
| MuonVal::ScalarBranch< int16_t > & | m_out_stEta {m_tree.newScalar<int16_t>("stationEta")} |
| MuonVal::ScalarBranch< uint8_t > & | m_out_stPhi {m_tree.newScalar<uint8_t>("stationPhi")} |
| MuonVal::ScalarBranch< uint8_t > & | m_out_ml {m_tree.newScalar<uint8_t>("multiLayer")} |
| MuonVal::ScalarBranch< uint8_t > & | m_out_tl {m_tree.newScalar<uint8_t>("tubeLayer")} |
| MuonVal::ScalarBranch< uint8_t > & | m_out_tube {m_tree.newScalar<uint8_t>("tube")} |
| MuonVal::ScalarBranch< float > & | m_out_globalPos {m_tree.newScalar<float>("globalPos")} |
| MuonVal::ScalarBranch< float > & | m_out_globalPosX {m_tree.newScalar<float>("globalPosX")} |
| MuonVal::ScalarBranch< float > & | m_out_globalPosY {m_tree.newScalar<float>("globalPosY")} |
| MuonVal::ScalarBranch< float > & | m_out_globalPosZ {m_tree.newScalar<float>("globalPosZ")} |
| MuonVal::ScalarBranch< float > & | m_out_tubeLength {m_tree.newScalar<float>("tubeLength")} |
| 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 25 of file MdtCalibDbAlgTest.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.
|
virtualdefault |
| AthHistogramAlgorithm::AthHistogramAlgorithm | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Constructor with parameters:
Definition at line 40 of file AthHistogramAlgorithm.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.
|
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.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
overridevirtual |
Definition at line 37 of file MdtCalibDbAlgTest.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.
|
overridevirtual |
Definition at line 31 of file MdtCalibDbAlgTest.cxx.
|
protectedinherited |
Simplify the retrieval of registered TGraphs.
Definition at line 492 of file AthHistogramming.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.
|
overridevirtual |
Definition at line 16 of file MdtCalibDbAlgTest.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 |
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.
|
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.
|
virtualinherited |
Initialization method invoked by the framework.
This method is responsible for any bookkeeping of initialization required by the framework itself. It will in turn invoke the initialize() method of the derived algorithm, and of any sub-algorithms which it creates.
Reimplemented from AthAlgorithm.
Reimplemented in AthAnalysisAlgorithm.
Definition at line 75 of file AthHistogramAlgorithm.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.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
pointer to MdtCalibSvc
Definition at line 40 of file MdtCalibDbAlgTest.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.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.
|
private |
Definition at line 38 of file MdtCalibDbAlgTest.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.
|
private |
Definition at line 41 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 36 of file MdtCalibDbAlgTest.h.
|
privateinherited |
Cached Message Stream.
Definition at line 248 of file AthHistogramming.h.
|
privateinherited |
Instance name.
Definition at line 245 of file AthHistogramming.h.
|
private |
Definition at line 45 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 47 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 46 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 57 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 58 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 59 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 60 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 52 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 50 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 49 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 51 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 44 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 43 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 53 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 54 of file MdtCalibDbAlgTest.h.
|
private |
Definition at line 61 of file MdtCalibDbAlgTest.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 41 of file MdtCalibDbAlgTest.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.