Rivet analyses referenceCLEOII_1996_I397787Mass distributions in $\Xi_c^+\to\Sigma^+K^-\pi^+$Experiment: CLEOII (CESR) Inspire ID: 397787 Status: VALIDATED NOHEPDATA Authors:
Beam energies: ANY Run details:
Measurement of the mass distributions in the decay $\Xi_c^+\to\Sigma^+K^-\pi^+$ by CLEOII. The data were read from the plots in the paper and may not have been corrected for efficiency/acceptance. Source code: CLEOII_1996_I397787.cc 1// -*- C++ -*-
2#include "Rivet/Analysis.hh"
3#include "Rivet/Projections/UnstableParticles.hh"
4#include "Rivet/Projections/DecayedParticles.hh"
5
6namespace Rivet {
7
8
9 /// @brief Xi_c+ -> Sigma+ K- pi+
10 class CLEOII_1996_I397787 : public Analysis {
11 public:
12
13 /// Constructor
14 RIVET_DEFAULT_ANALYSIS_CTOR(CLEOII_1996_I397787);
15
16
17 /// @name Analysis methods
18 /// @{
19 /// Book histograms and initialise projections before the run
20 void init() {
21 // Initialise and register projections
22 UnstableParticles ufs = UnstableParticles(Cuts::abspid==4232);
23 declare(ufs, "UFS");
24 DecayedParticles XICP(ufs);
25 XICP.addStable(PID::PI0);
26 XICP.addStable(PID::K0S);
27 XICP.addStable(PID::ETA);
28 XICP.addStable(3222);
29 XICP.addStable(-3222);
30 declare(XICP, "XICP");
31 // histograms
32 book(_h,1,1,1);
33 }
34
35
36 /// Perform the per-event analysis
37 void analyze(const Event& event) {
38 static const map<PdgId,unsigned int> & mode = { { PID::KMINUS,1}, { 3222,1}, { PID::PIPLUS ,1}};
39 static const map<PdgId,unsigned int> & modeCC = { { PID::KPLUS ,1}, {-3222,1}, { PID::PIMINUS,1}};
40 DecayedParticles XICP = apply<DecayedParticles>(event, "XICP");
41 // loop over particles
42 for(unsigned int ix=0;ix<XICP.decaying().size();++ix) {
43 int sign = 1;
44 if (XICP.decaying()[ix].pid()>0 && XICP.modeMatches(ix,3,mode)) {
45 sign=1;
46 }
47 else if (XICP.decaying()[ix].pid()<0 && XICP.modeMatches(ix,3,modeCC)) {
48 sign=-1;
49 }
50 else
51 continue;
52 const Particle & pip = XICP.decayProducts()[ix].at( sign*PID::PIPLUS)[0];
53 const Particle & Km = XICP.decayProducts()[ix].at( sign*PID::KMINUS)[0];
54 _h->fill((pip.momentum()+Km.momentum()).mass());
55 }
56 }
57
58
59 /// Normalise histograms etc., after the run
60 void finalize() {
61 normalize(_h);
62 }
63
64 /// @}
65
66
67 /// @name Histograms
68 /// @{
69 Histo1DPtr _h;
70 /// @}
71
72
73 };
74
75
76 RIVET_DECLARE_PLUGIN(CLEOII_1996_I397787);
77
78}
|