#include <iostream>
#include <vector>
#include <string>
#include "ReadCards.h"
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
- Author
- mark sutton
- Date
- Fri 11 Jan 2019 07:41:26 CET
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
Definition in file Trigger/TrigAnalysis/TrigInDetAnalysisUser/Readcards/src/main.cxx.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 20 of file Trigger/TrigAnalysis/TrigInDetAnalysisUser/Readcards/src/main.cxx.
21{
22 if (argc<3) return -1;
23
25
26 double buffer =
r.GetValue(
"buffer");
27 double buffer2 =
r.GetValue(
"buffer2");
28 double buffer3 =
r.GetValue(
"buffer3");
29 string s =
r.GetString(
"s");
30
31 vector<double> dvec =
r.GetVector(
"dvec");
32 vector<string> svec =
r.GetStringVector(
"svec");
33
34
35 cout <<
"buffer=" <<
buffer << endl;
36 cout << "buffer2=" << buffer2 << endl;
37 cout << "buffer3=" << buffer3 << endl;
38 cout <<
"s=" <<
s << endl;
39
40 for (
int i=0 ;
i<dvec.size() ;
i++ ) cout <<
"dvec[" << i <<
"]=" << dvec[i] << endl;
41 for (
int i=0 ;
i<svec.size() ;
i++ ) cout <<
"svec[" << i <<
"]=" << svec[i] << endl;
42
43
45
46 return 0;
47}
Get tag-value pairs from a file.