Belle II Software  release-05-02-19
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
 
 DT
 
 Tsig
 
 Ttag
 
 DT0
 
 Tau
 
 A
 
 S
 
 DM
 
 Norm
 
 BetaGamma
 
 q
 
 qsig
 
 fitData
 
 fitDataTag
 
 fitDataTagDeltaTPos
 
 fitDataTagDeltaTNeg
 
 fitDataSig
 
 fitDataSigDeltaTPos
 
 fitDataSigDeltaTNeg
 
 B0sInTagSide
 
 B0barsInTagSide
 
 B0sInSignalSide
 
 B0barsInSignalSide
 
 fractionB0barInSignalSide
 
 fractionB0InSignalSide
 
 DeltaZsigUpsilon
 
 DeltaZtagUpsilon
 
 fitDataDeltaZsigUpsilon
 
 fitDataDeltaZtagUpsilon
 
 TsigPosNeg
 
 TtagPosNeg
 

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(fitDeltaT, self).__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 495 of file B0_GenDeltaTFit.py.

Member Data Documentation

◆ A

A

Direct CP-violation parameter (CP violation in decay).

Definition at line 337 of file B0_GenDeltaTFit.py.

◆ B0barsInSignalSide

B0barsInSignalSide

Number of anti-B0s in the signal side (negative flavor).

Definition at line 363 of file B0_GenDeltaTFit.py.

◆ B0barsInTagSide

B0barsInTagSide

Number of tag-side anti-B0s (negative flavor).

Definition at line 360 of file B0_GenDeltaTFit.py.

◆ B0sInSignalSide

B0sInSignalSide

Number of B0s in the signal side (positive flavor).

Definition at line 362 of file B0_GenDeltaTFit.py.

◆ B0sInTagSide

B0sInTagSide

Number of tag-side B0s (positive flavor).

Definition at line 359 of file B0_GenDeltaTFit.py.

◆ BetaGamma

BetaGamma

Lorentz boost of the B mesons.

Definition at line 341 of file B0_GenDeltaTFit.py.

◆ DeltaZsigUpsilon

DeltaZsigUpsilon

Difference between the production and the decay vertices of the signal-side B0 meson in z direction.

Definition at line 369 of file B0_GenDeltaTFit.py.

◆ DeltaZtagUpsilon

DeltaZtagUpsilon

Difference between the production and the decay vertices of the tag-side B0 meson in z direction.

Definition at line 370 of file B0_GenDeltaTFit.py.

◆ DM

DM

Mass difference between the two B0-mass eigenstates.

Definition at line 339 of file B0_GenDeltaTFit.py.

◆ DT

DT

Time difference between the decays of the two generated B mesons.

Definition at line 332 of file B0_GenDeltaTFit.py.

◆ DT0

DT0

Production time of the B mesons.

Definition at line 335 of file B0_GenDeltaTFit.py.

◆ fitData

fitData

RooDataSet containing DT and q for each event.

Definition at line 351 of file B0_GenDeltaTFit.py.

◆ fitDataDeltaZsigUpsilon

fitDataDeltaZsigUpsilon

RooDataSet containing DeltaZsigUpsilon and q.

Definition at line 377 of file B0_GenDeltaTFit.py.

◆ fitDataDeltaZtagUpsilon

fitDataDeltaZtagUpsilon

RooDataSet containing DeltaZtagUpsilon and q.

Definition at line 383 of file B0_GenDeltaTFit.py.

◆ fitDataSig

fitDataSig

RooDataSet containing Tsig and q for each event.

Definition at line 355 of file B0_GenDeltaTFit.py.

◆ fitDataSigDeltaTNeg

fitDataSigDeltaTNeg

RooDataSet containing Tsig and q for negative DT

Definition at line 357 of file B0_GenDeltaTFit.py.

◆ fitDataSigDeltaTPos

fitDataSigDeltaTPos

RooDataSet containing Tsig and q for positive DT

Definition at line 356 of file B0_GenDeltaTFit.py.

◆ fitDataTag

fitDataTag

RooDataSet containing Ttag and q for each event.

Definition at line 352 of file B0_GenDeltaTFit.py.

◆ fitDataTagDeltaTNeg

fitDataTagDeltaTNeg

RooDataSet containing Ttag and q for negative DT

Definition at line 354 of file B0_GenDeltaTFit.py.

◆ fitDataTagDeltaTPos

fitDataTagDeltaTPos

RooDataSet containing Ttag and q for positive DT

Definition at line 353 of file B0_GenDeltaTFit.py.

◆ fractionB0barInSignalSide

fractionB0barInSignalSide

Fraction of anti-B0s in the signal side.

Definition at line 364 of file B0_GenDeltaTFit.py.

◆ fractionB0InSignalSide

fractionB0InSignalSide

Fraction of B0s in the signal side

Definition at line 365 of file B0_GenDeltaTFit.py.

◆ nentries

nentries

Total number of analyzed events.

Definition at line 330 of file B0_GenDeltaTFit.py.

◆ Norm

Norm

Normalization factor of the quantum mechanical pdfs.

Definition at line 340 of file B0_GenDeltaTFit.py.

◆ q

q

Flavor of the tag-side B0 meson at the time of its decay.

Definition at line 343 of file B0_GenDeltaTFit.py.

◆ qsig

qsig

Flavor of the signal-side B0 meson at the time of its decay.

Definition at line 347 of file B0_GenDeltaTFit.py.

◆ S

S

Mixing-induced CP-violation parameter (CP violation caused by the overlap between mixing and decay phases)

Definition at line 338 of file B0_GenDeltaTFit.py.

◆ Tau

Tau

B0-meson lifetime.

Definition at line 336 of file B0_GenDeltaTFit.py.

◆ 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.

◆ TsigPosNeg

TsigPosNeg

Empty variable just to define the limits of the frames in the plots for Tsig.

Definition at line 392 of file B0_GenDeltaTFit.py.

◆ Ttag

Ttag

Decay time of the tag-side B meson.

Definition at line 334 of file B0_GenDeltaTFit.py.

◆ TtagPosNeg

TtagPosNeg

Empty variable just to define the limits of the frames in the plots for Ttag.

Definition at line 393 of file B0_GenDeltaTFit.py.


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