stream  0.10.0
stream analysis framework
MonitorProcessor.h
1 #ifndef HADAQ_MONITORROCESSOR_H
2 #define HADAQ_MONITORROCESSOR_H
3 
4 #include "hadaq/TrbProcessor.h"
5 #include "hadaq/MonitorSubEvent.h"
6 
7 #include <vector>
8 
9 namespace hadaq {
10 
20  class MonitorProcessor : public TrbProcessor {
21 
22  protected:
23 
24  unsigned fMonitorProcess;
25 
26  std::vector<hadaq::MessageMonitor> fDummyVect;
27  std::vector<hadaq::MessageMonitor> *pStoreVect;
28 
29  virtual void ScanSubEvent(hadaqs::RawSubevent* sub, unsigned trb3runid, unsigned trb3seqid);
30 
31  virtual void CreateBranch(TTree* t);
32 
33  public:
34 
35  MonitorProcessor(unsigned brdid = 0, HldProcessor *hld = nullptr, int hfill = -1);
36  virtual ~MonitorProcessor() {}
37 
39  void SetNWords(unsigned nwords = 3) { fMonitorProcess = nwords; }
41  unsigned GetNWords() const { return fMonitorProcess; }
42 
43  virtual void Store(base::Event*);
44  virtual void ResetStore();
45  };
46 }
47 
48 #endif
Event - collection of several subevents.
Definition: Event.h:17
HLD processor.
Definition: HldProcessor.h:93
Processor of monitored data.
Definition: MonitorProcessor.h:20
std::vector< hadaq::MessageMonitor > * pStoreVect
! pointer on store vector
Definition: MonitorProcessor.h:27
virtual void ScanSubEvent(hadaqs::RawSubevent *sub, unsigned trb3runid, unsigned trb3seqid)
Scan FPGA-TDC data, distribute over sub-processors.
Definition: MonitorProcessor.cxx:16
virtual void ResetStore()
reset store
Definition: MonitorProcessor.cxx:85
virtual void CreateBranch(TTree *t)
create branch
Definition: MonitorProcessor.cxx:56
void SetNWords(unsigned nwords=3)
set number of words
Definition: MonitorProcessor.h:39
virtual void Store(base::Event *)
store event
Definition: MonitorProcessor.cxx:67
MonitorProcessor(unsigned brdid=0, HldProcessor *hld=nullptr, int hfill=-1)
constructor
Definition: MonitorProcessor.cxx:6
unsigned GetNWords() const
get number of words
Definition: MonitorProcessor.h:41
std::vector< hadaq::MessageMonitor > fDummyVect
! dummy empty vector
Definition: MonitorProcessor.h:26
unsigned fMonitorProcess
counter
Definition: MonitorProcessor.h:24
TRB processor.
Definition: TrbProcessor.h:46
Raw hades subevent.
Definition: definess.h:408