Skip to content
Snippets Groups Projects
Commit 3b8c5351 authored by Ioannis Maznas's avatar Ioannis Maznas Committed by Walter Lampl
Browse files

EFTracking : FPGATrackSim : Enable truth info for RDO analysis and add output check

EFTracking : FPGATrackSim : Enable truth info for RDO analysis and add output check
parent 9d8c7e60
No related branches found
No related tags found
No related merge requests found
......@@ -282,26 +282,6 @@ def FPGATrackSimReadInputCfg(flags):
result.addPublicTool(InputTool, primary=True)
return result
def FPGATrackSimSGInputToolCfg(flags):
"""In this cotext the tool is configured to only read RDO hits"""
result = ComponentAccumulator()
tool = CompFactory.FPGATrackSimSGToRawHitsTool(
TruthToTrackTool=None,
Extrapolator=None,
pixelClustersName="",
SCT_ClustersName="",
OfflineTracks="",
McTruth="",
dumpHitsOnTracks=False,
dumpTruthIntersections=False,
ReadOfflineClusters=False,
ReadTruthTracks=False,
ReadOfflineTracks=False
)
result.addPublicTool(tool, primary=True)
return result
def prepareFlagsForFPGATrackSimLogicalHistProcessAlg(flags):
newFlags = flags.cloneAndReplace("Trigger.FPGATrackSim.ActiveConfig", "Trigger.FPGATrackSim." + flags.Trigger.FPGATrackSim.algoTag)
......@@ -342,6 +322,7 @@ def FPGATrackSimLogicalHistProcessAlgCfg(inputFlags):
result.popToolsAndMerge(ActsTrackingGeometryToolCfg(flags))
theFPGATrackSimLogicalHistProcessAlg.InputTool = ""
theFPGATrackSimLogicalHistProcessAlg.InputTool2 = ""
from FPGATrackSimSGInput.FPGATrackSimSGInputConfig import FPGATrackSimSGInputToolCfg
theFPGATrackSimLogicalHistProcessAlg.SGInputTool = result.getPrimaryAndMerge(FPGATrackSimSGInputToolCfg(flags))
# TODO, will need also the alternative TOOL implementation
......
......@@ -5,7 +5,7 @@ set -e
GEO_TAG="ATLAS-P2-RUN4-03-00-00"
export CALIBPATH=/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/PhaseIIUpgrade/EFTracking/${GEO_TAG}/:$CALIBPATH
RDO="/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/PhaseIIUpgrade/RDO/${GEO_TAG}/mc21_14TeV.900498.PG_single_muonpm_Pt100_etaFlatnp0_43.recon.RDO.e8481_s4149_r14697/RDO.33675668._000016.pool.root.1"
RDO="/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/PhaseIIUpgrade/EFTracking/${GEO_TAG}/RDO/reg0_singlemu.root"
RDO_EVT=200
BANKS="/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/PhaseIIUpgrade/EFTracking/${GEO_TAG}/banks_9L/"
MAPS="maps_9L/"
......@@ -16,7 +16,24 @@ python -m FPGATrackSimConfTools.FPGATrackSimAnalysisConfig \
--evtMax=${RDO_EVT} \
Trigger.FPGATrackSim.mapsDir=${MAPS} \
Trigger.FPGATrackSim.tracking=True \
Trigger.FPGATrackSim.sampleType='skipTruth' \
Trigger.FPGATrackSim.sampleType='singleMuons' \
Trigger.FPGATrackSim.bankDir=${BANKS}
ls -l
echo "... analysis on RDO, this part is done ..."
echo "... analysis output verification"
cat << EOF > checkHist.C
{
_file0->cd("FPGATrackSimLogicalHitsProcessAlg");
TH1* h = (TH1*)gDirectory->Get("nroads_1st");
if ( h == nullptr )
throw std::runtime_error("oh dear, after all of this there is no roads histogram");
h->Print();
if ( h->GetEntries() == 0 ) {
throw std::runtime_error("oh dear, after all of this there are zero roads");
}
}
EOF
root -b -q monitoring.root checkHist.C
echo "... analysis output verification, this part is done ..."
\ No newline at end of file
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