7#ifndef FRAMEWORK_CONDITIONSIOV_H_
8#define FRAMEWORK_CONDITIONSIOV_H_
15#include "Framework/Exception/Exception.h"
57 bool validForMC =
true)
83 void stream(std::ostream&)
const;
Class which defines the run/event/type range for which a given condition is valid,...
int lastRun_
Last run for which this condition is valid or -1 for infinite validity.
ConditionsIOV()
Constructor for null validity.
bool validForMC_
Is this Condition valid for simulation?
void stream(std::ostream &) const
Stream the object contents to an output stream.
std::string ToString() const
Print the object to a string.
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 validForData_
Is this Condition valid for real data?
int firstRun_
First run for which this condition is valid.
bool validForEvent(const ldmx::EventHeader &eh) const
Checks to see if this condition is valid for the given event using information from the header.
void Print() const
Print the object to std::cout.
All classes in the ldmx-sw project use this namespace.