Belle II Software
release-05-01-25
Recorder.h
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2015 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Oliver Frost *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
#pragma once
11
12
#include <tracking/trackFindingCDC/utilities/Named.h>
13
14
#include <RtypesCore.h>
15
16
#include <functional>
17
#include <vector>
18
#include <memory>
19
#include <string>
20
21
class
TTree;
22
23
namespace
Belle2
{
28
namespace
TrackFindingCDC {
29
31
class
Recorder
{
32
public
:
42
Recorder
(
const
std::function<
void
(TTree&)>& setBranches,
43
const
std::string& rootFileName,
44
const
std::string& treeName =
"recorded_tree"
);
45
46
55
Recorder
(
const
std::vector<
Named<Float_t*>
>& namedVariables,
56
const
std::string& rootFileName,
57
const
std::string& treeName =
"recorded_tree"
);
58
60
~Recorder
();
61
63
void
write
();
64
66
void
capture
();
67
68
private
:
70
class
Impl
;
71
73
std::unique_ptr<Impl>
m_impl
;
74
};
75
}
77
}
Belle2::TrackFindingCDC::Named< Float_t * >
Belle2::TrackFindingCDC::Recorder::capture
void capture()
Capture the registered variable values and write them out.
Definition:
Recorder.cc:171
Belle2::TrackFindingCDC::Recorder::Recorder
Recorder(const std::function< void(TTree &)> &setBranches, const std::string &rootFileName, const std::string &treeName="recorded_tree")
Construct the Recorder opening the given ROOT file and create the underlying TTree and add let the gi...
Belle2::TrackFindingCDC::Recorder
Class to fill a tree from a set of variables.
Definition:
Recorder.h:31
Belle2::TrackFindingCDC::Recorder::~Recorder
~Recorder()
Destructor writing the TTree and closing the ROOT File.
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::Recorder::m_impl
std::unique_ptr< Impl > m_impl
Pointer to implementation hiding the details.
Definition:
Recorder.h:70
Belle2::TrackFindingCDC::Recorder::Impl
Record the MVA variables.
Definition:
Recorder.cc:30
Belle2::TrackFindingCDC::Recorder::write
void write()
Write all captured variables to disk.
Definition:
Recorder.cc:166
tracking
trackFindingCDC
mva
include
Recorder.h
Generated on Fri Nov 5 2021 04:03:45 for Belle II Software by
1.8.17