Belle II Software  release-08-01-10
fitDeltaT Class Reference
Inheritance diagram for fitDeltaT:
Collaboration diagram for fitDeltaT:

Public Member Functions

def __init__ (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 nentries
 Total number of analyzed events.
 
 DT
 Time difference between the decays of the two generated B mesons.
 
 Tsig
 Decay time of the signal B mesons. More...
 
 Ttag
 Decay time of the tag-side B meson.
 
 DT0
 Production time of the B mesons.
 
 Tau
 B0-meson lifetime.
 
 A
 Direct CP-violation parameter (CP violation in decay).
 
 S
 Mixing-induced CP-violation parameter (CP violation caused by the overlap between mixing and decay phases)
 
 DM
 Mass difference between the two B0-mass eigenstates.
 
 Norm
 Normalization factor of the quantum mechanical pdfs.
 
 BetaGamma
 Lorentz boost of the B mesons.
 
 q
 Flavor of the tag-side B0 meson at the time of its decay.
 
 qsig
 Flavor of the signal-side B0 meson at the time of its decay.
 
 fitData
 RooDataSet containing DT and q for each event.
 
 fitDataTag
 RooDataSet containing Ttag and q for each event.
 
 fitDataTagDeltaTPos
 RooDataSet containing Ttag and q for positive DT.
 
 fitDataTagDeltaTNeg
 RooDataSet containing Ttag and q for negative DT.
 
 fitDataSig
 RooDataSet containing Tsig and q for each event.
 
 fitDataSigDeltaTPos
 RooDataSet containing Tsig and q for positive DT.
 
 fitDataSigDeltaTNeg
 RooDataSet containing Tsig and q for negative DT.
 
 B0sInTagSide
 Number of tag-side B0s (positive flavor).
 
 B0barsInTagSide
 Number of tag-side anti-B0s (negative flavor).
 
 B0sInSignalSide
 Number of B0s in the signal side (positive flavor).
 
 B0barsInSignalSide
 Number of anti-B0s in the signal side (negative flavor).
 
 fractionB0barInSignalSide
 Fraction of anti-B0s in the signal side.
 
 fractionB0InSignalSide
 Fraction of B0s in the signal side.
 
 DeltaZsigUpsilon
 Difference between the production and the decay vertices of the signal-side B0 meson in z direction.
 
 DeltaZtagUpsilon
 Difference between the production and the decay vertices of the tag-side B0 meson in z direction.
 
 fitDataDeltaZsigUpsilon
 RooDataSet containing DeltaZsigUpsilon and q.
 
 fitDataDeltaZtagUpsilon
 RooDataSet containing DeltaZtagUpsilon and q.
 
 TsigPosNeg
 Empty variable just to define the limits of the frames in the plots for Tsig.
 
 TtagPosNeg
 Empty variable just to define the limits of the frames in the plots for Ttag.
 

Detailed Description

This class makes plots to validate the generated CP asymmetry. It saves the decay time information of the simulation
for both B mesons by running as a basf2 module.  It fills the information in RooDataSets and at the end it fits the
known quantum mechanical pdfs to the delta T distribution and the individual decay time distributions of
the signal and the tag-side B mesons to check if the S and the A parameters in the simulation are correct.

Definition at line 252 of file B0_GenDeltaTFit.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Here the module initializes by declaring the variables corresponding to the interesting physical parameters and
decay times. The RooDataSets where the information will be saved are also declared.

Definition at line 324 of file B0_GenDeltaTFit.py.

324  def __init__(self):
325  """
326  Here the module initializes by declaring the variables corresponding to the interesting physical parameters and
327  decay times. The RooDataSets where the information will be saved are also declared.
328  """
329  super().__init__()
330  self.nentries = 0
331 
332  self.DT = ROOT.RooRealVar("DT", "#Delta#it{t}", 0., -11., 11., "ps")
333  self.Tsig = ROOT.RooRealVar("Tsig", "#it{t}_{sig}^{gen}", 0., 0., 11., "ps")
334  self.Ttag = ROOT.RooRealVar("Ttag", "#it{t}_{tag}^{gen}", 0., 0., 11., "ps")
335  self.DT0 = ROOT.RooRealVar("DT0", "DT0", 0., -7., 7.)
336  self.Tau = ROOT.RooRealVar("Tau", "Tau", 1.525, 0., 4.)
337  self.A = ROOT.RooRealVar("A", "A", 0, -1, 1)
338  self.S = ROOT.RooRealVar("S", "S", 0, -1, 1)
339  self.DM = ROOT.RooRealVar("DM", "DM", 0.507)
340  self.Norm = ROOT.RooRealVar("Norm", "Norm", 2, 1, 8)
341  self.BetaGamma = ROOT.RooRealVar("BetaGamma", "BetaGamma", 0.5, 0.1, 1)
342 
343  self.q = ROOT.RooCategory("q", "q")
344  self.q.defineType("1")
345  self.q.defineType("-1")
346 
347  self.qsig = ROOT.RooCategory("qsig", "qsig")
348  self.qsig.defineType("1")
349  self.qsig.defineType("-1")
350 
351  self.fitData = ROOT.RooDataSet("fitData", "fitData", ROOT.RooArgSet(self.DT, self.q))
352  self.fitDataTag = ROOT.RooDataSet("fitDataTag", "fitDataTag", ROOT.RooArgSet(self.Ttag, self.q))
353  self.fitDataTagDeltaTPos = ROOT.RooDataSet("fitDataTagDeltaTPos", "fitDataTagDeltaTPos", ROOT.RooArgSet(self.Ttag, self.q))
354  self.fitDataTagDeltaTNeg = ROOT.RooDataSet("fitDataTagDeltaTNeg", "fitDataTagDeltaTNeg", ROOT.RooArgSet(self.Ttag, self.q))
355  self.fitDataSig = ROOT.RooDataSet("fitDataSig", "fitDataSig", ROOT.RooArgSet(self.Tsig, self.q, self.qsig))
356  self.fitDataSigDeltaTPos = ROOT.RooDataSet("fitDataSigDeltaTPos", "fitDataSigDeltaTPos", ROOT.RooArgSet(self.Tsig, self.q))
357  self.fitDataSigDeltaTNeg = ROOT.RooDataSet("fitDataSigDeltaTNeg", "fitDataSigDeltaTNeg", ROOT.RooArgSet(self.Tsig, self.q))
358 
359  self.B0sInTagSide = 0
360  self.B0barsInTagSide = 0
361 
362  self.B0sInSignalSide = 0
363  self.B0barsInSignalSide = 0
364  self.fractionB0barInSignalSide = 0.7057091319609885
365  self.fractionB0InSignalSide = 0.2942908680390115
366 
367  # Study od Delta z
368 
369  self.DeltaZsigUpsilon = ROOT.RooRealVar("DeltaZsigUpsilon", "(#it{z}_{sig}^{dec} - #it{z}_{sig}^{prod})^{gen}", 0., 0., 0.8)
370  self.DeltaZtagUpsilon = ROOT.RooRealVar(
371  "DeltaZtagUpsilon",
372  "(#it{z}_{tag}^{dec} - #it{z}_{tag}^{prod})^{gen}",
373  0.,
374  0.,
375  0.8,
376  "mm")
377  self.fitDataDeltaZsigUpsilon = ROOT.RooDataSet(
378  "fitDataDeltaZsigUpsilon",
379  "fitDataDeltaZsigUpsilon",
380  ROOT.RooArgSet(
381  self.DeltaZsigUpsilon,
382  self.q))
383  self.fitDataDeltaZtagUpsilon = ROOT.RooDataSet(
384  "fitDataDeltaZtagUpsilon",
385  "fitDataDeltaZtagUpsilon",
386  ROOT.RooArgSet(
387  self.DeltaZtagUpsilon,
388  self.q))
389 
390  # Only for plotting
391 
392  self.TsigPosNeg = ROOT.RooRealVar("Tsig", "#it{t}_{sig}^{gen}", 0., 0., 7., "ps")
393  self.TtagPosNeg = ROOT.RooRealVar("Ttag", "#it{t}_{tag}^{gen}", 0., 0., 7., "ps")
394 

Member Function Documentation

◆ event()

def event (   self)
Here the information is collected event by event.

Definition at line 395 of file B0_GenDeltaTFit.py.

◆ terminate()

def terminate (   self)
Here the known quantum mechanical pdfs are defined and fitted to the generated MC distributions.
Afterwards, the plots are saved.

Definition at line 492 of file B0_GenDeltaTFit.py.

Member Data Documentation

◆ Tsig

Tsig

Decay time of the signal B mesons.

Attention! This script recognizes only B0-> JPsiKs as signal B meson.

Definition at line 333 of file B0_GenDeltaTFit.py.


The documentation for this class was generated from the following file: