Belle II Software development
Bundle.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 <vector>
12#include <string>
13
14namespace Belle2 {
19 class Particle;
20 namespace CurlTagger {
21
23 class Bundle {
24
25 public:
27 explicit Bundle(bool isTruthBundle);
28
31
33 void addParticle(Particle* particle);
34
36 Particle* getParticle(unsigned int i);
37
39 unsigned int size();
40
42 void tagCurlInfo();
43
45 void tagSizeInfo();
46
47 private:
48
50 float scaledImpactParam(Particle* particle);
51
53 double m_Gamma;
54
56 bool compareParticles(Particle* iPart, Particle* jPart);
57
60
62 std::string m_CurlLabel;
63
65 std::string m_SizeLabel;
66
68 std::vector<Particle*> m_Particles;
69
70 };//class
71
72 } // Curl Tagger namespace
74} // Belle 2 namespace
75
Bundle(bool isTruthBundle)
Constructor.
Definition Bundle.cc:18
float scaledImpactParam(Particle *particle)
scaled impact parameter for selecting best track
Definition Bundle.cc:49
void tagSizeInfo()
sets extraInfo with size of Bundle for particles in Bundle
Definition Bundle.cc:81
std::string m_CurlLabel
label used to tag particles with curl info
Definition Bundle.h:62
unsigned int size()
gets Bundle size
Definition Bundle.cc:44
bool m_IsTruthBundle
flag for if the bundle is based on truth info, changes which labels are used
Definition Bundle.h:59
bool compareParticles(Particle *iPart, Particle *jPart)
used to rank particles by scaledImpactParam - currently unused
Definition Bundle.cc:54
Particle * getParticle(unsigned int i)
gets Particle from Bundle
Definition Bundle.cc:39
std::vector< Particle * > m_Particles
particles in bundle
Definition Bundle.h:68
std::string m_SizeLabel
label used to tag particles with Bundle size
Definition Bundle.h:65
void addParticle(Particle *particle)
adds Particle to Bundle
Definition Bundle.cc:34
double m_Gamma
dr scale factor
Definition Bundle.h:53
void tagCurlInfo()
sets curl extra info for particles in Bundle
Definition Bundle.cc:59
Class to store reconstructed particles.
Definition Particle.h:76
Abstract base class for different kinds of events.