forked from acarvalh/VLQatNLO_pheno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen_card.tcl
109 lines (78 loc) · 2.42 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
#######################################
# Order of execution of various modules
#######################################
set ExecutionPath {
NeutrinoFilter
GenJetFinder
GenJetFinderAK8
GenMissingET
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}
}
#####################
# 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 JetPTMin 200.0
}
#########################
# Gen Missing ET merger
########################
module Merger GenMissingET {
# add InputArray InputArray
add InputArray NeutrinoFilter/filteredParticles
set MomentumOutputArray momentum
}
#########################
# 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 FatJet
add Branch GenMissingET/momentum GenMissingET MissingET
}