rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

ARGUS_1990_I296522

Spectrum for $\Xi_c^{0,+}$ production at 10.5 GeV
Experiment: ARGUS (DORIS)
Inspire ID: 296522
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • Phys.Lett. B247 (1990) 121-126
Beams: e+ e-
Beam energies: (5.2, 5.2) GeV
Run details:
  • e+e- to hadrons

Spectrum for $\Xi_c^{0,+}$ production at 10.58 GeV measured by ARGUS.

Source code: ARGUS_1990_I296522.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
// -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/Beam.hh"
#include "Rivet/Projections/UnstableParticles.hh"

namespace Rivet {


  /// @brief Xi_c+ spectrum
  class ARGUS_1990_I296522 : public Analysis {
  public:

    /// Constructor
    DEFAULT_RIVET_ANALYSIS_CTOR(ARGUS_1990_I296522);


    /// @name Analysis methods
    ///@{

    /// Book histograms and initialise projections before the run
    void init() {
      // projections
      declare(Beam(), "Beams");
      declare(UnstableParticles(), "UFS");
      // book histos
      book(_h_obs1,1,1,1);
      book(_h_obs2,1,1,2);
      book(_h_obs3,1,1,3);
      book(_h_all1,1,2,1);
      book(_h_all2,1,2,2);
      book(_h_all3,1,2,3);
      book(_h_x,2,1,1);
    }

    void findDecayProducts(Particle parent, Particles & Xi, Particles & pions,unsigned int & nstable) {
      for(const Particle & p : parent.children()) {
	if(p.abspid()==PID::XIMINUS) {
	  Xi.push_back(p);
	  ++nstable;
	}
	else if(p.abspid()==PID::PIPLUS) {
	  pions.push_back(p);
	  ++nstable;
	}
	else if(!p.children().empty())
	  findDecayProducts(p,Xi,pions,nstable);
	else
	  ++nstable;
      }
    }

    /// Perform the per-event analysis
    void analyze(const Event& event) {
      static const int idXip = 4232,idXi0 = 4132;
      const ParticlePair& beams = apply<Beam>(event, "Beams").beams();
      const double Emax = ( beams.first.p3().mod() + beams.second.p3().mod() ) / 2.0;
      const double Pmax = sqrt(sqr(Emax)-sqr(2.468));
      const UnstableParticles& ufs = apply<UnstableFinalState>(event, "UFS");
      for (const Particle& p : ufs.particles(Cuts::abspid==idXip or Cuts::abspid==idXi0)) {
	double xp = p.momentum().p3().mod()/Pmax;
	_h_x->fill(xp);
	Particles Xi,pions;
	unsigned int nstable(0);
	findDecayProducts(p,Xi,pions,nstable);
	if(nstable==2&&Xi.size()==1&&pions.size()==1) {
	  _h_obs1->fill(xp);
	  _h_all1->fill(xp);
	}
	else if(nstable==3&&Xi.size()==1&&pions.size()==2) {
	  _h_obs3->fill(xp);
	  _h_all3->fill(xp);
	}
	else if(nstable==4&&Xi.size()==1&&pions.size()==3) {
	  _h_obs2->fill(xp);
	  _h_all2->fill(xp);
	}
      }
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      normalize(_h_x);
      scale(_h_obs1,0.5*crossSection()/picobarn/sumOfWeights());
      scale(_h_obs2,0.5*crossSection()/picobarn/sumOfWeights());
      scale(_h_obs3,0.5*crossSection()/picobarn/sumOfWeights());
      scale(_h_all1,    crossSection()/picobarn/sumOfWeights());
      scale(_h_all2,    crossSection()/picobarn/sumOfWeights());
      scale(_h_all3,    crossSection()/picobarn/sumOfWeights());
    }

    ///@}


    /// @name Histograms
    ///@{
    Histo1DPtr _h_obs1,_h_obs2,_h_obs3,_h_all1,_h_all2,_h_all3;
    Histo1DPtr _h_x;
    ///@}


  };


  DECLARE_RIVET_PLUGIN(ARGUS_1990_I296522);

}