00001 int get_run_number(){ 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 }