artdaq  v3_05_00
ArtConfig.hh
1 #include "fhiclcpp/types/Atom.h"
2 #include "fhiclcpp/types/Table.h"
3 #include "fhiclcpp/types/OptionalAtom.h"
4 #include "fhiclcpp/types/OptionalTable.h"
5 #include "artdaq/ArtModules/NetMonTransportService.h"
6 #include "art/Framework/Core/OutputModule.h"
7 # include "art/Framework/IO/ClosingCriteria.h"
8 
9 namespace art {
14  {
16  fhicl::Atom<bool> errorOnFailureToPut{ fhicl::Name{"errorOnFailureToPut"}, fhicl::Comment{"This parameter is necessary for correct function of artdaq. Do not modify."}, false };
17  };
22  {
23  fhicl::Table<ServicesSchedulerConfig> scheduler{ fhicl::Name{"scheduler"} };
24  fhicl::OptionalTable<NetMonTransportService::Config> netMonTransportServiceInterface{ fhicl::Name{ "NetMonTransportServiceInterface" } };
25  };
26 
27  struct AnalyzersConfig {};
28  struct ProducersConfig {};
29  struct FiltersConfig {};
30 
35  {
36  fhicl::Table<AnalyzersConfig> analyzers{ fhicl::Name{"analyzers"} };
37  fhicl::Table<ProducersConfig> producers{ fhicl::Name{"producers"} };
38  fhicl::Table<FiltersConfig> filters{ fhicl::Name{"filters"} };
39  fhicl::Sequence<std::string> my_output_modules{ fhicl::Name{"my_output_modules"}, fhicl::Comment{"Output modules (configured in the outputs block) to use"} };
41  };
42 
47  {
48  using Name = fhicl::Name;
49  using Comment = fhicl::Comment;
50  template <typename T> using Atom = fhicl::Atom<T>;
53  template <typename T> using OptionalAtom = fhicl::OptionalAtom<T>;
54 
55  fhicl::TableFragment<art::OutputModule::Config> omConfig;
56  Atom<std::string> catalog{ Name("catalog"), "" };
57  OptionalAtom<bool> dropAllEvents{ Name("dropAllEvents") };
58  Atom<bool> dropAllSubRuns{ Name("dropAllSubRuns"), false };
59  OptionalAtom<bool> fastCloning{ Name("fastCloning") };
60  Atom<std::string> tmpDir{ Name("tmpDir"), "/tmp" };
61  Atom<int> compressionLevel{ Name("compressionLevel"), 7 };
62  Atom<int64_t> saveMemoryObjectThreshold{ Name("saveMemoryObjectThreshold"), -1l };
63  Atom<int64_t> treeMaxVirtualSize{ Name("treeMaxVirtualSize"), -1 };
64  Atom<int> splitLevel{ Name("splitLevel"), 99 };
65  Atom<int> basketSize{ Name("basketSize"), 16384 };
66  Atom<bool> dropMetaDataForDroppedData{ Name("dropMetaDataForDroppedData"), false };
67  Atom<std::string> dropMetaData{ Name("dropMetaData"), "NONE" };
68  Atom<bool> writeParameterSets{ Name("writeParameterSets"), true };
69  fhicl::Table<ClosingCriteria::Config> fileProperties{ Name("fileProperties") };
70 
74  struct KeysToIgnore
75  {
80  std::set<std::string> operator()() const
81  {
82  std::set<std::string> keys{ art::OutputModule::Config::KeysToIgnore::get() };
83  keys.insert("results");
84  return keys;
85  }
86  };
87 
88  };
89 
94  {
95  fhicl::OptionalTable<art::OutputModule::Config> rootNetOutput{ fhicl::Name{"rootNetOutput"} };
96  fhicl::OptionalTable<RootOutputConfig> normalOutput{ fhicl::Name{"normalOutput"} };
97  fhicl::OptionalTable<RootOutputConfig> rootDAQOutFile{ fhicl::Name{"rootDAQOutFile"} };
98  };
99 
104  {
106  fhicl::Atom<std::string> module_type{ fhicl::Name{ "module_type" }, fhicl::Comment{ "Module type of source. Should be \"RawInput\", \"NetMonInput\", or an experiment-defined input type (e.g. \"DemoInput\")" } };
107  };
108 
112  struct Config
113  {
114  fhicl::Table<art::ServicesConfig> services{ fhicl::Name{"services"} };
115  fhicl::Table<art::PhysicsConfig> physics{ fhicl::Name{"physics"} };
116  fhicl::Table<art::OutputsConfig> outputs{ fhicl::Name{"outputs"} };
117  fhicl::Table<art::SourceConfig> source{ fhicl::Name{"source"} };
118  fhicl::Atom<std::string> process_name{ fhicl::Name{"process_name" },fhicl::Comment{"Name of this art processing job"}, "DAQ" };
120  };
121 }
Atom< bool > dropAllSubRuns
Whether to drop all subruns ???
Definition: ArtConfig.hh:58
fhicl::OptionalTable< NetMonTransportService::Config > netMonTransportServiceInterface
Configuration for the NetMonTranportService. See art::NetMonTransportService::Config.
Definition: ArtConfig.hh:24
Atom< int64_t > saveMemoryObjectThreshold
???
Definition: ArtConfig.hh:62
fhicl::Table< FiltersConfig > filters
Definition: ArtConfig.hh:38
fhicl::TableFragment< art::OutputModule::Config > omConfig
Configuration common to all OutputModules.
Definition: ArtConfig.hh:55
Atom< int > splitLevel
???
Definition: ArtConfig.hh:64
fhicl::OptionalAtom< T > OptionalAtom
Optional Configuration Parameter.
Definition: ArtConfig.hh:53
fhicl::Atom< T > Atom
Configuration Parameter.
Definition: ArtConfig.hh:51
Atom< int > basketSize
???
Definition: ArtConfig.hh:65
fhicl::Sequence< std::string > my_output_modules
Output modules (configured in the outputs block) to use.
Definition: ArtConfig.hh:40
Configuration for the source block of artdaq art processes
Definition: ArtConfig.hh:103
Atom< bool > dropMetaDataForDroppedData
???
Definition: ArtConfig.hh:66
Configuration of the services.scheduler block for artdaq art processes
Definition: ArtConfig.hh:13
fhicl::Table< art::PhysicsConfig > physics
Physics block.
Definition: ArtConfig.hh:115
Artdaq does not provide any producers.
Definition: ArtConfig.hh:28
Required configuration for art processes started by artdaq, with artdaq-specific defaults where appli...
Definition: ArtConfig.hh:112
Atom< int > compressionLevel
Compression level to use. artdaq recommends &lt;= 3.
Definition: ArtConfig.hh:61
fhicl::OptionalTable< RootOutputConfig > normalOutput
Normal art/ROOT output.
Definition: ArtConfig.hh:96
fhicl::Name Name
Parameter Name.
Definition: ArtConfig.hh:48
fhicl::Table< art::OutputsConfig > outputs
Outputs block.
Definition: ArtConfig.hh:116
Confgiguration for ROOT output modules
Definition: ArtConfig.hh:46
Atom< std::string > dropMetaData
Which metadata to drop (Default: &quot;NONE&quot;)
Definition: ArtConfig.hh:67
Configuration for the outputs block of artdaq art processes
Definition: ArtConfig.hh:93
fhicl::Atom< std::string > process_name
&quot;process_name&quot; (Default: &quot;DAQ&quot;): Name of this art processing job
Definition: ArtConfig.hh:119
fhicl::OptionalTable< art::OutputModule::Config > rootNetOutput
For transferring data from EventBuilders to DataLoggers.
Definition: ArtConfig.hh:95
Configuration of the physics block for artdaq art processes
Definition: ArtConfig.hh:34
fhicl::Table< ClosingCriteria::Config > fileProperties
When should the file be closed.
Definition: ArtConfig.hh:69
fhicl::Atom< bool > errorOnFailureToPut
&quot;errorOnFailureToPut&quot; (Default: false): This parameter is necessary for correct function of artdaq...
Definition: ArtConfig.hh:16
fhicl::Table< AnalyzersConfig > analyzers
Analyzer module configuration.
Definition: ArtConfig.hh:36
fhicl::Table< ServicesSchedulerConfig > scheduler
Artdaq requires a services.scheduler parameter. See art::ServicesSchedulerConfig. ...
Definition: ArtConfig.hh:23
Atom< int64_t > treeMaxVirtualSize
???
Definition: ArtConfig.hh:63
Configuration of the services block for artdaq art processes
Definition: ArtConfig.hh:21
Atom< bool > writeParameterSets
Write art ParameterSet to output file (Default: true)
Definition: ArtConfig.hh:68
fhicl::Table< art::SourceConfig > source
Definition: ArtConfig.hh:117
fhicl::Atom< std::string > module_type
&quot;module_type&quot;: Module type of source. Should be &quot;RawInput&quot;, &quot;NetMonInput&quot;, or an experiment-defined i...
Definition: ArtConfig.hh:106
fhicl::Table< ProducersConfig > producers
Producer module configuration.
Definition: ArtConfig.hh:37
OptionalAtom< bool > dropAllEvents
Whether to drop all events ???
Definition: ArtConfig.hh:57
std::set< std::string > operator()() const
Get the keys to ignore
Definition: ArtConfig.hh:80
OptionalAtom< bool > fastCloning
Whether to try to use fastCloning on the file.
Definition: ArtConfig.hh:59
fhicl::Table< art::ServicesConfig > services
Services block.
Definition: ArtConfig.hh:114
Atom< std::string > tmpDir
Temporary directory.
Definition: ArtConfig.hh:60
fhicl::OptionalTable< RootOutputConfig > rootDAQOutFile
art/ROOT output where the filename can be specified at initialization (e.g. to /dev/null), for testing
Definition: ArtConfig.hh:97
fhicl::Comment Comment
Definition: ArtConfig.hh:49
Atom< std::string > catalog
???
Definition: ArtConfig.hh:56
These keys should be ignored by the configuration validation processor
Definition: ArtConfig.hh:74