Belle II Software development
TOPLLScannerModule.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
13#include <framework/datastore/StoreArray.h>
14#include <framework/datastore/StoreObjPtr.h>
15#include <mdst/dataobjects/Track.h>
16#include <tracking/dataobjects/ExtHit.h>
17#include <top/dataobjects/TOPDigit.h>
18#include <top/dataobjects/TOPRecBunch.h>
19#include <top/dataobjects/TOPBarHit.h>
20#include <top/dataobjects/TOPLikelihoodScanResult.h>
21#include <string>
22
23namespace Belle2 {
31 class TOPLLScannerModule : public Module {
32
33 public:
34
39
41 ~TOPLLScannerModule() override;
42
44 void initialize() override;
45
47 void event() override;
48
50 void terminate() override;
51
52
53 private:
54
56 void scanLikelihood(std::vector<float>masses, std::vector<float>logLs, float deltaLL, float& maxLL, float& massMax,
57 float& minMassRange, float& maxMassRange);
58
59 std::vector<float> m_massPoints;
60 short m_nFineScanPoints = 50;
61 // datastore objects
68 };
70}
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
A module to perform the TOP PID likelihood scan and find the actual minimum as function of the mass.
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
void initialize() override
Setup the storearrays.
TOPLLScannerModule()
Constructor: Sets the description, the properties and the parameters of the module.
void event() override
Performs the scan.
void scanLikelihood(std::vector< float >masses, std::vector< float >logLs, float deltaLL, float &maxLL, float &massMax, float &minMassRange, float &maxMassRange)
Finds best fit value and confidence interval form a LL vie direct scan.
void terminate() override
Saves the results.
short m_nFineScanPoints
number of points for the fine-graned scan
~TOPLLScannerModule() override
Default destructor, Nothing to see here.
StoreArray< Track > m_tracks
collection of tracks
StoreArray< TOPDigit > m_digits
collection of digits
StoreArray< ExtHit > m_extHits
collection of extrapolated hits
StoreArray< TOPBarHit > m_barHits
collection of MCParticle hits at TOP
std::vector< float > m_massPoints
vector with the mass points used in the coarse scan
StoreArray< TOPLikelihoodScanResult > m_likelihoodScanResults
collection of likelihoods
Abstract base class for different kinds of events.