-
Notifications
You must be signed in to change notification settings - Fork 2
/
gen_card.tcl
127 lines (94 loc) · 2.74 KB
/
gen_card.tcl
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#######################################
# Order of execution of various modules
#######################################
set ExecutionPath {
NeutrinoFilter
GenJetFinder
GenJetFinderAK8
GenMissingET
GenScalarHT
TreeWriter
}
#################
# Neutrino Filter
#################
module PdgCodeFilter NeutrinoFilter {
set InputArray Delphes/stableParticles
set OutputArray filteredParticles
set PTMin 0.0
add PdgCode {12}
add PdgCode {14}
add PdgCode {16}
add PdgCode {-12}
add PdgCode {-14}
add PdgCode {-16}
}
##############
## Scalar HT #
##############
module Merger GenScalarHT {
# add InputArray InputArray
add InputArray NeutrinoFilter/filteredParticles
set EnergyOutputArray energy
}
#####################
# MC truth jet finder
#####################
module FastJetFinder GenJetFinder {
set InputArray NeutrinoFilter/filteredParticles
set OutputArray jets
# algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
set JetAlgorithm 6
set ParameterR 0.4
set JetPTMin 15.0
}
module FastJetFinder GenJetFinderAK8 {
set InputArray NeutrinoFilter/filteredParticles
set OutputArray jetsAK8
# algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
set JetAlgorithm 6
set ParameterR 0.8
set ComputeNsubjettiness 1
set Beta 1.0
set AxisMode 4
set ComputeTrimming 1
set RTrim 0.2
set PtFracTrim 0.05
set ComputePruning 1
set ZcutPrun 0.1
set RcutPrun 0.5
set RPrun 0.8
set ComputeSoftDrop 1
set BetaSoftDrop 0.0
set SymmetryCutSoftDrop 0.1
set R0SoftDrop 0.8
set JetPTMin 200.0
}
#########################
# Gen Missing ET merger
########################
module Merger GenMissingET {
# add InputArray InputArray
add InputArray NeutrinoFilter/filteredParticles
set MomentumOutputArray momentum
}
###############################################################################################################
# StatusPidFilter: this module removes all generated particles except electrons, muons, taus, and status == 3 #
###############################################################################################################
module StatusPidFilter GenParticleFilter {
set InputArray Delphes/allParticles
set OutputArray filteredParticles
set PTMin 5.0
}
##################
# ROOT tree writer
##################
module TreeWriter TreeWriter {
# add Branch InputArray BranchName BranchClass
add Branch Delphes/allParticles Particle GenParticle
#add Branch GenParticleFilter/filteredParticles Particle GenParticle
add Branch GenJetFinder/jets GenJet Jet
add Branch GenJetFinderAK8/jetsAK8 GenJetAK8 Jet
add Branch GenMissingET/momentum GenMissingET MissingET
add Branch GenScalarHT/energy GenHT ScalarHT
}