getrunnumber.h File Reference

Go to the source code of this file.

Functions

int GetRunNumber ()

Function Documentation

int GetRunNumber (  ) 

Definition at line 1 of file getrunnumber.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 }


Generated on 22 Nov 2017 for loon by  doxygen 1.6.1