Belle II Software  release-08-01-10
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 
21 namespace Belle2 {
34 
35  public:
38 
39 
40 
45  virtual void initialize() override;
46 
47 
49  virtual void event() override;
50 
51 
53  virtual void terminate() override;
54 
55 
56 
57  protected:
58 
59  void calculateProb(TH2F* signal, TH2F* background, TH2F* probability);
60  void calculateError(TH2F* signal, TH2F* background, TH2F* error);
62  // Data members
63  std::string m_svdClustersName;
64  std::string m_recoTracksName;
78  std::string m_outputFileName;
80  std::string
83  //for setting up histograms
84 
85  std::map<std::string, TH2F* > signalHistMap;
86  std::map<std::string, TH2F*> backgroundHistMap;
88  };
90 } // 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
Abstract base class for different kinds of events.