Skip to content
Snippets Groups Projects
Commit 3d2ad8a9 authored by Shaun Roe's avatar Shaun Roe Committed by Frank Winklmeier
Browse files

main-BCMPrime_introduction-SimuJobTransforms

main-BCMPrime_introduction-SimuJobTransforms
parent f8773a22
No related branches found
No related tags found
33 merge requests!78241Draft: FPGATrackSim: GenScan code refactor,!78236Draft: Switching Streams https://its.cern.ch/jira/browse/ATR-27417,!78056AFP monitoring: new synchronization and cleaning,!78041AFP monitoring: new synchronization and cleaning,!77990Updating TRT chip masks for L1TRT trigger simulation - ATR-28372,!77733Draft: add new HLT NN JVT, augmented with additional tracking information,!77731Draft: Updates to ZDC reconstruction,!77728Draft: updates to ZDC reconstruction,!77522Draft: sTGC Pad Trigger Emulator,!76725ZdcNtuple: Fix cppcheck warning.,!76611L1CaloFEXByteStream: Fix out-of-bounds array accesses.,!76475Punchthrough AF3 implementation in FastG4,!76474Punchthrough AF3 implementation in FastG4,!76343Draft: MooTrackBuilder: Recalibrate NSW hits in refine method,!75729New implementation of ZDC nonlinear FADC correction.,!75703Draft: Update to HI han config for HLT jets,!75184Draft: Update file heavyions_run.config,!74430Draft: Fixing upper bound for Delayed Jet Triggers,!73963Changing the path of the histograms to "Expert" area,!73875updating ID ART reference plots,!73874AtlasCLHEP_RandomGenerators: Fix cppcheck warnings.,!73449Add muon detectors to DarkJetPEBTLA partial event building,!73343Draft: [TrigEgamma] Add photon ringer chains on bootstrap mechanism,!72972Update L1Calo Jet Trigger Efficiency Monitoring algorithm,!72336Fixed TRT calibration crash,!72176Draft: Improving L1TopoOnline chain that now gets no-empty plots. Activating it by default,!72012Draft: Separate JiveXMLConfig.py into Config files,!71876Fix MET trigger name in MissingETMonitoring,!71820Draft: Adding new TLA End-Of-Fill (EOF) chains and removing obsolete DIPZ chains,!71279Draft: ATR-29330: Move L1_4J15 and the HLT chains seeded by it in the MC Menu,!70990Updates to pulse analysis to support new 2016 p+Pb analysis and 2023 Pb+Pb analysis,!70948[TrigEGam] Adding egamma chains to be monitored,!70759main-BCMPrime_introduction-SimuJobTransforms
......@@ -48,18 +48,17 @@ StatusCode BCMPrimeDetectorTool::create()
// The & takes the address of the GeoVPhysVol
GeoPhysVol *world = &*theExpt->getPhysVol();
auto *manager = new InDetDD::BCMPrimeDetectorManager(m_detectorName);
InDetDD::BCMPrimeGmxInterface gmxInterface(manager);
// Load the geometry, create the volume,
// node,table are the location in the DB to look for the clob
// empty strings are the (optional) containing detector and envelope names
// allowed to pass a null sqlreader ptr - it will be used to steer the source of the geometry
const GeoVPhysVol* topVolume = createTopVolume(world, gmxInterface, node, table,"","",sqlreader);
const GeoVPhysVol* topVolume = createTopVolume(world, gmxInterface, node, table,"ITkPixel","ITkPixelDetector",sqlreader);
if (topVolume) { //see that a valid pointer is returned
manager->addTreeTop(topVolume);
} else {
ATH_MSG_FATAL("Could not find the Top Volume!!!");
ATH_MSG_FATAL("Could not find the BCMPrime Top Volume!!!");
return StatusCode::FAILURE;
}
......
......@@ -120,6 +120,7 @@ void GeoModelXmlTool::createVolume(GeoPhysVol* world, GmxInterface& gmxInterface
} else {
flags = 0;
gmxInput = PathResolver::find_file(m_gmxFilename, "DATAPATH");
ATH_MSG_INFO("Getting " << m_detectorName.value() << " GeoModelXml description from file "<<gmxInput);
if (gmxInput.empty()) { // File not found
std::string errMessage("GeoModelXmlTool::createTopVolume: Unable to find file " + m_gmxFilename +
" with PathResolver; check filename and DATAPATH environment variable");
......
......@@ -77,6 +77,15 @@ def PLRGeoDetectorToolCfg(flags, name='PLR', **kwargs):
kwargs.setdefault("DetectorName", "PLR")
result.setPrivateTools(result.popToolsAndMerge(GeoDetectorToolCfg(flags, name, **kwargs)))
return result
def BCMPrimeGeoDetectorToolCfg(flags, name='BCMPrime', **kwargs):
#set up geometry
from BCMPrimeGeoModelXml.BCMPrimeGeoModelConfig import BCMPrimeGeometryCfg
result = BCMPrimeGeometryCfg(flags)
kwargs.setdefault("DetectorName", "BCMPrime")
result.setPrivateTools(result.popToolsAndMerge(GeoDetectorToolCfg(flags, name, **kwargs)))
return result
def ITkPixelGeoDetectorToolCfg(flags, name='ITkPixel', **kwargs):
......@@ -237,6 +246,9 @@ def ITKEnvelopeCfg(flags, name="ITK", **kwargs):
if flags.Detector.GeometryPLR:
toolPLR = result.popToolsAndMerge(PLRGeoDetectorToolCfg(flags))
SubDetectorList += [toolPLR]
if flags.Detector.GeometryBCMPrime:
toolBCMPrime = result.popToolsAndMerge(BCMPrimeGeoDetectorToolCfg(flags))
SubDetectorList += [toolBCMPrime]
# TODO: for now HGTD is also here
if flags.Detector.GeometryHGTD:
toolHGTD = result.popToolsAndMerge(HGTDGeoDetectorToolCfg(flags))
......
......@@ -19,7 +19,7 @@ def RenameHitCollectionsOnReadCfg(flags):
if flags.Detector.EnableTRT:
result.merge(InputRenameCfg("TRTUncompressedHitCollection","TRTUncompressedHits","TRTUncompressedHitsOLD"))
if flags.Detector.EnableBCMPrime:
pass #TODO
result.merge(InputRenameCfg("SiHitCollection","BCMPrimeHits","BCMPrimeHitsOLD"))
if flags.Detector.EnableITkPixel:
result.merge(InputRenameCfg("SiHitCollection","ITkPixelHits","ITkPixelHitsOLD"))
if flags.Detector.EnableITkStrip:
......
......@@ -135,6 +135,20 @@ def PLR_HitAnalysisCfg(flags, name='PLR_HitAnalysis', **kwargs):
acc.merge(HitAnalysisOutputCfg(flags))
return acc
def BCMPrimeHitAnalysisCfg(flags, name='BCMPrimeHitAnalysis', **kwargs):
from BCMPrimeGeoModelXml.BCMPrimeGeoModelConfig import BCMPrimeGeometryCfg
acc = BCMPrimeGeometryCfg(flags)
kwargs.setdefault('CollectionName', 'BCMPrimeHits')
kwargs.setdefault('HistPath', '/SiHitAnalysis/histos/')
kwargs.setdefault('NtuplePath', '/SiHitAnalysis/ntuples/')
acc.addEventAlgo(CompFactory.SiHitAnalysis(name, **kwargs))
acc.merge(HitAnalysisOutputCfg(flags))
return acc
def SiHitAnalysisCfg(flags):
......@@ -151,6 +165,9 @@ def SiHitAnalysisCfg(flags):
if flags.Detector.EnablePLR:
acc.merge(PLR_HitAnalysisCfg(flags))
if flags.Detector.EnableBCMPrime:
acc.merge(BCMPrimeHitAnalysisCfg(flags))
return acc
......
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