Belle II Software development
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 {
55 class ARICHNtupleModule : public Module {
56
57 public:
58
63
67 virtual ~ARICHNtupleModule();
68
73 virtual void initialize() override;
74
78 virtual void event() override;
79
84 virtual void terminate() override;
85
86 private:
87
88 // required input
92 // optional input
98 std::string m_outputFile;
100 TFile* m_file;
101 TTree* m_tree;
104 };
105
107} // Belle2 namespace
ARICH reconstruction efficiency test module.
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.
Base class for Modules.
Definition: Module.h:72
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.