All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
RunList Struct Reference

Public Member Functions

 RunList (Json::Value jargs)
 
bool operator() (art::Event &event)
 

Public Attributes

std::unordered_set< int > runs
 

Detailed Description

Definition at line 61 of file MultiChannelNoiseDB.cxx.

Constructor & Destructor Documentation

RunList::RunList ( Json::Value  jargs)
inline

Definition at line 63 of file MultiChannelNoiseDB.cxx.

63  { // [1001, 1002, 1003]
64  for (auto j : jargs) {
65  runs.insert(j.asInt());
66  }
67  }
std::unordered_set< int > runs

Member Function Documentation

bool RunList::operator() ( art::Event &  event)
inline

Definition at line 68 of file MultiChannelNoiseDB.cxx.

68  {
69  int run = event.run();
70  return runs.find(run) != runs.end();
71  }
std::unordered_set< int > runs

Member Data Documentation

std::unordered_set<int> RunList::runs

Definition at line 62 of file MultiChannelNoiseDB.cxx.


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