Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
IReadCards.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void initcards_ (const char *)
 
void deletecards_ (void)
 
void isdefined_ (const char *, int &)
 
void getstring_ (const char *, char *)
 
void getdvalue_ (const char *, double &)
 
void getfvalue_ (const char *, float &)
 
void getivalue_ (const char *, int &)
 
void getbvalue_ (const char *, bool &)
 
void getdvector_ (const char *, double *)
 
void getivector_ (const char *, int *)
 
void printcards_ ()
 

Detailed Description


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

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

Definition in file IReadCards.h.

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 *  ,
bool &   
)

Definition at line 67 of file IReadCards.cxx.

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

◆ getdvalue_()

void getdvalue_ ( const char *  ,
double &   
)

Definition at line 54 of file IReadCards.cxx.

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

◆ getdvector_()

void getdvector_ ( const char *  ,
double *   
)

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 *  ,
float &   
)

Definition at line 58 of file IReadCards.cxx.

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

◆ getivalue_()

void getivalue_ ( const char *  ,
int &   
)

Definition at line 63 of file IReadCards.cxx.

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

◆ getivector_()

void getivector_ ( const char *  ,
int *   
)

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 *  ,
char *   
)

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 *  )

Definition at line 29 of file IReadCards.cxx.

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

◆ isdefined_()

void isdefined_ ( const char *  ,
int &   
)

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(); }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
PlotCalibFromCool.dv
dv
Definition: PlotCalibFromCool.py:762
ReadCards::GetVector
const std::vector< double > GetVector(unsigned i) const
Definition: ReadCards.h:68
hist_file_dump.d
d
Definition: hist_file_dump.py:143
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 >
python.LArMinBiasAlgConfig.int
int
Definition: LArMinBiasAlgConfig.py:59
hist_file_dump.f
f
Definition: hist_file_dump.py:141
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