NtpSRValidate Class Reference

#include <NtpSRValidate.h>

List of all members.

Public Member Functions

 NtpSRValidate ()
virtual ~NtpSRValidate ()
bool RunAllTests (void)

Private Member Functions

bool TestPrint () const

Detailed Description

Definition at line 15 of file NtpSRValidate.h.


Constructor & Destructor Documentation

NtpSRValidate::NtpSRValidate (  )  [inline]

Definition at line 20 of file NtpSRValidate.h.

00020 {}

virtual NtpSRValidate::~NtpSRValidate (  )  [inline, virtual]

Definition at line 21 of file NtpSRValidate.h.

00021 {}


Member Function Documentation

bool NtpSRValidate::RunAllTests ( void   ) 

Definition at line 69 of file NtpSRValidate.cc.

References TestPrint().

Referenced by main().

00069                                 {
00070   //
00071   //  Purpose:  Run sequence of CandNtupleSR package validity tests.
00072   //
00073   //  Arguments: none.
00074   //
00075   //  Return:    pass (if all tests successful) or fail
00076   //
00077   //  Contact:   S. Kasahara
00078   // 
00079 
00080   bool allPassed = true;
00081 
00082   cout << "*** Test beauticity of Print methods  *** " << endl;
00083   if ( this -> TestPrint() ) cout << "*** Passed ***" << endl;
00084   else {
00085     cout << "*** Failed ***" << endl;
00086     allPassed = false;
00087   }
00088 
00089   return allPassed;
00090 
00091 }

bool NtpSRValidate::TestPrint (  )  const [private]

Definition at line 28 of file NtpSRValidate.cc.

References NtpSRVertex::dcosu, NtpSRVertex::dcosv, NtpSRVertex::dcosx, NtpSRVertex::dcosy, NtpSRVertex::dcosz, NtpSRStripPulseHeight::gev, NtpSRStripPulseHeight::mip, NtpSRPulseHeight::pe, NtpSRPulseHeight::raw, NtpSRPulseHeight::sigcor, NtpSRPulseHeight::siglin, NtpSRStripPulseHeight::sigmap, NtpSRVertex::t, NtpSRVertex::u, NtpSRVertex::v, NtpSRVertex::x, NtpSRVertex::y, and NtpSRVertex::z.

Referenced by RunAllTests().

00028                                     {
00029   //
00030   //  Purpose:  Test print methods 
00031   //
00032   //  Arguments: none.
00033   //
00034   //  Return:    true (passed)
00035   //
00036   //  Contact:   S. Kasahara
00037   // 
00038 
00039   bool pass = true;
00040 
00041   NtpSRVertex vtx;
00042   vtx.u = -5;
00043   vtx.v = -4;
00044   vtx.z = -3;
00045   vtx.t = -2;
00046   vtx.dcosu = -1;
00047   vtx.dcosv =  0;
00048   vtx.dcosz =  1;
00049   vtx.x = 2;
00050   vtx.y = 3;
00051   vtx.dcosx = 4;
00052   vtx.dcosy = 5;
00053   cout << vtx << endl;
00054   NtpSRStripPulseHeight ph;
00055   ph.raw = -5;
00056   ph.siglin = -4;
00057   ph.sigcor = -3;
00058   ph.pe = -2;
00059   ph.sigmap = -1;
00060   ph.mip = 0;
00061   ph.gev = 1;
00062 
00063   cout << ph << endl;
00064 
00065   return pass;
00066 
00067 }


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1