// ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL // Eric Aubourg // Christophe Magneville // Reza Ansari // $Id: toi2ring.cc,v 1.6 2003-04-17 13:47:34 cecile Exp $ #include "toimanager.h" #include "pexceptions.h" #include "ctimer.h" #include "toi2ring.h" // La valeur "Pi" doit etre celle de smathconst.h a cause du test sur theta #include "smathconst.h" //////////////////////////////////////////////////////////////////////// Toi2RING::Toi2RING(long n) :totnscount(0), nRings(0) { setNSamples(n); } Toi2RING::~Toi2RING() { } //////////////////////////////////////////////////////////////////////// void Toi2RING::Print(::ostream & os) { } //////////////////////////////////////////////////////////////////////// void Toi2RING::init() { cout << "Toi2RING::init" << endl; declareInput("Theta"); // input index 0 declareInput("Phi"); // input index 1 declareInput("Phase"); // input index 2 declareInput("Value"); // input index 3 declareOutput("Rvalue"); // output index 0 declareOutput("WRvalue"); // output index 1 } //////////////////////////////////////////////////////////////////////// void Toi2RING::run() { long snb = getMinIn(); long sne = getMaxIn(); if(snb>sne) { cout<<"Toi2RING::run() - Bad sample interval"<