PandaRoot
PndOnlineFilterInfo.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDONLINEFILTERINFO_H
14 #define PNDONLINEFILTERINFO_H
15 // //
17 // PndOnlineFilterInfo //
18 // //
19 // Information Container for Online Filter Results //
20 // //
21 // Author: Klaus Goetzen, GSI, 2013 //
22 // //
24 
25 #include <iostream>
26 #include "TObject.h"
27 #include "TBuffer.h"
28 
29 #define OFIMAXMODES 65
30 
31 class PndOnlineFilterInfo : public TObject {
32 
33  public:
36 
37  // *** any tag?
38  bool Tagged() const { return fNTagTotal > 0; }
39 
40  // *** total number of tags of all triggers
41  int GetNTagTotal() const { return fNTagTotal; }
42 
43  // *** accessor to number of tags for mode
44  int GetNTag(int mode);
45 
46  // *** modifier for number of tags for mode
47  void SetNTag(int mode, const int tag);
48 
49  void Reset();
50  void Print();
51 
52  // custom streamer; needed to build map
53  // virtual void Streamer(TBuffer &R__b);
54 
55  protected:
56  bool fTag;
58 
59  int fNModes;
62 
64 };
65 
66 #endif
#define OFIMAXMODES
int fMode[OFIMAXMODES]
void SetNTag(int mode, const int tag)
int fNTag[OFIMAXMODES]
int GetNTag(int mode)
ClassDef(PndOnlineFilterInfo, 2)