ATLAS Offline Software
Functions
han_config_gen.cxx File Reference
#include <iostream>
#include <string>
#include <cstdlib>
#include "DataQualityInterfaces/HanConfig.h"
#include "DataQualityInterfaces/ConditionsSingleton.h"
#include "CxxUtils/checker_macros.h"
#include "CxxUtils/ubsan_suppress.h"
#include "TInterpreter.h"
Include dependency graph for han_config_gen.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 35 of file han_config_gen.cxx.

36 {
37  CxxUtils::ubsan_suppress ([]() { TInterpreter::Instance(); });
38 
39  CmdLineArgs arg;
40  int rc = arg.parse( argc, argv );
41  if (rc!=0) return rc;
42 
43  std::string infileName( arg.mconfig );
45  //std::cout<<__PRETTY_FUNCTION__<<"Input Conditions="<<dqi::ConditionsSingleton::getInstance().getCondition()
46  //<<std::endl;
47  std::string outfileName;
48 
49  std::string::size_type s = infileName.size();
50  std::string::size_type p = infileName.rfind( '.', s );
51  outfileName = infileName.substr( 0, p );
52  outfileName += ".hcfg";
53 
55  config.AssembleAndSave( infileName, outfileName, arg.m_connectionString, arg.m_runNumber, arg.m_bulk);
56  return 0;
57 }
dqi::ConditionsSingleton::getInstance
static ConditionsSingleton & getInstance()
Definition: ConditionsSingleton.cxx:20
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
LArCellConditions.argv
argv
Definition: LArCellConditions.py:112
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
create_dcsc_inputs_sqlite.arg
list arg
Definition: create_dcsc_inputs_sqlite.py:48
dqi::HanConfig
Definition: HanConfig.h:45
config
std::vector< std::string > config
Definition: fbtTestBasics.cxx:72
dqi::ConditionsSingleton::setCondition
void setCondition(const std::string &c)
Definition: ConditionsSingleton.cxx:25
CxxUtils::ubsan_suppress
void ubsan_suppress(void(*func)())
Helper for suppressing ubsan warnings.
Definition: ubsan_suppress.cxx:69
python.trfValidateRootFile.rc
rc
Definition: trfValidateRootFile.py:350