TWiki
>
LHCb Web
>
AsymmetryFitting
(2010-11-26,
AlisonBates
)
(raw view)
E
dit
A
ttach
---+ B2hh GFact Asymmetry Fitting page The aims for the asymmetry fitter are the following 1 Perform basic checks of current fitting package with toy data for Bd and Bs asymmetries. In process of checking by Alison and will copy below once completed.. 1 Implement an automatic method such that when the mass region is changed, the normalisation for the pdfs is changed. DONE by Paul. 1 Add proper time pdf to the fitting package. Stand alone model of pdfs done - see below. 1 Alter the parameters that are being varied by the minimiser to d, θ and γ. 1 Think about adding the other background pdfs (3 body, Λ's). 1 Move to MC data/ real data (Bd) for first looks. ---++ PDF modeling for Bs The basic pdf that was implemented in the asymmetry fitter had the following form f(t,tmin, signal)=N*exp(-t/τ)[1+q(1-2ω)(Adir.cos(Δmt)-Amix.cos(Δmt))]. This PDF has been plotted with standard values for the Bs→KK decay for the tags of q=+1 (red) and q=-1 (blue) and shown here [[%ATTACHURL%/BsKKPDFnoPTres.gif][Old PDF distribution]]. The integrated area from tmin (nominally set to 1.0) to 10.0 is 0.994402. I am studiying the pdf obtained from the following distribution f(t|tmin,signal)=N.1/τ.exp(-t/τ).[cosh(ΔΓ.t/2)-A_ΔΓ.sinh(ΔΓ/2)].[1+q(1-2ω).(Adir.cos(Δmt)-Amix.cos(Δmt))].Θ(t) conv 1/√2πexp-(t'-t)^2/2σ^2. In the solution for this distribution the resultant pdf needs an error function of a complex number (x+iy), which there is no such routine in root. Hence we wrote a routine to use the infinite series approximation for complex error function from Abramozitz and Stegun (page 299, equation 7.1.29) which yields the folowing [[%ATTACHURL%/ErfOfComplexArgument.gif][results]] for up to 7 terms of the series summation. The new PDF has calculated and its corresponding normalisation. The imaginary part is, as expected, zero with only the entry at time t= tmin giving a delta function.The following plot compares the basic pdf, Christoph's pdf and my new pdf, [[%ATTACHURL%/ThreePDFsCompared.gif][here]]. The area under the curves (summed over the plus and minus tag states) were calculated numerically using a step size of 0.5fs and in a range of tmin to 50ps and the following was found: Old PDF area = 1.000169 ( < 0.02% from 1.0) New PDF area = 0.985813 (1.4% from 1.0) Need to understand if this 1.4% is significant then the next task is to move all this code over to G-Fact so can change to use this new PDF for Bs2KK. ---++ Basic Checks with asymmetry fitter Toy data was generated with a mix of 56.1% Bd → π π, 10.3% Bd → K π and 33.6% combinatoric background with ssb of 0.664 (ssb is S/S+B) generated in a mass region of 5-5.8 GeV. The mistag rates in generation and fitting was ωBs = 0.361and ωBd = 0.355 and ACPBd→Kπ = 0.1. 100 data sets with 100,000 events per data set was used here but Lars ran with 1000 data sets with 100k events per set and found no bias on the pulls and much improved uncertainties. I just show the plots below (100 data sets) for completion. Adir Bd - input was *0.38* and fitted was <strong> 0.3814 ± 0.0043 </strong>( [[%ATTACHURL%/B2pipiB2KpiCBAdirnew.gif][A<sup>dir</sup><sub>Bd</sub>]])<br /> Amix Bd - input was *0.61* and fitted was *0.6089 ± 0.0026* ( [[%ATTACHURL%/B2pipiB2KpiCBAmixnew.gif][A<sup>mix</sup><sub>Bd</sub>]]) Next I generated a data sample with the following composition (calculating for our mass range...) and simultaneously fitted for the Bd2pipi asymmetries and the Bs2KK asymmetries (for now there is still no proper time description in the fitting pdf but there is Gaussian smear on the data generation). Note the mistag rates will change for simultaneous fitting to ωBs = 0.347and ωBd = 0.370. --- Everything below is out of date and will be removed as soon as the above is updated with the newest and unbiased results. Jobs running now. ---+++ 1. B<sub>d</sub> → π π 50 datasets were generated with 6099 events per data set using 0.68 b2pipi (sf1=1 and ssb = 0.68) and 0.32 combinatoric background (MassDistribution) mass distribution. The asymmetry fitter was used to fit for Bd asymmetries only with sf1'=0.68 and obtained the following:<br /> Adir Bd - input was *0.38* and fitted was *0.3953 ± 0.0476* ( [[%ATTACHURL%/AdirBdforjustBdandCB.gif][A<sup>dir</sup><sub>Bd</sub>]])<br /> Amix Bd - input was *0.61* and fitted was <strong>0.6503 ± 0.0311 </strong>( [[%ATTACHURL%/AmixBdforjustBdandCB.gif][A<sup>mix</sup><sub>Bd</sub>]])<br /> Then re-ran same job with 150 data sets with 2000 events per data set and fitted for the following:<br /> Adir Bd - input was *0.38* and fitted was <strong> 0.4338 ± 0.0196 </strong>( [[%ATTACHURL%/ABddirjustBdppipiCB.gif][A<sup>dir</sup><sub>Bd</sub>]])<br /> Amix Bd - input was *0.61* and fitted was <strong> 0.6619 ± 0.0197 </strong>( [[%ATTACHURL%/ABdmixjustBdppipiCB.gif][A<sup>mix</sup><sub>Bd</sub>]]) <br /> The asymmetry plot is shown [[%ATTACHURL%/asymplotBdCB.gif][ here ]]. ******240 data sets with 6k (running just now will update when gets to 300) events per data set using 0.68 b2pipi (sf1=1 and ssb = 0.68) and 0.32 combinatoric background and mass window of 5229 - 5329 MeV, I fit the following asymmetries: Adir Bd - input was *0.38* and fitted was <strong> 0.4175 ± 0.0080 </strong>( [[%ATTACHURL%/justbdandcbnarrowmassAdir.gif][A<sup>dir</sup><sub>Bd</sub>]])<br /> Amix Bd - input was *0.61* and fitted was *0.675 ± 0.006* ( [[%ATTACHURL%/justbdandcbnarrowmassAmix.gif][A<sup>mix</sup><sub>Bd</sub>]]) ---+++ 2. B<sub>s</sub> → K K 50 datasets were generated with 6099 events per data set using 0.68 bs2KK (sf3=1 and ssb = 0.68) and 0.32 combinatoric background ( [[%ATTACHURL%/bs2KKdatagenwithcombkgnd.gif][ mass distribution ]]). The asymmetry fitter was used to fit for Bs asymmetries only with sf3'=0.68 and obtained the following [[%ATTACHURL%/AdirforBsandCB.gif][Adir for Bd]] and [[%ATTACHURL%/AmixforBsandCB.gif][Amix for Bs]] which in numbers are:<br /> Adir Bs - input was *0.1* and fitted was <strong> 0.0811 ± 0.0275 </strong><br /> Amix Bs - input was *0.25* and fitted was *0.1799 ± 0.0346* Ran a job with 100 data sets with 6000 events per data set using 0.664 Bs2KK and 0.336 combinatoric background. Adir Bs - input was *0.1* and fitted was <strong> 0.06436 ± 0.00630 </strong>( [[%ATTACHURL%/AdirBs2KKCBwithsmearing.gif][A<sup>dir</sup><sub>Bs</sub>]])<br /> Amix Bs - input was *0.25* and fitted was <strong> 0.1721 ± 0.0076 </strong>( [[%ATTACHURL%/AmixBs2KKCBwithsmearing.gif][A<sup>mix</sup><sub>Bs</sub>]]) Now ran the same job as above but removed the Gaussian smearing of the proper time in the toy data generation and re-ran the job and got the exact same asymmetries and uncertainties. This should make a difference surely? Still looking in to it. ---+++ 3. B<sub>d</sub> → π π and B<sub>d</sub> → K π 50 data sets were generated with 6099 events per data set using 0.68 bd2pipi and bd2Kpi (sf1=sf2=0.5 and ssb = 0.68) and 0.32 combinatoric background ( [[%ATTACHURL%/bothBddatagenwithCBforMassdistn.gif][ mass distribution ]]).The asymmetry fitter was used to fit for Bd asymmetries only with sf1'=sf2'=0.34 and obtained the following [[%ATTACHURL%/bothBdwithCBAdir.gif][Adir for Bd]] and [[%ATTACHURL%/bothBdwithCBAmix.gif][Amix for Bd]] which in numbers are:<br /> Adir Bd - input was *0.38* and fitted was <strong> 0.298 ± 0.206 </strong><br /> Amix Bd - input was *0.61* and fitted was *0.660 ± 0.062* Now using 150 data sets with 100k events per data set using bd2pipi and bd2Kpi (sf1= 0.845 and sf2=0.155 and ssb = 0.664, see Laurence's thesis, page 183). The asymmetry fitter was used to fit for Bd asymmetries with sf1'=0.561 and sf2'=0.103 and obtained the following:<br /> Adir Bd - input was *0.38* and fitted was *0.4241 ± 0.0017* ( [[%ATTACHURL%/AdirB2pipiBd2pipiBd2kpiCBalaL.gif][A<sup>dir</sup><sub>Bd</sub>]]) and Laurence got <strong> 0.407 ± 0.033 </strong><br /> Amix Bd - input was *0.61* and fitted was <strong> 0.6818 ± 0.0018 </strong>( [[%ATTACHURL%/AmixB2pipiBd2pipiBd2kpiCBalaL.gif][A<sup>mix</sup><sub>Bd</sub>]]) and Laurence got <strong> 0.655 ± 0.024 </strong><br /> The asymmetry plot is shown [[%ATTACHURL%/AsymplotLaurencecfjobforBd.gif][ here ]]. The pull plots show a large bias. The only difference was the large mass window I used (4800 - 5800 MeV) compared with Laurence (5229 - 5329 MeV). Hence I have re-run the same signal fractions in a 5fb-1 job (288 data sets with 100k events per data set) with the much tighter mass window and found the following: Adir Bd - input was *0.38* and fitted was *0.4245 ± 0.0022* ( [[%ATTACHURL%/AdirBigJob2BddecaysCB.gif][A<sup>dir</sup><sub>Bd</sub>]]) and Laurence got *0.407 ± 0.033* Amix Bd - input was *0.61* and fitted was <strong> 0.6811 ± 0.0019 </strong>( [[%ATTACHURL%/AmixBigJob2BddecaysCB.gif][A<sup>mix</sup><sub>Bd</sub>]]) and Laurence got *0.655 ± 0.024* The asymmetry plot is shown [[%ATTACHURL%/AsymPLotBigJob2BddecaysCB.gif][ here ]]. However the pull plots are still showing a large bias in the mean of the pull plot (the widths are approximately ok). What's causing the bias in the pull plots? It is not present in the first case when only B2pipi and combinatoric background are used....looking in to this now. Interesteingly, in an earlier version of Laurence's thesis he has numbers like mine then they suddenly got really good. Waiting to hear back from him to see if he can remember what he changed. ---+++ 4. B<sub>d</sub> → π π, B<sub>d</sub> → K π and B<sub>s</sub> → K K 50 datasets were generated with 6099 events per data set using all 3 channels with sf1=sf2=sf3=0.333 and ssb = 0.68) and 0.32 combinatoric background ( [[%ATTACHURL%/alldatagenandCBmass.gif][ mass distribution ]]). The asymmetry fitter was used to fit for Bd asymmetries only with sf1'=sf2'=sf3'=0.226 and obtained the following [[%ATTACHURL%/AdirBdforall3ofthem.gif][Adir for Bd]] and [[%ATTACHURL%/AmixBdforall3ofthem.gif][Amix for Bd]] which in numbers are:<br /> Adir Bd - input was *0.38* and fitted was <strong>0.4917 ± 0.0638 </strong><br /> Amix Bd - input was *0.61* and fitted was <strong>0.6852 ± 0.0456 </strong><br /> Then re-ran the asymmetry fitter for the B<sub>s</sub> asymmetries and found;<br /> Adir Bs - input was *0.1* and fitted was <strong> 0.0416 ± 0.0606 </strong>( [[%ATTACHURL%/AdirBsforall3ofthem.gif][A<sup>dir</sup><sub>Bs</sub>]])<br /> Amix Bs - input was *0.25* and fitted was <strong> 0.1505 ± 0.0598</strong>( [[%ATTACHURL%/AmixBsforall3ofthem.gif][A<sup>mix</sup><sub>Bs</sub>]]) ---+++ 5. Full toy data sample -- Main.AlisonBates - 2010-08-06
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
gif
ABddirjustBdppipiCB.gif
r1
manage
14.9 K
2010-08-06 - 15:00
AlisonBates
gif
ABdmixjustBdppipiCB.gif
r1
manage
14.7 K
2010-08-06 - 15:00
AlisonBates
gif
AdirB2pipiBd2pipiBd2kpiCBalaL.gif
r1
manage
14.2 K
2010-08-06 - 15:00
AlisonBates
gif
AdirBd.gif
r1
manage
14.8 K
2010-08-06 - 15:03
AlisonBates
gif
AdirBdforall3ofthem.gif
r1
manage
15.1 K
2010-08-06 - 15:01
AlisonBates
gif
AdirBdforjustBdandCB.gif
r1
manage
15.7 K
2010-08-06 - 15:03
AlisonBates
gif
AdirBigJob2BddecaysCB.gif
r1
manage
14.2 K
2010-08-09 - 08:42
AlisonBates
gif
AdirBs.gif
r1
manage
13.6 K
2010-08-06 - 15:04
AlisonBates
gif
AdirBs2KKCBwithsmearing.gif
r1
manage
14.0 K
2010-08-09 - 11:32
AlisonBates
gif
AdirBsforall3ofthem.gif
r1
manage
14.3 K
2010-08-06 - 15:12
AlisonBates
gif
AdirforBsandCB.gif
r1
manage
15.6 K
2010-08-06 - 15:13
AlisonBates
gif
AmixB2pipiBd2pipiBd2kpiCBalaL.gif
r1
manage
14.1 K
2010-08-06 - 15:02
AlisonBates
gif
AmixBdforall3ofthem.gif
r1
manage
15.1 K
2010-08-06 - 15:03
AlisonBates
gif
AmixBdforjustBdandCB.gif
r1
manage
15.1 K
2010-08-06 - 15:11
AlisonBates
gif
AmixBigJob2BddecaysCB.gif
r1
manage
14.1 K
2010-08-09 - 08:43
AlisonBates
gif
AmixBs2KKCBwithsmearing.gif
r1
manage
14.1 K
2010-08-09 - 11:32
AlisonBates
gif
AmixBsforall3ofthem.gif
r1
manage
15.5 K
2010-08-06 - 15:04
AlisonBates
gif
AmixforBsandCB.gif
r1
manage
14.6 K
2010-08-06 - 15:05
AlisonBates
gif
AsymPLotBigJob2BddecaysCB.gif
r1
manage
10.0 K
2010-08-09 - 08:43
AlisonBates
gif
AsymplotLaurencecfjobforBd.gif
r1
manage
17.1 K
2010-08-06 - 15:06
AlisonBates
gif
B2pipiB2KpiCBAdirnew.gif
r1
manage
15.1 K
2010-08-23 - 08:42
AlisonBates
gif
B2pipiB2KpiCBAmixnew.gif
r1
manage
14.9 K
2010-08-23 - 08:42
AlisonBates
gif
BsKKPDFnoPTres.gif
r1
manage
7.7 K
2010-09-14 - 15:22
AlisonBates
gif
BsKKnewPDF.gif
r1
manage
7.6 K
2010-09-14 - 15:22
AlisonBates
gif
ComparisonPDF.gif
r2
r1
manage
8.0 K
2010-10-05 - 13:33
AlisonBates
gif
ErfOfComplexArgument.gif
r2
r1
manage
18.4 K
2010-10-05 - 10:27
AlisonBates
gif
NewPDF.gif
r1
manage
13.5 K
2010-10-05 - 13:32
AlisonBates
gif
NormalisedComparison.gif
r1
manage
9.1 K
2010-10-06 - 09:43
AlisonBates
gif
NormalisedNewOldPDF.gif
r1
manage
14.3 K
2010-10-06 - 09:44
AlisonBates
gif
RealComponentofErfWithComplexArg.gif
r1
manage
8.5 K
2010-10-05 - 08:03
AlisonBates
gif
ThreePDFsCompared.gif
r1
manage
8.8 K
2010-10-19 - 14:43
AlisonBates
gif
alldatagenandCBmass.gif
r1
manage
7.7 K
2010-08-06 - 15:02
AlisonBates
gif
asymplotBdCB.gif
r1
manage
19.6 K
2010-08-06 - 15:05
AlisonBates
gif
b2pipidatagenwithcombkgnd.gif
r1
manage
8.0 K
2010-08-06 - 15:06
AlisonBates
gif
bothBddatagenwithCBforMassdistn.gif
r1
manage
7.7 K
2010-08-06 - 15:07
AlisonBates
gif
bothBdwithCBAdir.gif
r1
manage
14.9 K
2010-08-06 - 15:08
AlisonBates
gif
bothBdwithCBAmix.gif
r1
manage
14.7 K
2010-08-06 - 15:08
AlisonBates
gif
bs2KKdatagenwithcombkgnd.gif
r1
manage
7.8 K
2010-08-06 - 15:08
AlisonBates
gif
justbdandcbnarrowmassAdir.gif
r3
r2
r1
manage
15.9 K
2010-08-17 - 11:02
AlisonBates
gif
justbdandcbnarrowmassAmix.gif
r3
r2
r1
manage
15.6 K
2010-08-17 - 11:02
AlisonBates
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r19
<
r18
<
r17
<
r16
<
r15
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r19 - 2010-11-26
-
AlisonBates
LHCb
Log In
or
Register
LHCb Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
ATLAS
PUUKA
DetDev
Gridmon
IT
LHCb
LinearCollider
Main
NA62
Sandbox
TWiki
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback