Rivet Analyses Reference

ARGUS_1994_I354224

$K^0_s$ production in B decays
Experiment: ARGUS (DORIS)
Inspire ID: 354224
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Z.Phys. C62 (1994) 371-382, 1994
Beams: * *
Beam energies: ANY
Run details:
  • In principle any process producing $B^\pm$ and $B^0,\bar{B}^0$, bot original at Upsilon 4S

Measurement of the spectrum for $K^0_S$ production in $B$ decays. The original measurement was done by ARGUS at the $\Upsilon(4S)$ resonance and therefore represents that admixture of $B^\pm$ and $B^0,\bar{B}^0$.

Source code: ARGUS_1994_I354224.cc
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/UnstableParticles.hh"

namespace Rivet {


  /// @brief k0s in b decays
  class ARGUS_1994_I354224 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(ARGUS_1994_I354224);


    /// @name Analysis methods
    //@{

    /// Book histograms and initialise projections before the run
    void init() {

      // Initialise and register projections
      declare(UnstableParticles(), "UFS");

      // Book histograms
      book(_h_K, 1, 1, 1);
      book(_nB,"TMP/nB");
    }

    void analyzeDecay(Particle mother, Particles & kaons) {
      for(const Particle & p : mother.children()) {
	if(p.pid()==310) {
	  kaons.push_back(p);
	}
	else if(!p.children().empty()) {
	  analyzeDecay(p,kaons);
	} 
      }
    }

    /// Perform the per-event analysis
    void analyze(const Event& event) {
      for(const Particle& p : apply<UnstableParticles>(event, "UFS").particles(Cuts::abspid==511 or Cuts::abspid==521)) {
	if(!p.children().empty()) {
	  if(p.children()[0].pid()==p.pid()) continue;
	}
	FourMomentum pB = p.momentum();
	const LorentzTransform B_boost = LorentzTransform::mkFrameTransformFromBeta(pB.betaVec());
	_nB->fill();
	Particles kaons;
	analyzeDecay(p,kaons);
	for(const Particle & kaon : kaons) {
	  FourMomentum pKaon = B_boost.transform(kaon.momentum());
	  _h_K->fill(pKaon.p3().mod());
	}
      }
    }


    /// Normalise histograms etc., after the run
    void finalize() {

      scale(_h_K, 1./ *_nB);

    }

    //@}


    /// @name Histograms
    //@{
    Histo1DPtr _h_K;
    CounterPtr _nB;
    //@}


  };


  // The hook for the plugin system
  RIVET_DECLARE_PLUGIN(ARGUS_1994_I354224);


}