FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
Event.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 ANALYSIS_EVENT_H
22 #define ANALYSIS_EVENT_H
23 #include <vector>
24 #include "SpecTclTypes.h"
25 
26 namespace frib {
27  namespace analysis {
28  typedef std::vector<unsigned> DopeVector; // the scoreboard.
29  typedef double CParameterValue;
30  typedef std::vector<double>::iterator CEventIterator;
45  class CEvent {
46  public:
47  // Canonical functions, construction, destruction, assignment and comparison.
48  // Ensure initial values entered.
49  CEvent();
50  virtual ~CEvent();
51  CEvent(UInt_t nInitialSize);
52  CEvent(const CEvent& aEvent);
53 
54  CEvent& operator=(const CEvent& aEvent);
55  int operator==(const CEvent& aEvent);
56  int operator!=(const CEvent& anEvent) ;
57  CParameterValue& operator[](UInt_t nParam);
58 
59  CEventIterator begin();
60  CEventIterator end();
61  UInt_t size();
62  void clear() ;
63  DopeVector getDopeVector();
64  private:
65  void makeParameter(unsigned index);
66 
67  };
68 
69  }
70 }
71 #endif
CEventIterator begin()
Definition: Event.cpp:83
DopeVector getDopeVector()
Definition: Event.cpp:116
UInt_t size()
Definition: Event.cpp:100
CEventIterator end()
Definition: Event.cpp:92
CParameterValue & operator[](UInt_t nParam)
Definition: Event.cpp:61
virtual ~CEvent()
Definition: Event.cpp:37
CEvent()
Definition: Event.cpp:30
void clear()
Definition: Event.cpp:108
Definition: Event.h:45
Definition: AbstractApplication.cpp:30