Belle II Software prerelease-10-00-00a
ARICHNtupleModule.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#pragma once
9
10#include <framework/datastore/StoreArray.h>
11#include <framework/core/Module.h>
12
13#include <mdst/dataobjects/Track.h>
14#include <mdst/dataobjects/MCParticle.h>
15
16#include <arich/dataobjects/ARICHLikelihood.h>
17#include <arich/dataobjects/ARICHAeroHit.h>
18#include <arich/dataobjects/ARICHTrack.h>
19#include <arich/dataobjects/ARICHInfo.h>
20
21
22// ROOT
23#include <string>
24#include <TFile.h>
25#include <TTree.h>
26#include <arich/modules/arichNtuple/ARICHNtupleStruct.h>
27
28namespace Belle2 {
33
58 class ARICHNtupleModule : public Module {
59
60 public:
61
66
70 virtual ~ARICHNtupleModule();
71
76 virtual void initialize() override;
77
81 virtual void event() override;
82
87 virtual void terminate() override;
88
89 private:
90
91 // required input
94
95 // optional input
100
101 std::string m_outputFile;
102
103 TFile* m_file;
104 TTree* m_tree;
105
107 };
108
110} // Belle2 namespace
TTree * m_tree
pointer to output tree
StoreArray< ARICHAeroHit > m_arichAeroHits
Optional input array of ARICHAeroHits.
std::string m_outputFile
output root file
StoreArray< ARICHTrack > m_arichTracks
Required array of input ARICHTracks.
ARICH::ARICHTree m_arich
ntuple structure
StoreArray< MCParticle > m_arichMCPs
Optional input array of MCParticles.
StoreArray< Track > m_tracks
Optional input array of Tracks.
StoreArray< ARICHLikelihood > m_arichLikelihoods
Required array of input ARICHLikelihoods.
TFile * m_file
pointer to output root file
StoreArray< ARICHInfo > m_arichInfo
Optional input array of ARICHInfo.
Module()
Constructor.
Definition Module.cc:30
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void terminate() override
Termination action.
virtual ~ARICHNtupleModule()
Destructor.
Abstract base class for different kinds of events.
Structure of a flat ntuple.