Belle II Software light-2406-ragdoll
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 {
28 class CurlTaggerModule : public Module {
29
30 public:
31
36
38 virtual ~CurlTaggerModule() override;
39
41 virtual void initialize() override;
42
44 virtual void beginRun() override;
45
47 virtual void event() override;
48
50 virtual void endRun() override;
51
53 virtual void terminate() override;
54
55
56 private:
58 bool passesPreSelection(Particle* particle);
59
60 //params
62 std::vector<std::string> m_ParticleLists;
63
66
69
72
75
77 double m_PtCut;
78
81
83 std::string m_SelectorType;
84
86 std::string m_TrainFileName;
87
88 //member objects
91
92 }; // CurlTaggerModule
94} //namespace
95
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.
Definition: ClusterUtils.h:24