Belle II Software  release-08-01-10
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 
23 namespace Belle2 {
34  class TOPLLScannerModule : public Module {
35 
36  public:
37 
42 
44  ~TOPLLScannerModule() override;
45 
47  void initialize() override;
48 
50  void event() override;
51 
53  void terminate() override;
54 
55 
56  private:
57 
59  void scanLikelihood(std::vector<float>masses, std::vector<float>logLs, float deltaLL, float& maxLL, float& massMax,
60  float& minMassRange, float& maxMassRange);
61 
62  std::vector<float> m_massPoints;
63  short m_nFineScanPoints = 50;
64  // datastore objects
71  };
73 }
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.