Go to the source code of this file.
Functions | |
int | get_run_number () |
int get_run_number | ( | ) |
Definition at line 1 of file Dogwood/headers/util/get_run_number.h.
References JobCEnv::GetFileName(), JobCEnv::Instance(), and run().
00001 { 00003 //Get the run number from the Input file name 00004 //Allows us to set the name of the dst file 00005 JobCEnv& jce = JobCEnv::Instance(); 00006 string filename = jce.GetFileName(0); 00007 string rnumstring = filename.substr(filename.find_last_of("_")-8,8); 00008 int run = atoi(rnumstring.c_str()); 00009 // string srnstring = filename.substr(filename.find_last_of("_")+1,4); 00010 return run; 00011 }