ATLAS Offline Software
Trigger/TrigAnalysis/TrigInDetAnalysisUser/Readcards/src/main.cxx
Go to the documentation of this file.
1 
11 #include <iostream>
12 #include <vector>
13 #include <string>
14 
15 using namespace std;
16 
17 #include "ReadCards.h"
18 
19 
20 int main(int argc, char** argv)
21 {
22  if (argc<3) return -1;
23 
24  ReadCards r(argv[1]);
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 
44  ReadCards r2(argv[2]);
45 
46  return 0;
47 }
beamspotman.r
def r
Definition: beamspotman.py:676
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
LArCellConditions.argv
argv
Definition: LArCellConditions.py:112
createCoolChannelIdFile.buffer
buffer
Definition: createCoolChannelIdFile.py:12
ReadCards
Get tag-value pairs from a file.
Definition: ReadCards.h:50
ReadCards.h
lumiFormat.i
int i
Definition: lumiFormat.py:92
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
main
int main(int argc, char **argv)
Definition: Trigger/TrigAnalysis/TrigInDetAnalysisUser/Readcards/src/main.cxx:20