9#include <framework/database/DBImportObjPtr.h>
10#include <trg/cdc/dbobjects/CDCTrigger2DConfig.h>
20 const int N_config = 4;
22 const int run[N_config][4] = {
32 bool fullhit[N_config] = {
33 false,
false,
true,
true
35 int hitthreshold[N_config] = {
38 bool ADC[N_config] = {
39 false,
false,
false,
true
45 for (
int i = 0; i < N_config; i++) {
47 db_2dconfig->setnTS(nTS[i]);
48 db_2dconfig->setfullhit(fullhit[i]);
49 db_2dconfig->sethitthreshold(hitthreshold[i]);
50 db_2dconfig->setADC(ADC[i]);
53 }
else if (ONLINE == 1) {
54 for (
int i = N_config - 1; i < N_config; i++) {
56 db_2dconfig->setnTS(nTS[i]);
57 db_2dconfig->setfullhit(fullhit[i]);
58 db_2dconfig->sethitthreshold(hitthreshold[i]);
59 db_2dconfig->setADC(ADC[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.