#include <string>
Go to the source code of this file.
int check_runcomplete |
( |
std::string |
| ) |
|
Definition at line 47 of file check_runcomplete.cc.
References read_runflag().
Referenced by main().
52 printf(
"************************************\n");
54 printf(
"** W A R N I N G: the DQM file %s does not exist" ,
filename.c_str() );
56 printf(
"************************************\n");
58 else if ( runflag == 2 )
60 printf(
"************************************\n");
62 printf(
"** W A R N I N G: the DQM file %s is incomplete" ,
filename.c_str() );
64 printf(
"************************************\n");
66 else if ( runflag != 0 )
68 printf(
"************************************\n");
70 printf(
"** W A R N I N G: problems found in the DQM file %s" ,
filename.c_str() );
72 printf(
"************************************\n");
int read_runflag(std::string filename)
int read_runflag |
( |
std::string |
| ) |
|
Definition at line 77 of file check_runcomplete.cc.
References combine::key, GetRecoTauVFromDQM_MC_cff::next, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by check_runcomplete().
81 TFile *dqmfile = TFile::Open (
filename.c_str() ,
"READ" );
83 if(dqmfile==0)
return 1;
85 std::string infodir =
"DQMData/Run " + nrun +
"/Info/Run summary/ProvInfo";
86 gDirectory->cd(infodir.c_str());
88 TIter
next ( gDirectory->GetListOfKeys() );
91 int isruncomplete = -1;
93 while ( ( key = dynamic_cast<TKey*> (
next() ) ) )
96 if ( svar.size() == 0 )
continue;
98 if ( svar.find(
"runIsComplete" ) != std::string::npos )
100 std::string statusflag = svar.substr ( svar.rfind (
"<" ) -1 , 1 );
101 isruncomplete = atoi ( statusflag.c_str() );
107 if(isruncomplete == -1)
return 3;
108 if(isruncomplete == 0)
return 2;
109 if(isruncomplete == 1)
return 0;