-
Notifications
You must be signed in to change notification settings - Fork 0
/
RunSingleParticleReconstruction.sh
executable file
·96 lines (69 loc) · 2.74 KB
/
RunSingleParticleReconstruction.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
export MARLIN_DLL=/home/remi/git/ArborPFA/lib/libSDHCALArborProcessor.so
energy=$1
inputFile=$2
algorithm="ArborPFA"
#algorithm="PandoraPFA"
dataType="MC"
#dataType="DATA"
inputCollection="HCALBarrel"
#inputCollection="SDHCAL_HIT"
pandoraSettingsFile="/home/remi/git/ArborPFA/xml/SDHCALArborPandoraSettings.xml"
#pandoraSettingsFile="/home/remi/git/ArborPFA/xml/StandardReconstructionPandoraSettings.xml"
gearFileForReconstruction="/home/remi/git/ArborPFA/xml/SDHCALGearFile.xml"
specifier="${energy}_GeV_${algorithm}_${dataType}"
rootOutputFile="SingleParticle_${specifier}.root"
if [ "$#" -ne "2" ]
then
echo "Incorrect number of argument. Expected 2 (energy, input file)"
exit 1
fi
cat > MarlinXML_singleParticle_${specifier}.xml << EOF
<marlin>
<execute>
<processor name="MyMarlinSDHCALArbor"/>
</execute>
<global>
<parameter name="LCIOInputFiles">
${inputFile}
</parameter>
<parameter name="GearXMLFile" value="${gearFileForReconstruction}"/>
<parameter name="MaxRecordNumber" value="0"/>
<parameter name="SkipNEvents" value="0"/>
<parameter name="SupressCheck" value="false"/>
<parameter name="Verbosity" options="DEBUG0-4,MESSAGE0-4,WARNING0-4,ERROR0-4,SILENT"> MESSAGE </parameter>
<parameter name="RandomSeed" value="1234567890" />
</global>
<processor name="MyMarlinSDHCALArbor" type="SDHCALArborProcessor">
<parameter name="PandoraSettingsXmlFile" type="String"> ${pandoraSettingsFile} </parameter>
<!-- Collection names -->
<parameter name="HCalCaloHitCollection" type="String"> ${inputCollection} </parameter>
<parameter name="GenericObjectTrackInfoCollection" type="String"> SDHCALTrackInfo </parameter>
<parameter name="ClusterCollectionName" type="String"> ArborPFAClusterCollection </parameter>
<parameter name="PFOCollectionName" type="String"> ArborPFAPfoCollection </parameter>
<parameter name="AbsorberRadiationLength" type="float">0.2857</parameter>
<parameter name="SDHCALEnergyFactors" type="FloatVec">
1.0
2.0
3.0
</parameter>
<parameter name="SDHCALEnergyConstants" type="FloatVec">
0.0227148
4.77839e-05
-4.05221e-08
0.112287
6.24094e-06
2.9642e-08
0.156503
0.00010774
4.97735e-08
</parameter>
<parameter name="IsSingleParticleStudy" type="bool"> true </parameter>
<parameter name="SingleParticleMomentum" type="float"> ${energy} </parameter>
<parameter name="RootOuputFileName" type ="string"> ${rootOutputFile} </parameter>
<parameter name="RootTreeName" type ="string"> PFOAnalysis </parameter>
<parameter name="Verbosity" options="DEBUG0-4,MESSAGE0-4,WARNING0-4,ERROR0-4,SILENT"> MESSAGE DEBUG </parameter>
</processor>
</marlin>
EOF
Marlin MarlinXML_singleParticle_${specifier}.xml
rm MarlinXML_singleParticle_${specifier}.xml