test_totallycheattracker.fcl
Go to the documentation of this file.
1 #
2 # File: test_totallycheattracker.fcl
3 # Brief: Runs a "test" on TotallyCheatTracker module.
4 # Author: Gianluca Petrillo (petrillo@fnal.gov)
5 # Date: 20171227
6 # Version: 1.0
7 #
8 # Description:
9 # The test creates some particles (`simb::MCParticle` collection), processes
10 # them into cheat tracks and prints the resulting tracks.
11 # The only check is on the number of produced tracks.
12 #
13 # Input:
14 # - nothing
15 #
16 # Output:
17 # - `simb::MCParticle`, `lar::example::CheatTrack` and associations into
18 # `CheatTrkTest.root` file.
19 #
20 #
21 # Changes:
22 # 20171227 (petrillo@fnal.gov) [v1.0]
23 # original version
24 #
25 #
26 
27 #-------------------------------------------------------------------------------
28 process_name: CheatTrkTest
29 
30 #-------------------------------------------------------------------------------
31 source: {
32  module_type: EmptyEvent
33  maxEvents: 1
34 }
35 
36 #-------------------------------------------------------------------------------
37 physics: {
38 
39  producers: {
40 
41  particler: {
42  module_type: ParticleMaker
43 
44  particles: [
45  { length: 1.0 energy: 3.0 type: 11 },
46  { length: 2.0 energy: 2.0 type: 13 },
47  { length: 3.0 energy: 1.0 type: -11 },
48  { length: 4.0 energy: 2.0 type: -13 },
49  { length: 5.0 energy: 3.0 type: 211 },
50  { length: 6.0 energy: 4.0 type: 111 },
51  { length: 7.0 energy: 3.0 type: -211 },
52  { length: 8.0 energy: 2.0 type: 2112 },
53  { length: 9.0 energy: 1.0 type: 2212 }
54  ] # particles
55 
56  } # particler
57 
58  cheattrk: {
59  module_type: TotallyCheatTracker
60 
61  particles: "particler"
62 
63  minLength: 3.5 # cm
64  minEnergy: 1.5 # GeV
65 
66  } # cheattrk
67 
68  } # producers
69 
70  analyzers: {
71  dumper: {
72  module_type: DumpCheatTracks
73 
74  tracks: cheattrk
75 
76  expectedCount: 5
77 
78  } # dumper
79  } # analyzers
80 
81  reco: [ particler, cheattrk ]
82  dump: [ dumper ]
83  stream: [ output]
84 
85  trigger_paths: [ reco ]
86  end_paths: [ dump, stream ]
87 
88 } # physics
89 
90 
91 #-------------------------------------------------------------------------------
92 outputs: {
93  output: {
94  module_type: RootOutput
95  fileName: "CheatTrkTest.root"
96  }
97 } # outputs
98 
99 #-------------------------------------------------------------------------------