Processing math: 100%
rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

CLEOII_1997_I440969

Momenta spectra and polarization in BD() decays
Experiment: CLEOII (CESR)
Inspire ID: 440969
Status: VALIDATED NOHEPDATA
Authors:
  • Peter Richardson
References:
  • Phys.Rev.D 56 (1997) 3783-3802
Beams: * *
Beam energies: ANY
Run details:
  • Any process producing Upsilon(4S), originally e+e-

Measurement of the momenta spectrra for the production of D0, D+, D0 and D+ mesons in B decays by CLEO. The polarization of the D mesons in also measured.

Source code: CLEOII_1997_I440969.cc
  1// -*- C++ -*-
  2#include "Rivet/Analysis.hh"
  3#include "Rivet/Projections/UnstableParticles.hh"
  4#include "Rivet/Tools/HistoGroup.hh"
  5
  6namespace Rivet {
  7
  8
  9  /// @brief D spect in B decays
 10  class CLEOII_1997_I440969 : public Analysis {
 11  public:
 12
 13    /// Constructor
 14    RIVET_DEFAULT_ANALYSIS_CTOR(CLEOII_1997_I440969);
 15
 16
 17    /// @name Analysis methods
 18    /// @{
 19
 20    /// Book histograms and initialise projections before the run
 21    void init() {
 22      // projections
 23      declare(UnstableParticles(Cuts::pid==300553),"UFS");
 24      // histos
 25      const vector<double> xbins={0.0,0.1,0.2,0.3,0.4,0.5};
 26      for (unsigned int ix=0; ix<4; ++ix) {
 27        book(_h[ix], 1+ix, 1, 1);
 28      }
 29      book(_b[0], {0.1,0.2,0.3,0.4,0.5});
 30      book(_b[1], {0.0,0.1,0.2,0.3,0.4,0.5});
 31      for (auto& b : _b[1]->bins()) {
 32        book(b, 6, 1, b.index());
 33        if (b.index() < 5) {
 34          book(_b[0]->bin(b.index()), 5, 1, b.index());
 35        }
 36      }
 37      for (unsigned int ix=0; ix<2; ++ix) {
 38        book(_p[ix],"TMP/p_"+toString(ix+1), refData(7,1,1+ix));
 39      }
 40    }
 41
 42    void findDecay(const Particle& parent, Particles & Ds) {
 43      for (const Particle& p : parent.children()) {
 44        if (p.abspid()==421 || p.abspid()==411) {
 45          Ds.push_back(p);
 46        }
 47        else if (p.abspid()==413 || p.abspid()==423) {
 48          Ds.push_back(p);
 49          findDecay(p,Ds);
 50        }
 51        else if (p.abspid()==PID::PIPLUS ||
 52          p.abspid()==PID::KPLUS  ||
 53          p.pid()==PID::PI0 ||
 54          p.pid()==PID::K0S) {
 55          continue;
 56        }
 57        else if (!p.children().empty()) {
 58          findDecay(p,Ds);
 59        }
 60      }
 61    }
 62
 63
 64    /// Perform the per-event analysis
 65    void analyze(const Event& event) {
 66      const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
 67      for (const Particle& p : ufs.particles()) {
 68        const LorentzTransform boost = LorentzTransform::mkFrameTransformFromBeta(p.mom().betaVec());
 69        for (const Particle& B:p.children()) {
 70          if (B.abspid()!=511 && B.abspid()!=521) continue;
 71          Particles Ds;
 72          findDecay(B,Ds);
 73          for (const Particle & p2 : Ds) {
 74            FourMomentum pD = boost.transform(p2.mom());
 75            const double x = pD.p3().mod()/sqrt(0.25*sqr(p.mass())-sqr(p2.mass()));
 76            if (p2.abspid()==421)      _h[0]->fill(x);
 77            else if (p2.abspid()==411) _h[1]->fill(x);
 78            else {
 79              // x distribution for D*
 80              if (p2.abspid()==423) _h[2]->fill(x);
 81              else                  _h[3]->fill(x);
 82              // find decay products
 83              if (p2.children().size()!=2) continue;
 84              Particle dec;
 85              if ((p2.children()[0].abspid()==411 || p2.children()[0].abspid()==421) &&
 86                  (p2.children()[1].abspid()==111 || p2.children()[1].abspid()==211)) {
 87                dec = p2.children()[0];
 88              }
 89              else if((p2.children()[1].abspid()==411 || p2.children()[1].abspid()==421) &&
 90                      (p2.children()[0].abspid()==111 || p2.children()[0].abspid()==211)) {
 91                dec = p2.children()[1];
 92              }
 93              else continue;
 94              const LorentzTransform boost2 = LorentzTransform::mkFrameTransformFromBeta(pD.betaVec());
 95              FourMomentum pDec = boost2.transform(boost.transform(dec.momentum()));
 96              // decay angle
 97              double cTheta = pDec.p3().unit().dot(pD.p3().unit());
 98              if (p2.abspid()==423) {
 99                _b[1]->fill(x,cTheta);
100                _p[1]->fill(x,-1./2.*(1.-5.*sqr(cTheta)));
101              }
102              else {
103                _b[0]->fill(x,cTheta);
104                _p[0]->fill(x,-1./2.*(1.-5.*sqr(cTheta)));
105              }
106            }
107          }
108        }
109      }
110    }
111
112
113    /// Normalise histograms etc., after the run
114    void finalize() {
115      // spectra
116      normalize(_h, 1.0, false);
117      for (unsigned int ix=0; ix<2; ++ix) {
118        // angles dists
119        normalize(_b[ix], 1.0, false);
120        // polarizations
121        Estimate1DPtr tmp;
122        book(tmp, 7, 1, 1+ix);
123        for (const auto& b : _p[ix]->bins()) {
124          const double val = b.numEntries()>0 && b.effNumEntries()>0? b.yMean() : 0.;
125          const double err = b.numEntries()>1 && b.effNumEntries()>1? b.yStdErr() : 0.;
126          const double l1 = 2.*val/(1.+val);
127          const double e1 = 2./sqr(1.+val)*err;
128          tmp->bin(b.index()).set(l1, e1);
129        }
130      }
131    }
132
133    /// @}
134
135
136    /// @name Histograms
137    /// @{
138    Histo1DPtr _h[4];
139    Profile1DPtr _p[2];
140    Histo1DGroupPtr _b[2];
141    /// @}
142
143
144  };
145
146
147  RIVET_DECLARE_PLUGIN(CLEOII_1997_I440969);
148
149}