Belle II Software  release-05-02-19
TOPPull.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/datastore/RelationsObject.h>
14 
15 namespace Belle2 {
25  class TOPPull : public RelationsObject {
26  public:
27 
31  TOPPull(): m_pixelID(0), m_t(0), m_t0(0), m_sigma(0), m_phiCer(0), m_wt(0)
32  {}
33 
43  TOPPull(int pixelID, float t, float t0, float sigma, float phiCer, float wt):
44  m_pixelID(pixelID), m_t(t), m_t0(t0), m_sigma(sigma), m_phiCer(phiCer), m_wt(wt)
45  {}
46 
51  int getPixelID() const { return m_pixelID; }
52 
57  double getTime() const { return m_t; }
58 
63  double getMeanTime() const { return m_t0; }
64 
69  double getSigma() const { return m_sigma; }
70 
75  double getTimeDiff() const { return m_t - m_t0; }
76 
81  double getPull() const { return (m_t - m_t0) / m_sigma; }
82 
87  double getPhiCer() const { return m_phiCer; }
88 
93  double getWeight() const { return m_wt; }
94 
99  bool isSignal() const { return m_sigma > 0;}
100 
101  private:
102  int m_pixelID;
103  float m_t;
104  float m_t0;
105  float m_sigma;
106  float m_phiCer;
107  float m_wt;
109  ClassDef(TOPPull, 2);
111  };
112 
114 } // end namespace Belle2
115 
116 
117 
Belle2::TOPPull::getMeanTime
double getMeanTime() const
Return PDF mean.
Definition: TOPPull.h:71
Belle2::TOPPull::m_sigma
float m_sigma
PDF sigma (signal) or 0 (background)
Definition: TOPPull.h:113
Belle2::TOPPull::getWeight
double getWeight() const
Return probability of photon belonging to this PDF.
Definition: TOPPull.h:101
Belle2::TOPPull::getPhiCer
double getPhiCer() const
Return Cerenkov azimuthal angle.
Definition: TOPPull.h:95
Belle2::TOPPull::m_wt
float m_wt
weight
Definition: TOPPull.h:115
Belle2::TOPPull::m_t0
float m_t0
PDF mean time (signal) or minimal PDF mean (background)
Definition: TOPPull.h:112
Belle2::TOPPull
Class to store photon pull in respect to PDF used in reconstruction.
Definition: TOPPull.h:33
Belle2::TOPPull::m_t
float m_t
photon time
Definition: TOPPull.h:111
Belle2::TOPPull::getPull
double getPull() const
Return pull.
Definition: TOPPull.h:89
Belle2::TOPPull::getTimeDiff
double getTimeDiff() const
Return time difference btw.
Definition: TOPPull.h:83
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPPull::TOPPull
TOPPull()
Default constructor.
Definition: TOPPull.h:39
Belle2::TOPPull::getSigma
double getSigma() const
Return PDF width.
Definition: TOPPull.h:77
Belle2::TOPPull::getTime
double getTime() const
Return photon time.
Definition: TOPPull.h:65
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::TOPPull::m_phiCer
float m_phiCer
azimuthal Cerenkov angle
Definition: TOPPull.h:114
Belle2::TOPPull::ClassDef
ClassDef(TOPPull, 2)
ClassDef.
Belle2::TOPPull::isSignal
bool isSignal() const
Checks whether it corresponds to signal PDF.
Definition: TOPPull.h:107
Belle2::TOPPull::m_pixelID
int m_pixelID
pixel ID (e.g.
Definition: TOPPull.h:110
Belle2::TOPPull::getPixelID
int getPixelID() const
Return pixel ID (e.g.
Definition: TOPPull.h:59