ATLAS Offline Software
Functions | Variables
IReadCards.cxx File Reference
#include "ReadCards.h"
#include "IReadCards.h"
Include dependency graph for IReadCards.cxx:

Go to the source code of this file.

Functions

void initcards_ (const char *s)
 
void deletecards_ (void)
 
void getstring_ (const char *tag, char *s)
 
void isdefined_ (const char *tag, int &i)
 
void getdvalue_ (const char *tag, double &d)
 
void getfvalue_ (const char *tag, float &f)
 
void getivalue_ (const char *tag, int &i)
 
void getbvalue_ (const char *tag, bool &b)
 
void getdvector_ (const char *tag, double *d)
 
void getivector_ (const char *tag, int *d)
 
void printcards_ ()
 

Variables

ReadCardsrp = NULL
 

Detailed Description


          fortran callable interface routines to the  
          ReadCards parameter file  
Author
M.Sutton
Date
Fri Aug 12 17:40:22 CEST 2005

Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration

Definition in file IReadCards.cxx.

Function Documentation

◆ deletecards_()

void deletecards_ ( void  )

Definition at line 33 of file IReadCards.cxx.

33  {
34  if ( rp ) delete rp;
35 }

◆ getbvalue_()

void getbvalue_ ( const char *  tag,
bool &  b 
)

Definition at line 67 of file IReadCards.cxx.

67  {
68  b = bool(rp->GetValue(tag));
69 }

◆ getdvalue_()

void getdvalue_ ( const char *  tag,
double &  d 
)

Definition at line 54 of file IReadCards.cxx.

54  {
55  d = rp->GetValue(tag);
56 }

◆ getdvector_()

void getdvector_ ( const char *  tag,
double *  d 
)

Definition at line 72 of file IReadCards.cxx.

72  {
74  for ( unsigned i=0 ; i<dv.size() ; i++ ) d[i] = dv[i];
75 }

◆ getfvalue_()

void getfvalue_ ( const char *  tag,
float &  f 
)

Definition at line 58 of file IReadCards.cxx.

58  {
59  f = rp->GetValue(tag);
60 }

◆ getivalue_()

void getivalue_ ( const char *  tag,
int &  i 
)

Definition at line 63 of file IReadCards.cxx.

63  {
64  i = int(rp->GetValue(tag));
65 }

◆ getivector_()

void getivector_ ( const char *  tag,
int *  d 
)

Definition at line 77 of file IReadCards.cxx.

77  {
79  for ( unsigned i=0 ; i<dv.size() ; i++ ) d[i] = int(dv[i]);
80 }

◆ getstring_()

void getstring_ ( const char *  tag,
char *  s 
)

Definition at line 39 of file IReadCards.cxx.

39  {
40  string val = rp->GetString(tag);
41  const char* sp = val.c_str();
42  while ( ( (*s++) = (*sp++) ) );
43  (*(s-1)) = ' ';
44  return;
45 }

◆ initcards_()

void initcards_ ( const char *  s)

Definition at line 29 of file IReadCards.cxx.

29  {
30  rp = new ReadCards(s);
31 }

◆ isdefined_()

void isdefined_ ( const char *  tag,
int &  i 
)

Definition at line 49 of file IReadCards.cxx.

49  {
50  i = ( rp->isTagDefined(tag) ? 1 : 0 );
51 }

◆ printcards_()

void printcards_ ( )

Definition at line 82 of file IReadCards.cxx.

82 { rp->print(); }

Variable Documentation

◆ rp

ReadCards* rp = NULL

Definition at line 26 of file IReadCards.cxx.

python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
PlotCalibFromCool.dv
dv
Definition: PlotCalibFromCool.py:762
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
ReadCards::GetVector
const std::vector< double > GetVector(unsigned i) const
Definition: ReadCards.h:68
hist_file_dump.d
d
Definition: hist_file_dump.py:137
ReadCards::GetString
std::string GetString(const std::string &tag) const
Definition: ReadCards.h:93
ReadCards
Get tag-value pairs from a file.
Definition: ReadCards.h:50
lumiFormat.i
int i
Definition: lumiFormat.py:85
vector< double >
hist_file_dump.f
f
Definition: hist_file_dump.py:135
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
ReadCards::isTagDefined
bool isTagDefined(const string &tag) const
Definition: ReadCards.h:61
ReadCards::print
void print()
Definition: ReadCards.cxx:484
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
ReadCards::GetValue
double GetValue(const string &tag) const
Definition: ReadCards.h:84
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
rp
ReadCards * rp
Definition: IReadCards.cxx:26
xAOD::bool
setBGCode setTAP setLVL2ErrorBits bool
Definition: TrigDecision_v1.cxx:60