gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
complete_process_PID_pair_multimaps.cpp
Go to the documentation of this file.
1 // GAMBIT: Global and Modular BSM Inference Tool
2 // *********************************************
19 
21 
22 namespace Gambit
23 {
24  namespace ColliderBit
25  {
26 
27  // A function stat returns the "reversed" multimap, from PID_pair to process codes
29  {
30  static bool first = true;
31  static multimap_PID_pair_int result;
32 
33  // Construct the map the first time this function is called
34  if (first)
35  {
36 
37  // Loop through all elements in all_process_codes_to_PID_pairs
38  for (const std::pair<int,PID_pair>& elem : all_process_codes_to_PID_pairs)
39  {
40  // Insert the reversed pair into the result map
41  result.insert( std::make_pair(elem.second, elem.first) );
42  }
43 
44  first = false;
45  }
46 
47  return result;
48  }
49 
50  }
51 }
A big multimap connecting Pythia process codes to the PID numbers for the two final state particles...
std::multimap< PID_pair, int > multimap_PID_pair_int
const multimap_PID_pair_int & all_PID_pairs_to_process_codes()
TODO: see if we can use this one:
Definition: Analysis.hpp:33