Belle II Software  release-05-02-19
switch_basf2_standalone.h
1 #pragma once
2 
3 #ifndef B2FATAL
4 #ifdef NOBASF2
5 #include <iostream>
6 #define B2FATAL(a) {std::cerr << a << std::endl; exit(1);}
7 #else
8 #include <framework/logging/Logger.h>
9 #endif // NOBASF2
10 #endif // B2FATAL
11 
12 // To compile DAQ program on COPPER(SL5.7)
13 #ifndef OVERRIDE_CPP17
14 #ifndef NOBASF2
15 #define OVERRIDE_CPP17 override
16 #else
17 #define OVERRIDE_CPP17
18 #endif // NOBASF2
19 #endif // OVERRIDE_CPP17
20 
21 // To compile DAQ program on COPPER(SL5.7)
22 #ifndef FINAL_CPP17
23 #ifndef NOBASF2
24 #define FINAL_CPP17 final
25 #else
26 #define FINAL_CPP17
27 #endif // NOBASF2
28 #endif // FINAL_CPP17
29 
30 // Max channels of PCIe40 board (2020.9.9)
31 #define MAX_PCIE40_CH 48
32 #define MAX_COPPER_CH 4