PSCalib/test/ex_cspad2x2_calib_pars.cpp

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id$
00004 //
00005 // Description:
00006 //      Test class CSPadCalibPars of the PSCalib packadge
00007 //
00008 // Author List:
00009 //      Mikhail Dubrovin
00010 //
00011 //------------------------------------------------------------------------
00012 
00013 //-----------------
00014 // C/C++ Headers --
00015 //-----------------
00016 
00017 #include "PSCalib/CSPad2x2CalibPars.h"
00018 
00019 #include <string>
00020 #include <iostream>
00021 
00022 using std::cout;
00023 using std::endl;
00024 
00025 //using namespace PSTime;
00026 
00027 int main ()
00028 {
00029   // Assuming path: /reg/d/psdm/mec/mec73313/calib/CsPad2x2::CalibV1/MecTargetChamber.0:Cspad2x2.1/1-end.data
00030   // or: /reg/d/psdm/xpp/xpptut13/calib/CsPad2x2::CalibV1/XppGon.0:Cspad2x2.1/pedestals/0-end.data
00031 
00032   //const std::string calibDir   = "/reg/neh/home1/dubrovin/LCLS/CSPad2x2Alignment/calib-test-calibpars";
00033   //const std::string calibDir   = "/reg/d/psdm/mec/mec73313/calib";
00034   //const std::string calibDir   = "/reg/d/psdm/mec/mec73313/calib_xxx"; // to test default pars
00035   const std::string calibDir   = "/reg/d/psdm/xpp/xpptut13/calib";
00036   const std::string groupName  = "CsPad2x2::CalibV1";
00037   //const std::string source     = "MecTargetChamber.0:Cspad2x2.1";
00038   const std::string source     = "XppGon.0:Cspad2x2.1";
00039   unsigned long     runNumber  = 10;
00040 
00041   cout << "Test of PSCalib::CSPad2x2CalibPars\n";     
00042 
00043   PSCalib::CSPad2x2CalibPars *calibpars = new PSCalib::CSPad2x2CalibPars(calibDir, groupName, source, runNumber);  
00044 
00045   calibpars->printCalibPars();
00046   calibpars->printCalibParsStatus();
00047 
00048   return 0;
00049 }
00050 
00051 //-----------------

Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7