File indexing completed on 2025-12-16 09:24:02
0001 #ifndef MACRO_G4CALOTRIGGER_C
0002 #define MACRO_G4CALOTRIGGER_C
0003
0004 #include <GlobalVariables.C>
0005
0006 #include <calotrigger/CaloTriggerSim.h>
0007
0008 #include <fun4all/Fun4AllServer.h>
0009
0010 #include <Rtypes.h> // resolves R__LOAD_LIBRARY for clang-tidy
0011
0012 R__LOAD_LIBRARY(libcalotrigger.so)
0013
0014 namespace Enable
0015 {
0016 bool CALOTRIGGER = false;
0017 int CALOTRIGGER_VERBOSITY = 0;
0018 }
0019
0020 void CaloTrigger_Sim()
0021 {
0022 int verbosity = std::max(Enable::VERBOSITY, Enable::CALOTRIGGER_VERBOSITY);
0023
0024
0025
0026
0027
0028 Fun4AllServer* se = Fun4AllServer::instance();
0029
0030 CaloTriggerSim* calotriggersim = new CaloTriggerSim();
0031 calotriggersim->Verbosity(verbosity);
0032 se->registerSubsystem(calotriggersim);
0033
0034 return;
0035 }
0036 #endif