Belle II Software development
TOPNtupleModule.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 <framework/core/Module.h>
12#include <string>
13#include <top/modules/TOPNtuple/NtupleStructure.h>
14
15#include <TFile.h>
16#include <TTree.h>
17
18namespace Belle2 {
23
28 class TOPNtupleModule : public Module {
29
30 public:
31
36
41 virtual void initialize() override;
42
46 virtual void event() override;
47
52 virtual void terminate() override;
53
54 private:
55
56 std::string m_outputFileName;
57
58 TFile* m_file = 0;
59 TTree* m_tree = 0;
61
62 };
63
65} // Belle2 namespace
66
Module()
Constructor.
Definition Module.cc:30
TTree * m_tree
TTree with TOPTree structure.
TOP::TOPTree m_top
ntuple structure
std::string m_outputFileName
output file name (root file)
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void terminate() override
Termination action.
Abstract base class for different kinds of events.
Structure of a flat ntuple.