Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

RetrieveAndCompare.cpp File Reference

#include "Sct/IS/IOManagerIS.h"
#include "Sct/Exception.h"
#include "Sct/LogicErrors.h"
#include "Sct/SctNames.h"
#include "Sct/SctParameters.h"
#include "SctData/NPtGainTestResult.h"
#include "SctData/ModuleDefectList.h"
#include "SctData/ModuleElement.h"
#include <is/isinfo.h>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include <fstream>
#include "Comp.h"

Go to the source code of this file.

Functions

void waitFor (string name, int nsecs)
void compareChannel (unsigned int ichannel, const ModuleDefectList &defects, const NPtGainTestResultData &data, istream &file)
bool compare (shared_ptr< NPtGainTestResult > result)
void help ()
int main (int argc, char **argv)

Variables

string testName
string compFile
double gainTol
double offsetTol
double noiseTol
bool debug
Comp cGain (gainTol)
Comp cOffset (offsetTol)
Comp cNoise (noiseTol)
int noiseFailCount
int offsetFailCount
int gainFailCount
int codeFailCount
int nFail


Function Documentation

bool compare shared_ptr< NPtGainTestResult >    result
 

Definition at line 113 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

References cGain, cNoise, codeFailCount, cOffset, compareChannel(), compFile, gainFailCount, Comp::mean(), Sct::nChannelModule, nFail, noiseFailCount, offsetFailCount, and Comp::stddev().

void compareChannel unsigned int    ichannel,
const ModuleDefectList &    defects,
const NPtGainTestResultData &    data,
istream &    file
 

Definition at line 52 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

References cGain, cNoise, codeFailCount, cOffset, Comp::comp(), gainFailCount, noiseFailCount, and offsetFailCount.

Referenced by compare().

void help  
 

Definition at line 135 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

Referenced by main().

int main int    argc,
char **    argv
 

Definition at line 142 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

References cNoise, cOffset, compare(), compFile, help(), Sct::setExceptionHandlers(), Comp::setTolerance(), testName, and waitFor().

void waitFor string    name,
int    nsecs
 

Definition at line 37 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

References waitFor().


Variable Documentation

Comp cGain(gainTol)
 

Referenced by compare(), and compareChannel().

Comp cNoise(noiseTol)
 

Referenced by compare(), compareChannel(), and main().

int codeFailCount
 

Definition at line 34 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

Referenced by compare(), and compareChannel().

Comp cOffset(offsetTol)
 

Referenced by compare(), compareChannel(), and main().

string compFile
 

Definition at line 23 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

Referenced by compare(), and main().

bool debug
 

Definition at line 27 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

int gainFailCount
 

Definition at line 33 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

Referenced by compare(), and compareChannel().

double gainTol
 

Definition at line 24 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

int nFail
 

Definition at line 35 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

Referenced by compare().

int noiseFailCount
 

Definition at line 31 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

Referenced by compare(), and compareChannel().

double noiseTol
 

Definition at line 26 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

int offsetFailCount
 

Definition at line 32 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

Referenced by compare(), and compareChannel().

double offsetTol
 

Definition at line 25 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.

string testName
 

Definition at line 22 of file NPtGainTests/RCCompare/RetrieveAndCompare.cpp.


Generated on Mon Dec 15 19:36:42 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3