Public Types | Static Public Member Functions | Public Attributes | List of all members
art::ClosingCriteria::Config Struct Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v3_05_01/source/art/Framework/IO/ClosingCriteria.h"

Inheritance diagram for art::ClosingCriteria::Config:
art::ClosingCriteria::Defaults

Public Types

using Name = fhicl::Name
 
using Comment = fhicl::Comment
 
template<typename T >
using Atom = fhicl::Atom< T >
 
template<typename T >
using OptionalAtom = fhicl::OptionalAtom< T >
 

Static Public Member Functions

static constexpr unsigned unsigned_max ()
 
static constexpr unsigned size_max ()
 
static constexpr unsigned seconds_max ()
 
static constexpr char const * granularity_default ()
 

Public Attributes

Atom< unsigned > maxEvents {Name("maxEvents"), unsigned_max()}
 
Atom< unsigned > maxSubRuns {Name("maxSubRuns"), unsigned_max()}
 
Atom< unsigned > maxRuns {Name("maxRuns"), unsigned_max()}
 
Atom< unsigned > maxInputFiles {Name("maxInputFiles"), unsigned_max()}
 
Atom< unsigned > maxSize
 
Atom< unsigned > maxAge
 
fhicl::Atom< std::stringgranularity
 

Detailed Description

Definition at line 94 of file ClosingCriteria.h.

Member Typedef Documentation

template<typename T >
using art::ClosingCriteria::Config::Atom = fhicl::Atom<T>

Definition at line 98 of file ClosingCriteria.h.

Definition at line 96 of file ClosingCriteria.h.

Definition at line 95 of file ClosingCriteria.h.

Definition at line 100 of file ClosingCriteria.h.

Member Function Documentation

static constexpr char const* art::ClosingCriteria::Defaults::granularity_default ( )
inlinestaticinherited

Definition at line 88 of file ClosingCriteria.h.

89  {
90  return "Event";
91  }
static constexpr unsigned art::ClosingCriteria::Defaults::seconds_max ( )
inlinestaticinherited

Definition at line 83 of file ClosingCriteria.h.

References cet::sqlite::max().

84  {
86  }
T max(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
Definition: statistics.h:66
static constexpr unsigned art::ClosingCriteria::Defaults::size_max ( )
inlinestaticinherited

Definition at line 78 of file ClosingCriteria.h.

References submit_hadd::u.

79  {
80  return 0x7f000000u;
81  }
static constexpr unsigned art::ClosingCriteria::Defaults::unsigned_max ( )
inlinestaticinherited

Definition at line 73 of file ClosingCriteria.h.

References cet::sqlite::max().

74  {
76  }
T max(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
Definition: statistics.h:66

Member Data Documentation

fhicl::Atom<std::string> art::ClosingCriteria::Config::granularity
Initial value:
{
fhicl::Name("granularity"),
"The 'granularity' parameter specifies the level at which\n"
"a file may be closed, and thereby the granularity of the file.\n"
"The following values are possible:\n\n"
" Value Meaning\n"
" =======================================================\n"
" \"Event\" Allow file switch at next Event\n"
" \"SubRun\" Allow file switch at next SubRun\n"
" \"Run\" Allow file switch at next Run\n"
" \"InputFile\" Allow file switch at next InputFile\n"
" \"Job\" File closes at the end of Job\n\n"
"For example, if a granularity of \"SubRun\" is specified, but the\n"
"file has reached the maximum events written to disk (as specified\n"
"by the 'maxEvents' parameter), switching to a new file will NOT\n"
"happen until a new SubRun has been reached (or there are no more\n"
"Events/SubRuns/Runs to process)."),

Definition at line 112 of file ClosingCriteria.h.

Atom<unsigned> art::ClosingCriteria::Config::maxAge
Initial value:
{Name("maxAge"),
Comment("Maximum age of output file (in seconds)"),

Definition at line 108 of file ClosingCriteria.h.

Atom<unsigned> art::ClosingCriteria::Config::maxEvents {Name("maxEvents"), unsigned_max()}

Definition at line 101 of file ClosingCriteria.h.

Atom<unsigned> art::ClosingCriteria::Config::maxInputFiles {Name("maxInputFiles"), unsigned_max()}

Definition at line 104 of file ClosingCriteria.h.

Atom<unsigned> art::ClosingCriteria::Config::maxRuns {Name("maxRuns"), unsigned_max()}

Definition at line 103 of file ClosingCriteria.h.

Atom<unsigned> art::ClosingCriteria::Config::maxSize
Initial value:
{Name("maxSize"),
Comment("Maximum size of file (in KiB)"),

Definition at line 105 of file ClosingCriteria.h.

Atom<unsigned> art::ClosingCriteria::Config::maxSubRuns {Name("maxSubRuns"), unsigned_max()}

Definition at line 102 of file ClosingCriteria.h.


The documentation for this struct was generated from the following file: