ATLAS Offline Software
Classes | Functions
CoraCoolExample.cxx File Reference
#include <iostream>
#include <exception>
#include <math.h>
#include <vector>
#include <string>
#include <sstream>
#include "CoraCool/CoraCoolDatabaseSvcFactory.h"
#include "CoraCool/CoraCoolDatabaseSvc.h"
#include "CoolKernel/IDatabaseSvc.h"
#include "CoolKernel/ChannelSelection.h"
#include "CoraCool/CoraCoolDatabase.h"
#include "CoraCool/CoraCoolFolder.h"
#include "CoraCool/CoraCoolObjectIter.h"
#include "CoraCool/CoraCoolObject.h"
#include "CoralBase/Blob.h"
#include "CxxUtils/checker_macros.h"

Go to the source code of this file.

Classes

class  CoraCoolExample
 

Functions

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

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

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

Definition at line 420 of file CoraCoolExample.cxx.

420  {
421  if (argc<2) {
422  std::cout << "Syntax: CoraCoolExample.exe <dbConnection> { <options> ...}"
423  << std::endl;
424  std::cout << "See package mainpage.h for more information" << std::endl;
425  return 1;
426  }
427  std::string options="rw";
428  if (argc>2) options=argv[2];
429  std::string folder="/CoraCool/Test1";
430  if (argc>3) folder=argv[3];
431  int nfolder=1;
432  if (argc>4) nfolder=atoi(argv[4]);
433  int nobj=20;
434  if (argc>5) nobj=atoi(argv[5]);
435  int nchan=10;
436  if (argc>6) nchan=atoi(argv[6]);
437  int niov=5;
438  if (argc>7) niov=atoi(argv[7]);
439  int iov1=0;
440  if (argc>8) iov1=atoi(argv[8]);
441  int iovinc=1;
442  if (argc>9) iovinc=atoi(argv[9]);
443  int retcode=0;
444  try {
445  CoraCoolExample myexample(argv[1],options,folder,nfolder,
446  nobj,nchan,niov,iov1,iovinc);
447  retcode=myexample.execute();
448  }
449  catch (std::exception& e) {
450  std::cout << "Exception thrown from CoraCoolExample: " << e.what()
451  << std::endl;
452  retcode=16;
453  }
454  if (retcode==0) {
455  std::cout << "CoraCoolExample SUCCESS" << std::endl;
456  } else {
457  std::cout << "CoraCoolExample FAILURE with return code " <<
458  retcode << std::endl;
459  }
460  return retcode;
461 }
PlotCalibFromCool.iov1
iov1
Definition: PlotCalibFromCool.py:382
PlotCalibFromCool.nchan
nchan
Definition: PlotCalibFromCool.py:564
LArCellConditions.argv
argv
Definition: LArCellConditions.py:112
calibdata.exception
exception
Definition: calibdata.py:496
python.AtlRunQueryLib.options
options
Definition: AtlRunQueryLib.py:379
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
CaloCondBlobAlgs_fillNoiseFromASCII.folder
folder
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:56
CxxUtils::atoi
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
Definition: Control/CxxUtils/Root/StringUtils.cxx:85
CoraCoolExample
Definition: CoraCoolExample.cxx:24