Belle II Software  release-08-01-10
FastBDTClassifierAnalyzerModule.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 <vector>
13 #include <map>
14 
15 #include <framework/core/Module.h>
16 
17 #include <tracking/trackFindingVXD/filterTools/FBDTClassifierHelper.h>
18 #include <tracking/trackFindingVXD/filterTools/FBDTClassifier.h>
19 
20 
21 namespace Belle2 {
31  public:
34 
36  void initialize() override;
37 
39  void terminate() override;
40 
41  private:
44 
45  std::string m_PARAMfbdtFileName;
48  std::string m_PARAMrootOutFileName;
50  std::vector<TrainSample> m_trainSample;
51  std::vector<TrainSample> m_testSample;
53  std::multimap<int, double> m_trainOutput;
54  std::multimap<int, double> m_testOutput;
55  };
57 }
std::string m_PARAMtrainSampleFileName
training sample file name
std::string m_PARAMtestSampleFileName
test sample file name
std::multimap< int, double > m_trainOutput
map containing output for each training event
void initialize() override
Module initialization.
std::multimap< int, double > m_testOutput
map containing output for each test event
std::vector< TrainSample > m_trainSample
vector for training sample
std::vector< TrainSample > m_testSample
vector for test sample
Belle2::FBDTClassifier< 9 > m_classifier
classifier
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.
bundle together the classifier input and the target value into one struct for easier passing around.