Belle II Software development
TRGECLBGTCHitModule.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
9#pragma once
10
11#include <string>
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <framework/database/DBArray.h>
15
16#include "trg/ecl/TrgEclMapping.h"
17#include "ecl/dataobjects/ECLHit.h"
18#include "trg/ecl/dataobjects/TRGECLBGTCHit.h"
19#include "trg/ecl/dataobjects/TRGECLUnpackerStore.h"
20
21namespace Belle2 {
27 class TRGECLBGTCHitModule : public Module {
28 public:
29
32
34 virtual ~TRGECLBGTCHitModule();
36 virtual void initialize() override;
38 virtual void beginRun() override;
40 virtual void event() override;
42 virtual void endRun() override;
44 virtual void terminate() override;
45
46 public:
47
49 std::string version(void) const;
50
51 private:
53 // generate simulation TCHit data objection
54 void genSimulationObj();
55 // generate random trigger data TCHit data objection
56 void genRandomTrgObj();
57 // TC energy cut (GeV)
58 double m_TCEnergyCut;
59 // TC timing cut (ns) for lower timing
60 double m_TCTimingCutLow;
61 // TC timing cut (ns) for high timing
62 double m_TCTimingCutHigh;
63 // Debug level
64 int m_debugLevel;
65
66 protected:
67
68 private:
69 // hardware configuration
70 TrgEclMapping* m_TCMap;
71 // ECL data object
72 StoreArray<ECLHit> m_eclHits;
73 // ecl trigger ETM dataobject
74 StoreArray<TRGECLUnpackerStore> m_trgeclUnpackerStores;
75 // ecl trigger BG TC dataobject
76 StoreArray<TRGECLBGTCHit> m_trgeclBGTCHits;
77 };
78
80} // namespace Belle2
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
A class of TC Mapping.
Definition: TrgEclMapping.h:26
virtual void initialize() override
Initilizes TRGECLBGTCHitModule.
virtual void event() override
Called event by event.
virtual void endRun() override
Called when run ended.
virtual void terminate() override
Called when processing ended.
virtual void beginRun() override
Called when new run started.
virtual ~TRGECLBGTCHitModule()
Destructor.
std::string version(void) const
returns version of TRGECLBGTCHitModule.
Abstract base class for different kinds of events.