8#ifndef DETDESCRDBENVELOPESVC_H
9#define DETDESCRDBENVELOPESVC_H
49 {
return m_rz[region]; }
std::vector< double > FallbackDoubleVector
datatype used for fallback solution
Definition of the abstract IRDBAccessSvc interface.
std::vector< RZPair > RZPairVector
~DetDescrDBEnvelopeSvc()
Destructor.
bool enableFallback()
enable fallback solution:
DetDescrDBEnvelopeSvc(const std::string &name, ISvcLocator *svc)
public AthService constructor
ServiceHandle< IGeoModelSvc > m_geoModelSvc
ATLAS GeoModel.
StatusCode fallbackRZBoundary(FallbackDoubleVector &r, FallbackDoubleVector &z, RZPairVector &rzVec)
use the fallback approach (python arguments) to set the (r,z) values
const RZPairVector & getRPositiveZBoundary(AtlasDetDescr::AtlasRegion region) const
return a vector of (r,z) pairs, defining the envelope on the z>0 region
StatusCode finalize()
AthService finalize method.
StatusCode retrieveRZBoundaryOptionalFallback(std::string &dbNode, FallbackDoubleVector &r, FallbackDoubleVector &z, RZPairVector &rzVec)
retrieve and store the (r,z) values locally for the given DB node.
bool m_allowFallback
fallback solution, in case something goes wrong with the DB
std::string m_atlasVersionTag
StatusCode initialize()
AthService initialize method.
std::string m_node[AtlasDetDescr::fNumAtlasRegions]
the names of the DB nodes for the respective AtlasRegion
FallbackDoubleVector m_fallbackR[AtlasDetDescr::fNumAtlasRegions]
ServiceHandle< IRDBAccessSvc > m_dbAccess
the DetectorDescription database access method
RZPairVector m_rposz[AtlasDetDescr::fNumAtlasRegions]
internal (r,z) representation for the positive z-side only, one RZPairVector for each AtlasRegion
const RZPairVector & getRZBoundary(AtlasDetDescr::AtlasRegion region) const
return a vector of (r,z) pairs, defining the respective envelope
StatusCode retrieveRZBoundary(std::string &node, RZPairVector &rzVec)
retrieve and store the (r,z) values locally for the given DB node
std::string m_atlasNode
main DDDB node for the ATLAS detector
FallbackDoubleVector m_fallbackZ[AtlasDetDescr::fNumAtlasRegions]
RZPairVector m_rz[AtlasDetDescr::fNumAtlasRegions]
internal (r,z) representation, one RZPairVector for each AtlasRegion
AtlasRegion
A simple enum of ATLAS regions and sub-detectors.