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

getrunnumber.h

Go to the documentation of this file.
00001 int GetRunNumber(){
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 }
00012 

Generated on Mon Feb 15 11:06:46 2010 for loon by  doxygen 1.3.9.1