FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
TriggerSorter.h
Go to the documentation of this file.
1 /*
2  This software is Copyright by the Board of Trustees of Michigan
3  State University (c) Copyright 2017.
4 
5  You may use this software under the terms of the GNU public license
6  (GPL). The terms of this license are described at:
7 
8  http://www.gnu.org/licenses/gpl.txt
9 
10  Authors:
11  Ron Fox
12  Giordano Cerriza
13  FRIB
14  Michigan State University
15  East Lansing, MI 48824-1321
16 */
17 
21 #ifndef TRIGGERSORTER_H
22 #define TRIGGERSORTER_H
23 
24 #include <cstdint>
25 #include <AnalysisRingItems.h>
26 #include <map>
27 namespace frib {
28  namespace analysis {
46  private:
47  std::map<std::uint64_t, pParameterItem> m_items;
48  std::uint64_t m_lastEmittedTrigger;
49  public:
51  virtual ~CTriggerSorter();
52 
53  void addItem(pParameterItem item);
54  void flush();
55  virtual void emitItem(pParameterItem item) = 0;
56  };
57  }
58 }
59 
60 #endif
Definition: AnalysisRingItems.h:71
Definition: TriggerSorter.h:45
void addItem(pParameterItem item)
Definition: TriggerSorter.cpp:65
: Defines the analysis specific ring items
CTriggerSorter()
Definition: TriggerSorter.cpp:31
virtual ~CTriggerSorter()
Definition: TriggerSorter.cpp:46
void flush()
Definition: TriggerSorter.cpp:98
Definition: AbstractApplication.cpp:30