rivet is hosted by Hepforge, IPPP Durham
ParisiTensor.cc
Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #include "Rivet/Projections/ParisiTensor.hh"
00003 
00004 namespace Rivet {
00005 
00006 
00007   int ParisiTensor::compare(const Projection& p) const {
00008     return mkNamedPCmp(p, "Sphericity");
00009   }
00010 
00011 
00012   void ParisiTensor::clear() {
00013     _lambda[0] = 0;
00014     _lambda[1] = 0;
00015     _lambda[2] = 0;
00016     _C = 0;
00017     _D = 0;
00018   }
00019 
00020 
00021   void ParisiTensor::project(const Event & e) {
00022     clear();
00023 
00024     // Apply sphericity projection to event
00025     Sphericity sph = applyProjection<Sphericity>(e, "Sphericity");
00026 
00027     // Set parameters
00028     _lambda[0] = sph.lambda1();
00029     _lambda[1] = sph.lambda2();
00030     _lambda[2] = sph.lambda3();
00031     _C = 3 * ( lambda1()*lambda2() + lambda1()*lambda3() + lambda2()*lambda3() );
00032     _D = 27 * lambda1() * lambda2() * lambda3();
00033   }
00034 
00035 
00036 }