Skip to content

Commit ead6206

Browse files
committed
add configuration with optimal threshold and a chained configuration
1 parent 428fd3a commit ead6206

File tree

3 files changed

+387
-0
lines changed

3 files changed

+387
-0
lines changed
Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
#
2+
# File: bdmparticleoptreconstructionchain.fcl
3+
# Brief: Runs Boosted Dark Matter particle selection and reconstruction algorithms with optimistic detection threshold
4+
# Author: Yun-Tse Tsai (yuntse@slac.stanford.edu)
5+
# Date: 20191104
6+
# Version: 1.0
7+
#
8+
# This is an example of "full chain" where generated particles are selected
9+
# and "reconstructed".
10+
#
11+
# Input:
12+
# - collection of simb::MCParticle
13+
#
14+
# Output:
15+
# - collection of bdm::SmearedMCParticle
16+
# - text file with the content of the original MCParticle list
17+
# - text file with the content of the reconstructed SmearedMCParticle
18+
#
19+
#
20+
# Changes:
21+
# 20191104 (yuntse@fnal.gov) [v1.0]
22+
# original version
23+
#
24+
#
25+
26+
#include "seedservice.fcl"
27+
#include "particleselectors.fcl"
28+
#include "smearedreconstructionsettings.fcl"
29+
30+
#-------------------------------------------------------------------------------
31+
process_name: RecoSmear
32+
33+
#-------------------------------------------------------------------------------
34+
# no source specified; use -s option from command line
35+
36+
services: {
37+
38+
message: {
39+
# debugModules: [ "*" ]
40+
destinations: {
41+
42+
# grab all the "DumpSmearedMCParticles" messages
43+
# and put them in DumpSmearedMCParticles.log
44+
DumpSmearedMCParticles: {
45+
append: false
46+
categories: {
47+
DumpSmearedMCParticles: { limit: -1 }
48+
default: { limit: 0 }
49+
}
50+
filename: "DumpSmearedMCParticles.log"
51+
threshold: "INFO"
52+
type: "file"
53+
} # DumpSmearedMCParticles
54+
55+
# grab all the "DumpMCParticles" messages
56+
# and put them in DumpMCParticles.log
57+
DumpMCParticles: {
58+
append: false
59+
categories: {
60+
DumpMCParticles: { limit: -1 }
61+
default: { limit: 0 }
62+
}
63+
filename: "DumpMCParticles.log"
64+
threshold: "INFO"
65+
type: "file"
66+
} # DumpMCParticles
67+
68+
LogStandardOut: {
69+
categories: {
70+
DumpMCParticles: { limit: 0 }
71+
DumpSmearedMCParticles: { limit: 0 }
72+
default: { limit: -1 }
73+
}
74+
threshold: "INFO"
75+
type: "cout"
76+
} # LogStandardOut
77+
78+
} # destinations
79+
} # message
80+
81+
RandomNumberGenerator: {}
82+
NuRandomService: @local::per_event_NuRandomService
83+
84+
} # services
85+
86+
87+
#-------------------------------------------------------------------------------
88+
physics: {
89+
90+
producers: {
91+
92+
selector: {
93+
module_type: ParticleSelector
94+
95+
particles: "largeant"
96+
97+
selector: @local::standard_select_final_state
98+
99+
100+
} # selector
101+
102+
smear: {
103+
module_type: SmearedReconstruction
104+
105+
particles: "selector"
106+
107+
reconstruction: @local::smeared_optimistic_reconstruction_dune10kt
108+
109+
} # smear
110+
111+
} # producers
112+
113+
analyzers: {
114+
115+
dumpmcparticles: {
116+
117+
module_type: DumpMCParticles
118+
119+
OutputCategory: "DumpMCParticles"
120+
InputParticles: "largeant"
121+
122+
} # dumpsmearedmcparticles
123+
124+
dumpsmearedmcparticles: {
125+
126+
module_type: DumpSmearedMCParticles
127+
128+
OutputCategory: "DumpSmearedMCParticles"
129+
InputParticles: "smear"
130+
131+
} # dumpsmearedmcparticles
132+
133+
} # analyzers
134+
135+
136+
reco: [ selector, smear ]
137+
dumpers: [ output ]
138+
stream: [ dumpmcparticles, dumpsmearedmcparticles ]
139+
140+
trigger_paths: [ reco ]
141+
end_paths: [ stream, dumpers ]
142+
143+
} # physics
144+
145+
146+
#-------------------------------------------------------------------------------
147+
outputs: {
148+
output: {
149+
module_type: RootOutput
150+
151+
fileName: "%ifb_%tc_%p.root"
152+
153+
} # output
154+
} # outputs
155+
156+
#-------------------------------------------------------------------------------
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#
2+
# File: bdmparticlereconstruction.fcl
3+
# Brief: Runs Boosted Dark Matter particle reconstruction algorithms.
4+
# Author: Gianluca Petrillo (petrillo@slac.stanford.edu)
5+
# Date: 20181006
6+
# Version: 1.0
7+
#
8+
# Input:
9+
# - collection of simb::MCParticle
10+
#
11+
# Output:
12+
# - collection of bdm::SmearedMCParticle
13+
#
14+
#
15+
# Changes:
16+
# 20171226 (petrillo@fnal.gov) [v1.0]
17+
# original version
18+
#
19+
#
20+
21+
#include "seedservice.fcl"
22+
#include "smearedreconstructionsettings.fcl"
23+
24+
#-------------------------------------------------------------------------------
25+
process_name: RecoSmear
26+
27+
#-------------------------------------------------------------------------------
28+
# no source specified; use -s option from command line
29+
30+
services: {
31+
32+
RandomNumberGenerator: {}
33+
NuRandomService: @local::per_event_NuRandomService
34+
35+
} # services
36+
37+
38+
#-------------------------------------------------------------------------------
39+
physics: {
40+
41+
producers: {
42+
43+
smear: {
44+
module_type: SmearedReconstruction
45+
46+
particles: "largeant"
47+
useTable: true
48+
49+
reconstruction: @local::smeared_reconstruction_table_dune10kt
50+
51+
} # smear
52+
53+
} # producers
54+
55+
reco: [ smear ]
56+
stream: [ output ]
57+
58+
trigger_paths: [ reco ]
59+
end_paths: [ stream ]
60+
61+
} # physics
62+
63+
64+
#-------------------------------------------------------------------------------
65+
outputs: {
66+
output: {
67+
module_type: RootOutput
68+
69+
fileName: "%ifb_%tc_%p.root"
70+
71+
} # output
72+
} # outputs
73+
74+
#-------------------------------------------------------------------------------
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
#
2+
# File: bdmparticlereconstructionchain.fcl
3+
# Brief: Runs Boosted Dark Matter particle selection and reconstruction algorithms.
4+
# Author: Gianluca Petrillo (petrillo@slac.stanford.edu)
5+
# Date: 20181006
6+
# Version: 1.0
7+
#
8+
# This is an example of "full chain" where generated particles are selected
9+
# and "reconstructed".
10+
#
11+
# Input:
12+
# - collection of simb::MCParticle
13+
#
14+
# Output:
15+
# - collection of bdm::SmearedMCParticle
16+
# - text file with the content of the original MCParticle list
17+
# - text file with the content of the reconstructed SmearedMCParticle
18+
#
19+
#
20+
# Changes:
21+
# 20181006 (petrillo@fnal.gov) [v1.0]
22+
# original version
23+
#
24+
#
25+
26+
#include "seedservice.fcl"
27+
#include "particleselectors.fcl"
28+
#include "smearedreconstructionsettings.fcl"
29+
30+
#-------------------------------------------------------------------------------
31+
process_name: RecoSmear
32+
33+
#-------------------------------------------------------------------------------
34+
# no source specified; use -s option from command line
35+
36+
services: {
37+
38+
message: {
39+
# debugModules: [ "*" ]
40+
destinations: {
41+
42+
# grab all the "DumpSmearedMCParticles" messages
43+
# and put them in DumpSmearedMCParticles.log
44+
DumpSmearedMCParticles: {
45+
append: false
46+
categories: {
47+
DumpSmearedMCParticles: { limit: -1 }
48+
default: { limit: 0 }
49+
}
50+
filename: "DumpSmearedMCParticles.log"
51+
threshold: "INFO"
52+
type: "file"
53+
} # DumpSmearedMCParticles
54+
55+
# grab all the "DumpMCParticles" messages
56+
# and put them in DumpMCParticles.log
57+
DumpMCParticles: {
58+
append: false
59+
categories: {
60+
DumpMCParticles: { limit: -1 }
61+
default: { limit: 0 }
62+
}
63+
filename: "DumpMCParticles.log"
64+
threshold: "INFO"
65+
type: "file"
66+
} # DumpMCParticles
67+
68+
LogStandardOut: {
69+
categories: {
70+
DumpMCParticles: { limit: 0 }
71+
DumpSmearedMCParticles: { limit: 0 }
72+
default: { limit: -1 }
73+
}
74+
threshold: "INFO"
75+
type: "cout"
76+
} # LogStandardOut
77+
78+
} # destinations
79+
} # message
80+
81+
RandomNumberGenerator: {}
82+
NuRandomService: @local::per_event_NuRandomService
83+
84+
} # services
85+
86+
87+
#-------------------------------------------------------------------------------
88+
physics: {
89+
90+
producers: {
91+
92+
selector: {
93+
module_type: ParticleSelector
94+
95+
particles: "largeant"
96+
97+
selector: @local::standard_select_final_state
98+
99+
100+
} # selector
101+
102+
smear: {
103+
module_type: SmearedReconstruction
104+
105+
particles: "selector"
106+
useTable: true
107+
108+
reconstruction: @local::smeared_reconstruction_table_dune10kt
109+
110+
} # smear
111+
112+
} # producers
113+
114+
analyzers: {
115+
116+
dumpmcparticles: {
117+
118+
module_type: DumpMCParticles
119+
120+
OutputCategory: "DumpMCParticles"
121+
InputParticles: "largeant"
122+
123+
} # dumpsmearedmcparticles
124+
125+
dumpsmearedmcparticles: {
126+
127+
module_type: DumpSmearedMCParticles
128+
129+
OutputCategory: "DumpSmearedMCParticles"
130+
InputParticles: "smear"
131+
132+
} # dumpsmearedmcparticles
133+
134+
} # analyzers
135+
136+
137+
reco: [ selector, smear ]
138+
dumpers: [ output ]
139+
stream: [ dumpmcparticles, dumpsmearedmcparticles ]
140+
141+
trigger_paths: [ reco ]
142+
end_paths: [ stream, dumpers ]
143+
144+
} # physics
145+
146+
147+
#-------------------------------------------------------------------------------
148+
outputs: {
149+
output: {
150+
module_type: RootOutput
151+
152+
fileName: "%ifb_%tc_%p.root"
153+
154+
} # output
155+
} # outputs
156+
157+
#-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)