gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
getActiveProcessCodes.cpp
Go to the documentation of this file.
1 // GAMBIT: Global and Modular BSM Inference Tool
2 // *********************************************
17 
19 
20 // #define COLLIDERBIT_DEBUG
21 #define DEBUG_PREFIX "DEBUG: OMP thread " << omp_get_thread_num() << ": "
22 
23 namespace Gambit
24 {
25 
26  namespace ColliderBit
27  {
28 
30  void getActiveProcessCodes(std::vector<int>& result)
31  {
32  using namespace Pipes::getActiveProcessCodes;
33 
34  if (*Loop::iteration == COLLIDER_INIT)
35  {
36  result.clear();
37  }
38 
39  if (*Loop::iteration == XSEC_CALCULATION)
40  {
41  result = (*Dep::HardScatteringSim)->all_active_process_codes();
42 
43  #ifdef COLLIDERBIT_DEBUG
44  for (int pcode : result)
45  {
46  cout << DEBUG_PREFIX << "getActiveProcessCodes: - active process: " << pcode << endl;
47  }
48  #endif
49  }
50  }
51 
52  }
53 }
54 
55 
void getActiveProcessCodes(std::vector< int > &result)
Get the list of active collider process codes.
Declarations common to all ColliderBit event loop functions.
TODO: see if we can use this one:
Definition: Analysis.hpp:33
#define DEBUG_PREFIX