Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
art::Granularity Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/Core/OutputFileGranularity.h"

Public Types

enum  BT {
  Event, SubRun, Run, InputFile,
  Job, Unset
}
 

Public Member Functions

 Granularity (BT const b)
 
BT operator() () const
 
 operator std::size_t () const
 

Static Public Member Functions

static constexpr std::size_t NBoundaries ()
 
static BT value (std::string const &spec)
 

Private Attributes

BT b_
 

Detailed Description

Definition at line 10 of file OutputFileGranularity.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

art::Granularity::Granularity ( BT const  b)
inline

Definition at line 14 of file OutputFileGranularity.h.

14 : b_{b} {}
const hit & b
Definition: hits.cxx:21

Member Function Documentation

static constexpr std::size_t art::Granularity::NBoundaries ( )
inlinestatic

Definition at line 24 of file OutputFileGranularity.h.

References Unset.

25  {
26  return Unset;
27  }
art::Granularity::operator std::size_t ( ) const
inline

Definition at line 21 of file OutputFileGranularity.h.

References b_.

21 { return static_cast<std::size_t>(b_); }
BT art::Granularity::operator() ( void  ) const
inline

Definition at line 17 of file OutputFileGranularity.h.

References b_.

18  {
19  return b_;
20  }
static BT art::Granularity::value ( std::string const &  spec)
inlinestatic

Definition at line 30 of file OutputFileGranularity.h.

References art::errors::Configuration, Event, InputFile, Job, Run, SubRun, and Unset.

31  {
32  if (spec == "Event")
33  return Event;
34  else if (spec == "SubRun")
35  return SubRun;
36  else if (spec == "Run")
37  return Run;
38  else if (spec == "InputFile")
39  return InputFile;
40  else if (spec == "Job")
41  return Job;
42  else if (spec == "Unset")
43  return Unset;
44  else
46  << "Specified output-file switching boundary (\"" << spec
47  << "\") not supported.\n"
48  "Please choose from:\n"
49  " \"Event\"\n"
50  " \"SubRun\"\n"
51  " \"Run\"\n"
52  " \"InputFile\"\n"
53  " \"Job\"\n"
54  " \"Unset\"";
55  }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66

Member Data Documentation

BT art::Granularity::b_
private

Definition at line 58 of file OutputFileGranularity.h.

Referenced by operator std::size_t(), and operator()().


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