/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DQM/Integration/scripts/filechk.C
27 строк
541 B
federico de guio
DQM/Integration package added back to CMSSW
24 июн 2014, 00:42
24 июн 2014, 00:42
2d7e34e
Код
Авторство
О чём код?
int filechk(string fname) { //TFile f("DQM_V0001_SiStrip_R000062940.root"); TFile f(fname.c_str()); if (f.IsZombie()){ //cout << "File corrupted" << endl; return -1; } else { //TH2F* hist; //hist = (TH2F*)f.FindObjectAny("reportSummaryMap"); TDirectoryFile* hist; hist = (TDirectoryFile*)f.FindObjectAny("reportSummaryContents"); if (0 == hist) { //cout << "File is incomplete" << endl; return 0; } else { //cout << "File is OK" << endl; return 1; } } }