Belle II Software  release-05-02-19
FastBDTClassifierAnalyzerModule.h
1 /*************************************************************************
2 * BASF2 (Belle Analysis Framework 2) *
3 * Copyright(C) 2016 - Belle II Collaboration *
4 * *
5 * Author: The Belle II Collaboration *
6 * Contributors: Thomas Madlener *
7 * *
8 * This software is provided "as is" without any warranty. *
9 **************************************************************************/
10 
11 #pragma once
12 
13 #include <string>
14 #include <vector>
15 #include <map>
16 
17 #include <framework/core/Module.h>
18 
19 #include <tracking/trackFindingVXD/filterTools/FBDTClassifierHelper.h>
20 #include <tracking/trackFindingVXD/filterTools/FBDTClassifier.h>
21 
22 
23 namespace Belle2 {
32  class FastBDTClassifierAnalyzerModule : public Module {
33  public:
36 
38  void initialize() override;
39 
41  void terminate() override;
42 
43  private:
46 
47  std::string m_PARAMfbdtFileName;
48  std::string m_PARAMtrainSampleFileName;
49  std::string m_PARAMtestSampleFileName;
50  std::string m_PARAMrootOutFileName;
52  std::vector<TrainSample> m_trainSample;
53  std::vector<TrainSample> m_testSample;
55  std::multimap<int, double> m_trainOutput;
56  std::multimap<int, double> m_testOutput;
57  };
59 }
Belle2::FBDTTrainSample
bundle together the classifier input and the target value into one struct for easier passing around.
Definition: FBDTClassifierHelper.h:36
Belle2::FastBDTClassifierAnalyzerModule::m_PARAMrootOutFileName
std::string m_PARAMrootOutFileName
output file name
Definition: FastBDTClassifierAnalyzerModule.h:58
Belle2::FastBDTClassifierAnalyzerModule::initialize
void initialize() override
Module initialization.
Definition: FastBDTClassifierAnalyzerModule.cc:33
Belle2::FastBDTClassifierAnalyzerModule::m_classifier
Belle2::FBDTClassifier< 9 > m_classifier
classifier
Definition: FastBDTClassifierAnalyzerModule.h:62
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::FastBDTClassifierAnalyzerModule::m_PARAMfbdtFileName
std::string m_PARAMfbdtFileName
weight file name
Definition: FastBDTClassifierAnalyzerModule.h:55
Belle2::FastBDTClassifierAnalyzerModule::m_PARAMtrainSampleFileName
std::string m_PARAMtrainSampleFileName
training sample file name
Definition: FastBDTClassifierAnalyzerModule.h:56
Belle2::FastBDTClassifierAnalyzerModule::m_trainOutput
std::multimap< int, double > m_trainOutput
map containing output for each training event
Definition: FastBDTClassifierAnalyzerModule.h:63
Belle2::FastBDTClassifierAnalyzerModule::m_trainSample
std::vector< TrainSample > m_trainSample
vector for training sample
Definition: FastBDTClassifierAnalyzerModule.h:60
Belle2::FastBDTClassifierAnalyzerModule::m_testSample
std::vector< TrainSample > m_testSample
vector for test sample
Definition: FastBDTClassifierAnalyzerModule.h:61
Belle2::FastBDTClassifierAnalyzerModule::terminate
void terminate() override
Module termination.
Definition: FastBDTClassifierAnalyzerModule.cc:64
Belle2::FastBDTClassifierAnalyzerModule::m_PARAMtestSampleFileName
std::string m_PARAMtestSampleFileName
test sample file name
Definition: FastBDTClassifierAnalyzerModule.h:57
Belle2::FastBDTClassifierAnalyzerModule::FastBDTClassifierAnalyzerModule
FastBDTClassifierAnalyzerModule()
Constructor.
Definition: FastBDTClassifierAnalyzerModule.cc:22
Belle2::FBDTClassifier< 9 >
Belle2::FastBDTClassifierAnalyzerModule::m_testOutput
std::multimap< int, double > m_testOutput
map containing output for each test event
Definition: FastBDTClassifierAnalyzerModule.h:64
Belle2::FastBDTClassifierAnalyzerModule::TrainSample
Belle2::FBDTTrainSample< 9 > TrainSample
Using type definition for fastBDT training sample type.
Definition: FastBDTClassifierAnalyzerModule.h:53