Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • andesai/calypso
  • sazhang/calypso
  • yuxu/calypso
  • wfilali/calypso
  • bewilson/calypso
  • ovaldesm/calypso
  • xai/calypso
  • ymaruya/calypso
  • anburger/calypso
  • seley/calypso
  • sudatta/calypso
  • notarann/calypso
  • hhjelm/calypso
  • tarai/calypso
  • lmccoy/calypso
  • agarabag/calypso
  • fneuhaus/calypso
  • vlian/calypso
  • yechou/calypso
  • vlian/calypso-official
  • fasermc/calypso
  • schsu/calypso
  • maprim/calypso
  • cantel/calypso
  • jwspence/calypso
  • diwang/calypso
  • ccavanag/calypso
  • gwilliam/calypso
  • asalman/calypso
  • toinada/calypso
  • jboyd/calypso
  • abarkley/calypso
  • yafik/calypso
  • cpandini/calypso
  • tboeckh/calypso
  • sshively/calypso
  • keli/calypso
  • dfellers/calypso
  • torrence/calypso
  • coccaro/calypso
  • dcasper/calypso
  • faser/calypso
42 results
Show changes
Commits on Source (315)
Showing
with 3746 additions and 254 deletions
variables: variables:
# all submodules will be cloned recursively upon start of CI job # all submodules will be cloned recursively upon start of CI job
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
GIT_SSL_NO_VERIFY: "true" GIT_SSL_NO_VERIFY: "true"
ATLAS_LOCAL_ROOT_BASE: /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase ATLAS_LOCAL_ROOT_BASE: /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
stages: stages:
- build - build
- test - test
########################## ##########################
# BUILD stage # # BUILD stage #
########################## ##########################
build_image: build_image:
# description: triggers a build of the project as a Docker image, # description: triggers a build of the project as a Docker image,
# each branch will have an individual Docker image that will be used # each branch will have an individual Docker image that will be used
# in the following stages of the pipeline for testing the code # in the following stages of the pipeline for testing the code
stage: build image:
tags: name: gitlab-registry.cern.ch/linuxsupport/alma9-base:latest
- cvmfs stage: build
- docker tags:
script: - k8s-cvmfs
- yum -y install redhat-lsb redhat-lsb-core man uuid-devel libuuid libuuid-devel mesa-libGL-devel libXpm-devel script:
- mkdir build - mkdir build
- cd build # See if we can run this as the payload to a container
- set +e && source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh; set -e - set +e && export ALRB_CONT_RUNPAYLOAD="asetup --input=asetup.faser Athena,24.0.41; cd build; cmake ..; make -j 3" && set -e
- set +e && asetup --input=../../calypso/asetup.faser Athena,22.0.49; set -e - echo $ALRB_CONT_RUNPAYLOAD
- cmake ../../calypso - set +e && source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh -c alma9 && set -e
- make -j 3 artifacts:
artifacts: paths:
paths: - build/
- build/
test_unittest:
test_unittest: image:
stage: test name: gitlab-registry.cern.ch/linuxsupport/alma9-base:latest
tags: stage: test
- cvmfs tags:
- docker - k8s-cvmfs
script: script:
- yum -y install man - set +e && export ALRB_CONT_RUNPAYLOAD="asetup --input=asetup.faser Athena,24.0.41; source `find . -name 'setup.sh'`; cd build; ctest -j3 --output-on-failure" && set -e
- cd build - echo $ALRB_CONT_RUNPAYLOAD
- set +e && source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh; set -e - set +e && source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh -c alma9 && set -e
- set +e && asetup --input=../../calypso/asetup.faser Athena,22.0.49; set -e dependencies:
- set +e && source `find . -name 'setup.sh'`; set -e - build_image
- ctest -j3 artifacts:
dependencies: paths:
- build_image - LastTest.log
...@@ -12,6 +12,7 @@ set( ATLAS_PROJECT Athena ...@@ -12,6 +12,7 @@ set( ATLAS_PROJECT Athena
find_package( Athena ) find_package( Athena )
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(ATLAS_GEANT4_USE_LTO OFF)
atlas_ctest_setup() atlas_ctest_setup()
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#define CaloGeoModelUtils_CaloDDAthenaComps_H #define CaloGeoModelUtils_CaloDDAthenaComps_H
// Message Stream Member // Message Stream Member
#include "AthenaKernel/MsgStreamMember.h" #include "AthenaBaseComps/AthMessaging.h"
class StoreGateSvc; class StoreGateSvc;
class IGeoDbTagSvc; class IGeoDbTagSvc;
class IRDBAccessSvc; class IRDBAccessSvc;
...@@ -16,18 +16,12 @@ class IGeometryDBSvc; ...@@ -16,18 +16,12 @@ class IGeometryDBSvc;
namespace CaloDD { namespace CaloDD {
/// Class to hold various Athena components. /// Class to hold various Athena components.
class AthenaComps { class AthenaComps : public AthMessaging {
public: public:
AthenaComps(const std::string & msgStreamName); AthenaComps(const std::string & msgStreamName);
//Declaring the Message method for further use
MsgStream& msg (MSG::Level lvl) const { return m_msg << lvl; }
//Declaring the Method providing Verbosity Level
bool msgLvl (MSG::Level lvl) const { return m_msg.get().level() <= lvl; }
void setDetStore(StoreGateSvc *); void setDetStore(StoreGateSvc *);
void setGeoDbTagSvc(IGeoDbTagSvc *); void setGeoDbTagSvc(IGeoDbTagSvc *);
void setRDBAccessSvc(IRDBAccessSvc *); void setRDBAccessSvc(IRDBAccessSvc *);
...@@ -39,9 +33,6 @@ public: ...@@ -39,9 +33,6 @@ public:
IGeometryDBSvc * geomDB() const; IGeometryDBSvc * geomDB() const;
private: private:
//Declaring private message stream member.
mutable Athena::MsgStreamMember m_msg;
StoreGateSvc * m_detStore; StoreGateSvc * m_detStore;
IGeoDbTagSvc * m_geoDbTagSvc; IGeoDbTagSvc * m_geoDbTagSvc;
IRDBAccessSvc * m_rdbAccessSvc; IRDBAccessSvc * m_rdbAccessSvc;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#define CALOMATERIALMANAGER_H #define CALOMATERIALMANAGER_H
// Message Stream Member // Message Stream Member
#include "AthenaKernel/MsgStreamMember.h" #include "AthenaBaseComps/AthMessaging.h"
#include "RDBAccessSvc/IRDBAccessSvc.h" #include "RDBAccessSvc/IRDBAccessSvc.h"
class GeoMaterial; class GeoMaterial;
...@@ -30,7 +30,7 @@ namespace CaloDD ...@@ -30,7 +30,7 @@ namespace CaloDD
/// materials with a density such that the the total weight is correct. /// materials with a density such that the the total weight is correct.
class CaloMaterialManager class CaloMaterialManager : public AthMessaging
{ {
public: public:
...@@ -60,7 +60,7 @@ public: ...@@ -60,7 +60,7 @@ public:
const GeoMaterial* getMaterial(const std::string & materialName); const GeoMaterial* getMaterial(const std::string & materialName);
/// Get element from GeoModel material manager /// Get element from GeoModel material manager
const GeoElement* getElement(const std::string & elementName) const; const GeoElement* getElement(const std::string & elementName);
/// Create and get material with a specified density based on an existing material. /// Create and get material with a specified density based on an existing material.
/// If a newName is supplied it creates the new material even if the orginal material /// If a newName is supplied it creates the new material even if the orginal material
...@@ -129,13 +129,6 @@ public: ...@@ -129,13 +129,6 @@ public:
/// Add material /// Add material
void addMaterial(GeoMaterial *material); void addMaterial(GeoMaterial *material);
//Declaring the Message method for further use
MsgStream& msg (MSG::Level lvl) const { return m_msg << lvl; }
//Declaring the Method providing Verbosity Level
bool msgLvl (MSG::Level lvl){ return m_msg.get().level() <= lvl; }
private: private:
class MaterialByWeight { class MaterialByWeight {
...@@ -190,7 +183,7 @@ private: ...@@ -190,7 +183,7 @@ private:
void addWeightTableOld(IRDBRecordset_ptr weightTable, const std::string & space); void addWeightTableOld(IRDBRecordset_ptr weightTable, const std::string & space);
// Internal versions. The public versions allow materials to be have extra scaling. // Internal versions. The public versions allow materials to be have extra scaling.
const GeoMaterial* getMaterialInternal(const std::string & materialName) const; const GeoMaterial* getMaterialInternal(const std::string & materialName);
const GeoMaterial* getMaterialInternal(const std::string & origMaterialName, const GeoMaterial* getMaterialInternal(const std::string & origMaterialName,
double density, double density,
const std::string & newName = ""); const std::string & newName = "");
...@@ -230,9 +223,6 @@ private: ...@@ -230,9 +223,6 @@ private:
typedef std::map<std::string, double > ExtraScaleFactorMap; typedef std::map<std::string, double > ExtraScaleFactorMap;
ExtraScaleFactorMap m_scalingMap; ExtraScaleFactorMap m_scalingMap;
//Declaring private message stream member.
mutable Athena::MsgStreamMember m_msg;
// Has linear weight flag. // Has linear weight flag.
bool m_extraFunctionality; bool m_extraFunctionality;
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef CaloGeoModelUtils_DetectorFactoryBase_H #ifndef CaloGeoModelUtils_DetectorFactoryBase_H
#define CaloGeoModelUtils_DetectorFactoryBase_H #define CaloGeoModelUtils_DetectorFactoryBase_H
#include "AthenaKernel/MsgStreamMember.h"
#include "GeoModelKernel/GeoVDetectorFactory.h" #include "GeoModelKernel/GeoVDetectorFactory.h"
#include "CaloGeoModelUtils/CaloDDAthenaComps.h" #include "CaloGeoModelUtils/CaloDDAthenaComps.h"
...@@ -15,7 +14,7 @@ class IRDBAccessSvc; ...@@ -15,7 +14,7 @@ class IRDBAccessSvc;
namespace CaloDD { namespace CaloDD {
class DetectorFactoryBase : public GeoVDetectorFactory class DetectorFactoryBase : public GeoVDetectorFactory
{ {
public: public:
...@@ -35,7 +34,7 @@ public: ...@@ -35,7 +34,7 @@ public:
MsgStream& msg (MSG::Level lvl) const { return m_athenaComps->msg(lvl); } MsgStream& msg (MSG::Level lvl) const { return m_athenaComps->msg(lvl); }
//Declaring the Method providing Verbosity Level //Declaring the Method providing Verbosity Level
bool msgLvl (MSG::Level lvl) const { return m_athenaComps->msgLvl(lvl); } bool msgLvl (MSG::Level lvl) { return m_athenaComps->msgLvl(lvl); }
const CaloDD::AthenaComps * getAthenaComps() {return m_athenaComps;} const CaloDD::AthenaComps * getAthenaComps() {return m_athenaComps;}
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
namespace CaloDD { namespace CaloDD {
AthenaComps::AthenaComps(const std::string& msgStreamName) AthenaComps::AthenaComps(const std::string& msgStreamName)
: m_msg(msgStreamName), : AthMessaging(msgStreamName),
m_detStore(0), m_detStore(0),
m_geoDbTagSvc(0), m_geoDbTagSvc(0),
m_rdbAccessSvc(0), m_rdbAccessSvc(0),
......
...@@ -6,17 +6,17 @@ ...@@ -6,17 +6,17 @@
#include "CaloGeoModelUtils/DistortedMaterialManager.h" #include "CaloGeoModelUtils/DistortedMaterialManager.h"
#include "GeoModelInterfaces/StoredMaterialManager.h" #include "GeoModelInterfaces/StoredMaterialManager.h"
#include "GeoModelFaserUtilities/DecodeFaserVersionKey.h" #include "GeoModelFaserUtilities/DecodeFaserVersionKey.h"
#include "AthenaKernel/MsgStreamMember.h"
#include "StoreGate/StoreGateSvc.h" #include "StoreGate/StoreGateSvc.h"
#include "RDBAccessSvc/IRDBAccessSvc.h" #include "RDBAccessSvc/IRDBAccessSvc.h"
#include "GaudiKernel/ISvcLocator.h" #include "GaudiKernel/ISvcLocator.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/Bootstrap.h" #include "GaudiKernel/Bootstrap.h"
namespace CaloDD { namespace CaloDD {
DistortedMaterialManager::DistortedMaterialManager() { DistortedMaterialManager::DistortedMaterialManager() {
ISvcLocator* svcLocator = Gaudi::svcLocator(); // from Bootstrap ISvcLocator* svcLocator = Gaudi::svcLocator(); // from Bootstrap
Athena::MsgStreamMember log("ExtraMaterialManager"); MsgStream log(Athena::getMessageSvc(), "ExtraMaterialManager");
log << MSG::DEBUG << "Initialized Calo Distorted Material Manager" << endmsg; log << MSG::DEBUG << "Initialized Calo Distorted Material Manager" << endmsg;
StoreGateSvc* detStore; StoreGateSvc* detStore;
......
...@@ -21,6 +21,6 @@ ...@@ -21,6 +21,6 @@
<range field="part" value="Ecal" /> <range field="part" value="Ecal" />
<range field="row" values="Bottom Top" wraparound="FALSE" /> <range field="row" values="Bottom Top" wraparound="FALSE" />
<range field="module" values="Starboard Port" wraparound="FALSE" /> <range field="module" values="Starboard Port" wraparound="FALSE" />
<range field="pmt" minvalue="0" maxvalue="0" /> <range field="pmt" minvalue="0" maxvalue="1" />
</region> </region>
</IdDictionary> </IdDictionary>
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
class FaserDetectorID; class FaserDetectorID;
// Message Stream Member // Message Stream Member
#include "AthenaKernel/MsgStreamMember.h" #include "AthenaBaseComps/AthMessaging.h"
#include "CxxUtils/checker_macros.h" #include "CxxUtils/checker_macros.h"
// #include "InDetCondTools/ISiLorentzAngleTool.h" // #include "InDetCondTools/ISiLorentzAngleTool.h"
#include "GeoPrimitives/GeoPrimitives.h" #include "GeoPrimitives/GeoPrimitives.h"
...@@ -26,9 +26,6 @@ class FaserDetectorID; ...@@ -26,9 +26,6 @@ class FaserDetectorID;
#include <mutex> #include <mutex>
// mutable Athena::MsgStreamMember issues warnings.
ATLAS_NO_CHECK_FILE_THREAD_SAFETY;
namespace CaloDD { namespace CaloDD {
/** @class CaloCommonItems /** @class CaloCommonItems
...@@ -42,7 +39,7 @@ namespace CaloDD { ...@@ -42,7 +39,7 @@ namespace CaloDD {
modified: Dave Casper modified: Dave Casper
*/ */
class CaloCommonItems: public RCBase class CaloCommonItems: public RCBase, public AthMessaging
{ {
public: public:
...@@ -52,18 +49,9 @@ namespace CaloDD { ...@@ -52,18 +49,9 @@ namespace CaloDD {
const FaserDetectorID* getIdHelper() const; const FaserDetectorID* getIdHelper() const;
// const HepGeom::Transform3D & solenoidFrame() const; // const HepGeom::Transform3D & solenoidFrame() const;
// void setSolenoidFrame(const HepGeom::Transform3D & transform) const; // void setSolenoidFrame(const HepGeom::Transform3D & transform) const;
//Declaring the Message method for further use
MsgStream& msg (MSG::Level lvl) const { return m_msg.get() << lvl; }
//Declaring the Method providing Verbosity Level
bool msgLvl (MSG::Level lvl) const { return m_msg.get().level() <= lvl; }
private: private:
//Declaring private message stream member.
mutable Athena::MsgStreamMember m_msg;
const FaserDetectorID* m_idHelper; const FaserDetectorID* m_idHelper;
// mutable HepGeom::Transform3D m_solenoidFrame ATLAS_THREAD_SAFE; // Guarded by m_mutex // mutable HepGeom::Transform3D m_solenoidFrame ATLAS_THREAD_SAFE; // Guarded by m_mutex
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "CaloReadoutGeometry/Version.h" #include "CaloReadoutGeometry/Version.h"
#include "CLHEP/Geometry/Transform3D.h" #include "CLHEP/Geometry/Transform3D.h"
// Message Stream Member // Message Stream Member
#include "AthenaKernel/MsgStreamMember.h" #include "AthenaBaseComps/AthMessaging.h"
// IOV SVC for alignment: // IOV SVC for alignment:
#include "AthenaKernel/IIOVSvc.h" #include "AthenaKernel/IIOVSvc.h"
...@@ -41,9 +41,6 @@ class FaserDetectorID; ...@@ -41,9 +41,6 @@ class FaserDetectorID;
class GeoVAlignmentStore; class GeoVAlignmentStore;
class CondAttrListCollection; class CondAttrListCollection;
// mutable Athena::MsgStreamMember issues warnings.
ATLAS_NO_CHECK_FILE_THREAD_SAFETY;
namespace CaloDD { namespace CaloDD {
typedef std::map<std::string, const void*> RawAlignmentObjects; typedef std::map<std::string, const void*> RawAlignmentObjects;
...@@ -63,7 +60,7 @@ namespace CaloDD { ...@@ -63,7 +60,7 @@ namespace CaloDD {
@author: Grant Gorfine @author: Grant Gorfine
- modified & maintained: Nick Styles & Andreas Salzburger - modified & maintained: Nick Styles & Andreas Salzburger
*/ */
class CaloDetectorManagerBase : public GeoVDetectorManager { class CaloDetectorManagerBase : public GeoVDetectorManager, public AthMessaging {
public: public:
...@@ -99,12 +96,6 @@ namespace CaloDD { ...@@ -99,12 +96,6 @@ namespace CaloDD {
/** Check identifier is for this detector */ /** Check identifier is for this detector */
virtual bool identifierBelongs(const Identifier & id) const = 0; virtual bool identifierBelongs(const Identifier & id) const = 0;
/** Declaring the Message method for further use */
MsgStream& msg (MSG::Level lvl) const { return m_msg.get() << lvl; }
/** Declaring the Method providing Verbosity Level */
bool msgLvl (MSG::Level lvl) const { return m_msg.get().level() <= lvl; }
AlignFolderType m_alignfoldertype; AlignFolderType m_alignfoldertype;
protected: protected:
...@@ -188,8 +179,6 @@ namespace CaloDD { ...@@ -188,8 +179,6 @@ namespace CaloDD {
virtual const FaserDetectorID* getIdHelper() const = 0; virtual const FaserDetectorID* getIdHelper() const = 0;
//Declaring private message stream member. //Declaring private message stream member.
mutable Athena::MsgStreamMember m_msg;
Version m_version; Version m_version;
std::map<std::string, LevelInfo> m_keys; std::map<std::string, LevelInfo> m_keys;
std::set<std::string> m_folders; std::set<std::string> m_folders;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace CaloDD { namespace CaloDD {
CaloCommonItems::CaloCommonItems(const FaserDetectorID* const idHelper) CaloCommonItems::CaloCommonItems(const FaserDetectorID* const idHelper)
: m_msg("CaloDetectorElement"), : AthMessaging("CaloDetectorElement"),
m_idHelper(idHelper), m_idHelper(idHelper),
m_mutex{} m_mutex{}
{} {}
......
...@@ -18,8 +18,9 @@ namespace CaloDD ...@@ -18,8 +18,9 @@ namespace CaloDD
{ {
CaloDetectorManagerBase::CaloDetectorManagerBase(StoreGateSvc * detStore, const std::string & name) CaloDetectorManagerBase::CaloDetectorManagerBase(StoreGateSvc * detStore, const std::string & name)
: m_alignfoldertype{none},m_detStore(detStore), : AthMessaging(name+"DetectorManager")
m_msg(name+"DetectorManager") , m_alignfoldertype{none}
, m_detStore(detStore)
{ {
setName(name); setName(name);
} }
......
...@@ -26,24 +26,36 @@ atlas_add_component( EcalGeoModel ...@@ -26,24 +26,36 @@ atlas_add_component( EcalGeoModel
atlas_add_test( EcalGMConfig_test atlas_add_test( EcalGMConfig_test
SCRIPT python ${CMAKE_CURRENT_SOURCE_DIR}/test/EcalGMConfig_test.py SCRIPT python ${CMAKE_CURRENT_SOURCE_DIR}/test/EcalGMConfig_test.py
PROPERTIES WORKING_DIRECTORY ${CMAKE_BINARY_DIR} PROPERTIES WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
PROPERTIES TIMEOUT 300 ) PROPERTIES TIMEOUT 300
POST_EXEC_SCRIPT noerror.sh)
# Decide which ecal gdml file to use based on option # Decide which ecal gdml file to use based on option; tyvek density reduced in EcalTyvek04.gdml (June 2023)
if (ECAL_GEO_TYVEK) if (ECAL_GEO_TYVEK)
add_custom_command (OUTPUT ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml add_custom_command (OUTPUT ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml
COMMAND mkdir -p ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/ COMMAND mkdir -p ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalTyvek.gdml ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml ) COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalTyvek04.gdml ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml )
add_custom_command (OUTPUT ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal04.gdml
COMMAND mkdir -p ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalTyvek04.gdml ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal04.gdml )
add_custom_target (make_ecal_gdml ALL DEPENDS ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml) add_custom_target (make_ecal_gdml ALL DEPENDS ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml)
add_custom_target (make_ecal_gdml04 ALL DEPENDS ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal04.gdml)
get_filename_component( _realpath ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalTyvek.gdml REALPATH ) get_filename_component( _realpath ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalTyvek.gdml REALPATH )
get_filename_component( _realpath04 ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalTyvek04.gdml REALPATH )
else() else()
add_custom_command (OUTPUT ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml add_custom_command (OUTPUT ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml
COMMAND mkdir -p ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/ COMMAND mkdir -p ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalNoTyvek.gdml ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml ) COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalNoTyvek.gdml ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml )
add_custom_command (OUTPUT ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal04.gdml
COMMAND mkdir -p ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalNoTyvek.gdml ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal04.gdml )
add_custom_target (make_ecal_gdml ALL DEPENDS ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml) add_custom_target (make_ecal_gdml ALL DEPENDS ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal.gdml)
add_custom_target (make_ecal_gdml04 ALL DEPENDS ${CMAKE_XML_OUTPUT_DIRECTORY}/EcalGeoModel/Ecal04.gdml)
get_filename_component( _realpath ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalNoTyvek.gdml REALPATH ) get_filename_component( _realpath ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalNoTyvek.gdml REALPATH )
get_filename_component( _realpath04 ${CMAKE_CURRENT_SOURCE_DIR}/data/EcalNoTyvek.gdml REALPATH )
endif() endif()
install(FILES ${_realpath} DESTINATION ${CMAKE_INSTALL_PREFIX}/XML/EcalGeoModel RENAME Ecal.gdml) install(FILES ${_realpath} DESTINATION ${CMAKE_INSTALL_PREFIX}/XML/EcalGeoModel RENAME Ecal.gdml)
install(FILES ${_realpath04} DESTINATION ${CMAKE_INSTALL_PREFIX}/XML/EcalGeoModel RENAME Ecal04.gdml)
unset( _realpath ) unset( _realpath )
# Install files from the package: # Install files from the package:
......
source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -39,7 +39,7 @@ EcalModule::EcalModule(const std::string & name, ...@@ -39,7 +39,7 @@ EcalModule::EcalModule(const std::string & name,
{ {
std::string resolvedFile = PathResolver::find_file(geometryManager->options().gdmlFile(), "XMLPATH", PathResolver::RecursiveSearch); std::string resolvedFile = PathResolver::find_file(geometryManager->options().gdmlFile(), "XMLPATH", PathResolver::RecursiveSearch);
XercesParser xercesParser; GeoModelTools::XercesParser xercesParser;
xercesParser.ParseFileAndNavigate(resolvedFile); xercesParser.ParseFileAndNavigate(resolvedFile);
std::cout << "done parsing " << resolvedFile << std::endl; std::cout << "done parsing " << resolvedFile << std::endl;
......
...@@ -6,18 +6,19 @@ Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration ...@@ -6,18 +6,19 @@ Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
if __name__ == "__main__": if __name__ == "__main__":
from AthenaCommon.Configurable import Configurable from AthenaCommon.Configurable import Configurable
Configurable.configurableRun3Behavior=1 Configurable.configurableRun3Behavior=1
from CalypsoConfiguration.AllConfigFlags import ConfigFlags from CalypsoConfiguration.AllConfigFlags import initConfigFlags
from AthenaConfiguration.TestDefaults import defaultTestFiles from AthenaConfiguration.TestDefaults import defaultTestFiles
ConfigFlags.Input.Files = defaultTestFiles.HITS configFlags = initConfigFlags()
ConfigFlags.IOVDb.GlobalTag = "OFLCOND-FASER-01" # Always needed; must match FaserVersion configFlags.Input.Files = [] # Dummy input
ConfigFlags.Detector.EnableEcal = True configFlags.IOVDb.GlobalTag = "OFLCOND-FASER-01" # Always needed; must match FaserVersion
ConfigFlags.GeoModel.Align.Dynamic = False configFlags.Detector.EnableEcal = True
ConfigFlags.lock() #flags.GeoModel.Align.Dynamic = False
configFlags.lock()
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
from EcalGeoModel.EcalGeoModelConfig import EcalGeometryCfg from EcalGeoModel.EcalGeoModelConfig import EcalGeometryCfg
acc = EcalGeometryCfg(ConfigFlags) acc = EcalGeometryCfg(configFlags)
f=open('EcalGeometryCfg.pkl','wb') f=open('EcalGeometryCfg.pkl','wb')
acc.store(f) acc.store(f)
f.close() f.close()
...@@ -119,7 +119,7 @@ EcalIDDetDescrCnv::createObj(IOpaqueAddress* pAddr, DataObject*& pObj) ...@@ -119,7 +119,7 @@ EcalIDDetDescrCnv::createObj(IOpaqueAddress* pAddr, DataObject*& pObj)
} else {} } else {}
// Get the dictionary manager from the detector store // Get the dictionary manager from the detector store
const DataHandle<IdDictManager> idDictMgr; const IdDictManager* idDictMgr;
status = detStore->retrieve(idDictMgr, "IdDict"); status = detStore->retrieve(idDictMgr, "IdDict");
if (status.isFailure()) { if (status.isFailure()) {
log << MSG::FATAL << "Could not get IdDictManager !" << endmsg; log << MSG::FATAL << "Could not get IdDictManager !" << endmsg;
...@@ -208,7 +208,7 @@ EcalIDDetDescrCnv::createObj(IOpaqueAddress* pAddr, DataObject*& pObj) ...@@ -208,7 +208,7 @@ EcalIDDetDescrCnv::createObj(IOpaqueAddress* pAddr, DataObject*& pObj)
} }
// Pass a pointer to the container to the Persistency service by reference. // Pass a pointer to the container to the Persistency service by reference.
pObj = StoreGateSvc::asStorable(m_ecalId); pObj = SG::asStorable(m_ecalId);
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
......
...@@ -11,7 +11,7 @@ atlas_add_component( CaloDigiAlgs ...@@ -11,7 +11,7 @@ atlas_add_component( CaloDigiAlgs
src/components/*.cxx src/components/*.cxx
LINK_LIBRARIES AthenaBaseComps Identifier FaserCaloIdentifier LINK_LIBRARIES AthenaBaseComps Identifier FaserCaloIdentifier
WaveformConditionsToolsLib StoreGateLib WaveRawEvent WaveformConditionsToolsLib StoreGateLib WaveRawEvent
FaserCaloSimEvent WaveDigiToolsLib) CaloReadoutGeometry FaserCaloSimEvent WaveDigiToolsLib)
atlas_install_python_modules( python/*.py ) atlas_install_python_modules( python/*.py )
...@@ -64,10 +64,5 @@ def CaloWaveformDigitizationOutputCfg(flags, **kwargs): ...@@ -64,10 +64,5 @@ def CaloWaveformDigitizationOutputCfg(flags, **kwargs):
ItemList = [ ItemList = [
"RawWaveformContainer#*" "RawWaveformContainer#*"
] ]
acc.merge(OutputStreamCfg(flags, "RDO")) acc.merge(OutputStreamCfg(flags, "RDO", ItemList))
ostream = acc.getEventAlgo("OutputStreamRDO")
# ostream.TakeItemsFromInput = True # Copies all data from input file to output
# ostream.TakeItemsFromInput = False
# Try turning this off
ostream.ItemList += ItemList
return acc return acc