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