Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Cedar_phy/restructure-chris/headers/util/get_run_number.h File Reference

Go to the source code of this file.

Functions

int get_run_number ()


Function Documentation

int get_run_number  ) 
 

Definition at line 1 of file Cedar_phy/restructure-chris/headers/util/get_run_number.h.

References JobCEnv::GetFileName(), JobCEnv::Instance(), and run().

Referenced by set_sm2_bfield().

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 }


Generated on Mon Feb 15 11:07:58 2010 for loon by  doxygen 1.3.9.1