ScintModule Class Reference

#include <ScintModule.h>

List of all members.

Public Member Functions

 ScintModule ()
 ScintModule (UgliScintMdlHandle scint_module_handle)
 ~ScintModule ()
void UpdateOffsets (void)
void ClearStatistics (void)
void AccumResid (double resid)
double GetOffset ()

Private Member Functions

 ScintModule (const ScintModule &rhs)
ScintModuleoperator= (const ScintModule &rhs)

Private Attributes

double fCurRes
double fCurResSqr
int fNumTracks
double fOffset

Detailed Description

Definition at line 23 of file ScintModule.h.


Constructor & Destructor Documentation

ScintModule::ScintModule (  ) 
ScintModule::ScintModule ( UgliScintMdlHandle  scint_module_handle  ) 

Definition at line 3 of file ScintModule.cxx.

00004     : fCurRes(0),
00005       fCurResSqr(0),
00006       fNumTracks(0),
00007       fOffset(0)
00008 {
00009 }

ScintModule::~ScintModule (  ) 

Definition at line 11 of file ScintModule.cxx.

00012 {
00013 }

ScintModule::ScintModule ( const ScintModule rhs  )  [private]

Member Function Documentation

void ScintModule::AccumResid ( double  resid  ) 

Definition at line 15 of file ScintModule.cxx.

References fCurRes, fCurResSqr, and fNumTracks.

Referenced by StraightTrackAlignment::FitTrackLessOne().

00016 {
00017     fCurRes += resid;
00018     fCurResSqr += resid*resid;
00019     ++fNumTracks;
00020 }

void ScintModule::ClearStatistics ( void   ) 

Definition at line 29 of file ScintModule.cxx.

References fCurRes, fCurResSqr, and fNumTracks.

Referenced by StraightTrackAlignment::ApplyAllOffsets().

00030 {
00031     fCurRes = 0;
00032     fCurResSqr = 0;
00033     fNumTracks = 0;
00034 }

double ScintModule::GetOffset (  )  [inline]

Definition at line 38 of file ScintModule.h.

References fOffset.

Referenced by StraightTrackAlignment::FitTrackLessOne().

00038 { return fOffset; }

ScintModule& ScintModule::operator= ( const ScintModule rhs  )  [private]
void ScintModule::UpdateOffsets ( void   ) 

Definition at line 22 of file ScintModule.cxx.

References fCurRes, fNumTracks, and fOffset.

Referenced by StraightTrackAlignment::ApplyAllOffsets().

00023 {
00024     if (fNumTracks)
00025         fOffset = fCurRes/fNumTracks;
00026     
00027 }


Member Data Documentation

double ScintModule::fCurRes [private]

Definition at line 46 of file ScintModule.h.

Referenced by AccumResid(), ClearStatistics(), and UpdateOffsets().

double ScintModule::fCurResSqr [private]

Definition at line 46 of file ScintModule.h.

Referenced by AccumResid(), and ClearStatistics().

int ScintModule::fNumTracks [private]

Definition at line 48 of file ScintModule.h.

Referenced by AccumResid(), ClearStatistics(), and UpdateOffsets().

double ScintModule::fOffset [private]

Definition at line 50 of file ScintModule.h.

Referenced by GetOffset(), and UpdateOffsets().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1