ATLAS Offline Software
Loading...
Searching...
No Matches
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}
ReadCards * rp

◆ getbvalue_()

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

Definition at line 67 of file IReadCards.cxx.

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

◆ 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 {
73 vector<double> dv = rp->GetVector(tag);
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 {
78 vector<double> dv = rp->GetVector(tag);
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}
static Double_t sp

◆ initcards_()

void initcards_ ( const char * s)

Definition at line 29 of file IReadCards.cxx.

29 {
30 rp = new ReadCards(s);
31}
Get tag-value pairs from a file.
Definition ReadCards.h:50

◆ 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.