FileCatalogMetadataDUNE.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Name: FileCatalogMetadataDUNE_service.cc.
3 //
4 // Purpose: Art service adds dune-specific per-job sam metadata.
5 //
6 // This service does not have user-callable methods. Simply
7 // add to an art configuration in services.user block of job
8 // file.
9 //
10 // Created: 1-Nov-2017
11 // split from the original by T. Yang so we can include this
12 // Copied FileCatalogMetadataMicroBooNE_service.cc by H. Greenlee
13 //
14 ////////////////////////////////////////////////////////////////////////
15 
16 #ifndef FILECATALOGMETADATADUNE_H
17 #define FILECATALOGMETADATADUNE_H
18 
19 #include <string>
20 #include "fhiclcpp/ParameterSet.h"
25 
26 namespace util {
27 
28  // Class declaration.
29 
31  {
32  public:
33 
34  // Constructor, destructor.
35 
37  ~FileCatalogMetadataDUNE() = default;
38 
39  // accessors
40 
41  const std::string& MCGenerators() const { return fMCGenerators; }
42  const std::string& MCOscillationP() const { return fMCOscillationP; }
44  const std::string& MCBeamEnergy() const { return fMCBeamEnergy; }
45  const std::string& MCBeamFluxID() const { return fMCBeamFluxID; }
46  const std::string& MCName() const { return fMCName; }
47  const std::string& MCDetectorType() const { return fMCDetectorType; }
48  const std::string& MCNeutrinoFlavors() const { return fMCNeutrinoFlavors; }
49  const std::string& MCMassHierarchy() const { return fMCMassHierarchy; }
50  const std::string& MCMiscellaneous() const { return fMCMiscellaneous; }
51  const std::string& MCGeometryVersion() const { return fMCGeometryVersion; }
52  const std::string& MCOverlay() const { return fMCOverlay; }
53  const std::string& DataRunMode() const { return fDataRunMode; }
54  const std::string& DataDetectorType() const { return fDataDetectorType; }
55  const std::string& DataName() const { return fDataName; }
56  const std::string& StageName() const { return fStageName; }
57 
58  private:
59 
60  // Callbacks.
61 
62  void postBeginJob();
63 
64  // Data members.
65 
82  };
83 
84 
85 } // namespace util
86 
88 
89 #endif
Namespace for general, non-LArSoft-specific utilities.
std::string string
Definition: nybbler.cc:12
const std::string & MCOverlay() const
const std::string & MCGenerators() const
const std::string & DataName() const
const std::string & MCGeometryVersion() const
const std::string & MCNeutrinoFlavors() const
const std::string & DataRunMode() const
#define DECLARE_ART_SERVICE(svc, scope)
const std::string & MCMiscellaneous() const
FileCatalogMetadataDUNE(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
const std::string & DataDetectorType() const
const std::string & MCTriggerListVersion() const
const std::string & MCBeamFluxID() const
const std::string & MCName() const
const std::string & StageName() const
const std::string & MCOscillationP() const
const std::string & MCDetectorType() const
const std::string & MCBeamEnergy() const
const std::string & MCMassHierarchy() const