![]() |
ATLAS Offline Software
|
#include <DetDescrDBEnvelopeSvc.h>
Public Member Functions | |
| DetDescrDBEnvelopeSvc (const std::string &name, ISvcLocator *svc) | |
| public AthService constructor | |
| ~DetDescrDBEnvelopeSvc () | |
| Destructor. | |
| virtual StatusCode | initialize () override |
| AthService initialize method. | |
| virtual const RZPairVector & | getRZBoundary (AtlasDetDescr::AtlasRegion region) const override |
| return a vector of (r,z) pairs, defining the respective envelope | |
| virtual const RZPairVector & | getRPositiveZBoundary (AtlasDetDescr::AtlasRegion region) const override |
| return a vector of (r,z) pairs, defining the envelope on the z>0 region | |
Private Member Functions | |
| StatusCode | retrieveRZBoundaryOptionalFallback (const std::string &dbNode, const FallbackDoubleVector &r, const FallbackDoubleVector &z, RZPairVector &rzVec) |
| retrieve and store the (r,z) values locally for the given DB node. | |
| StatusCode | retrieveRZBoundary (const std::string &node, RZPairVector &rzVec) |
| retrieve and store the (r,z) values locally for the given DB node | |
| StatusCode | fallbackRZBoundary (const FallbackDoubleVector &r, const FallbackDoubleVector &z, RZPairVector &rzVec) |
| use the fallback approach (python arguments) to set the (r,z) values | |
| bool | enableFallback () |
| enable fallback solution: | |
Private Attributes | |
| ServiceHandle< IRDBAccessSvc > | m_dbAccess {this, "RDBAccessSvc", "RDBAccessSvc"} |
| the DetectorDescription database access method | |
| ServiceHandle< IGeoModelSvc > | m_geoModelSvc {this, "GeoModelSvc", "GeoModelSvc"} |
| ATLAS GeoModel. | |
| std::string | m_atlasNode {"ATLAS"} |
| main DDDB node for the ATLAS detector | |
| std::string | m_atlasVersionTag {"AUTO"} |
| std::array< StringProperty, AtlasDetDescr::fNumAtlasRegions > | m_node |
| the names of the DB nodes for the respective AtlasRegion | |
| RZPairVector | m_rz [AtlasDetDescr::fNumAtlasRegions] {} |
| internal (r,z) representation, one RZPairVector for each AtlasRegion | |
| RZPairVector | m_rposz [AtlasDetDescr::fNumAtlasRegions] {} |
| internal (r,z) representation for the positive z-side only, one RZPairVector for each AtlasRegion | |
| Gaudi::Property< bool > | m_allowFallback {this, "EnableFallback", false} |
| fallback solution, in case something goes wrong with the DB | |
| bool | m_doFallback {false} |
| std::array< DoubleArrayProperty, AtlasDetDescr::fNumAtlasRegions > | m_fallbackR |
| std::array< DoubleArrayProperty, AtlasDetDescr::fNumAtlasRegions > | m_fallbackZ |
Definition at line 34 of file DetDescrDBEnvelopeSvc.h.
| DetDescrDBEnvelopeSvc::DetDescrDBEnvelopeSvc | ( | const std::string & | name, |
| ISvcLocator * | svc ) |
public AthService constructor
Constructor.
Definition at line 26 of file DetDescrDBEnvelopeSvc.cxx.
|
default |
Destructor.
|
private |
enable fallback solution:
enable fallback solution (if allowed)
Definition at line 34 of file DetDescrDBEnvelopeSvc.cxx.
|
private |
use the fallback approach (python arguments) to set the (r,z) values
retrieve and store the (r,z) values locally for the given DB node
Definition at line 223 of file DetDescrDBEnvelopeSvc.cxx.
|
inlineoverridevirtual |
return a vector of (r,z) pairs, defining the envelope on the z>0 region
Definition at line 50 of file DetDescrDBEnvelopeSvc.h.
|
inlineoverridevirtual |
return a vector of (r,z) pairs, defining the respective envelope
Definition at line 47 of file DetDescrDBEnvelopeSvc.h.
|
overridevirtual |
AthService initialize method.
Athena AthService initialize hook.
Definition at line 52 of file DetDescrDBEnvelopeSvc.cxx.
|
private |
retrieve and store the (r,z) values locally for the given DB node
@TODO: implement positioning, see: http://alxr.usatlas.bnl.gov/lxr/source/atlas/AtlasGeometryCommon/BeamPipeGeoModel/src/BeamPipeDetectorFactory.cxx?v=head#054 const IRDBRecordset *DBPosition = m_dbAccess->getRecordset( m_dbPositionNode, m_atlasVersionTag, m_atlasNode );
Definition at line 165 of file DetDescrDBEnvelopeSvc.cxx.
|
private |
retrieve and store the (r,z) values locally for the given DB node.
if there are problems with retrieving this from DDDB, try the fallback approach if allowed
Definition at line 135 of file DetDescrDBEnvelopeSvc.cxx.
|
private |
fallback solution, in case something goes wrong with the DB
Definition at line 100 of file DetDescrDBEnvelopeSvc.h.
|
private |
main DDDB node for the ATLAS detector
Definition at line 80 of file DetDescrDBEnvelopeSvc.h.
|
private |
Definition at line 81 of file DetDescrDBEnvelopeSvc.h.
|
private |
the DetectorDescription database access method
Definition at line 74 of file DetDescrDBEnvelopeSvc.h.
|
private |
Definition at line 101 of file DetDescrDBEnvelopeSvc.h.
|
private |
Definition at line 103 of file DetDescrDBEnvelopeSvc.h.
|
private |
Definition at line 112 of file DetDescrDBEnvelopeSvc.h.
|
private |
ATLAS GeoModel.
Definition at line 77 of file DetDescrDBEnvelopeSvc.h.
|
private |
the names of the DB nodes for the respective AtlasRegion
Definition at line 84 of file DetDescrDBEnvelopeSvc.h.
|
private |
internal (r,z) representation for the positive z-side only, one RZPairVector for each AtlasRegion
Definition at line 97 of file DetDescrDBEnvelopeSvc.h.
|
private |
internal (r,z) representation, one RZPairVector for each AtlasRegion
Definition at line 94 of file DetDescrDBEnvelopeSvc.h.