LDMX Software
|
Class which defines the run/event/type range for which a given condition is valid, including for all time. More...
#include <ConditionsIOV.h>
Public Member Functions | |
ConditionsIOV () | |
Constructor for null validity. | |
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 | validForEvent (const ldmx::EventHeader &eh) const |
Checks to see if this condition is valid for the given event using information from the header. | |
bool | overlaps (const ConditionsIOV &iov) const |
Checks to see if this IOV overlaps with the given IOV. | |
void | Print () const |
Print the object to std::cout. | |
std::string | ToString () const |
Print the object to a string. | |
void | stream (std::ostream &) const |
Stream the object contents to an output stream. | |
Private Attributes | |
int | firstRun_ |
First run for which this condition is valid. | |
int | lastRun_ |
Last run for which this condition is valid or -1 for infinite validity. | |
bool | validForData_ |
Is this Condition valid for real data? | |
bool | validForMC_ |
Is this Condition valid for simulation? | |
Class which defines the run/event/type range for which a given condition is valid, including for all time.
Definition at line 34 of file ConditionsIOV.h.
|
inline |
Constructor for null validity.
Definition at line 39 of file ConditionsIOV.h.
|
inline |
Constructor for a unlimited validity.
Definition at line 45 of file ConditionsIOV.h.
|
inline |
Constructor for a run-limited validity.
Definition at line 56 of file ConditionsIOV.h.
bool framework::ConditionsIOV::overlaps | ( | const ConditionsIOV & | iov | ) | const |
Checks to see if this IOV overlaps with the given IOV.
Definition at line 21 of file ConditionsIOV.cxx.
References firstRun_, lastRun_, validForData_, and validForMC_.
void framework::ConditionsIOV::Print | ( | ) | const |
Print the object to std::cout.
Definition at line 29 of file ConditionsIOV.cxx.
References stream().
void framework::ConditionsIOV::stream | ( | std::ostream & | s | ) | const |
Stream the object contents to an output stream.
Definition at line 40 of file ConditionsIOV.cxx.
References firstRun_, lastRun_, validForData_, and validForMC_.
Referenced by Print(), and ToString().
std::string framework::ConditionsIOV::ToString | ( | ) | const |
bool framework::ConditionsIOV::validForEvent | ( | const ldmx::EventHeader & | eh | ) | const |
Checks to see if this condition is valid for the given event using information from the header.
Definition at line 15 of file ConditionsIOV.cxx.
References firstRun_, ldmx::EventHeader::getRun(), ldmx::EventHeader::isRealData(), lastRun_, validForData_, and validForMC_.
|
private |
First run for which this condition is valid.
Definition at line 87 of file ConditionsIOV.h.
Referenced by overlaps(), stream(), and validForEvent().
|
private |
Last run for which this condition is valid or -1 for infinite validity.
Definition at line 90 of file ConditionsIOV.h.
Referenced by overlaps(), stream(), and validForEvent().
|
private |
Is this Condition valid for real data?
Definition at line 93 of file ConditionsIOV.h.
Referenced by overlaps(), stream(), and validForEvent().
|
private |
Is this Condition valid for simulation?
Definition at line 96 of file ConditionsIOV.h.
Referenced by overlaps(), stream(), and validForEvent().