Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ScintModule.cxx

Go to the documentation of this file.
00001 #include "Alignment/ScintModule.h"
00002 
00003 ScintModule::ScintModule(UgliScintMdlHandle /* scint_module_handle */)
00004     : fCurRes(0),
00005       fCurResSqr(0),
00006       fNumTracks(0),
00007       fOffset(0)
00008 {
00009 }
00010 
00011 ScintModule::~ScintModule()
00012 {
00013 }
00014 
00015 void ScintModule::AccumResid(double resid)
00016 {
00017     fCurRes += resid;
00018     fCurResSqr += resid*resid;
00019     ++fNumTracks;
00020 }
00021 
00022 void ScintModule::UpdateOffsets(void)
00023 {
00024     if (fNumTracks)
00025         fOffset = fCurRes/fNumTracks;
00026     
00027 }
00028 
00029 void ScintModule::ClearStatistics(void)
00030 {
00031     fCurRes = 0;
00032     fCurResSqr = 0;
00033     fNumTracks = 0;
00034 }

Generated on Mon Feb 15 11:07:33 2010 for loon by  doxygen 1.3.9.1