Defines the run/event/type range for which a given condition is valid, including for all time.
More...
#include <ConditionsIntervalOfValidity.h>
|
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?
|
|
Defines the run/event/type range for which a given condition is valid, including for all time.
◆ ConditionsIntervalOfValidity() [1/2]
fire::ConditionsIntervalOfValidity::ConditionsIntervalOfValidity |
( |
bool |
validForData, |
|
|
bool |
validForMC |
|
) |
| |
|
noexcept |
Unlimited IOV for data, MC, or both.
- Parameters
-
[in] | validForData | true if condition is valid for real data |
[in] | validForMC | true if condition is valid for MC data |
◆ ConditionsIntervalOfValidity() [2/2]
fire::ConditionsIntervalOfValidity::ConditionsIntervalOfValidity |
( |
int |
firstRun, |
|
|
int |
lastRun, |
|
|
bool |
validForData = true , |
|
|
bool |
validForMC = true |
|
) |
| |
|
noexcept |
Run-limited IOV.
- Parameters
-
[in] | firstRun | should be -1 if valid from beginning of time |
[in] | lastRun | should be -1 if valid to end of time |
[in] | validForData | true if condition is valid for real data |
[in] | validForMC | true if condition is valid for MC data |
◆ validForEvent()
bool fire::ConditionsIntervalOfValidity::validForEvent |
( |
const EventHeader & |
eh | ) |
const |
Checks to see if this condition is valid for the given event using information from the header.
- Parameters
-
- Returns
- true if our IOV includes the event described by the input header
◆ operator<<
Stream the IOV to an ostream in a pretty way.
The output looks like
"IOV(firstRun->lastRun, type)"
where lastRun
is replaced by infty
if it is negative and type
is DATA
or MC
or both.
- Parameters
-
[in] | s | ostream to stream to |
[in] | iov | IOV to stream out |
- Returns
- modified ostream
The documentation for this class was generated from the following files: