#include <TriggerConfiguration.h>
Classes | |
struct | CryoConfig |
struct | GateConfig |
Public Member Functions | |
float | getGateWidth (std::size_t source) const |
returns the effective gate width corrected for the veto delay in us More... | |
float | getDriftGateWidth (std::size_t source) const |
returns the width of the drift gate used for out-of-time light activity in us More... | |
unsigned int | getOffBeamRate (std::size_t source) const |
returns the prescale value used to open the offbeam gates with respect to the total number of beam gates seen More... | |
unsigned int | getMinBiasPrescale (std::size_t source) const |
returns the prescale value used to collect MinBias triggers with respect to the total number of gates seen of a particula type More... | |
void | dump (std::ostream &out, std::string const &indent, std::string const &firstIndent, unsigned int verbosity=MaxDumpVerbosity) const |
Dumps the content of the configuration into out stream. More... | |
void | dump (std::ostream &out, std::string const &indent="") const |
Dumps the content of the configuration into out stream. More... | |
void | dumpGateConfig (std::ostream &out, icarus::TriggerConfiguration::GateConfig const &gateConfig, std::string const &indent) const |
Dumps the content of the gate configuration into out stream. More... | |
void | dump (std::ostream &out, unsigned int verbosity, std::string const &indent="") const |
bool | operator== (TriggerConfiguration const &other) const noexcept |
Comparison: all fields need to have the same values. More... | |
bool | operator!= (TriggerConfiguration const &other) const noexcept |
Public Attributes | |
bool | useWrTime = false |
Use the WR time reference. More... | |
unsigned int | wrTimeOffset = 1'000'000'000 |
Add an offset between the npt and tai time as used in the wr reference (normally it is 1 or 2 leap seconds) in ns. More... | |
unsigned int | vetoDelay = 0 |
Veto (this delay has to be subtracted to the gate width ). Value is in ns. More... | |
std::array< CryoConfig, icarus::trigger::kNTriggerLocation > | cryoConfig |
Cryostat configuration. More... | |
std::string | majorityTriggerType |
Majority trigger type (consider triggers from one cryostats, either cryostats, or both cryostats) More... | |
std::string | runType |
Force the run to be fully a MinBias, if runType=="MinBias". If runType=="Majority" does a majority run with some prescaled minbias triggers depending on the gate selection in use. More... | |
unsigned int | tpcTriggerDelay = 0 |
TPCTriggerDelay: distance between the Global trigger time and the output for the TPC. NB: It is in units of 400 ns. More... | |
std::array< GateConfig, icarus::trigger::kNTriggerSource > | gateConfig |
Gate Configuration. More... | |
Static Public Attributes | |
static constexpr unsigned int | MaxDumpVerbosity = 2U |
Maximum supported verbosity level supported by dump() . More... | |
static constexpr unsigned int | DefaultDumpVerbosity = MaxDumpVerbosity |
Default verbosity level for dump() . More... | |
Definition at line 31 of file TriggerConfiguration.h.
void icarus::TriggerConfiguration::dump | ( | std::ostream & | out, |
std::string const & | indent, | ||
std::string const & | firstIndent, | ||
unsigned int | verbosity = MaxDumpVerbosity |
||
) | const |
Dumps the content of the configuration into out
stream.
out | stream to dump the information into |
indent | indentation string |
firstIndent | special indentation string for the first line |
verbosity | (default: DefaultDumpVerbosity ) level of verbosity |
The indentation string is prepended to each new line of the dump. The first line indentation string is prepended before the first line of the dump. The dump ends on a new empty line.
The amount of information printed depends on the verbosity
level:
0
: Boardreader configuration1
: FPGA configuration2
: SPEXI configuration Definition at line 68 of file TriggerConfiguration.cxx.
|
inline |
Dumps the content of the configuration into out
stream.
out | stream to dump the information into |
indent | indentation level |
Version of dump()
with same first indentation level as the rest, and default verbosity.
Definition at line 254 of file TriggerConfiguration.h.
|
inline |
Definition at line 272 of file TriggerConfiguration.h.
void icarus::TriggerConfiguration::dumpGateConfig | ( | std::ostream & | out, |
icarus::TriggerConfiguration::GateConfig const & | gateConfig, | ||
std::string const & | indent | ||
) | const |
Dumps the content of the gate configuration into out
stream.
out | stream to dump the information into |
gateConfig | the gate to be dumped |
indent | (default: none) indentation string |
Version of dump()
with the specified verbosity
level and same first indentation level as the rest.
Definition at line 22 of file TriggerConfiguration.cxx.
|
inline |
returns the width of the drift gate used for out-of-time light activity in us
source | is the value of the sbn::bits::triggerSource enum type corresponding to the type of gate |
Definition at line 164 of file TriggerConfiguration.h.
|
inline |
returns the effective gate width corrected for the veto delay in us
source | is the value of the sbn::bits::triggerSource enum type corresponding to the type of gate |
Definition at line 148 of file TriggerConfiguration.h.
|
inline |
returns the prescale value used to collect MinBias triggers with respect to the total number of gates seen of a particula type
source | is the value of the sbn::bits::triggerSource enum type corresponding to the type of gate |
Definition at line 189 of file TriggerConfiguration.h.
|
inline |
returns the prescale value used to open the offbeam gates with respect to the total number of beam gates seen
source | is the value of the sbn::bits::triggerSource enum type corresponding to the type of gate |
Definition at line 177 of file TriggerConfiguration.h.
|
inlinenoexcept |
Definition at line 202 of file TriggerConfiguration.h.
|
inlinenoexcept |
Comparison: all fields need to have the same values.
Definition at line 289 of file TriggerConfiguration.h.
std::array<CryoConfig, icarus::trigger::kNTriggerLocation> icarus::TriggerConfiguration::cryoConfig |
Cryostat configuration.
Definition at line 125 of file TriggerConfiguration.h.
|
static |
Default verbosity level for dump()
.
Definition at line 218 of file TriggerConfiguration.h.
std::array<GateConfig, icarus::trigger::kNTriggerSource> icarus::TriggerConfiguration::gateConfig |
Gate Configuration.
Definition at line 137 of file TriggerConfiguration.h.
std::string icarus::TriggerConfiguration::majorityTriggerType |
Majority trigger type (consider triggers from one cryostats, either cryostats, or both cryostats)
Definition at line 128 of file TriggerConfiguration.h.
|
static |
Maximum supported verbosity level supported by dump()
.
Definition at line 215 of file TriggerConfiguration.h.
std::string icarus::TriggerConfiguration::runType |
Force the run to be fully a MinBias, if runType=="MinBias". If runType=="Majority" does a majority run with some prescaled minbias triggers depending on the gate selection in use.
Definition at line 131 of file TriggerConfiguration.h.
unsigned int icarus::TriggerConfiguration::tpcTriggerDelay = 0 |
TPCTriggerDelay: distance between the Global trigger time and the output for the TPC. NB: It is in units of 400 ns.
Definition at line 134 of file TriggerConfiguration.h.
bool icarus::TriggerConfiguration::useWrTime = false |
Use the WR time reference.
Definition at line 116 of file TriggerConfiguration.h.
unsigned int icarus::TriggerConfiguration::vetoDelay = 0 |
Veto (this delay has to be subtracted to the gate width ). Value is in ns.
Definition at line 122 of file TriggerConfiguration.h.
unsigned int icarus::TriggerConfiguration::wrTimeOffset = 1'000'000'000 |
Add an offset between the npt and tai time as used in the wr reference (normally it is 1 or 2 leap seconds) in ns.
Definition at line 119 of file TriggerConfiguration.h.