Belle II Software  release-08-02-06
trggdlSummaryModule.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #ifndef TRCGDLSummaryModule_h
9 #define TRCGDLSummaryModule_h
10 
11 #include <vector>
12 #include <string>
13 
14 #include <trg/gdl/dataobjects/TRGGDLUnpackerStore.h>
15 #include <trg/gdl/modules/trggdlUnpacker/trggdlUnpackerModule.h>
16 #include <framework/core/Module.h>
17 #include <framework/datastore/StoreObjPtr.h>
18 #include <mdst/dataobjects/TRGSummary.h>
19 #include <framework/database/DBObjPtr.h>
20 #include <mdst/dbobjects/TRGGDLDBPrescales.h>
21 #include <trg/gdl/dbobjects/TRGGDLDBUnpacker.h>
22 
23 namespace Belle2 {
29  class TRGGDLSummaryModule : public Module {
30 
31  public:
35  virtual ~TRGGDLSummaryModule() {}
36 
37  public:
39  virtual void initialize() override;
41  virtual void beginRun() override {}
43  virtual void event() override;
45  virtual void endRun() override {}
47  virtual void terminate() override {}
48 
49  private:
50 
53  //condition database for unpacer
54  DBObjPtr<TRGGDLDBUnpacker> m_unpacker;
55  //condition database for prescales
56  DBObjPtr<TRGGDLDBPrescales> m_prescales;
57  int LeafBitMap[320] = {0};
58  char LeafNames[320][100] = {{""}};
59  int _e_timtype = 0;
60  int _e_rvcout = 0;
61  int ee_psn[10] = {0};
62  int ee_ftd[10] = {0};
63  int ee_itd[10] = {0};
64 
65  std::vector<std::string> e_inBitsWithPSNMTiming;
66  std::vector<std::string> e_outBitsWithPSNMTiming;
67 
68  bool maskInitialized;
69  unsigned int e_inBitWPTMasks[TRGSummary::c_ntrgWords];
70  unsigned int e_outBitWPTMasks[TRGSummary::c_ntrgWords];
71 
74 
75  };
76 
78 }
79 
80 #endif
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Base class for Modules.
Definition: Module.h:72
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
virtual void endRun() override
End Run.
virtual void terminate() override
terminate
virtual void initialize() override
initialize
virtual void event() override
Event.
virtual void beginRun() override
begin Run
virtual ~TRGGDLSummaryModule()
Destrunctor.
StoreObjPtr< TRGSummary > GDLResult
output for TRGSummary
static const unsigned int c_ntrgWords
number of l1 trigger words
Definition: TRGSummary.h:40
Abstract base class for different kinds of events.