Skip to content
Snippets Groups Projects
Commit cebf4977 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Introduced new package: AtlasGeometryCommon/CrackRegionGeoModel

The reason for introducing this package is to have a way of building
dead material description either from the LAr GeoModel Tool (old way)
or from the Service Extension Tool (new way)

CrackRegionGeoModel currently contains code which used to live inside
BarrelDMConstruction class. As a result of this migration the latter
class became obsolete, and it was dropped.
parent 3e35261a
1 merge request!60013Introduced new package: AtlasGeometryCommon/CrackRegionGeoModel
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
# Declare the package name.
atlas_subdir( CrackRegionGeoModel )
find_package( GeoModel COMPONENTS GeoModelKernel GeoModelDBManager GeoModelRead)
# Component(s) in the package.
atlas_add_library( CrackRegionGeoModel
src/*.cxx
PUBLIC_HEADERS CrackRegionGeoModel
LINK_LIBRARIES ${GEOMODEL_LIBRARIES}
PRIVATE_LINK_LIBRARIES GaudiKernel GeoModelUtilities StoreGateLib RDBAccessSvcLib )
AtlasGeometryCommon/CrackRegionGeoModel
\ No newline at end of file
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
*/
#ifndef CRACKREGIONGEOMODEL_CRACKDMCONSTRUCTION_H
#define CRACKREGIONGEOMODEL_CRACKDMCONSTRUCTION_H
#include "AthenaBaseComps/AthMessaging.h"
class IRDBAccessSvc;
class IGeoModelSvc;
class StoredMaterialManager;
class GeoFullPhysVol;
class CrackDMConstruction : public AthMessaging
{
public:
CrackDMConstruction() = delete;
CrackDMConstruction(IRDBAccessSvc* rdbAccess
, IGeoModelSvc* geoModel
, StoredMaterialManager* materialManager
, bool activateFT);
void create(GeoFullPhysVol* envelope);
private:
IRDBAccessSvc* m_rdbAccess{nullptr};
IGeoModelSvc* m_geoModel{nullptr};
StoredMaterialManager* m_materialManager{nullptr};
bool m_activateFT{false};
};
#endif
#Copyright (C) 2021 CERN for the benefit of the ATLAS collaboration #Copyright (C) 2023 CERN for the benefit of the ATLAS collaboration
# Declare the package name: # Declare the package name:
atlas_subdir( LArGeoBarrel ) atlas_subdir( LArGeoBarrel )
...@@ -12,5 +12,5 @@ atlas_add_library( LArGeoBarrel ...@@ -12,5 +12,5 @@ atlas_add_library( LArGeoBarrel
PUBLIC_HEADERS LArGeoBarrel PUBLIC_HEADERS LArGeoBarrel
INCLUDE_DIRS ${GEOMODEL_INCLUDE_DIRS} INCLUDE_DIRS ${GEOMODEL_INCLUDE_DIRS}
LINK_LIBRARIES ${GEOMODEL_LIBRARIES} LArGeoCode StoreGateLib LINK_LIBRARIES ${GEOMODEL_LIBRARIES} LArGeoCode StoreGateLib
PRIVATE_LINK_LIBRARIES GeoModelUtilities GaudiKernel LArReadoutGeometry RDBAccessSvcLib ) PRIVATE_LINK_LIBRARIES GeoModelUtilities GaudiKernel LArReadoutGeometry RDBAccessSvcLib CrackRegionGeoModel )
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
/**
* @file BarrelDMConstruction.h
*
* @brief Declaration of BarrelDMConstruction class
*
* $Id: BarrelDMConstruction.h,v 1.3 2007-07-08 18:50:15 tsulaia Exp $
*/
#ifndef LARGEOBARREL_BARRELDMCONSTRUCTION_H
#define LARGEOBARREL_BARRELDMCONSTRUCTION_H
// Forward declarations
class GeoFullPhysVol;
namespace LArGeo {
/** @class LArGeo::BarrelDMConstruction
@brief GeoModel description of dead material in the crack region
*/
class BarrelDMConstruction
{
public:
// Constructor;
BarrelDMConstruction(bool activateFT = false);
// Destructor:
virtual ~BarrelDMConstruction();
// Add passive materials to the barrel envelope
void create(GeoFullPhysVol* envelope);
private:
// It is illegal to copy/assign a BarrelDMConstruction:
BarrelDMConstruction (const BarrelDMConstruction &) = delete;
BarrelDMConstruction & operator= (const BarrelDMConstruction &) = delete;
bool m_activateFT;
};
} // namespace LArGeo
#endif // LARGEOBARREL_BARRELDMCONSTRUCTION_H
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "LArGeoBarrel/BarrelCryostatConstruction.h" #include "LArGeoBarrel/BarrelCryostatConstruction.h"
#include "LArGeoBarrel/BarrelConstruction.h" #include "LArGeoBarrel/BarrelConstruction.h"
#include "LArGeoBarrel/BarrelPresamplerConstruction.h" #include "LArGeoBarrel/BarrelPresamplerConstruction.h"
#include "LArGeoBarrel/BarrelDMConstruction.h" #include "CrackRegionGeoModel/CrackDMConstruction.h"
#include "GeoModelKernel/GeoElement.h" #include "GeoModelKernel/GeoElement.h"
#include "GeoModelKernel/GeoMaterial.h" #include "GeoModelKernel/GeoMaterial.h"
...@@ -1065,8 +1065,8 @@ GeoFullPhysVol* LArGeo::BarrelCryostatConstruction::GetEnvelope(const VDetectorP ...@@ -1065,8 +1065,8 @@ GeoFullPhysVol* LArGeo::BarrelCryostatConstruction::GetEnvelope(const VDetectorP
if(rdbAccess->getChildTag("LArBarrelDM",larVersionKey.tag(),larVersionKey.node())!="" && m_fullGeo) { if(rdbAccess->getChildTag("LArBarrelDM",larVersionKey.tag(),larVersionKey.node())!="" && m_fullGeo) {
// Dead material in barrel // Dead material in barrel
BarrelDMConstruction barrelDMConstruction(m_activateFT); CrackDMConstruction crackDMConstruction(rdbAccess,geoModel,materialManager,m_activateFT);
barrelDMConstruction.create (m_cryoMotherPhysical); crackDMConstruction.create(m_cryoMotherPhysical);
} }
return m_cryoMotherPhysical; return m_cryoMotherPhysical;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
+ AsgExternal/Asg_Test + AsgExternal/Asg_Test
+ AtlasGeometryCommon/BeamPipeGeoModel + AtlasGeometryCommon/BeamPipeGeoModel
+ AtlasGeometryCommon/CrackRegionGeoModel
+ AtlasGeometryCommon/GeoModelEnvelopes + AtlasGeometryCommon/GeoModelEnvelopes
+ AtlasGeometryCommon/SubDetectorEnvelopes + AtlasGeometryCommon/SubDetectorEnvelopes
+ AtlasTest/CITest + AtlasTest/CITest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment