7#ifndef FRAMEWORK_CONDITIONSIOV_H_
8#define FRAMEWORK_CONDITIONSIOV_H_
15#include "Framework/Exception/Exception.h"
60 bool validForMC =
true)
86 void stream(std::ostream&)
const;
Class which defines the run/event/type range for which a given condition is valid,...
int last_run_
Last run for which this condition is valid or -1 for infinite validity.
std::string toString() const
Print the object to a string.
ConditionsIOV()
Constructor for null validity.
bool valid_for_data_
Is this Condition valid for real data?
int first_run_
First run for which this condition is valid.
void stream(std::ostream &) const
Stream the object contents to an output stream.
ConditionsIOV(bool validForData, bool validForMC)
Constructor for a unlimited validity.
ConditionsIOV(int firstRun, int lastRun, bool validForData=true, bool validForMC=true)
Constructor for a run-limited validity.
bool overlaps(const ConditionsIOV &iov) const
Checks to see if this IOV overlaps with the given IOV.
bool validForEvent(const ldmx::EventHeader &eh) const
Checks to see if this condition is valid for the given event using information from the header.
bool valid_for_mc_
Is this Condition valid for simulation?
void print() const
Print the object to std::cout.
All classes in the ldmx-sw project use this namespace.