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

AlignHists.h

Go to the documentation of this file.
00001 
00002 //
00003 // $Id: AlignHists.h,v 1.6 2002/09/10 17:11:18 rhatcher Exp $
00004 //
00005 // AlignHists
00006 //
00007 // Package: Alignment
00008 //
00009 // Histogram monitoring of Alignment
00010 //
00011 // Contact: bv@bnl.gov
00012 //
00013 // Created on: Fri Jun 28 11:31:35 2002
00014 //
00016 
00017 #ifndef ALIGNHISTS_H
00018 #define ALIGNHISTS_H
00019 
00020 #include "UgliGeometry/UgliGeomHandle.h"
00021 #include "Conventions/PlaneView.h"
00022 
00023 class TH2D;
00024 
00025 class AlignHists
00026 {
00027 
00028 public:
00029 
00030     AlignHists(int nplanes, int nmdlperplane, const char* histname=0);
00031     AlignHists(const char* filename); // to load in
00032 
00033     virtual ~AlignHists();
00034     void ApplyTrack(PlaneView::PlaneView_t the_view,
00035                     std::vector<int>& strip,
00036                     std::vector<int>& plane, std::vector<int>& mdl, 
00037                     std::vector<double>& resid);
00038     void IncrementIteration() { ++fIteration; }
00039 
00040     // Read in hists adding to the ones we have
00041     void ReadHists(const char* filename);
00042 
00043     // Load initial start from a root hist file
00044     void LoadFromFile(const char* histfilename);
00045 
00046     TH2D* GetResidHist(int view, int iter) { return fResidHist[view][iter]; }
00047     TH2D* GetResidSqrHist(int view, int iter) { return fResidSqrHist[view][iter]; }
00048     TH2D* GetNumberOfTracksHist(int view) { return fNumberOfTracks[view]; }
00049 
00050 private:
00051 
00052     // copy constructor, assignment:
00053     AlignHists(const AlignHists& rhs); // copy constructor
00054     AlignHists& operator=(const AlignHists& rhs); // assignment
00055 
00056     TH2D *fResidHist[2][20];        // 0=U, 1=V, 2nd ind = iteration
00057     TH2D *fResidSqrHist[2][20];        // 0=U, 1=V, 2nd ind = iteration
00058     TH2D *fNumberOfTracks[2];
00059     TH2D *fNumberOfTracksStrips[2];
00060     int fIteration;
00061     const char* fHistName;
00062     ClassDef(AlignHists,0)
00063 };                              // end of class AlignHists
00064 
00065 #endif  // ALIGNHISTS_H

Generated on Mon Feb 15 11:06:20 2010 for loon by  doxygen 1.3.9.1