Diana Software
MSorter.hh
Go to the documentation of this file.
1 
76 #ifndef _M_SORTER_H_
77 #define _M_SORTER_H_
78 
79 #include <string>
80 #include "QModule.hh"
81 #include "QDiana.hh"
82 #include "QVector.hh"
83 
84 
85 class MSorter : public QModule {
86 
87  public:
88  MSorter(QSequence* s);
89 
90  virtual ~MSorter();
91 
92  // Init method is called before event loop
93  virtual void Init();
94 
95  // Doit method is called for each event, getting the event as argument
96  virtual QEvent* Do( QEvent* ev);
97 
98  // Done method is called after event loop
99  virtual void Done();
100 
101  private:
103  std::string fSortFilename;
104 
107 
109  unsigned int fIndex;
110 };
111 
112 #endif
Module for sorting events based on an ordered list.
Definition: MSorter.hh:85
virtual QEvent * Do(QEvent *ev)
Definition: MSorter.cc:42
virtual void Done()
Done method is called after event loop.
Definition: MSorter.cc:57
QVector fEventVector
vector to store list of events
Definition: MSorter.hh:106
unsigned int fIndex
Index to tell which event we are on.
Definition: MSorter.hh:109
MSorter(QSequence *s)
Definition: MSorter.cc:19
std::string fSortFilename
this is the name of the file where the sorted list is kept
Definition: MSorter.hh:103
virtual void Init()
Definition: MSorter.cc:27
virtual ~MSorter()
Definition: MSorter.cc:23
diana event
Definition: QEvent.hh:46
Base class for diana modules.
Definition: QModule.hh:54
Diana Reconstruction program.
Definition: QSequence.hh:40
Interface for vectors in Diana analysis.
Definition: QVector.hh:30