Belle II Software development
TOPPull.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/datastore/RelationsObject.h>
12
13namespace Belle2 {
23 class TOPPull : public RelationsObject {
24 public:
25
29 TOPPull(): m_pixelID(0), m_t(0), m_t0(0), m_sigma(0), m_phiCer(0), m_wt(0)
30 {}
31
41 TOPPull(int pixelID, float t, float t0, float sigma, float phiCer, float wt):
42 m_pixelID(pixelID), m_t(t), m_t0(t0), m_sigma(sigma), m_phiCer(phiCer), m_wt(wt)
43 {}
44
49 int getPixelID() const { return m_pixelID; }
50
55 double getTime() const { return m_t; }
56
61 double getMeanTime() const { return m_t0; }
62
67 double getSigma() const { return m_sigma; }
68
73 double getTimeDiff() const { return m_t - m_t0; }
74
79 double getPull() const { return (m_t - m_t0) / m_sigma; }
80
85 double getPhiCer() const { return m_phiCer; }
86
91 double getWeight() const { return m_wt; }
92
97 bool isSignal() const { return m_sigma > 0;}
98
99 private:
101 float m_t;
102 float m_t0;
103 float m_sigma;
104 float m_phiCer;
105 float m_wt;
109 };
110
112} // end namespace Belle2
113
114
115
Defines interface for accessing relations of objects in StoreArray.
Class to store photon pull in respect to PDF used in reconstruction.
Definition: TOPPull.h:23
double getWeight() const
Return probability of photon belonging to this PDF.
Definition: TOPPull.h:91
double getTimeDiff() const
Return time difference btw.
Definition: TOPPull.h:73
float m_t
photon time
Definition: TOPPull.h:101
float m_sigma
PDF sigma (signal) or 0 (background)
Definition: TOPPull.h:103
double getPull() const
Return pull.
Definition: TOPPull.h:79
float m_wt
weight
Definition: TOPPull.h:105
float m_t0
PDF mean time (signal) or minimal PDF mean (background)
Definition: TOPPull.h:102
ClassDef(TOPPull, 2)
ClassDef.
double getPhiCer() const
Return Cerenkov azimuthal angle.
Definition: TOPPull.h:85
int getPixelID() const
Return pixel ID (e.g.
Definition: TOPPull.h:49
bool isSignal() const
Checks whether it corresponds to signal PDF.
Definition: TOPPull.h:97
float m_phiCer
azimuthal Cerenkov angle
Definition: TOPPull.h:104
TOPPull(int pixelID, float t, float t0, float sigma, float phiCer, float wt)
Full constructor.
Definition: TOPPull.h:41
TOPPull()
Default constructor.
Definition: TOPPull.h:29
double getSigma() const
Return PDF width.
Definition: TOPPull.h:67
int m_pixelID
pixel ID (e.g.
Definition: TOPPull.h:100
double getMeanTime() const
Return PDF mean.
Definition: TOPPull.h:61
double getTime() const
Return photon time.
Definition: TOPPull.h:55
Abstract base class for different kinds of events.