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

ScintModule.h

Go to the documentation of this file.
00001 
00002 //
00003 // $Id: ScintModule.h,v 1.6 2002/07/06 13:05:06 bv Exp $
00004 //
00005 // ScintModule
00006 //
00007 // Package: Alignment
00008 //
00009 // Points to an associated UgliScintMdlHandle and holds statistics
00010 // needed durring alignment phase as well as current resulting offset.
00011 //
00012 // Contact: bv@bnl.gov
00013 //
00014 // Created on: Mon Jun 24 12:37:09 2002
00015 //
00017 
00018 #ifndef SCINTMODULE_H
00019 #define SCINTMODULE_H
00020 
00021 #include "UgliGeometry/UgliScintMdlHandle.h"
00022 
00023 class ScintModule
00024 {
00025 
00026 public:
00027 
00028     ScintModule();
00029     ScintModule(UgliScintMdlHandle scint_module_handle);
00030     ~ScintModule();
00031 
00032     void UpdateOffsets(void);
00033     void ClearStatistics(void);
00034 
00035     // use predict to calculate residual, accumualte resid/resid**2
00036     // and return resid.
00037     void AccumResid(double resid);
00038     double GetOffset() { return fOffset; }
00039 
00040 private:
00041 
00042     // copy constructor, assignment:
00043     ScintModule(const ScintModule& rhs); // copy constructor
00044     ScintModule& operator=(const ScintModule& rhs); // assignment
00045 
00046     double fCurRes, fCurResSqr;  // stats
00047 
00048     int fNumTracks;             // Number of tracks used for above stats
00049 
00050     double fOffset;             // Transverse offset from "location" of
00051                                 // associated module.
00052 };                              // end of class ScintModule
00053 
00054 #endif  // SCINTMODULE_H

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