|
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 | first_run_ |
| First run for which this condition is valid. | |
| int | last_run_ |
| Last run for which this condition is valid or -1 for infinite validity. | |
| bool | valid_for_data_ |
| Is this Condition valid for real data? | |
| bool | valid_for_mc_ |
| 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 48 of file ConditionsIOV.h.
|
inline |
Constructor for a run-limited validity.
Definition at line 59 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 first_run_, last_run_, valid_for_data_, and valid_for_mc_.
| void framework::ConditionsIOV::print | ( | ) | const |
Print the object to std::cout.
Definition at line 30 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 41 of file ConditionsIOV.cxx.
References first_run_, last_run_, valid_for_data_, and valid_for_mc_.
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 first_run_, ldmx::EventHeader::getRun(), ldmx::EventHeader::isRealData(), last_run_, valid_for_data_, and valid_for_mc_.
|
private |
First run for which this condition is valid.
Definition at line 90 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 93 of file ConditionsIOV.h.
Referenced by overlaps(), stream(), and validForEvent().
|
private |
Is this Condition valid for real data?
Definition at line 96 of file ConditionsIOV.h.
Referenced by overlaps(), stream(), and validForEvent().
|
private |
Is this Condition valid for simulation?
Definition at line 99 of file ConditionsIOV.h.
Referenced by overlaps(), stream(), and validForEvent().