FEDRA emulsion software from the OPERA Collaboration
checkrun.C File Reference
#include <iostream>
#include "EdbRunAccess.h"
Include dependency graph for checkrun.C:

Functions

int checkrun (char *name)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ checkrun()

int checkrun ( char *  name)
11 {
13  if( !a.InitRun() )
14  return 0;
15  a.CheckRunLine();
16  return 1;
17 }
void a()
Definition: check_aligned.C:59
Definition: EdbRunAccess.h:22
const char * name
Definition: merge_Energy_SytematicSources_Electron.C:24

◆ main()

int main ( int  argc,
char *  argv[] 
)
22 {
23  if (argc < 2)
24  {
25  cout<< "usage: \n \tcheckrun runfile.root > logfile \n";
26  cout<< "return values: -1-not found, 0-bad, 1-ok\n";
27  cout<<endl;
28  return 0;
29  };
30 
31  char *name = argv[1];
32 
33  return checkrun( name ) ;
34 }
int checkrun(char *name)
Definition: checkrun.C:10