9#include <framework/database/DBImportObjPtr.h>
10#include <trg/cdc/dbobjects/CDCTriggerTSFConfig.h>
20 const int N_config = 3;
22 const int run[N_config][4] = {
28 bool TDCfilter[N_config] = {
32 bool ADC[N_config] = {
35 int ADC_threshold[N_config] = {
42 for (
int i = 0; i < N_config; i++) {
44 db_tsfconfig->setuseTDCfilter(TDCfilter[i]);
45 db_tsfconfig->setuseADC(ADC[i]);
46 db_tsfconfig->setADC_threshold(ADC_threshold[i]);
49 }
else if (ONLINE == 1) {
50 for (
int i = N_config - 1; i < N_config; i++) {
52 db_tsfconfig->setuseTDCfilter(TDCfilter[i]);
53 db_tsfconfig->setuseADC(ADC[i]);
54 db_tsfconfig->setADC_threshold(ADC_threshold[i]);
bool import(const IntervalOfValidity &iov)
Import the object to database.
Class for importing a single object to the database.
void construct(Args &&... params)
Construct an object of type T in this DBImportObjPtr using the provided constructor arguments.
A class that describes the interval of experiments/runs for which an object in the database is valid.
Abstract base class for different kinds of events.