test_channel_status.fcl
Go to the documentation of this file.
1 #
2 # File: test_channel_status.fcl
3 # Purpose: runs a module testing the channel status service
4 # Date: November 25th, 2014
5 # Author: petrillo@fnal.gov
6 # Version: 1.0
7 #
8 # The module is run on a custom configuration using SimpleChannelStatusService
9 # with some hard-coded channels (actually taken from ArgoNeuT configuration).
10 #
11 
12 #include "geometry.fcl"
13 
14 ################################################################################
15 BEGIN_PROLOG
16 #
17 # Channel status service configuration (from ArgoNeuT)
18 #
19 channel_status: {
20  service_provider: SimpleChannelStatusService
21 
22  # list of bad channels:
23  BadChannels: [ 22, 65, 237, 307, 308, 309, 310, 311, 410, 412, 438, 439, 448 ]
24 
25  # list of bad noisy channels:
26  NoisyChannels: [ 31, 41, 108, 120, 121, 124, 392, 399 ]
27 
28 } # channel_status
29 
30 END_PROLOG
31 ################################################################################
32 
33 
34 process_name: testChannelStatus
35 
36 services: {
37  message: {
38  destinations: {
39  # LogDebugFile: {
40  # type: "file"
41  # filename: "channelstatus.txt"
42  # append: false
43  # threshold: "INFO"
44  # categories:{
45  # default: { limit: 0 }
46  # SimpleChannelStatusTest: { limit: -1 }
47  # }
48  # } # LogDebugFile
49  LogStandardOut: {
50  type: "cout"
51  threshold: "INFO"
52  categories:{
53  default:{ limit: -1 }
54  RecoBaseDefaultCtor: { limit: 0 }
55  AnaBaseDefaultCtor: { limit: 0 }
56  GeometryBadInputPoint: { limit: 5 timespan: 1000}
57  }
58  } # LogStandardOut
59  LogStandardError: {
60  type: "cerr"
61  threshold: "ERROR"
62  categories:{
63  default:{ }
64  }
65  } # LogStandardError
66  } # destinations
67  } # message
68 
69  @table::standard_geometry_services # from geometry.fcl
70  ChannelStatusService: @local::channel_status
71 
72 } # services
73 
74 source: {
75  module_type: EmptyEvent
76  maxEvents: 1 # Number of events to create
77 } # source
78 
79 outputs: { }
80 
81 physics: {
82 
83  analyzers: {
84  channelstatustest: {
85  module_type: "SimpleChannelStatusTest"
86 
87  # list here some channels with known status
88  TestGoodChannels: [ 5, 10, 20, 500000 ]
89  TestBadChannels: [ 22, 308, 448 ]
90  TestNoisyChannels: [ 31, 120, 399 ]
91 
92  } # channelstatustest
93  } # analyzers
94 
95  ana: [ channelstatustest ]
96 
97  trigger_paths: [ ]
98  end_paths: [ ana ]
99 } # physics