00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
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