NtpEMValidate Class Reference

#include <NtpEMValidate.h>

List of all members.

Public Member Functions

 NtpEMValidate ()
virtual ~NtpEMValidate ()
bool RunAllTests (void)

Private Member Functions

bool TestPrint () const

Detailed Description

Definition at line 15 of file NtpEMValidate.h.


Constructor & Destructor Documentation

NtpEMValidate::NtpEMValidate (  )  [inline]

Definition at line 20 of file NtpEMValidate.h.

00020 {}

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

Definition at line 21 of file NtpEMValidate.h.

00021 {}


Member Function Documentation

bool NtpEMValidate::RunAllTests ( void   ) 

Definition at line 68 of file NtpEMValidate.cc.

References TestPrint().

Referenced by main().

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

bool NtpEMValidate::TestPrint (  )  const [private]

Definition at line 27 of file NtpEMValidate.cc.

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

Referenced by RunAllTests().

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


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1