- Generate arguments files for simulationAnalysis_Szymon_Batch_TOF.
python ./ArgumentListFiles/generate-MCfilelists-simulationAnalysis.py
- Note that the program simulationAnalysis_Szymon_Batch_TOF does not have to be changed and recompiled to handle MC files from different productions.
- The argument files tell simulationAnalysis_Szymon_Batch_TOF how to handle everything.
- Submit jobs to the HTCondor cluster using runHTC_simulationTOFAnalysis.sub:
condor_submit runHTC_simulationTOFAnalysis.sub
- The output files will be availabe in EOS location:
/eos/experiment/na61/user/a/ashukla/Results/Simulation/SimulationAnalysis
- Of course, some jobs will fail. ~10%. Those jobs need to be resubmitted. Also, some completed job will produce ROOT files that cannot be opened correctly, and those jobs also need to be re-run. To find bad files, and to generate redo argument files:
cd checkCondorOutput
python generate_condor_simulationAnalysis_argumentsList_redo.py ../ArgumentListFiles/filenames_simulationAnalysis_EPOS_d.txt
- Change the arguments option in runHTC_simulationTOFAnalysis.sub, to the newly generated xxx_redo.txt file. Resubmit jobs to the cluster.
- Repeat Step 4 and 5, till all MC files have been correctly analyzed.
- Use
hadd
to combine all the files, and put the combined file somewhere safe.