rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

ARGUS_1989_I276860

Spectra for $\pi^\pm$, $K^\pm$, $K^0_S$ and $\bar{p}$ in $e^+e^-$ collisions at the $\Upsilon(1S)$ and continuum
Experiment: ARGUS (DORIS)
Inspire ID: 276860
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Z.Phys. C44 (1989) 547, 1989
Beams: e- e+
Beam energies: (4.7, 4.7); (5.0, 5.0) GeV
Run details:
  • $e^+ e^-$ analysis near the $\Upsilon$ resonances

Spectra for the production of $\pi^\pm$, $K^\pm$, $K^0_S$ and $\bar{p}$ in $e^+e^-$ collisions. Data are taken on the $\Upsilon(1S)$ and in the nearby continuum.

Source code: ARGUS_1989_I276860.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
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/UnstableParticles.hh"

namespace Rivet {


  /// @brief pi+- K+- K0S pbar spectra continuum and Upsilon 1s 
  class ARGUS_1989_I276860 : public Analysis {
  public:

    /// Constructor
    DEFAULT_RIVET_ANALYSIS_CTOR(ARGUS_1989_I276860);


    /// @name Analysis methods
    //@{

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

      // Initialise and register projections
      declare(FinalState(), "FS");
      declare(UnstableParticles(), "UFS");
      // Book histograms
      book(_h_pi_ups1_p,  5, 1, 1);
      book(_h_pi_cont_p,  5, 1, 2);
      book(_h_pi_ups1_z,  9, 1, 1);
      book(_h_pi_cont_z,  9, 1, 2);
           
      book(_h_Kp_ups1_p,  6, 1, 1);
      book(_h_Kp_cont_p,  6, 1, 2);
      book(_h_Kp_ups1_z, 10, 1, 1);
      book(_h_Kp_cont_z, 10, 1, 2);
           
      book(_h_KS_ups1_p,  7, 1, 1);
      book(_h_KS_cont_p,  7, 1, 2);
      book(_h_KS_ups1_z, 11, 1, 1);
      book(_h_KS_cont_z, 11, 1, 2);
           
      book(_h_pt_ups1_p,  8, 1, 1);
      book(_h_pt_cont_p,  8, 1, 2);
      book(_h_pt_ups1_z, 12, 1, 1);
      book(_h_pt_cont_z, 12, 1, 2);

      // Counters
      book(_n_PiA[1],"/TMP/PiACont");
      book(_n_PiA[0],"/TMP/PiAUps1");
      book(_n_PiB[1],"/TMP/PiBCont");
      book(_n_PiB[0],"/TMP/PiBUps1");
      book(_n_Kp[1] ,"/TMP/KpCont");
      book(_n_Kp[0] ,"/TMP/KpUps1");
      book(_n_KS[1] ,"/TMP/KSCont");
      book(_n_KS[0] ,"/TMP/KSUps1");
      book(_n_ptA[1],"/TMP/ptACont");
      book(_n_ptA[0],"/TMP/ptAUps1");
      book(_n_ptB[1],"/TMP/ptBCont");
      book(_n_ptB[0],"/TMP/ptBUps1");
      // weights
      book(_weightSum_cont,"/TMP/weightSum_cont");
      book(_weightSum_Ups1,"/TMP/weightSum_Ups1");
    }
    
   /// Recursively walk the decay tree to find decay products of @a p
    void findDecayProducts(Particle mother, Particles& unstable) {
      for(const Particle & p: mother.children()) {
        const int id = abs(p.pid());
	if(id == 211 || id == 2212 || id == 310|| id==130 || id == 321) {
	  unstable.push_back(p);
	}
	if(!p.children().empty())
	  findDecayProducts(p, unstable);
      }
    }


    /// Perform the per-event analysis
    void analyze(const Event& event) {
      // Find the Upsilons among the unstables
      const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
      const FinalState & fs = apply<FinalState>(event, "FS");
      Particles upsilons = ufs.particles(Cuts::pid==553);
      // Continuum
      if (upsilons.empty()) { 
        MSG_DEBUG("No Upsilons found => continuum event");
        _weightSum_cont->fill();
	// stable particles
        for (const Particle& p : fs.particles(Cuts::abspid==211 or Cuts::abspid==2212 or Cuts::abspid==321 )) {
          const int id = abs(p.pid());
          const double xE = 2.*p.E()/sqrtS();
	  const double modp = p.p3().mod();
          const double beta = modp / p.E();
	  int idMom = !p.parents().empty() ? abs(p.parents()[0].pid()) : 0;
	  if(id==211) {
	    // not from K0S or Lambda decays
	    if(idMom!=310 && idMom != 3122) {
	      _h_pi_cont_p->fill(modp);
	      _h_pi_cont_z->fill(xE  ,1./beta);
	      _n_PiA[1]->fill();
	    }
	    _n_PiB[1]->fill();
	  }
	  else if(id==321) {
	    _h_Kp_cont_p->fill(modp);
	    _h_Kp_cont_z->fill(xE  ,1./beta);
	    _n_Kp[1]->fill();
	  }
	  else if(id==2212) {
	    // not from K0S or Lambda decays
	    if(idMom!=310 && idMom != 3122) {
	      _h_pt_cont_p->fill(modp);
	      _h_pt_cont_z->fill(xE  ,1./beta);
	      _n_ptA[1]->fill();
	    }
	    _n_ptB[1]->fill();
	  }
	}
	// Unstable particles
        for (const Particle& p : ufs.particles(Cuts::pid==310 || Cuts::pid==130)) {
          const double xE = 2.*p.E()/sqrtS();
	  const double modp = p.p3().mod();
          const double beta = modp / p.E();
	  _h_KS_cont_p->fill(modp);
	  _h_KS_cont_z->fill(xE  ,1./beta);
	  _n_KS[1]->fill();
	}
      }
      // Upsilon(s) found
      else { 
        MSG_DEBUG("Upsilons found => resonance event");
        for (const Particle& ups : upsilons) {
	  _weightSum_Ups1->fill();
          Particles unstable;
          // Find the decay products we want
          findDecayProducts(ups, unstable);
          LorentzTransform cms_boost;
          if (ups.p3().mod() > 1*MeV)
            cms_boost = LorentzTransform::mkFrameTransformFromBeta(ups.momentum().betaVec());
          const double mass = ups.mass();
	  // loop over decay products
          for(const Particle& p : unstable) {
	    const int id = abs(p.pid());
            const FourMomentum p2 = cms_boost.transform(p.momentum());
	    const double xE = 2.*p2.E()/mass;
	    const double modp = p2.p3().mod();
	    const double beta = modp / p2.E();
	    int idMom = !p.parents().empty() ? abs(p.parents()[0].pid()) : 0;
	    if(id==211) {
	      // not from K0S or Lambda decays
	      if(idMom!=310 && idMom != 3122) {
		_h_pi_ups1_p->fill(modp);
		_h_pi_ups1_z->fill(xE  ,1./beta);
		_n_PiA[0]->fill();
	      }
	      _n_PiB[0]->fill();
	    }
	    else if(id==321) {
	      _h_Kp_ups1_p->fill(modp);
	      _h_Kp_ups1_z->fill(xE  ,1./beta);
	      _n_Kp[0]->fill();
	    }
	    else if(id==2212) {
	      // not from K0S or Lambda decays
	      if(idMom!=310 && idMom != 3122) {
		_h_pt_ups1_p->fill(modp);
		_h_pt_ups1_z->fill(xE  ,1./beta);
		_n_ptA[0]->fill();
	      }
	      _n_ptB[0]->fill();
	    }
	    else if(id==310 || id==130) {
	      _h_KS_ups1_p->fill(modp);
	      _h_KS_ups1_z->fill(xE  ,1./beta);
	      _n_KS[0]->fill();
	    }
	  }
	}
      }
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      // Scale histos
      if (_weightSum_cont->val() > 0.) {
	scale(_h_pi_cont_p, 1./ *_weightSum_cont);
	scale(_h_Kp_cont_p, 1./ *_weightSum_cont);
	scale(_h_KS_cont_p, 1./ *_weightSum_cont);
	scale(_h_pt_cont_p, 1./ *_weightSum_cont);
	scale(_h_pi_cont_z, 1./ *_weightSum_cont);
	scale(_h_Kp_cont_z, 1./ *_weightSum_cont);
	scale(_h_KS_cont_z, 1./ *_weightSum_cont);
	scale(_h_pt_cont_z, 1./ *_weightSum_cont);

      }
      if (_weightSum_Ups1->val() > 0.) {
	scale(_h_pi_ups1_p, 1./ *_weightSum_Ups1);
	scale(_h_Kp_ups1_p, 1./ *_weightSum_Ups1);
	scale(_h_KS_ups1_p, 1./ *_weightSum_Ups1);
	scale(_h_pt_ups1_p, 1./ *_weightSum_Ups1);
	scale(_h_pi_ups1_z, 1./ *_weightSum_Ups1);
	scale(_h_Kp_ups1_z, 1./ *_weightSum_Ups1);
	scale(_h_KS_ups1_z, 1./ *_weightSum_Ups1);
	scale(_h_pt_ups1_z, 1./ *_weightSum_Ups1);
      }
      // Counters
      Scatter2DPtr nPiA;
      book(nPiA, 1, 1, 1, true);
      Scatter2DPtr nPiB;
      book(nPiB, 1, 1, 2, true);
      Scatter2DPtr nKS ;
      book(nKS, 2, 1, 1, true);
      Scatter2DPtr nKp ;
      book(nKp,3, 1, 1, true);
      Scatter2DPtr nptA;
      book(nptA,4, 1, 1, true);
      Scatter2DPtr nptB;
      book(nptB,4, 1, 2, true);
      vector<CounterPtr> scales = {_weightSum_Ups1,_weightSum_cont};
      for(unsigned int ix=0;ix<2;++ix) {
	scale(_n_PiA[ix],1./ *scales[ix]);
	nPiA->point(ix).setY(_n_PiA[ix]->val(),_n_PiA[ix]->err());
	scale(_n_PiB[ix],1./ *scales[ix]);
	nPiB->point(ix).setY(_n_PiB[ix]->val(),_n_PiB[ix]->err());
	scale(_n_Kp[ix] ,1./ *scales[ix]);
	nKp->point(ix).setY(_n_Kp[ix]->val(),_n_Kp[ix]->err());
	scale(_n_KS[ix] ,1./ *scales[ix]);
	nKS->point(ix).setY(_n_KS[ix]->val(),_n_KS[ix]->err());
	scale(_n_ptA[ix],1./ *scales[ix]);
	nptA->point(ix).setY(_n_ptA[ix]->val(),_n_ptA[ix]->err());
	scale(_n_ptB[ix],1./ *scales[ix]);
	nptB->point(ix).setY(_n_ptB[ix]->val(),_n_ptB[ix]->err());
      }
    }

    //@}


    /// @name Histograms
    //@{
    Histo1DPtr _h_pi_ups1_p, _h_pi_cont_p, _h_pi_ups1_z, _h_pi_cont_z;
    Histo1DPtr _h_Kp_ups1_p, _h_Kp_cont_p, _h_Kp_ups1_z, _h_Kp_cont_z;
    Histo1DPtr _h_KS_ups1_p, _h_KS_cont_p, _h_KS_ups1_z, _h_KS_cont_z; 
    Histo1DPtr _h_pt_ups1_p, _h_pt_cont_p, _h_pt_ups1_z, _h_pt_cont_z;

      // Counters
    CounterPtr _n_PiA[2], _n_PiB[2], _n_Kp[2], _n_KS[2], _n_ptA[2],_n_ptB[2];
    CounterPtr _weightSum_cont,_weightSum_Ups1;
    //@}

  };


  // The hook for the plugin system
  DECLARE_RIVET_PLUGIN(ARGUS_1989_I276860);

}