Belle II Software development
SVDClusterQualityEstimatorCalibrationModule.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 <framework/datastore/StoreArray.h>
13
14#include <tracking/dataobjects/RecoTrack.h>
15
16#include <string>
17#include <map>
18
19#include <TH2.h>
20
21namespace Belle2 {
31
32 public:
35
36
37
42 virtual void initialize() override;
43
44
46 virtual void event() override;
47
48
50 virtual void terminate() override;
51
52
53
54 protected:
55
56 void calculateProb(TH2F* signal, TH2F* background, TH2F* probability);
57 void calculateError(TH2F* signal, TH2F* background, TH2F* error);
59 // Data members
60 std::string m_svdClustersName;
61 std::string m_recoTracksName;
75 std::string m_outputFileName;
77 std::string
80 //for setting up histograms
81
82 std::map<std::string, TH2F* > signalHistMap;
83 std::map<std::string, TH2F*> backgroundHistMap;
85 };
87} // end namespace Belle2
Base class for Modules.
Definition: Module.h:72
Generate PDFs for assigning probability that cluster generated from signal particle.
std::string m_nameOfInstance
allows the user to set an identifier for this module.
StoreArray< SVDCluster > m_svdClusters
the storeArray for svdClusters
void calculateError(TH2F *signal, TH2F *background, TH2F *error)
compute error
std::map< std::string, TH2F * > backgroundHistMap
map to store background histograms
std::map< std::string, TH2F * > signalHistMap
map to store signal histograms
int m_maxClusterSize
Maximum cluster size the PDFs will be distributed over.
void calculateProb(TH2F *signal, TH2F *background, TH2F *probability)
compute probvability
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.