Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
Utilities
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
"
21
#include "
art/Framework/Services/Registry/ActivityRegistry.h
"
22
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
23
#include "
art/Framework/Services/Registry/ServiceMacros.h
"
24
#include "
art/Framework/Services/System/FileCatalogMetadata.h
"
25
26
namespace
util
{
27
28
// Class declaration.
29
30
class
FileCatalogMetadataDUNE
31
{
32
public
:
33
34
// Constructor, destructor.
35
36
FileCatalogMetadataDUNE
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&
reg
);
37
~FileCatalogMetadataDUNE
() =
default
;
38
39
// accessors
40
41
const
std::string
&
MCGenerators
()
const
{
return
fMCGenerators
; }
42
const
std::string
&
MCOscillationP
()
const
{
return
fMCOscillationP
; }
43
const
std::string
&
MCTriggerListVersion
()
const
{
return
fMCTriggerListVersion
; }
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
66
std::string
fMCGenerators
;
67
std::string
fMCOscillationP
;
68
std::string
fMCTriggerListVersion
;
69
std::string
fMCBeamEnergy
;
70
std::string
fMCBeamFluxID
;
71
std::string
fMCName
;
72
std::string
fMCDetectorType
;
73
std::string
fMCNeutrinoFlavors
;
74
std::string
fMCMassHierarchy
;
75
std::string
fMCMiscellaneous
;
76
std::string
fMCGeometryVersion
;
77
std::string
fMCOverlay
;
78
std::string
fDataRunMode
;
79
std::string
fDataDetectorType
;
80
std::string
fDataName
;
81
std::string
fStageName
;
82
};
83
84
85
}
// namespace util
86
87
DECLARE_ART_SERVICE
(
util::FileCatalogMetadataDUNE
, LEGACY)
88
89
#endif
util
Namespace for general, non-LArSoft-specific utilities.
Definition:
SignalShapingService.h:21
util::FileCatalogMetadataDUNE::fDataName
std::string fDataName
Definition:
FileCatalogMetadataDUNE.h:80
util::FileCatalogMetadataDUNE::fMCBeamEnergy
std::string fMCBeamEnergy
Definition:
FileCatalogMetadataDUNE.h:69
string
std::string string
Definition:
nybbler.cc:12
util::FileCatalogMetadataDUNE::MCOverlay
const std::string & MCOverlay() const
Definition:
FileCatalogMetadataDUNE.h:52
util::FileCatalogMetadataDUNE::fMCTriggerListVersion
std::string fMCTriggerListVersion
Definition:
FileCatalogMetadataDUNE.h:68
util::FileCatalogMetadataDUNE::MCGenerators
const std::string & MCGenerators() const
Definition:
FileCatalogMetadataDUNE.h:41
util::FileCatalogMetadataDUNE::DataName
const std::string & DataName() const
Definition:
FileCatalogMetadataDUNE.h:55
util::FileCatalogMetadataDUNE::MCGeometryVersion
const std::string & MCGeometryVersion() const
Definition:
FileCatalogMetadataDUNE.h:51
util::FileCatalogMetadataDUNE::fMCGeometryVersion
std::string fMCGeometryVersion
Definition:
FileCatalogMetadataDUNE.h:76
ParameterSet.h
ServiceHandle.h
util::FileCatalogMetadataDUNE::postBeginJob
void postBeginJob()
Definition:
FileCatalogMetadataDUNE_service.cc:50
util::FileCatalogMetadataDUNE::fStageName
std::string fStageName
Definition:
FileCatalogMetadataDUNE.h:81
util::FileCatalogMetadataDUNE::MCNeutrinoFlavors
const std::string & MCNeutrinoFlavors() const
Definition:
FileCatalogMetadataDUNE.h:48
util::FileCatalogMetadataDUNE::fDataDetectorType
std::string fDataDetectorType
Definition:
FileCatalogMetadataDUNE.h:79
util::FileCatalogMetadataDUNE
Definition:
FileCatalogMetadataDUNE.h:30
util::FileCatalogMetadataDUNE::fMCGenerators
std::string fMCGenerators
Definition:
FileCatalogMetadataDUNE.h:66
util::FileCatalogMetadataDUNE::fMCDetectorType
std::string fMCDetectorType
Definition:
FileCatalogMetadataDUNE.h:72
util::FileCatalogMetadataDUNE::fMCOscillationP
std::string fMCOscillationP
Definition:
FileCatalogMetadataDUNE.h:67
util::FileCatalogMetadataDUNE::DataRunMode
const std::string & DataRunMode() const
Definition:
FileCatalogMetadataDUNE.h:53
util::FileCatalogMetadataDUNE::fDataRunMode
std::string fDataRunMode
Definition:
FileCatalogMetadataDUNE.h:78
DECLARE_ART_SERVICE
#define DECLARE_ART_SERVICE(svc, scope)
Definition:
ServiceDeclarationMacros.h:77
util::FileCatalogMetadataDUNE::MCMiscellaneous
const std::string & MCMiscellaneous() const
Definition:
FileCatalogMetadataDUNE.h:50
util::FileCatalogMetadataDUNE::FileCatalogMetadataDUNE
FileCatalogMetadataDUNE(fhicl::ParameterSet const &pset, art::ActivityRegistry ®)
Definition:
FileCatalogMetadataDUNE_service.cc:22
util::FileCatalogMetadataDUNE::DataDetectorType
const std::string & DataDetectorType() const
Definition:
FileCatalogMetadataDUNE.h:54
util::FileCatalogMetadataDUNE::MCTriggerListVersion
const std::string & MCTriggerListVersion() const
Definition:
FileCatalogMetadataDUNE.h:43
util::FileCatalogMetadataDUNE::MCBeamFluxID
const std::string & MCBeamFluxID() const
Definition:
FileCatalogMetadataDUNE.h:45
util::FileCatalogMetadataDUNE::fMCName
std::string fMCName
Definition:
FileCatalogMetadataDUNE.h:71
util::FileCatalogMetadataDUNE::MCName
const std::string & MCName() const
Definition:
FileCatalogMetadataDUNE.h:46
ServiceMacros.h
FileCatalogMetadata.h
util::FileCatalogMetadataDUNE::fMCMassHierarchy
std::string fMCMassHierarchy
Definition:
FileCatalogMetadataDUNE.h:74
util::FileCatalogMetadataDUNE::StageName
const std::string & StageName() const
Definition:
FileCatalogMetadataDUNE.h:56
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
ActivityRegistry.h
util::FileCatalogMetadataDUNE::MCOscillationP
const std::string & MCOscillationP() const
Definition:
FileCatalogMetadataDUNE.h:42
util::FileCatalogMetadataDUNE::MCDetectorType
const std::string & MCDetectorType() const
Definition:
FileCatalogMetadataDUNE.h:47
cet::registry_via_id
Definition:
registry_via_id.h:19
util::FileCatalogMetadataDUNE::fMCMiscellaneous
std::string fMCMiscellaneous
Definition:
FileCatalogMetadataDUNE.h:75
util::FileCatalogMetadataDUNE::fMCBeamFluxID
std::string fMCBeamFluxID
Definition:
FileCatalogMetadataDUNE.h:70
util::FileCatalogMetadataDUNE::MCBeamEnergy
const std::string & MCBeamEnergy() const
Definition:
FileCatalogMetadataDUNE.h:44
util::FileCatalogMetadataDUNE::MCMassHierarchy
const std::string & MCMassHierarchy() const
Definition:
FileCatalogMetadataDUNE.h:49
util::FileCatalogMetadataDUNE::fMCNeutrinoFlavors
std::string fMCNeutrinoFlavors
Definition:
FileCatalogMetadataDUNE.h:73
fhicl::ParameterSet
Definition:
ParameterSet.h:36
util::FileCatalogMetadataDUNE::fMCOverlay
std::string fMCOverlay
Definition:
FileCatalogMetadataDUNE.h:77
util::FileCatalogMetadataDUNE::~FileCatalogMetadataDUNE
~FileCatalogMetadataDUNE()=default
Generated by
1.8.11