|
[Rivet-svn] r1921 - trunk/src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgFri Oct 16 11:55:37 BST 2009
Author: fsiegert Date: Fri Oct 16 11:55:37 2009 New Revision: 1921 Log: Add photon-beamangle cut to photon fragmentation analysis Modified: trunk/src/Analyses/ALEPH_1996_S3196992.cc Modified: trunk/src/Analyses/ALEPH_1996_S3196992.cc ============================================================================== --- trunk/src/Analyses/ALEPH_1996_S3196992.cc Fri Oct 16 10:25:25 2009 (r1920) +++ trunk/src/Analyses/ALEPH_1996_S3196992.cc Fri Oct 16 11:55:37 2009 (r1921) @@ -46,7 +46,13 @@ void analyze(const Event& event) { const double weight = event.weight(); - const ParticleVector photons = applyProjection<IdentifiedFinalState>(event, "Photons").particles(); + const ParticleVector allphotons = applyProjection<IdentifiedFinalState>(event, "Photons").particles(); + ParticleVector photons; + foreach (const Particle& photon, allphotons) { + if (fabs(cos(photon.momentum().theta()))<0.95) { + photons.push_back(photon); + } + } if (photons.size()<1) { vetoEvent; }
More information about the Rivet-svn mailing list |