1 #ifndef GAUDIALG_GAUDITOOL_H
2 #define GAUDIALG_GAUDITOOL_H 1
8 #include "GaudiKernel/AlgTool.h"
9 #include "GaudiKernel/DataObject.h"
13 #include "GaudiAlg/GaudiAlg.h"
14 #include "GaudiAlg/GaudiCommon.h"
25 namespace std {
class exception ; }
189 const std::string& address ,
190 const bool useRootInTES =
true )
const
224 const std::string& address ,
225 const bool useRootInTES =
true )
const
261 template <
class TYPE >
264 const std::string& location ,
265 const bool useRootInTES = true )
const
303 template <
class TYPE >
306 const std::string& location ,
307 const bool useRootInTES =
true )
const
337 template <
class TYPE >
339 get (
const std::string& location ,
340 const bool useRootInTES = true )
const
377 template <
class TYPE >
380 const bool useRootInTES =
true )
const
403 template <
class TYPE >
405 const std::string& location )
const
432 template <
class TYPE >
435 const std::string& location )
const
457 template <
class TYPE >
458 inline TYPE*
getDet (
const std::string& location )
const
484 template <
class TYPE >
516 template <
class TYPE >
518 const std::string& location ,
519 const bool useRootInTES =
true )
const
546 template <
class TYPE >
547 inline bool exist (
const std::string& location ,
548 const bool useRootInTES =
true )
const
569 template <
class TYPE >
571 const std::string& location )
const
591 template <
class TYPE >
592 inline bool existDet (
const std::string& location )
const
623 template <
class TYPE ,
class TYPE2 >
626 const std::string& location ,
627 const bool useRootInTES =
true )
const
657 template <
class TYPE ,
class TYPE2 >
660 const bool useRootInTES =
true )
const
691 (
const std::string&
msg ,
693 const size_t mx = 10 )
const
696 msg + getCurrentAlgName() : msg,
723 (
const std::string& msg ,
725 const size_t mx = 10 )
const
728 msg + getCurrentAlgName() : msg,
747 (
const std::string& msg ,
749 const size_t mx = 10 )
const
752 msg + getCurrentAlgName() : msg,
759 static bool enableSummary (
bool ) ;
761 static bool summaryEnabled ( ) ;
772 const std::string&
name ,
788 bool isPublic()
const;
794 return ( current ?
" [" + current->name() +
"]" :
"" );
816 std::string m_contextSvcName =
"AlgContextSvc";
821 bool m_isPublic =
false;
839 #endif // GAUDIALG_GAUDITOOL_H
Define general base for Gaudi exception.
DataObject * put(IDataProviderSvc *svc, DataObject *object, const std::string &location, const bool useRootInTES=true) const
Register a data object or container into Gaudi Event Transient Store.
StatusCode Error(const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const
Print the error message and return with the given StatusCode.
Helper structure for implementation of "get"-functions for GaudiCommon
StatusCode finalize() override
standard finalization method
Data provider interface definition.
The IChronoStatSvc is the interface implemented by the ChronoStatService.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
StatusCode Warning(const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const
Print the warning message and return with the given StatusCode.
Definition of the IHistogramSvc interface class.
The IAlgorithm is the interface implemented by the Algorithm base class.
StatusCode initialize() override
standard initialization method
GaudiCommon & operator=(const GaudiCommon &)=delete
Implements the common functionality between GaudiTools and GaudiAlgorithms.
An abstract interface for Algorithm Context Service.
StatusCode Info(const std::string &msg, const StatusCode st=StatusCode::SUCCESS, const size_t mx=10) const
Print the info message and return with the given StatusCode.
virtual IAlgorithm * currentAlg() const =0
accessor to current algorithm:
A DataObject is the base class of any identifiable object on any data store.
The interface implemented by the IncidentSvc service.
SmartIF< SERVICE > svc(const std::string &name, const bool create=true) const
A useful method for the easy location of services.