Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:24

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 R__LOAD_LIBRARY(libcalotrigger.so)
0011 
0012 namespace Enable
0013 {
0014   bool CALOTRIGGER = false;
0015   int CALOTRIGGER_VERBOSITY = 0;
0016 }  // namespace Enable
0017 
0018 void CaloTrigger_Sim()
0019 {
0020   int verbosity = std::max(Enable::VERBOSITY, Enable::CALOTRIGGER_VERBOSITY);
0021 
0022   //---------------
0023   // Fun4All server
0024   //---------------
0025 
0026   Fun4AllServer* se = Fun4AllServer::instance();
0027 
0028   CaloTriggerSim* calotriggersim = new CaloTriggerSim();
0029   calotriggersim->Verbosity(verbosity);
0030   se->registerSubsystem(calotriggersim);
0031 
0032   return;
0033 }
0034 #endif