Public Member Functions | Public Attributes | List of all members
RunRange Struct Reference

Public Member Functions

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

Public Attributes

int first
 
int last
 

Detailed Description

Definition at line 49 of file MultiChannelNoiseDB.cxx.

Constructor & Destructor Documentation

RunRange::RunRange ( Json::Value  jargs)
inline

Definition at line 51 of file MultiChannelNoiseDB.cxx.

51  { // {first: NNN, last: MMM}
52  first = jargs["first"].asInt();
53  last = jargs["last"].asInt();
54  }

Member Function Documentation

bool RunRange::operator() ( art::Event event)
inline

Definition at line 55 of file MultiChannelNoiseDB.cxx.

55  {
56  int run = event.run();
57  return first <= run and run <= last;
58  }

Member Data Documentation

int RunRange::first

Definition at line 50 of file MultiChannelNoiseDB.cxx.

int RunRange::last

Definition at line 50 of file MultiChannelNoiseDB.cxx.


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