Skip to content

Commit b93fd85

Browse files
Turn off vd steps by default but add a fcl file that demonstrates how to use it
1 parent a125640 commit b93fd85

4 files changed

Lines changed: 19 additions & 1 deletion

File tree

fcl/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ where ```tier``` is the data tier of the input dataset, ```type``` is the type o
2222
| from_mcs-mockdata_separateTrkBranches.fcl | mock datasets | example on how to separate the tracks into separate branches again|
2323
| from_mcs-mockdata_selectorExample.fcl | mock datasets | example on how to use a selector to select certain types of tracks before putting them into the EventNtuple |
2424
| from_mcs-mixed_trkQualCompare.fcl | reconstructed mixed (i.e. primary+background hits) datasets | shows how to output result of more than one TrkQual |
25+
| from_mcs-primary_addVDSteps.fcl | reconstructed primary (i.e. no background hits) datasets | shows how to add the branch for virtual detector steps |
2526
| from_mcs-DeMCalib.fcl | reconstructed primary or mixed datasets | only writes one track per event |
2627
| from_mcs-OffSpill.fcl | off spill datasets | only contains ```CentralHelix``` tracks (i.e. field-on cosmics) |
2728
| from_dig-mockdata.fcl | mock datasets (digis) | runs reconstruction and creates EventNtuple in one job |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include "EventNtuple/fcl/from_mcs-primary.fcl"
2+
3+
physics.analyzers.EventNtuple.StepPointMCTags : [ "compressRecoMCs:virtualdetector" ]

fcl/prolog.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ EventNtupleMaker : {
319319
ExtraMCStepCollectionTags : []
320320
SurfaceStepCollectionTag : "compressRecoMCs"
321321
FitType : LoopHelix
322-
StepPointMCTags : [ "compressRecoMCs:virtualdetector" ]
322+
StepPointMCTags : [ ]
323323
}
324324
# instance for processing trigger (digitization) output from simulation
325325
EventNtupleMakerTTMC: {

validation/test_fcls.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# test_fcls.sh - runs fcl files to make sure that they complete successfully
33
# Note: requires relevant filelists in a directory above this one
44
#
5+
if [ $# -ne 1 ]; then
6+
echo "Usage: . ./validation/test_fcls.sh MDC202X"
7+
return
8+
fi
59
vMDC=$1
610

711
log_file="test_fcls.log"
@@ -137,6 +141,16 @@ else
137141
echo "FAIL"
138142
fi
139143

144+
echo -n "from_mcs-primary_addVDSteps.fcl... "
145+
echo "mu2e -c fcl/from_mcs-primary_addVDSteps.fcl -S ../filelists/$primary_dataset.list --TFileName nts.ntuple.primaryVDSteps.root -n 100" >> ${log_file} 2>&1
146+
mu2e -c fcl/from_mcs-primary_addVDSteps.fcl -S ../filelists/$primary_dataset.list --TFileName nts.ntuple.primaryVDSteps.root -n 100 >> ${log_file} 2>&1
147+
if [ $? == 0 ]; then
148+
echo "OK"
149+
else
150+
echo "FAIL"
151+
fi
152+
153+
140154
echo -n "from_dig-mockdata.fcl... "
141155
echo "mu2e -c fcl/from_dig-mockdata.fcl -S ../filelists/${digi_dataset}.list --TFileName nts.ntuple.dig.root -n 100" >> ${log_file} 2>&1
142156
mu2e -c fcl/from_dig-mockdata.fcl -S ../filelists/${digi_dataset}.list --TFileName nts.ntuple.dig.root -n 100 >> ${log_file} 2>&1

0 commit comments

Comments
 (0)