KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVFAZIATrigger.cpp
Go to the documentation of this file.
1 #include "KVFAZIATrigger.h"
2 #include <bitset>
3 
5 
6 
7 
10 std::vector<std::string> KVFAZIATrigger::GetTriggerPatterns() const
11 {
12  // Returns the names of all trigger patterns which are known and set for the trigger
13  std::vector<std::string> pats;
14  for (auto& p : fTriggerNameToBitPattern) {
15  pats.push_back(p.first);
16  }
17  return pats;
18 }
19 
20 
21 
24 
26 {
27  // Print defined trigger bit patterns with their meanings
28 
29  std::cout << "Defined trigger patterns are:\n\n";
30  for (auto& p : fTriggerNameToBitPattern) {
31  std::cout << "\t" << p.first << " = 0b" << std::bitset<16>(p.second) << std::endl;
32  }
33 }
34 
35 
36 
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
const char Option_t
The trigger pattern for each FAZIA event.
std::unordered_map< std::string, uint16_t > fTriggerNameToBitPattern
void Print(Option_t *="") const
Print defined trigger bit patterns with their meanings.