Public Member Functions | Private Member Functions | Private Attributes | List of all members
util::FileCatalogMetadataDUNE Class Reference

#include <FileCatalogMetadataDUNE.h>

Public Member Functions

 FileCatalogMetadataDUNE (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 ~FileCatalogMetadataDUNE ()=default
 
const std::stringMCGenerators () const
 
const std::stringMCOscillationP () const
 
const std::stringMCTriggerListVersion () const
 
const std::stringMCBeamEnergy () const
 
const std::stringMCBeamFluxID () const
 
const std::stringMCName () const
 
const std::stringMCDetectorType () const
 
const std::stringMCNeutrinoFlavors () const
 
const std::stringMCMassHierarchy () const
 
const std::stringMCMiscellaneous () const
 
const std::stringMCGeometryVersion () const
 
const std::stringMCOverlay () const
 
const std::stringDataRunMode () const
 
const std::stringDataDetectorType () const
 
const std::stringDataName () const
 
const std::stringStageName () const
 

Private Member Functions

void postBeginJob ()
 

Private Attributes

std::string fMCGenerators
 
std::string fMCOscillationP
 
std::string fMCTriggerListVersion
 
std::string fMCBeamEnergy
 
std::string fMCBeamFluxID
 
std::string fMCName
 
std::string fMCDetectorType
 
std::string fMCNeutrinoFlavors
 
std::string fMCMassHierarchy
 
std::string fMCMiscellaneous
 
std::string fMCGeometryVersion
 
std::string fMCOverlay
 
std::string fDataRunMode
 
std::string fDataDetectorType
 
std::string fDataName
 
std::string fStageName
 

Detailed Description

Definition at line 30 of file FileCatalogMetadataDUNE.h.

Constructor & Destructor Documentation

util::FileCatalogMetadataDUNE::FileCatalogMetadataDUNE ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry reg 
)

Definition at line 22 of file FileCatalogMetadataDUNE_service.cc.

23  {
24  // Get parameters.
25 
26  fMCGenerators = pset.get<std::string>("MCGenerators","");
27  fMCOscillationP = pset.get<std::string>("MCOscillationP","");
28  fMCTriggerListVersion = pset.get<std::string>("MCTriggerListVersion","");
29  fMCBeamEnergy = pset.get<std::string>("MCBeamEnergy","");
30  fMCBeamFluxID = pset.get<std::string>("MCBeamFluxID","");
31  fMCName = pset.get<std::string>("MCName","");
32  fMCDetectorType = pset.get<std::string>("MCDetectorType","");
33  fMCNeutrinoFlavors = pset.get<std::string>("MCNeutrinoFlavors","");
34  fMCMassHierarchy = pset.get<std::string>("MCMassHierarchy","");
35  fMCMiscellaneous = pset.get<std::string>("MCMiscellaneous","");
36  fMCGeometryVersion = pset.get<std::string>("MCGeometryVersion","");
37  fMCOverlay = pset.get<std::string>("MCOverlay","");
38  fDataRunMode = pset.get<std::string>("DataRunMode","");
39  fDataDetectorType = pset.get<std::string>("DataDetectorType","");
40  fDataName = pset.get<std::string>("DataName","");
41  fStageName = pset.get<std::string>("StageName","");
42  // Register for callbacks.
43 
45  }
GlobalSignal< detail::SignalResponseType::FIFO, void()> sPostBeginJob
std::string string
Definition: nybbler.cc:12
util::FileCatalogMetadataDUNE::~FileCatalogMetadataDUNE ( )
default

Member Function Documentation

const std::string& util::FileCatalogMetadataDUNE::DataDetectorType ( ) const
inline

Definition at line 54 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::DataName ( ) const
inline

Definition at line 55 of file FileCatalogMetadataDUNE.h.

55 { return fDataName; }
const std::string& util::FileCatalogMetadataDUNE::DataRunMode ( ) const
inline

Definition at line 53 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::MCBeamEnergy ( ) const
inline

Definition at line 44 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::MCBeamFluxID ( ) const
inline

Definition at line 45 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::MCDetectorType ( ) const
inline

Definition at line 47 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::MCGenerators ( ) const
inline

Definition at line 41 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::MCGeometryVersion ( ) const
inline

Definition at line 51 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::MCMassHierarchy ( ) const
inline

Definition at line 49 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::MCMiscellaneous ( ) const
inline

Definition at line 50 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::MCName ( ) const
inline

Definition at line 46 of file FileCatalogMetadataDUNE.h.

46 { return fMCName; }
const std::string& util::FileCatalogMetadataDUNE::MCNeutrinoFlavors ( ) const
inline

Definition at line 48 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::MCOscillationP ( ) const
inline

Definition at line 42 of file FileCatalogMetadataDUNE.h.

const std::string& util::FileCatalogMetadataDUNE::MCOverlay ( ) const
inline

Definition at line 52 of file FileCatalogMetadataDUNE.h.

52 { return fMCOverlay; }
const std::string& util::FileCatalogMetadataDUNE::MCTriggerListVersion ( ) const
inline

Definition at line 43 of file FileCatalogMetadataDUNE.h.

void util::FileCatalogMetadataDUNE::postBeginJob ( )
private

Definition at line 50 of file FileCatalogMetadataDUNE_service.cc.

51  {
52  // Get art metadata service.
53 
55 
56  // Add metadata.
57 
58  if (fMCGenerators!="") mds->addMetadata("lbneMCGenerators", fMCGenerators);
59  if (fMCOscillationP!="") mds->addMetadata("lbneMCOscillationP", fMCOscillationP);
60  if (fMCTriggerListVersion!="") mds->addMetadata("lbneMCTriggerListVersion", fMCTriggerListVersion);
61  if (fMCBeamEnergy!="") mds->addMetadata("lbneMCBeamEnergy", fMCBeamEnergy);
62  if (fMCBeamFluxID!="") mds->addMetadata("lbneMCBeamFluxID", fMCBeamFluxID);
63  if (fMCName!="") mds->addMetadata("lbneMCName", fMCName);
64  if (fMCDetectorType!="") mds->addMetadata("lbneMCDetectorType", fMCDetectorType);
65  if (fMCNeutrinoFlavors!="") mds->addMetadata("lbneMCNeutrinoFlavors", fMCNeutrinoFlavors);
66  if (fMCMassHierarchy!="") mds->addMetadata("lbneMCMassHierarchy", fMCMassHierarchy);
67  if (fMCMiscellaneous!="") mds->addMetadata("lbneMCMiscellaneous", fMCMiscellaneous);
68  if (fMCGeometryVersion!="") mds->addMetadata("lbneMCGeometryVersion", fMCGeometryVersion);
69  if (fMCOverlay!="") mds->addMetadata("lbneMCOverlay", fMCOverlay);
70  if (fDataRunMode!="") mds->addMetadata("lbneDataRunMode", fDataRunMode);
71  if (fDataDetectorType!="") mds->addMetadata("lbneDataDetectorType", fDataDetectorType);
72  if (fDataName!="") mds->addMetadata("lbneDataName", fDataName);
73  if (fStageName!="") mds->addMetadata("StageName",fStageName);
74  }
void addMetadata(std::string const &key, std::string const &value)
const std::string& util::FileCatalogMetadataDUNE::StageName ( ) const
inline

Definition at line 56 of file FileCatalogMetadataDUNE.h.

56 { return fStageName; }

Member Data Documentation

std::string util::FileCatalogMetadataDUNE::fDataDetectorType
private

Definition at line 79 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fDataName
private

Definition at line 80 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fDataRunMode
private

Definition at line 78 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCBeamEnergy
private

Definition at line 69 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCBeamFluxID
private

Definition at line 70 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCDetectorType
private

Definition at line 72 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCGenerators
private

Definition at line 66 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCGeometryVersion
private

Definition at line 76 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCMassHierarchy
private

Definition at line 74 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCMiscellaneous
private

Definition at line 75 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCName
private

Definition at line 71 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCNeutrinoFlavors
private

Definition at line 73 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCOscillationP
private

Definition at line 67 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCOverlay
private

Definition at line 77 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fMCTriggerListVersion
private

Definition at line 68 of file FileCatalogMetadataDUNE.h.

std::string util::FileCatalogMetadataDUNE::fStageName
private

Definition at line 81 of file FileCatalogMetadataDUNE.h.


The documentation for this class was generated from the following files: