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#include <analysis/dataobjects/Particle.h>
13
14#include <analysis/modules/CurlTagger/Selector.h>
15
16namespace Belle2 {
25 class CurlTaggerModule : public Module {
26
27 public:
28
33
35 virtual ~CurlTaggerModule() override;
36
38 virtual void initialize() override;
39
41 virtual void beginRun() override;
42
44 virtual void event() override;
45
47 virtual void endRun() override;
48
50 virtual void terminate() override;
51
52
53 private:
55 bool passesPreSelection(Particle* particle);
56
57 //params
59 std::vector<std::string> m_ParticleLists;
60
63
66
69
72
74 double m_PtCut;
75
78
80 std::string m_SelectorType;
81
83 std::string m_TrainFileName;
84
85 //member objects
88
89 }; // CurlTaggerModule
91} //namespace
92
This module is designed to tag curl tracks.
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
Base class for Modules.
Definition: Module.h:72
Class to store reconstructed particles.
Definition: Particle.h:75
Abstract base class for different kinds of events.