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
| // -*- C++ -*-
#include "Rivet/Analysis.hh"
#include "Rivet/Projections/Beam.hh"
#include "Rivet/Projections/UnstableParticles.hh"
namespace Rivet {
/// @brief Spectrum for Lambda_c(2625)
class ARGUS_1993_I357132 : public Analysis {
public:
/// Constructor
RIVET_DEFAULT_ANALYSIS_CTOR(ARGUS_1993_I357132);
/// @name Analysis methods
///@{
/// Book histograms and initialise projections before the run
void init() {
// projections
declare(Beam(), "Beams");
declare(UnstableParticles(), "UFS");
// book histos
book(_h_rate,1,1,1);
book(_h_x,2,1,1);
}
void findDecayProducts(Particle parent, Particles & Lambda_c, Particles & pions,unsigned int & nstable) {
for(const Particle & p : parent.children()) {
if(p.abspid()==4122) {
Lambda_c.push_back(p);
++nstable;
}
else if(p.abspid()==PID::PIPLUS) {
pions.push_back(p);
++nstable;
}
else if(!p.children().empty())
findDecayProducts(p,Lambda_c,pions,nstable);
else
++nstable;
}
}
/// Perform the per-event analysis
void analyze(const Event& event) {
static const int id2625 = 4124;
// Get beams and average beam momentum
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.625));
const UnstableParticles& ufs = apply<UnstableParticles>(event, "UFS");
for (const Particle& p : ufs.particles(Cuts::abspid==id2625)) {
double xp = p.momentum().p3().mod()/Pmax;
_h_x->fill(xp);
Particles Lambda_c,pions;
unsigned int nstable(0);
findDecayProducts(p,Lambda_c,pions,nstable);
if(nstable==3&&pions.size()==2&&Lambda_c.size()==1)
_h_rate->fill(10.58);
}
}
/// Normalise histograms etc., after the run
void finalize() {
normalize(_h_x);
scale(_h_rate,crossSection()/picobarn/sumOfWeights());
}
///@}
/// @name Histograms
///@{
Histo1DPtr _h_x,_h_rate;
///@}
};
RIVET_DECLARE_PLUGIN(ARGUS_1993_I357132);
}
|