Belle II Software development
CurlTaggerModule.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 <framework/core/Module.h>
12
13namespace Belle2 {
18 class Particle;
19 namespace CurlTagger {
20 class Selector;
21 }
26 class CurlTaggerModule : public Module {
27
28 public:
29
34
36 virtual ~CurlTaggerModule() override;
37
39 virtual void initialize() override;
40
42 virtual void beginRun() override;
43
45 virtual void event() override;
46
48 virtual void endRun() override;
49
51 virtual void terminate() override;
52
53
54 private:
56 bool passesPreSelection(Particle* particle);
57
58 //params
60 std::vector<std::string> m_ParticleLists;
61
64
67
70
73
75 double m_PtCut;
76
79
81 std::string m_SelectorType;
82
84 std::string m_TrainFileName;
85
86 //member objects
89
90 }; // CurlTaggerModule
91
92} //namespace
93
std::vector< std::string > m_ParticleLists
input particle lists
bool passesPreSelection(Particle *particle)
preselects particles that may be curl tracks
virtual void initialize() override
initialise
virtual void event() override
event code - all curl track selection done here
virtual void endRun() override
end run - unused
bool m_payloadCutFlag
flag for overriding the m_responseCut with a value retrieved from the payload
virtual void terminate() override
termination
virtual ~CurlTaggerModule() override
destructor
bool m_TrainFlag
switch between training and classifying
virtual void beginRun() override
begin run - unused
std::string m_SelectorType
name of selector function to use
bool m_McStatsFlag
if true also does some truth based matching and tags the particles with truthCurl info
CurlTaggerModule()
Constructor: Sets the description, the properties and the parameters of the module.
double m_PtCut
preselection pt cut
bool m_BelleFlag
flags if data/mc comes from belle or belle II
std::string m_TrainFileName
expert: output file name of ntuple produced in training mode
CurlTagger::Selector * m_Selector
contains the selector used
double m_ResponseCut
min classifier response to consider a match
Abstract base class for curl track selectors.
Definition Selector.h:22
Module()
Constructor.
Definition Module.cc:30
Class to store reconstructed particles.
Definition Particle.h:76
Abstract base class for different kinds of events.