Skip to content
Snippets Groups Projects
Commit 9b38458d authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Reenable inclusive kinematics

parent 4ca6e19f
Branches
No related tags found
1 merge request!145Reenable inclusive kinematics
......@@ -92,11 +92,11 @@ for rec in options/*.py ; do
[[ $(basename ${rec} .py) =~ (.*)\.(.*) ]] && tag=".${BASH_REMATCH[2]}"
JUGGLER_REC_FILE=${JUGGLER_REC_FILE/.root/${tag:-}.root} \
gaudirun.py ${rec}
done
if [ "$?" -ne "0" ] ; then
echo "ERROR running juggler"
exit 1
fi
done
## =============================================================================
## Step 4: Analysis
......
......@@ -121,11 +121,11 @@ if [[ -n "${DO_REC}" || -n "${DO_ALL}" ]] ; then
[[ $(basename ${rec} .py) =~ (.*)\.(.*) ]] && tag=".${BASH_REMATCH[2]}"
JUGGLER_REC_FILE=${JUGGLER_REC_FILE/.root/${tag:-}.root} \
gaudirun.py ${rec}
done
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running juggler"
exit 1
fi
done
root_filesize=$(stat --format=%s "${JUGGLER_REC_FILE}")
if [[ "${JUGGLER_N_EVENTS}" -lt "500" ]] ; then
......
......@@ -90,11 +90,11 @@ for rec in options/*.py ; do
[[ $(basename ${rec} .py) =~ (.*)\.(.*) ]] && tag=".${BASH_REMATCH[2]}"
JUGGLER_REC_FILE=${JUGGLER_REC_FILE/.root/${tag:-}.root} \
gaudirun.py ${rec}
done
if [ "$?" -ne "0" ] ; then
echo "ERROR running juggler, both attempts failed"
exit 1
fi
done
## =============================================================================
## Step 4: Analysis
......
......@@ -121,11 +121,11 @@ if [[ -n "${DO_REC}" || -n "${DO_ALL}" ]] ; then
[[ $(basename ${rec} .py) =~ (.*)\.(.*) ]] && tag=".${BASH_REMATCH[2]}"
JUGGLER_REC_FILE=${JUGGLER_REC_FILE/.root/${tag:-}.root} \
gaudirun.py ${rec}
done
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running juggler"
exit 1
fi
done
root_filesize=$(stat --format=%s "${JUGGLER_REC_FILE}")
if [[ "${JUGGLER_N_EVENTS}" -lt "500" ]] ; then
......
......@@ -120,11 +120,11 @@ if [[ -n "${DO_REC}" || -n "${DO_ALL}" ]] ; then
[[ $(basename ${rec} .py) =~ (.*)\.(.*) ]] && tag=".${BASH_REMATCH[2]}"
JUGGLER_REC_FILE=${JUGGLER_REC_FILE/.root/${tag:-}.root} \
gaudirun.py ${rec}
done
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running juggler"
exit 1
fi
done
root_filesize=$(stat --format=%s "${JUGGLER_REC_FILE}")
if [[ "${JUGGLER_N_EVENTS}" -lt "500" ]] ; then
......
......@@ -121,7 +121,7 @@ from Configurables import Jug__Fast__SmearedFarForwardParticles as FFSmearedPart
#from Configurables import Jug__Fast__MatchClusters as MatchClusters
#from Configurables import Jug__Fast__ClusterMerger as ClusterMerger
#from Configurables import Jug__Fast__TruthEnergyPositionClusterMerger as EnergyPositionClusterMerger
#from Configurables import Jug__Fast__InclusiveKinematicsTruth as InclusiveKinematicsTruth
from Configurables import Jug__Fast__InclusiveKinematicsTruth as InclusiveKinematicsTruth
from Configurables import Jug__Fast__TruthClustering as TruthClustering
from Configurables import Jug__Digi__SimTrackerHitsCollector as SimTrackerHitsCollector
......@@ -141,11 +141,11 @@ from Configurables import Jug__Reco__TrackParamVertexClusterInit as TrackParamVe
from Configurables import Jug__Reco__CKFTracking as CKFTracking
from Configurables import Jug__Reco__ParticlesFromTrackFit as ParticlesFromTrackFit
# from Configurables import Jug__Reco__TrajectoryFromTrackFit as TrajectoryFromTrackFit
#from Configurables import Jug__Reco__InclusiveKinematicsElectron as InclusiveKinematicsElectron
#from Configurables import Jug__Reco__InclusiveKinematicsDA as InclusiveKinematicsDA
#from Configurables import Jug__Reco__InclusiveKinematicsJB as InclusiveKinematicsJB
#from Configurables import Jug__Reco__InclusiveKinematicsSigma as InclusiveKinematicsSigma
#from Configurables import Jug__Reco__InclusiveKinematicseSigma as InclusiveKinematicseSigma
from Configurables import Jug__Reco__InclusiveKinematicsElectron as InclusiveKinematicsElectron
from Configurables import Jug__Reco__InclusiveKinematicsDA as InclusiveKinematicsDA
from Configurables import Jug__Reco__InclusiveKinematicsJB as InclusiveKinematicsJB
from Configurables import Jug__Reco__InclusiveKinematicsSigma as InclusiveKinematicsSigma
from Configurables import Jug__Reco__InclusiveKinematicseSigma as InclusiveKinematicseSigma
from Configurables import Jug__Reco__FarForwardParticles as FFRecoRP
from Configurables import Jug__Reco__FarForwardParticlesOMD as FFRecoOMD
......@@ -243,11 +243,11 @@ dummy = MC2DummyParticle("dummy",
algorithms.append(dummy)
# Truth level kinematics
#truth_incl_kin = InclusiveKinematicsTruth("truth_incl_kin",
# inputMCParticles="MCParticles",
# outputData="InclusiveKinematicsTruth"
#)
#algorithms.append(truth_incl_kin)
truth_incl_kin = InclusiveKinematicsTruth("truth_incl_kin",
inputMCParticles = "MCParticles",
outputInclusiveKinematics = "InclusiveKinematicsTruth"
)
algorithms.append(truth_incl_kin)
## Roman pots
ffi_romanpot_coll = SimTrackerHitsCollector("ffi_romanpot_coll",
......@@ -867,7 +867,7 @@ algorithms.append(drich_reco)
# FIXME
#drich_cluster = PhotoRingClusters("drich_cluster",
# inputHitCollection=pmtreco.outputHitCollection,
# #inputTrackCollection="ReconstructedParticles",
# #inputTrackCollection=parts_with_truth_pid.outputParticles,
# outputClusterCollection="ForwardRICHClusters")
# MRICH
......@@ -883,36 +883,41 @@ if 'acadia' in detector_version:
algorithms.append(mrich_reco)
# Inclusive kinematics
#incl_kin_electron = InclusiveKinematicsElectron("incl_kin_electron",
# inputMCParticles="MCParticles",
# inputParticles="ReconstructedParticles",
# outputData="InclusiveKinematicsElectron"
#)
#algorithms.append(incl_kin_electron)
#incl_kin_jb = InclusiveKinematicsJB("incl_kin_jb",
# inputMCParticles="MCParticles",
# inputParticles="ReconstructedParticles",
# outputData="InclusiveKinematicsJB"
#)
#algorithms.append(incl_kin_jb)
#incl_kin_da = InclusiveKinematicsDA("incl_kin_da",
# inputMCParticles="MCParticles",
# inputParticles="ReconstructedParticles",
# outputData="InclusiveKinematicsDA"
#)
#algorithms.append(incl_kin_da)
#incl_kin_sigma = InclusiveKinematicsSigma("incl_kin_sigma",
# inputMCParticles="MCParticles",
# inputParticles="ReconstructedParticles",
# outputData="InclusiveKinematicsSigma"
#)
#algorithms.append(incl_kin_sigma)
#incl_kin_esigma = InclusiveKinematicseSigma("incl_kin_esigma",
# inputMCParticles="MCParticles",
# inputParticles="ReconstructedParticles",
# outputData="InclusiveKinematicseSigma"
#)
#algorithms.append(incl_kin_esigma)
incl_kin_electron = InclusiveKinematicsElectron("incl_kin_electron",
inputMCParticles = "MCParticles",
inputReconstructedParticles = parts_with_truth_pid.outputParticles,
inputParticleAssociations = parts_with_truth_pid.outputAssociations,
outputInclusiveKinematics = "InclusiveKinematicsElectron"
)
algorithms.append(incl_kin_electron)
incl_kin_jb = InclusiveKinematicsJB("incl_kin_jb",
inputMCParticles = "MCParticles",
inputReconstructedParticles = parts_with_truth_pid.outputParticles,
inputParticleAssociations = parts_with_truth_pid.outputAssociations,
outputInclusiveKinematics = "InclusiveKinematicsJB"
)
algorithms.append(incl_kin_jb)
incl_kin_da = InclusiveKinematicsDA("incl_kin_da",
inputMCParticles = "MCParticles",
inputReconstructedParticles = parts_with_truth_pid.outputParticles,
inputParticleAssociations = parts_with_truth_pid.outputAssociations,
outputInclusiveKinematics = "InclusiveKinematicsDA"
)
algorithms.append(incl_kin_da)
incl_kin_sigma = InclusiveKinematicsSigma("incl_kin_sigma",
inputMCParticles = "MCParticles",
inputReconstructedParticles = parts_with_truth_pid.outputParticles,
inputParticleAssociations = parts_with_truth_pid.outputAssociations,
outputInclusiveKinematics = "InclusiveKinematicsSigma"
)
algorithms.append(incl_kin_sigma)
incl_kin_esigma = InclusiveKinematicseSigma("incl_kin_esigma",
inputMCParticles = "MCParticles",
inputReconstructedParticles = parts_with_truth_pid.outputParticles,
inputParticleAssociations = parts_with_truth_pid.outputAssociations,
outputInclusiveKinematics = "InclusiveKinematicseSigma"
)
algorithms.append(incl_kin_esigma)
# Output
podout = PodioOutput("out", filename=output_rec)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment