PSCalib/test/ex_calib_file_finder.cpp

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id$
00004 //
00005 // Description:
00006 //      Test class CalibFileFinder of the PSCalib packadge
00007 //
00008 // Author List:
00009 //      Mikhail Dubrovin
00010 //
00011 //------------------------------------------------------------------------
00012 
00013 //-----------------
00014 // C/C++ Headers --
00015 //-----------------
00016 
00017 #include "PSCalib/CalibFileFinder.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   const std::string calibDir      = "/reg/d/psdm/cxi/cxi35711/calib";
00030   const std::string typeGroupName = "CsPad::CalibV1";
00031   const std::string src           = "CxiDs1.0:Cspad.0";
00032   const std::string dataType      = "pedestals";
00033   unsigned long     runNumber     = 10;
00034   unsigned long     runNumber2    = 50;
00035 
00036   cout << "Test of PSCalib::CalibFileFinder" << endl;     
00037 
00038 
00039   PSCalib::CalibFileFinder *calib1 = new PSCalib::CalibFileFinder(calibDir, typeGroupName);
00040 
00041   cout << "Calibration file name for existing run range: " << calib1->findCalibFile(src,dataType,runNumber) << endl;
00042 
00043   cout << "Calibration file name for non-existing run range: " << calib1->findCalibFile(src,dataType,runNumber2) << endl;
00044 
00045   return 0;
00046 }
00047 
00048 //-----------------

Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7