// ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL // Eric Aubourg // Christophe Magneville // Reza Ansari // $Id: ring2cout.cc,v 1.5 2003-04-17 13:47:34 cecile Exp $ #include "toimanager.h" #include "pexceptions.h" #include "ctimer.h" #include "ring2cout.h" // La valeur "Pi" doit etre celle de smathconst.h a cause du test sur theta #include "smathconst.h" //////////////////////////////////////////////////////////////////////// Ring2cout::Ring2cout(long ns, long nr) :totnscount(0) { setNSamples(ns); setNRings(nr); } Ring2cout::~Ring2cout() { } //////////////////////////////////////////////////////////////////////// void Ring2cout::Print(::ostream & os) { } //////////////////////////////////////////////////////////////////////// void Ring2cout::init() { cout << "Ring2cout::init" << endl; declareInput("Phase"); // input index 0 } //////////////////////////////////////////////////////////////////////// void Ring2cout::run() { //--------------------------------------------------------- try { uint_4 mSnRead=0, mSnFilled=0, BadCoorRange=0; cout << " ring " << Nrings << " ns " << Nsamples<< endl; double val[Nsamples]; for (int k=0; k