Rivet Analyses Reference

BABAR_2007_I722622

Spectrum for $\Xi_c^{\prime0,+}$ production at the $\Upsilon(4S)$
Experiment: BABAR (PEP-II)
Inspire ID: 722622
Status: VALIDATED
Authors:
  • Peter Richardson
References:
  • hep-ex/0607086
Beams: e+ e-
Beam energies: (5.3, 5.3) GeV
Run details:
  • e+e- > hadrons at Upsilon(4S) including both resonant and non-resonance

Spectrum for $\Xi_c^{\prime0,+}$ production at the $\Upsilon(4S)$ measured by BaBar. The spectrum includes a contribution from both the $\Upsilon(4S)$ and continuum $c\bar{c}$ events.

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

namespace Rivet {


  /// @brief Xi_c' spectrum
  class BABAR_2007_I722622 : public Analysis {
  public:

    /// Constructor
    RIVET_DEFAULT_ANALYSIS_CTOR(BABAR_2007_I722622);


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

    /// Book histograms and initialise projections before the run
    void init() {
      // Initialise and register projections
      declare(UnstableParticles(),"UFS");
      // Book histograms
      book(_h_p_0,3,1,2);
      book(_h_p_p,3,1,1);
      book(_h_ctheta,4,1,1);
      book(_b_p,1,1,1);
      book(_b_0,1,1,2);
      book(_r_p,2,1,1);
      book(_r_0,2,1,2);
      book(_ups,"/TMP/ups");
    }

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

    /// Perform the per-event analysis
    void analyze(const Event& event) {
      static const int id0 = 4312, idp = 4322;
      const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
      bool ups = !ufs.particles(Cuts::pid==300553).empty();
      if(ups) _ups->fill();
      for (const Particle& p : ufs.particles(Cuts::abspid==idp or Cuts::abspid==id0)) {
	int idXic=4232;
	if(p.abspid()==idp) {
	  _h_p_p->fill(p.momentum().p3().mod());
	}
	else {
	  _h_p_0->fill(p.momentum().p3().mod());
	  idXic=4132;
	}
	// first find the Xi_c in the decay
	if(p.children().size()!=2) continue;
	int sign=p.pid()/p.abspid();
	Particle Xi_c;
	if(p.children()[0].pid()==sign*idXic &&
	   p.children()[1].pid()==22) {
	  Xi_c = p.children()[0];
	}
	else if(p.children()[1].pid()==sign*idXic &&
		p.children()[0].pid()==22) {
	  Xi_c = p.children()[1];
	}
	else
	  continue;
	// and the children of the Xi_c
	Particles Xi;
	unsigned int nStable(0),nPi(0);
	findChildren(Xi_c,nStable,Xi,nPi);
	if(Xi.size()!=1) continue;
	if( !(p.abspid()==idp && nPi==2 && nStable==3) &&
	    !(p.abspid()==id0 && nPi==1 && nStable==2) )
	  continue;
	if(p.abspid()==idp) {
	  if(ups)
	    _b_p->fill(0.5);
	  else
	    _r_p->fill(0.5);
	}
	else {
	  if(ups)
	    _b_0->fill(0.5);
	  else
	    _r_0->fill(0.5);
	  idXic=4132;
	}
	// boost to Xi'_c rest frame
	LorentzTransform boost1 = LorentzTransform::mkFrameTransformFromBeta(p.momentum().betaVec());
	FourMomentum pXic = boost1.transform(Xi_c.momentum());
	FourMomentum pXi  = boost1.transform(Xi[0].momentum());
	// then to Xi_c rest frame
	LorentzTransform boost2 = LorentzTransform::mkFrameTransformFromBeta(pXic.betaVec());
	Vector3 axis = pXic.p3().unit();
	FourMomentum pp = boost2.transform(pXi);
	// calculate angle
	double cTheta = pp.p3().unit().dot(axis);
	_h_ctheta->fill(cTheta);
      }
    }


    /// Normalise histograms etc., after the run
    void finalize() {
      normalize(_h_p_0   );
      normalize(_h_p_p   );
      normalize(_h_ctheta);
      if(_ups->effNumEntries()!=0) {
	scale(_b_p,0.5/ *_ups);
	scale(_b_0,0.5/ *_ups);
      }
      scale(_r_p,crossSection()/sumOfWeights()/femtobarn);
      scale(_r_0,crossSection()/sumOfWeights()/femtobarn);
    }

    ///@}


    /// @name Histograms
    ///@{
    Histo1DPtr _h_p_0,_h_p_p,_h_ctheta;
    Histo1DPtr _b_p,_b_0;
    Histo1DPtr _r_p,_r_0;
    CounterPtr _ups;
    ///@}


  };


  RIVET_DECLARE_PLUGIN(BABAR_2007_I722622);

}