ATLAS Offline Software
Functions
han.cxx File Reference
#include <iostream>
#include <string>
#include <cstdlib>
#include "TPython.h"
#include "CxxUtils/checker_macros.h"
#include "DataQualityInterfaces/HanApp.h"
#include "DataQualityInterfaces/ConditionsSingleton.h"
Include dependency graph for han.cxx:

Go to the source code of this file.

Functions

int main ATLAS_NOT_THREAD_SAFE (int argc, char *argv[])
 

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

int main ATLAS_NOT_THREAD_SAFE ( int  argc,
char *  argv[] 
)

Definition at line 37 of file han.cxx.

38 {
39  TPython::Exec("import logging; logging.basicConfig()");
40  CmdLineArgs arg;
41  int rc = arg.parse( argc, argv );
42  if (rc!=0) return rc;
43 
44  std::string inputName( arg.data );
45  std::string configName( arg.hconfig );
46  std::string pathName( arg.path );
47  std::string outputName;
48  if( arg.output != "" ) {
49  outputName = arg.output;
50  }
51  else {
52  std::string::size_type s = inputName.size();
53  std::string::size_type p = inputName.rfind( '.', s );
54  outputName = inputName.substr( 0, p );
55  outputName += "_han.root";
56  }
57 
59  if (arg.cmdlineConditions != "") {
60  std::cout<<"Input Conditions="<<dqi::ConditionsSingleton::getInstance().getCondition()
61  <<std::endl;
62  }
63  dqi::HanApp app;
64  return app.Analyze( configName, inputName, outputName, pathName );
65 }
dqi::ConditionsSingleton::getInstance
static ConditionsSingleton & getInstance()
Definition: ConditionsSingleton.cxx:20
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
dqi::HanApp::Analyze
virtual int Analyze(const std::string &configName_, const std::string &inputName_, const std::string &outputName_, const std::string &path_="")
Definition: HanApp.cxx:86
dqi::ConditionsSingleton::getCondition
const std::string & getCondition() const
Definition: ConditionsSingleton.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
covarianceTool.pathName
pathName
Definition: covarianceTool.py:704
LArCellNtuple.argv
argv
Definition: LArCellNtuple.py:152
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
create_dcsc_inputs_sqlite.arg
list arg
Definition: create_dcsc_inputs_sqlite.py:48
dqi::HanApp
Definition: HanApp.h:21
lumiFormat.outputName
string outputName
Definition: lumiFormat.py:65
dqi::ConditionsSingleton::setCondition
void setCondition(const std::string &c)
Definition: ConditionsSingleton.cxx:25
python.trfValidateRootFile.rc
rc
Definition: trfValidateRootFile.py:355