Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
garsoft
Utilities
Metadata
FileCatalogMetadataMPD.h
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// Name: FileCatalogMetadataMPD_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: 7-Nov-2019
11
// copied from DUNE for MPD by T. Junk
12
// split from the original by T. Yang so we can include this
13
// Copied FileCatalogMetadataMicroBooNE_service.cc by H. Greenlee
14
//
15
////////////////////////////////////////////////////////////////////////
16
17
#ifndef FILECATALOGMETADATAMPD_H
18
#define FILECATALOGMETADATAMPD_H
19
20
#include <string>
21
#include "
fhiclcpp/ParameterSet.h
"
22
#include "
art/Framework/Services/Registry/ActivityRegistry.h
"
23
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
24
#include "
art/Framework/Services/Registry/ServiceDeclarationMacros.h
"
25
#include "
art/Framework/Services/Registry/ServiceDefinitionMacros.h
"
26
#include "
art/Framework/Services/System/FileCatalogMetadata.h
"
27
28
namespace
util
{
29
30
// Class declaration.
31
32
class
FileCatalogMetadataMPD
33
{
34
public
:
35
36
FileCatalogMetadataMPD
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&
reg
);
37
~FileCatalogMetadataMPD
() =
default
;
38
39
const
std::string
&
Generators
()
const
{
return
fGenerators
; }
40
const
std::string
&
TriggerListVersion
()
const
{
return
fTriggerListVersion
; }
41
const
std::string
&
BeamFluxID
()
const
{
return
fBeamFluxID
; }
42
const
std::string
&
MCName
()
const
{
return
fMCName
; }
43
const
std::string
&
NeutrinoFlavors
()
const
{
return
fNeutrinoFlavors
; }
44
const
std::string
&
Miscellaneous
()
const
{
return
fMiscellaneous
; }
45
const
std::string
&
GeometryVersion
()
const
{
return
fGeometryVersion
; }
46
const
std::string
&
Overlay
()
const
{
return
fOverlay
; }
47
const
std::string
&
Run_Type
()
const
{
return
fRunType
; }
48
const
std::string
&
Data_Tier
()
const
{
return
fDataTier
; }
49
const
std::string
&
ApplName
()
const
{
return
fApplName
; }
50
const
std::string
&
EnvVarVer
()
const
{
return
fEnvVarVer
; }
51
const
std::string
&
Systematic
()
const
{
return
fSystematic
; }
52
const
std::string
&
HornPolarity
()
const
{
return
fHornPolarity
; }
53
54
55
private
:
56
57
// Callbacks.
58
59
void
postBeginJob
();
60
61
// Data members.
62
63
std::string
fGenerators
;
64
std::string
fTriggerListVersion
;
65
std::string
fBeamFluxID
;
66
std::string
fMCName
;
67
std::string
fNeutrinoFlavors
;
68
std::string
fMiscellaneous
;
69
std::string
fGeometryVersion
;
70
std::string
fOverlay
;
71
std::string
fRunType
;
72
std::string
fDataTier
;
73
std::string
fApplName
;
74
std::string
fEnvVarVer
;
75
std::string
fSystematic
;
76
std::string
fHornPolarity
;
77
};
78
79
80
}
// namespace util
81
82
DECLARE_ART_SERVICE
(
util::FileCatalogMetadataMPD
, LEGACY)
83
84
#endif
util
Namespace for general, non-LArSoft-specific utilities.
Definition:
SignalShapingService.h:21
util::FileCatalogMetadataMPD::fDataTier
std::string fDataTier
Definition:
FileCatalogMetadataMPD.h:72
util::FileCatalogMetadataMPD::fRunType
std::string fRunType
Definition:
FileCatalogMetadataMPD.h:71
string
std::string string
Definition:
nybbler.cc:12
util::FileCatalogMetadataMPD::Systematic
const std::string & Systematic() const
Definition:
FileCatalogMetadataMPD.h:51
util::FileCatalogMetadataMPD::TriggerListVersion
const std::string & TriggerListVersion() const
Definition:
FileCatalogMetadataMPD.h:40
util::FileCatalogMetadataMPD::GeometryVersion
const std::string & GeometryVersion() const
Definition:
FileCatalogMetadataMPD.h:45
util::FileCatalogMetadataMPD::fGeometryVersion
std::string fGeometryVersion
Definition:
FileCatalogMetadataMPD.h:69
util::FileCatalogMetadataMPD::ApplName
const std::string & ApplName() const
Definition:
FileCatalogMetadataMPD.h:49
util::FileCatalogMetadataMPD::fOverlay
std::string fOverlay
Definition:
FileCatalogMetadataMPD.h:70
ParameterSet.h
util::FileCatalogMetadataMPD::HornPolarity
const std::string & HornPolarity() const
Definition:
FileCatalogMetadataMPD.h:52
ServiceHandle.h
ServiceDeclarationMacros.h
util::FileCatalogMetadataMPD::fApplName
std::string fApplName
Definition:
FileCatalogMetadataMPD.h:73
util::FileCatalogMetadataMPD::fSystematic
std::string fSystematic
Definition:
FileCatalogMetadataMPD.h:75
util::FileCatalogMetadataMPD::BeamFluxID
const std::string & BeamFluxID() const
Definition:
FileCatalogMetadataMPD.h:41
util::FileCatalogMetadataMPD::fNeutrinoFlavors
std::string fNeutrinoFlavors
Definition:
FileCatalogMetadataMPD.h:67
util::FileCatalogMetadataMPD::postBeginJob
void postBeginJob()
Definition:
FileCatalogMetadataMPD_service.cc:49
DECLARE_ART_SERVICE
#define DECLARE_ART_SERVICE(svc, scope)
Definition:
ServiceDeclarationMacros.h:77
util::FileCatalogMetadataMPD::FileCatalogMetadataMPD
FileCatalogMetadataMPD(fhicl::ParameterSet const &pset, art::ActivityRegistry ®)
Definition:
FileCatalogMetadataMPD_service.cc:23
util::FileCatalogMetadataMPD::~FileCatalogMetadataMPD
~FileCatalogMetadataMPD()=default
util::FileCatalogMetadataMPD::Run_Type
const std::string & Run_Type() const
Definition:
FileCatalogMetadataMPD.h:47
util::FileCatalogMetadataMPD::Generators
const std::string & Generators() const
Definition:
FileCatalogMetadataMPD.h:39
util::FileCatalogMetadataMPD::fHornPolarity
std::string fHornPolarity
Definition:
FileCatalogMetadataMPD.h:76
util::FileCatalogMetadataMPD::Data_Tier
const std::string & Data_Tier() const
Definition:
FileCatalogMetadataMPD.h:48
FileCatalogMetadata.h
util::FileCatalogMetadataMPD::fMiscellaneous
std::string fMiscellaneous
Definition:
FileCatalogMetadataMPD.h:68
util::FileCatalogMetadataMPD::Miscellaneous
const std::string & Miscellaneous() const
Definition:
FileCatalogMetadataMPD.h:44
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
ActivityRegistry.h
util::FileCatalogMetadataMPD::fMCName
std::string fMCName
Definition:
FileCatalogMetadataMPD.h:66
util::FileCatalogMetadataMPD::MCName
const std::string & MCName() const
Definition:
FileCatalogMetadataMPD.h:42
ServiceDefinitionMacros.h
util::FileCatalogMetadataMPD::Overlay
const std::string & Overlay() const
Definition:
FileCatalogMetadataMPD.h:46
util::FileCatalogMetadataMPD::fEnvVarVer
std::string fEnvVarVer
Definition:
FileCatalogMetadataMPD.h:74
util::FileCatalogMetadataMPD::fTriggerListVersion
std::string fTriggerListVersion
Definition:
FileCatalogMetadataMPD.h:64
util::FileCatalogMetadataMPD::NeutrinoFlavors
const std::string & NeutrinoFlavors() const
Definition:
FileCatalogMetadataMPD.h:43
util::FileCatalogMetadataMPD
Definition:
FileCatalogMetadataMPD.h:32
cet::registry_via_id
Definition:
registry_via_id.h:19
util::FileCatalogMetadataMPD::fGenerators
std::string fGenerators
Definition:
FileCatalogMetadataMPD.h:63
util::FileCatalogMetadataMPD::EnvVarVer
const std::string & EnvVarVer() const
Definition:
FileCatalogMetadataMPD.h:50
util::FileCatalogMetadataMPD::fBeamFluxID
std::string fBeamFluxID
Definition:
FileCatalogMetadataMPD.h:65
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11